Remove an unused include.
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-24  Wilco  <wdijkstr@arm.com>
2
3         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
4
5 2014-06-24  Wilco  <wdijkstr@arm.com>
6
7         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
8         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
9         * sysdeps/arm/fesetround.c (fesetround): Remove space.
10         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
11
12 2014-06-24  Wilco  <wdijkstr@arm.com>
13
14         * NEWS: Add 16918 to fixed bug list.
15
16 2014-06-24  Wilco  <wdijkstr@arm.com>
17
18         [BZ #16918]
19         * sysdeps/arm/feupdateenv.c (feupdateenv):
20         Rewrite to reduce FPSCR accesses and fix return value.
21
22 2014-06-24  Wilco  <wdijkstr@arm.com>
23
24         * sysdeps/arm/fclrexcpt.c (feclearexcept):
25         Optimize to avoid unnecessary FPSCR writes.
26         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
27         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
28         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
29         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30
31 2014-06-24  Wilco  <wdijkstr@arm.com>
32
33         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
34         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
35         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
36         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
37         Call libc_fetestexcept_vfp.
38         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
39         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
40         __SOFTFP__ ifdef so that they can be built for softfp.
41
42 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43
44         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
45         argument type signed char.
46
47         * Makerules (check-abi): Dump diff of symlist if the test
48         fails.
49
50 2014-06-23  Roland McGrath  <roland@hack.frob.com>
51
52         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
53         using abort.
54
55         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
56         Remove unused variable ST.
57
58 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
59
60         [BZ #16354]
61         [BZ #17061]
62         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
63         small arguments before calling __expm1.
64         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
65         small arguments before calling __expm1f.
66         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
67         small arguments before calling __expm1l.
68         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
69         Likewise.
70         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
71         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
72         spurious underflow for some cosh tests.
73         * math/auto-libm-test-out: Regenerated.
74         * sysdeps/i386/fpu/libm-test-ulps: Update.
75
76         [BZ #17050]
77         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
78         (__ieee754_y1): Set errno if return value overflows.
79         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
80         (__ieee754_y1f): Set errno if return value overflows.
81         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
82         (__ieee754_y1l): Set errno if return value overflows.
83         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
84         (__ieee754_y1l): Set errno if return value overflows.
85         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
86         * math/auto-libm-test-out: Regenerated.
87
88         * math/gen-auto-libm-tests.c: Document use of
89         ignore-zero-inf-sign.
90         (input_flag_type): Add value flag_ignore_zero_inf_sign.
91         (input_flags): Add ignore-zero-inf-sign.
92         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
93         * math/gen-libm-test.pl (generate_testfile): Handle
94         ignore-zero-inf-sign.
95         * math/auto-libm-test-in: Mark some cpow tests with
96         ignore-zero-inf-sign and some with xfail-rounding.
97         * math/auto-libm-test-out: Regenerated.
98         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
99         * sysdeps/i386/fpu/libm-test-ulps: Update.
100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
101
102         [BZ #16315]
103         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
104         overflowing or underflowing operations take place with sign of
105         result.
106         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
107         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
108         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
109         (__ieee754_pow): Recompute overflowing and underflowing results in
110         original rounding mode.
111         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
112         (__powl_helper): Allow negative argument X and scale negated value
113         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
114         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
115         overflowing or underflowing operations take place with sign of
116         result.
117         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
118         Include <math.h>.
119         * math/auto-libm-test-in: Add more tests of pow.
120         * math/auto-libm-test-out: Regenerated.
121         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
122         (pow_tonearest_test_data): Remove.
123         (pow_test_tonearest): Likewise.
124         (pow_towardzero_test_data): Likewise.
125         (pow_test_towardzero): Likewise.
126         (pow_downward_test_data): Likewise.
127         (pow_test_downward): Likewise.
128         (pow_upward_test_data): Likewise.
129         (pow_test_upward): Likewise.
130         (main): Don't call removed functions.
131         * sysdeps/i386/fpu/libm-test-ulps: Update.
132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
133
134 2014-06-23  Roland McGrath  <roland@hack.frob.com>
135
136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
137         Moved ...
138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
140         Moved ...
141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
143         Moved ...
144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
146         Moved ...
147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
149         File removed.
150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
151         File removed.
152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
153         File removed.
154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
155         File removed.
156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
157         File removed.
158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
159         File removed.
160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
161         File removed.
162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
163         File removed.
164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
165         File removed.
166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
167         File removed.
168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
169         File removed.
170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
171         File removed.
172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
173         Moved ...
174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
176         Moved ...
177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
178         ... here.
179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
180         Moved ...
181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
183         Moved ...
184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
186         Moved ...
187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
189         Moved ...
190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
192         Moved ...
193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
195         Moved ...
196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
198         Moved ...
199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
202         ... here.
203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
204         Moved ...
205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
207         Moved ...
208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
209         ... here.
210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
211         Moved ...
212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
213         ... here.
214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
215         Moved ...
216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
217         ... here.
218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
219         Moved ...
220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
222         Moved ...
223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
227         Moved ...
228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
229         ... here.
230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
231         Moved ...
232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
233         ... here.
234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
235         Moved ...
236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
238         Moved ...
239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
241         Moved ...
242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
244         Moved ...
245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
247         Moved ...
248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
249         ... here.
250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
251         Moved ...
252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
254         Moved ...
255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
257         Moved ...
258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
260         Moved ...
261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
265         Moved ...
266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
268         Moved ...
269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
271         Moved ...
272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
273         ... here.
274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
275         Moved ...
276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
277         ... here.
278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
279         Moved ...
280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
281         ... here.
282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
283         Moved ...
284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
286         Moved ...
287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
289         Moved ...
290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
292         Moved ...
293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
294         ... here.
295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
296         Moved ...
297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
298         ... here.
299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
300         Moved ...
301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
302         ... here.
303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
304         Moved ...
305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
307         Moved ...
308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
309
310 2014-06-23  Will Newton  <will.newton@linaro.org>
311             Wilco  <wdijkstr@arm.com>
312
313         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
314         implementation.  Include get-rounding-mode.h.
315         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
316         [!libc_feholdsetround_noex_ctx]: Define
317         libc_feholdsetround_noex_ctx.
318         [!libc_feholdsetround_noexf_ctx]: Define
319         libc_feholdsetround_noexf_ctx.
320         [!libc_feholdsetround_noexl_ctx]: Define
321         libc_feholdsetround_noexl_ctx.
322         (libc_feholdsetround_ctx): New function.
323         (libc_feresetround_ctx): New function.
324         (libc_feholdsetround_noex_ctx): New function.
325         (libc_feresetround_noex_ctx): New function.
326
327 2014-06-23  Roland McGrath  <roland@hack.frob.com>
328
329         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
330         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
331         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
332         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
333         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
334         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
335
336         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
337         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
338         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
339         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
340         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
341         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
342         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
343         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
344         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
345         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
346         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
347         Moved ...
348         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
349         ... here.
350         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
351         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
352         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
353         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
354         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
355         Moved ...
356         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
357         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
358         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
359         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
360         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
361         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
362         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
363         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
364         Moved ...
365         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
366         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
367         Moved ...
368         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
369         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
370         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
371         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
372         Moved ...
373         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
374         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
375         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
376         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
377         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
378         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
379         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
380         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
381         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
382         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
383         Moved ...
384         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
385         ... here.
386         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
387         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
388         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
389         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
390         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
391         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
392         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
393         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
394         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
395         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
396         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
397         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
398         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
399         Moved ...
400         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
401         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
402         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
403         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
404         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
405         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
406         Moved ...
407         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
408         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
409         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
410         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
411         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
412
413         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
414         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
415         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
416         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
417         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
418         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
419         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
420         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
421         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
422         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
423         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
424         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
425         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
426         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
427         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
428         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
429         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
430         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
431         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
432         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
433         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
434         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
435         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
436         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
437         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
438         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
439         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
440         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
441
442 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
443
444         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
445         (FALLOC_FL_COLLAPSE_RANGE): New macro.
446         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
447         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
448         (IPV6_PMTUDISC_INTERFACE): Likewise.
449         (IPV6_PMTUDISC_OMIT): Likewise.
450
451 2014-06-23  Andreas Schwab  <schwab@suse.de>
452
453         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
454         Remove unused errout label.
455
456 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
457
458         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
459         macro: hardware supports Vector Crypto instructions.
460
461 2014-06-23  Will Newton  <will.newton@linaro.org>
462
463         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
464         rather than __builtin_expect.
465
466         * elf/dl-lookup.c (undefined_msg): Remove variable.
467         (_dl_lookup_symbol_x): Replace undefined_msg with string
468         literal.
469
470         * elf/dl-lookup.c (do_lookup_unique): New function.
471         (do_lookup_x): Move STB_GNU_UNIQUE handling code
472         to a separate function.
473
474 2014-06-23  Andreas Schwab  <schwab@suse.de>
475
476         [BZ #17079]
477         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
478         before reading the next line.
479
480 2014-06-23  Will Newton  <will.newton@linaro.org>
481
482         * test-skeleton.c (signal_handler): Use printf and %m
483         rather than perror.  Use printf rather than fprintf to
484         stderr.  Use puts rather than fputs to stderr.
485         (main): Likewise.
486
487 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
488
489         * nscd/nscd.c (thread_info_t): Remove typedef.
490         (thread_info): Remove variable.
491
492 2014-06-21  Allan McRae  <allan@archlinux.org>
493
494         * NEWS: Mention CVE-2014-4043.
495
496 2014-06-20  Roland McGrath  <roland@hack.frob.com>
497
498         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
499         * nptl/smp.h: ... here.
500
501         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
502
503         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
504         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
505         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
506         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
507
508         * nptl/allocatestack.c: Include <stack-aliasing.h>.
509         * nptl/stack-aliasing.h: New file.
510         * sysdeps/i386/i686/stack-aliasing.h: New file.
511         * sysdeps/i386/i686/nptl/Makefile: File removed.
512         * sysdeps/x86_64/stack-aliasing.h: New file.
513         * sysdeps/x86_64/nptl/Makefile
514         (CFLAGS-pthread_create.c): Variable removed.
515
516         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
517         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
518         old file.
519         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
520         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
521         old file.
522
523 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
524
525         * sysdeps/unix/sysv/linux/arm/kernel-features.h
526         (__ASSUME_SIGFRAME_V2): Remove macro.
527         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
528         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
529         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
530         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
531         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
532         Declare as function.  Remove conditional macro definitions.
533         (__default_rt_sa_restorer): Likewise.
534         (__default_sa_restorer_v1): Remove declaration.
535         (__default_sa_restorer_v2): Likewise.
536         (__default_rt_sa_restorer_v1): Likewise.
537         (__default_rt_sa_restorer_v2): Likewise.
538         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
539         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
540         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
541
542 2014-06-20  Roland McGrath  <roland@hack.frob.com>
543
544         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
545         (libpthread-routines): Add sysdep.
546         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
547         * sysdeps/unix/sysv/linux/sparc/Versions
548         (libpthread: GLIBC_2.3.3): New version set.
549         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
550         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
551         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
552         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
553         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
554         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
555         Moved ...
556         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
557         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
558         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
559         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
560         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
561         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
562         * sysdeps/sparc/nptl/sem_init.c: ... here.
563         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
564         * sysdeps/sparc/nptl/sem_post.c: ... here.
565         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
566         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
567         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
568         * sysdeps/sparc/nptl/sem_wait.c: ... here.
569         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
570         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
571         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
572         (libpthread-routines): Add cpu_relax.
573         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
574         File removed.
575         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
576         (librt: GLIBC_2.3.3): New version set.
577         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
578         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
579         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
580         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
581         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
582         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
583         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
584         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
585         Moved ...
586         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
587         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
588         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
589         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
590         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
591         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
592         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
593         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
594         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
595         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
596         Moved ...
597         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
598         Update #include.
599         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
600         Moved ...
601         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
602         Update #include.
603         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
604         Moved ...
605         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
606         Update #include.
607         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
608         Moved ...
609         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
610         Update #include.
611         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
612         Moved ...
613         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
614         Update #include.
615         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
616         Moved ...
617         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
618         Update #include.
619         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
620         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
621         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
622         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
623         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
624         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
625         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
626         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
627         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
628         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
629         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
630         Moved ...
631         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
632         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
633         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
634         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
635         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
636
637 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
638
639         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
640         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
641         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
642         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
643         * nscd/nscd.c: Likewise.
644         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
645         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
646         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
647         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
648
649         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
650         <kernel-features.h>.
651         (init_mq_netlink): Remove conditional have_sock_cloexec
652         definitions.  Remove code conditional on have_sock_cloexec < 0.
653         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
654         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
655         * sysdeps/unix/sysv/linux/opensock.c: Do not include
656         <kernel-features.h>.
657         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
658         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
659
660 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
661
662         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
663         Add tests for memset_chk and memset.
664
665         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
666         with AVX2_Usable.
667
668 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
669
670         [BZ #16046]
671         * elf/tst-dl-iter-static.c: New file.
672         * elf/Makefile (tests-static): Add tst-dl-iter-static.
673
674         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
675         error.
676
677 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
678
679         * sysdeps/unix/sysv/linux/kernel-features.h
680         (__ASSUME_F_GETOWN_EX): Remove macro.
681         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
682         <kernel-features.h>.
683         (miss_F_GETOWN_EX): Remove variable or macro.
684         (do_fcntl): Do not check miss_F_GETOWN_EX.
685         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
686
687         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
688         Remove macro.
689         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
690         [!__ASSUME_AT_RANDOM]: Remove conditional code.
691         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
692
693         * sysdeps/unix/sysv/linux/kernel-features.h
694         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
695         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
696         [ADJ_OFFSET_SS_READ]: Make code unconditional.
697         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
698
699 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
700
701         [BZ #17075]
702         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
703         Fix calculation of the symbol's value.
704         * sysdeps/arm/tst-armtlsdescloc.c: New file.
705         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
706         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
707         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
708         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
709         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
710         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
711         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
712         (modules-names): Add `tst-armtlsdescmod',
713         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
714         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
715         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
716         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
717         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
718         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
719         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
720         ($(objpfx)tst-armtlsdescloc): New dependency.
721         ($(objpfx)tst-armtlsdescextnow): Likewise.
722         ($(objpfx)tst-armtlsdescextlazy): Likewise.
723         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
724         TLS scheme support.
725         * sysdeps/arm/configure: Regenerate.
726
727 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
728
729         * include/fcntl.h (__atfct_seterrno): Remove prototype.
730         (__atfct_seterrno_2): Likewise.
731         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
732         <kernel-features.h>.
733         (__ASSUME_ATFCTS): Do not undefine and redefine.
734         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
735         (__have_atfcts): Remove conditional definition.
736         (__fxstatat([__NR_fstatat64]: Make code unconditional.
737         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
738         unreachable if [__ASSUME_ATFCTS].
739         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
740         not undefine and redefine.
741         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
742         <kernel-features.h>.
743         (faccessat) [__NR_faccessat]: Make code unconditional.
744         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
745         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
746         <kernel-features.h>.
747         (fchmodat) [__NR_fchmodat]: Make code unconditional.
748         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
749         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
750         <kernel-features.h>.
751         (fchownat) [__NR_fchownat]: Make code unconditional.
752         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
753         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
754         <kernel-features.h>.
755         (futimesat) [__NR_futimesat]: Make code unconditional.
756         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
757         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
758         <kernel-features.h>.
759         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
760         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
761         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
762         <kernel-features.h>.
763         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
764         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
765         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
766         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
767         <kernel-features.h>.
768         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
769         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
770         * sysdeps/unix/sysv/linux/linkat.c: Do not include
771         <kernel-features.h>.
772         (linkat) [__NR_linkat]: Make code unconditional.
773         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
774         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
775         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
776         <kernel-features.h>.
777         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
778         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
779         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
780         <kernel-features.h>.
781         (mkdirat) [__NR_mkdirat]: Make code unconditional.
782         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
783         * sysdeps/unix/sysv/linux/openat.c: Do not include
784         <kernel-features.h>.
785         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
786         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
787         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
788         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
789         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
790         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
791         <kernel-features.h>.
792         (readlinkat) [__NR_readlinkat]: Make code unconditional.
793         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
794         result of INLINE_SYSCALL directly, not via int variable.
795         * sysdeps/unix/sysv/linux/renameat.c: Do not include
796         <kernel-features.h>.
797         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
798         (renameat) [__NR_renameat]: Make code unconditional.
799         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
800         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
801         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
802         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
803         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
804         (__ASSUME_ATFCTS): Do not undefine and redefine.
805         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
806         <kernel-features.h>.
807         (symlinkat) [__NR_symlinkat]: Make code unconditional.
808         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
809         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
810         <kernel-features.h>.
811         (unlinkat) [__NR_unlinkat]: Make code unconditional.
812         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
813         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
814         (__ASSUME_ATFCTS): Do not undefine and redefine.
815         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
816         <kernel-features.h>.
817         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
818         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
819         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
820         <kernel-features.h>.
821         (__xmknodat) [__NR_mknodat]: Make code unconditional.
822         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
823
824 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
825
826         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
827
828 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
829
830         [BZ #17069]
831         * posix/regcomp.c (parse_reg_exp): Deallocate partially
832         constructed tree before returning error.
833         * posix/bug-regexp36.c: Expand test case.
834
835 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
836
837         [BZ #6803]
838         * math/libm-test.inc (scalbln_test_date):
839         Add errno expectations.
840         * math/w_scalblnf.c: New File.
841         Add wrapper which checks for setting errno to ERANGE.
842         Add weak_alias for corresponding scalbln function.
843         * math/w_scalbln.c: Likewise.
844         * math/w_scalblnl.c: Likewise.
845         * math/Makefile (libm-calls): Add w_scalbln.
846         * sysdeps/ieee754/flt-32/s_scalblnf.c:
847         Remove weak_alias for corresponding scalbln function.
848         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
849         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
850         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
851         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
852         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
853         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
854         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
855         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
856         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
857         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
858         Remove long_double_symbol for scalblnl function in libm, libc.
859         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
860         Add wrapper which checks for setting errno to ERANGE.
861         Add long_double_symbol for scalblnl function in libm, libc.
862         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
863         Remove long_double_symbol for scalblnl in libm.
864         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
865         Add wrapper which checks for setting errno to ERANGE.
866         Add long_double_symbol for scalblnl function in libm.
867         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
868         Do not use wrapper because of own implementation.
869
870 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
871
872         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
873         3 bytes for __pad1 for x32.
874         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
875
876 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
877             H.J. Lu  <hongjiu.lu@intel.com>
878
879         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
880         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
881         * sysdeps/x86_64/multiarch/memset.S: Likewise.
882         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
883         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
884
885 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
886
887         [BZ #17069]
888         * posix/regcomp.c (parse_expression): Deallocate partially
889         constructed tree before returning error.
890         * posix/Makefile.c (tests): Add bug-regex36.
891         (generated): Add bug-regex36.mtrace.
892         (tests-special): Add $(objpfx)bug-regex36-mem.out
893         (bug-regex36-ENV): New variable.
894         ($(objpfx)bug-regex36-mem.out): New rule.
895         * posix/bug-regex36.c: New file.
896
897 2014-06-19  Will Newton  <will.newton@linaro.org>
898
899         * malloc/malloc.c (systrim): If extra is zero then return
900         early.
901
902 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
903
904         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
905
906 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
907
908         * sysdeps/aarch64/strchr.S: New file.
909
910 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
911
912         [BZ #17022]
913         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
914         from arguments -2 or below.
915         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
916         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
917
918 2014-06-18  Andreas Schwab  <schwab@suse.de>
919
920         [BZ #17062]
921         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
922         of a bracket expr not to run off the end of the string.
923         * posix/Makefile (tests): Add tst-fnmatch3.
924         * posix/tst-fnmatch3.c: New file.
925
926 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
927
928         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
929         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
930         [$(cross-compiling) = no]: Likewise.
931         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
932         [$(cross-compiling) = no]: Likewise.
933
934 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
935
936         [BZ #17031]
937         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
938         double, adjusted for any remainder from the high double.
939         * math/libm-test.inc (nearbyint): Add tests.
940         (rint): Likewise.
941
942 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
943
944         * nptl/sysdeps/powerpc/Makefile: Moved ...
945         * sysdeps/powerpc/nptl/Makefile: ... here.
946         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
947         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
948         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
949         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
950         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
951         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
952         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
953         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
954         * nptl/sysdeps/powerpc/tls.h: Moved ...
955         * sysdeps/powerpc/nptl/tls.h: ... here.
956
957 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
958
959         [BZ #16681]
960         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
961         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
962         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
963         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
964         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
965         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
966         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
967         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
968         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
969
970 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
971
972         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
973
974 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
975
976         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
977         defined operator.
978
979         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
980         $TIMEOUTFACTOR.
981
982 2014-06-16  Florian Weimer  <fweimer@redhat.com>
983
984         [BZ #17058]
985         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
986         non-executed part of the test.
987
988 2014-06-16  Andreas Schwab  <schwab@suse.de>
989
990         * string/bits/string2.h (strdup, strndup): Update feature guard.
991
992 2014-06-14  David S. Miller  <davem@davemloft.net>
993
994         * sysdeps/sparc/fpu/libm-test-ulps: Update.
995
996 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
997
998         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
999         that was previously under [RESET_PID].
1000         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
1001
1002         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
1003         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
1004         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
1005         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1006         (__libc_vfork): New strong alias.
1007         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
1008
1009 2014-06-14 Andi Kleen  <ak@linux.intel.com>
1010
1011         * sysdeps/generic/elide.h: New file.
1012
1013 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1014
1015         * Makefile (installed-headers): Adjust path of pthread.h header.
1016
1017 2014-06-13  Roland McGrath  <roland@hack.frob.com>
1018
1019         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
1020         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
1021         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
1022         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
1023
1024         * nptl/sysdeps/s390/Makefile: Moved ...
1025         * sysdeps/s390/nptl/Makefile: ... here.
1026         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
1027         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
1028         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
1029         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
1030         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
1031         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
1032         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
1033         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
1034         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
1035         * sysdeps/s390/nptl/pthreaddef.h: ... here.
1036         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
1037         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
1038         * nptl/sysdeps/s390/tls.h: Moved ...
1039         * sysdeps/s390/nptl/tls.h: ... here.
1040
1041         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
1042         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
1043
1044 2014-06-13  David S. Miller  <davem@davemloft.net>
1045
1046         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
1047         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
1048         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
1049         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
1050         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
1051         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
1052         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
1053         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
1054         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
1055         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
1056         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1057         Remove RESET_PID cpp guards.
1058         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1059         Remove RESET_PID cpp guards.
1060         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1061
1062 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1063
1064         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1065         __sp to uintptr_t.
1066
1067 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1068
1069         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1070         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1071         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1072         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1073         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1074         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1075         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1076         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1077         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1078         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1079         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1080         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1081         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1082         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1083         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1084         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1085         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1086         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1087         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1088         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1089
1090         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1091         (pthread_rwlock_rdlock): Add elision.
1092         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1093         (pthread_rwlock_wrlock): Add elision.
1094         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1095         (pthread_rwlock_trywrlock): Add elision.
1096         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1097         (pthread_rwlock_tryrdlock): Add elision.
1098         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1099         (pthread_rwlock_tryrdlock): Add elision unlock.
1100         * nptl/sysdeps/pthread/pthread.h:
1101         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1102         (PTHREAD_RWLOCK_INITIALIZER,
1103         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1104         Handle new elision field.
1105         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1106         * sysdeps/arm/nptl/bits/pthreadtypes.h
1107         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1108         * sysdeps/sh/nptl/bits/pthreadtypes.h
1109         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1110         * sysdeps/tile/nptl/bits/pthreadtypes.h
1111         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1112         * sysdeps/a/nptl/bits/pthreadtypes.h
1113         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1114         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1115         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1116         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1117         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1118         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1119         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1120         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1121         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1122         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1123         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1124         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1125         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1126         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1127         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1128         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1129         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1130         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1131         (elision_init): Set try_xbegin to zero when no RTM.
1132         * sysdeps/x86/nptl/bits/pthreadtypes.h
1133         (pthread_rwlock_t): Change __pad1 to __rwelision.
1134         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1135
1136 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1137
1138         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1139         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1140         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1141         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1142
1143 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1144
1145         [BZ #16996]
1146         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1147         that the cached result has been set before returning it.
1148
1149 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1150
1151         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1152         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1153         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1154         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1155         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1156         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1157
1158         * nptl/sysdeps/sparc/Makefile: Moved ...
1159         * sysdeps/sparc/nptl/Makefile: ... here.
1160         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1161         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1162         * nptl/sysdeps/sparc/tls.h: Moved ...
1163         * sysdeps/sparc/nptl/tls.h: ... here.
1164         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1165         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1166         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1167         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1168         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1169         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1170         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1171         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1172         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1173         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1174         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1175         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1176         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1177         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1178         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1179         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1180         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1181         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1182         Update #include.
1183         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1184         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1185         Update #include.
1186         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1187         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1188         Update #include.
1189         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1190         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1191         Update #include.
1192
1193         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1194
1195         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1196         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1197
1198         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1199         (struct list_links): Type removed.
1200         (struct thread_node, struct timer_node): Replace struct list_links
1201         with struct list_head.
1202         (list_unlink_ip): Likewise.
1203         * sysdeps/pthread/timer_routines.c
1204         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1205         (list_append, list_insbefore): Likewise.
1206         (list_init): Function removed.
1207         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1208         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1209         * sysdeps/pthread/Makefile: ... here, new file.
1210
1211         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1212         * sysdeps/nptl/Implies: ... here.
1213         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1214         * nptl/sysdeps/pthread/list.h: Moved ...
1215         * include/list.h: ... here.
1216         * nptl/sysdeps/pthread/createthread.c: Moved ...
1217         * nptl/createthread.c: ... here.
1218         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1219         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1220         * nptl/pt-longjmp.c: ... here.
1221         * nptl/sysdeps/pthread/Makefile: Moved ...
1222         * sysdeps/nptl/Makefile: ... here.
1223         * nptl/sysdeps/pthread/Subdirs: Moved ...
1224         * sysdeps/nptl/Subdirs: ... here.
1225         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1226         * sysdeps/nptl/aio_misc.h: ... here.
1227         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1228         * sysdeps/nptl/bits/libc-lock.h: ... here.
1229         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1230         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1231         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1232         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1233         * nptl/sysdeps/pthread/configure: Moved ...
1234         * sysdeps/nptl/configure: ... here.
1235         * nptl/sysdeps/pthread/configure.ac: Moved ...
1236         * sysdeps/nptl/configure.ac: ... here.
1237         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1238         * sysdeps/nptl/gai_misc.h: ... here.
1239         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1240         * sysdeps/nptl/librt-cancellation.c: ... here.
1241         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1242         * sysdeps/nptl/malloc-machine.h: ... here.
1243         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1244         * sysdeps/nptl/pthread-functions.h: ... here.
1245         * nptl/sysdeps/pthread/pthread.h: Moved ...
1246         * sysdeps/nptl/pthread.h: ... here.
1247         * nptl/sysdeps/pthread/setxid.h: Moved ...
1248         * sysdeps/nptl/setxid.h: ... here.
1249         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1250         * sysdeps/nptl/sigfillset.c: ... here.
1251         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1252         * sysdeps/nptl/tcb-offsets.h: ... here.
1253         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1254         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1255         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1256         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1257         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1258         * sysdeps/pthread/allocalim.h: ... here.
1259         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1260         * sysdeps/pthread/bits/sigthread.h: ... here.
1261         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1262         * sysdeps/pthread/flockfile.c: ... here.
1263         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1264         * sysdeps/pthread/ftrylockfile.c: ... here.
1265         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1266         * sysdeps/pthread/funlockfile.c: ... here.
1267         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1268         * sysdeps/pthread/posix-timer.h: ... here.
1269         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1270         * sysdeps/pthread/timer_create.c: ... here.
1271         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1272         * sysdeps/pthread/timer_delete.c: ... here.
1273         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1274         * sysdeps/pthread/timer_getoverr.c: ... here.
1275         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1276         * sysdeps/pthread/timer_gettime.c: ... here.
1277         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1278         * sysdeps/pthread/timer_routines.c: ... here.
1279         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1280         * sysdeps/pthread/timer_settime.c: ... here.
1281         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1282         * sysdeps/pthread/tst-timer.c: ... here.
1283         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1284         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1285
1286         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1287         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1288
1289         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1290         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1291         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1292         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1293         Update #include target.
1294         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1295         * sysdeps/i386/i686/nptl/Makefile: ... here.
1296         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1297         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1298         Update #include target.
1299         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1300         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1301         * nptl/sysdeps/i386/Makefile: Moved ...
1302         * sysdeps/i386/nptl/Makefile: ... here.
1303         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1304         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1305         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1306         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1307         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1308         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1309         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1310         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1311         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1312         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1313         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1314         * nptl/sysdeps/i386/tls.h: Moved ...
1315         * sysdeps/i386/nptl/tls.h: ... here.
1316
1317         * sysdeps/sh/Makefile [$(subdir) = csu]
1318         (gen-as-const-headers): Add tcb-offsets.sym.
1319         * nptl/sysdeps/sh/Makefile: File removed.
1320         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1321         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1322         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1323         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1324         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1325         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1326         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1327         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1328         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1329         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1330         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1331         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1332         * nptl/sysdeps/sh/tls.h: Moved ...
1333         * sysdeps/sh/nptl/tls.h: ... here.
1334         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1335         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1336         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1337         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1338         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1339         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1340         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1341         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1342         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1343         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1344         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1345         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1346         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1347         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1348         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1349         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1350         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1351         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1352         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1353         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1354         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1355         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1356         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1357         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1358         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1359         Moved ...
1360         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1361         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1362         Moved ...
1363         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1364         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1365         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1366         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1367         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1368         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1369         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1370         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1371         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1372         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1373         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1374         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1375         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1376         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1377         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1378         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1379         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1380         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1381         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1382
1383 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1384
1385         * posix/spawn_faction_addopen.c: Include string.h.
1386
1387 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1388
1389         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1390         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1391         * nptl/sysdeps/x86_64/Makefile: Moved ...
1392         * sysdeps/x86_64/nptl/Makefile: ... here.
1393         * nptl/sysdeps/x86_64/configure: Moved ...
1394         * sysdeps/x86_64/nptl/configure: ... here.
1395         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1396         * sysdeps/x86_64/nptl/configure.ac: ... here.
1397         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1398         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
1399         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
1400         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
1401         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
1402         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
1403         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
1404         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
1405         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
1406         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
1407         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
1408         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
1409         * nptl/sysdeps/x86_64/tls.h: Moved ...
1410         * sysdeps/x86_64/nptl/tls.h: ... here.
1411         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
1412         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
1413         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
1414         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
1415
1416         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
1417
1418 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1419
1420         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1421
1422 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
1423
1424         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
1425         type.
1426         [POSIX] (off_t): Likewise.
1427         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
1428         [POSIX] (S_ISBLK): Require macro.
1429         [POSIX] (S_ISCHR): Likewise.
1430         [POSIX] (S_ISDIR): Likewise.
1431         [POSIX] (S_ISFIFO): Likewise.
1432         [POSIX] (S_ISREG): Likewise.
1433         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
1434         optional-macro.
1435         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
1436         type.
1437         [POSIX] (time_t): Likewise.
1438         [POSIX] (timer_t): Likewise.
1439
1440 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1441
1442         [BZ #17048]
1443         * posix/spawn_int.h (struct __spawn_action): Make the path string
1444         non-const to support deallocation.
1445         * posix/spawn_faction_addopen.c
1446         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1447         * posix/spawn_faction_destroy.c
1448         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1449         path in all spawn_do_open actions.
1450         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1451         posix_spawn_file_actions_addopen.
1452
1453 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1454
1455         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1456         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1457         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1458         conditional code always true.
1459         (__libc_vfork): New alias.
1460
1461 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1462
1463         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1464         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1465
1466         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1467
1468         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1469         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1470
1471         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1472         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1473
1474         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1475         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1476
1477 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1478
1479         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1480         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1481         multiarch strcmp for PPC64.
1482         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1483         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1484         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1485         multiarch optimizations.
1486         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1487         (__libc_ifunc_impl_list): Likewise.
1488
1489 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1490
1491         * benchtests/scripts/validate_benchout.py: New script.
1492         * benchtests/Makefile (bench-func): Call it.
1493         * benchtests/scripts/benchout.schema.json: New file.
1494
1495 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1496
1497         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1498         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1499         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1500         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1501         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1502         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1503         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1504         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1505         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1506         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1507         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1508         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1509         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1510         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1511         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1512         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1513         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1514         Moved ...
1515         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1516         ... here.
1517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1518         Moved ...
1519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1520         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1521         Moved ...
1522         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1523         ... here.
1524         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1525         Moved ...
1526         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1527         ... here.
1528         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1529         Moved ...
1530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1531         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1532         Moved ...
1533         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1534         ... here.
1535         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1536         Moved ...
1537         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1538         ... here.
1539         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1540         Moved ...
1541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1542         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1543         Moved ...
1544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1545         ... here.
1546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1547         Moved ...
1548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1549         ... here.
1550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1551         Moved ...
1552         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1553         ... here.
1554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1555         Moved ...
1556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1557         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1558         Moved ...
1559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1560         ... here.
1561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1562         Moved ...
1563         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1564         ... here.
1565         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1566         Moved ...
1567         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1568         ... here.
1569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1570         Moved ...
1571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1573         Moved ...
1574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1575         ... here.
1576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1577         Moved ...
1578         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1579         ... here.
1580         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1581         Moved ...
1582         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1584         Moved ...
1585         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1586         ... here.
1587         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1588         Moved ...
1589         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1591         Moved ...
1592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1593         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1594         Moved ...
1595         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1596         ... here.
1597         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1598         Moved ...
1599         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1600         ... here.
1601         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1602         Moved ...
1603         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1604         ... here.
1605         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1606         Moved ...
1607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1608         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1609         Moved ...
1610         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1611         ... here.
1612         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1613         Moved ...
1614         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1615         ... here.
1616         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1617         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1618         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1619         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1620         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1621         Moved ...
1622         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1623         ... here.
1624         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1625         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1626         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1627         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1628         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1629         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1630         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1631         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1632         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1633         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1634         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1635         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1636         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1637         Moved ...
1638         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1639         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1640         Moved ...
1641         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1642         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1643         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1644         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1645         Moved ...
1646         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1647         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1648         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1649         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1650         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1651         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1652         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1653
1654 2014-06-10  Wilco  <wdijkstr@arm.com>
1655
1656         * math/test-fenv-return.c: New file.
1657         * math/Makefile: Add new test test-fenv-return.
1658
1659 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1660
1661         [BZ #17042]
1662         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1663         when x - 1 is zero.
1664         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1665         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1666         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1667         0.0L for an argument of 1.0L.
1668         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1669         Likewise.
1670         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1671         value when x - 1 is zero.
1672         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1673         * sysdeps/i386/fpu/libm-test-ulps: Update.
1674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1675
1676 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1677
1678         [BZ #15119]
1679         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1680
1681 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1682
1683         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1684         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1685
1686 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1687
1688         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1689         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1690
1691         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1692         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1693
1694         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1695         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1696
1697         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1698         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1699
1700         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1701         if not already defined.
1702         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1703         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1704         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1705         (TLS_INIT_TP): Use it.
1706         (TLS_DEFINE_INIT_TP): New macro.
1707         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1708
1709 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1710
1711         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1712         constant.
1713         [POSIX] (IXANY): Likewise.
1714         [POSIX] (OLCUC): Likewise.
1715         [POSIX || POSIX2008] (CBAUD): Do not allow.
1716         [POSIX || POSIX2008] (DEFECHO): Likewise.
1717         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1718         [POSIX || POSIX2008] (ECHOKE): Likewise.
1719         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1720         [POSIX || POSIX2008] (EXTA): Likewise.
1721         [POSIX || POSIX2008] (EXTB): Likewise.
1722         [POSIX || POSIX2008] (FLUSHO): Likewise.
1723         [POSIX || POSIX2008] (LOBLK): Likewise.
1724         [POSIX || POSIX2008] (PENDIN): Likewise.
1725         [POSIX || POSIX2008] (SWTCH): Likewise.
1726         [POSIX || POSIX2008] (VDISCARD): Likewise.
1727         [POSIX || POSIX2008] (VDSUSP): Likewise.
1728         [POSIX || POSIX2008] (VLNEXT): Likewise.
1729         [POSIX || POSIX2008] (VREPRINT): Likewise.
1730         [POSIX || POSIX2008] (VSTATUS): Likewise.
1731         [POSIX || POSIX2008] (VWERASE): Likewise.
1732         (B*): Change to B[0123456789]*.
1733         * conform/data/time.h-data [POSIX || UNIX98]
1734         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1735         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1736         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1737         [POSIX] (tm_*): Do not allow.
1738
1739 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1740
1741         * Makefile (install): Don't set LANGUAGE.
1742         * Makefile.in (install): Likewise.
1743         * assert/Makefile (test-assert-ENV): Remove variable.
1744         (test-assert-perr-ENV): Likewise.
1745         * elf/Makefile (neededtest4-ENV): Likewise.
1746         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1747         [$(cross-compiling) = no]: Don't set LANGUAGE.
1748         * io/ftwtest-sh (LANG): Remove variable.
1749         * libio/Makefile (tst-widetext-ENV): Likewise.
1750         * manual/install.texi (Running make install): Don't refer to
1751         environment settings for make install.
1752         * INSTALL: Regenerated.
1753         * nptl/tst-tls6.sh: Don't set LANG.
1754         * posix/globtest.sh (LANG): Remove variable.
1755         * string/Makefile (tester-ENV): Likewise.
1756         (inl-tester-ENV): Likewise.
1757         (noinl-tester-ENV): Likewise.
1758         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1759         [$(cross-compiling) = no]: Don't set LANGUAGE.
1760         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1761         without explicit environment settings.
1762
1763 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1764
1765         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1766         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1767         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1768         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1769
1770 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1771
1772         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1773         other files in the crypt directory.
1774         * crypt/crypt.c: Remove duplicate includes.
1775         * crypt/crypt-entry.c: Likewise.
1776         * crypt/crypt_util.c: Likewise.
1777
1778 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1779
1780         * Makeconfig (run-program-env): New variable.
1781         (run-program-prefix-before-env): Likewise.
1782         (run-program-prefix-after-env): Likewise.
1783         (run-program-prefix): Define in terms of new variables.
1784         (built-program-cmd-before-env): New variable.
1785         (built-program-cmd-after-env): Likewise.
1786         (built-program-cmd): Define in terms of new variables.
1787         (test-program-prefix-before-env): New variable.
1788         (test-program-prefix-after-env): Likewise.
1789         (test-program-prefix): Define in terms of new variables.
1790         (test-program-cmd-before-env): New variable.
1791         (test-program-cmd-after-env): Likewise.
1792         (test-program-cmd): Define in terms of new variables.
1793         * Rules (make-test-out): Use $(run-program-env).
1794         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1795         (help): Do not mention environment variables.  Mention
1796         --timeoutfactor option.
1797         (timeoutfactor): New variable.
1798         (blacklist_exports): Remove function.
1799         (exports): Remove variable.
1800         (command): Do not include ${exports}.
1801         * manual/install.texi (Configuring and compiling): Do not mention
1802         test wrappers preserving environment variables.  Mention that last
1803         assignment to a variable must take precedence.
1804         * INSTALL: Regenerated.
1805         * benchtests/Makefile (run-bench): Use $(run-program-env).
1806         * catgets/Makefile ($(objpfx)test1.cat): Use
1807         $(built-program-cmd-before-env), $(run-program-env) and
1808         $(built-program-cmd-after-env).
1809         ($(objpfx)test2.cat): Do not specify environment variables
1810         explicitly.
1811         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1812         $(run-program-env) and $(built-program-cmd-after-env).
1813         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1814         $(run-program-env) and $(test-program-cmd-after-env).
1815         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1816         explicitly.
1817         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1818         run_program_env and test_program_cmd_after_env arguments.
1819         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1820         * elf/tst-pathopt.sh: Use run_program_env argument.
1821         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1822         $(test-wrapper-env) and $(run-program-env).
1823         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1824         run_program_env arguments.
1825         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1826         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1827         $(test-program-prefix-before-env), $(run-program-env) and
1828         $(test-program-prefix-after-env).
1829         ($(objpfx)tst-gettext2.out): Likewise.
1830         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1831         run_program_env and test_program_prefix_after_env arguments.
1832         * intl/tst-gettext2.sh: Likewise.
1833         * intl/tst-gettext4.sh: Do not set environment variables
1834         explicitly.
1835         * intl/tst-gettext6.sh: Likewise.
1836         * intl/tst-translit.sh: Likewise.
1837         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1838         $(test-program-prefix-before-env), $(run-program-env) and
1839         $(test-program-prefix-after-env).
1840         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1841         run_program_env and test_program_prefix_after_env arguments.
1842         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1843         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1844         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1845         explicitly with each use of ${test_wrapper_env}.
1846         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1847         $(test-program-prefix-before-env), $(run-program-env) and
1848         $(test-program-prefix-after-env).
1849         * posix/tst-getconf.sh: Do not set environment variables
1850         explicitly.
1851         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1852         run_program_env and test_program_prefix_after_env arguments.
1853         * stdio-common/tst-printf.sh: Do not set environment variables
1854         explicitly.
1855         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1856         $(test-program-prefix-before-env), $(run-program-env) and
1857         $(test-program-prefix-after-env).
1858         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1859         run_program_env and test_program_prefix_after_env arguments.
1860         Split $test calls into $test_pre and $test.
1861         * timezone/Makefile (build-testdata): Use
1862         $(built-program-cmd-before-env), $(run-program-env) and
1863         $(built-program-cmd-after-env).
1864
1865 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1866
1867         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1868         strlen for non SHARED builds.
1869
1870 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1871
1872         * nptl/allocatestack.c (check_list): Inlined function...
1873         (__reclaim_stacks): ... here.
1874
1875 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1876
1877         [BZ #15698]
1878         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1879         memory overrun.
1880
1881 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1882
1883         * Rules (make-test-out): Include
1884         LOCPATH=$(common-objpfx)localedata in default environment.
1885         * debug/Makefile (tst-chk1-ENV): Remove variable.
1886         (tst-chk2-ENV): Likewise.
1887         (tst-chk3-ENV): Likewise.
1888         (tst-chk4-ENV): Likewise.
1889         (tst-chk5-ENV): Likewise.
1890         (tst-chk6-ENV): Likewise.
1891         (tst-lfschk1-ENV): Likewise.
1892         (tst-lfschk2-ENV): Likewise.
1893         (tst-lfschk3-ENV): Likewise.
1894         (tst-lfschk4-ENV): Likewise.
1895         (tst-lfschk5-ENV): Likewise.
1896         (tst-lfschk6-ENV): Likewise.
1897         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1898         (tst-iconv7-ENV): Likewise.
1899         * intl/Makefile (LOCPATH-ENV): Likewise.
1900         (tst-codeset-ENV): Likewise.
1901         (tst-gettext3-ENV): Likewise.
1902         (tst-gettext5-ENV): Likewise.
1903         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1904         (tst-fopenloc-ENV): Likewise.
1905         (tst-fgetws-ENV): Remove variable.
1906         (tst-ungetwc1-ENV): Likewise.
1907         (tst-ungetwc2-ENV): Likewise.
1908         (bug-ungetwc2-ENV): Likewise.
1909         (tst-swscanf-ENV): Likewise.
1910         (bug-ftell-ENV): Likewise.
1911         (tst-fgetwc-ENV): Likewise.
1912         (tst-fseek-ENV): Likewise.
1913         (tst-ftell-partial-wide-ENV): Likewise.
1914         (tst-ftell-active-handler-ENV): Likewise.
1915         (tst-ftell-append-ENV): Likewise.
1916         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1917         (tst-regexloc-ENV): Likewise.
1918         (bug-regex1-ENV): Likewise.
1919         (tst-regex-ENV): Likewise.
1920         (tst-regex2-ENV): Likewise.
1921         (bug-regex5-ENV): Likewise.
1922         (bug-regex6-ENV): Likewise.
1923         (bug-regex17-ENV): Likewise.
1924         (bug-regex18-ENV): Likewise.
1925         (bug-regex19-ENV): Likewise.
1926         (bug-regex20-ENV): Likewise.
1927         (bug-regex22-ENV): Likewise.
1928         (bug-regex23-ENV): Likewise.
1929         (bug-regex25-ENV): Likewise.
1930         (bug-regex26-ENV): Likewise.
1931         (bug-regex30-ENV): Likewise.
1932         (bug-regex32-ENV): Likewise.
1933         (bug-regex33-ENV): Likewise.
1934         (bug-regex34-ENV): Likewise.
1935         (bug-regex35-ENV): Likewise.
1936         (tst-rxspencer-ENV): Likewise.
1937         (tst-rxspencer-no-utf8-ENV): Likewise.
1938         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1939         (tst-sscanf-ENV): Likewise.
1940         (tst-swprintf-ENV): Likewise.
1941         (tst-swscanf-ENV): Likewise.
1942         (test-vfprintf-ENV): Likewise.
1943         (scanf13-ENV): Likewise.
1944         (bug14-ENV): Likewise.
1945         (tst-grouping-ENV): Likewise.
1946         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1947         (tst-strtod3-ENV): Likewise.
1948         (tst-strtod4-ENV): Likewise.
1949         (tst-strtod5-ENV): Likewise.
1950         (testmb2-ENV): Likewise./
1951         * string/Makefile (tst-strxfrm-ENV): Likewise.
1952         (tst-strxfrm2-ENV): Likewise.
1953         (bug-strcoll1-ENV): Likewise.
1954         (test-strcasecmp-ENV): Likewise.
1955         (test-strncasecmp-ENV): Likewise.
1956         * time/Makefile (tst-strptime-ENV): Likewise.
1957         (tst-ftime_l-ENV): Likewise.
1958         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1959         (tst-mbrtowc-ENV): Likewise.
1960         (tst-wcrtomb-ENV): Likewise.
1961         (tst-mbrtowc2-ENV): Likewise.
1962         (tst-c16c32-1-ENV): Likewise.
1963         (tst-mbsnrtowcs-ENV): Likewise.
1964
1965 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1966
1967         * manual/resource.texi (How to get information about the memory
1968         subsystem?): Fix typo.
1969         Reported by Peon de la Parra Ivan <peon@keba.com>
1970
1971 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1972
1973         [BZ #16882]
1974         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1975         (pthread_spin_lock): Branch out of spin loop to proper location.
1976         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1977         (pthread_spin_lock): Likewise.
1978
1979         * nptl/tst-spin4.c: New test.
1980         * nptl/Makefile (tests): Add tst-spin4.
1981
1982 2014-06-03  Andreas Schwab  <schwab@suse.de>
1983
1984         [BZ #15946]
1985         * resolv/res_send.c (send_dg): Reload file descriptor after
1986         calling reopen.
1987
1988 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1989
1990         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1991
1992 2014-06-03  Richard Henderson  <rth@redhat.com>
1993
1994         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1995         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1996         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1997         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1998         in the SAVE_PID block.
1999         (__libc_vfork): New alias.
2000         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
2001
2002         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
2003         child in registers, not on the stack.  Remove RESET_PID conditionals.
2004         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
2005
2006 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2007
2008         * sysdeps/aarch64/libm-test-ulps: Regenerate.
2009
2010 2014-06-03  Wilco  <wdijkstr@arm.com>
2011
2012         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
2013         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
2014         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2015         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
2016         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
2017         Likewise.
2018
2019 2014-06-03  Wilco  <wdijkstr@arm.com>
2020
2021         * sysdeps/aarch64/fpu/math_private.h
2022         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
2023         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
2024         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
2025         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2026         Fix declarations.
2027
2028 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2029
2030         * crypt/crypt-private.h: Include ufc-crypt.h.
2031         (__b64_from_24bit): Declare extern.
2032         * crypt/crypt_util.c(__b64_from_24bit): New function.
2033         (b64t): New static const variable.
2034         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
2035         (b64t): Remove variable.
2036         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
2037         * crypt/sha256-crypt.c: Include crypt-private.h.
2038         (b64t): Remove variable.
2039         (__sha256_crypt_r): Remove b64_from_24bit and replace
2040         with __b64_from_24bit.
2041         * crypt/sha512-crypt.c: Likewise.
2042
2043 2014-06-02  Roland McGrath  <roland@hack.frob.com>
2044
2045         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
2046         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
2047         Label the code __libc_vfork rather than __vfork.
2048         [!NOT_IN_libc] (vfork): Define as weak alias.
2049         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
2050         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
2051         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
2052
2053 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2054
2055         * malloc/malloc.c (malloc_info): Fix format specifier for
2056         n_mmaps.
2057
2058 2014-06-02  Wilco  <wdijkstr@arm.com>
2059
2060         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2061         FPCR write.
2062
2063 2014-06-02  Wilco  <wdijkstr@arm.com>
2064
2065         [BZ #17009]
2066         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2067         Rewrite to reduce FPCR/FPSR accesses.
2068
2069 2014-06-01  David S. Miller  <davem@davemloft.net>
2070
2071         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2072
2073 2014-05-31  David S. Miller  <davem@davemloft.net>
2074
2075         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2076         to occur in round to nearest mode when |x| >= 2.0
2077
2078 2014-05-30  Richard Henderson  <rth@twiddle.net>
2079
2080         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2081         (PSEUDO_RET_NOERRNO): Remove.
2082         (ret): Don't redefine.
2083         (ret_NOERRNO): Define in terms of ret.
2084         (ret_ERRVAL): Likewise.
2085
2086         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2087         use of PSEUDO_RET; perform the error check directly.
2088
2089 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2090
2091         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2092         with __int128_t.
2093
2094 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2095
2096         * malloc/malloc (malloc_info): Fix formatting.
2097
2098 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2099             Roland McGrath  <roland@hack.frob.com>
2100
2101         * malloc/malloc (malloc_info): Also print mmapped statistics.
2102
2103 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2104
2105         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2106         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2107
2108 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2109
2110         * malloc/malloc.c (malloc_info): Inline mi_arena.
2111
2112 2014-05-29  Richard Henderson  <rth@twiddle.net>
2113
2114         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2115         Remove comma before expanding ASM_ARGS_##nr.
2116         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2117         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2118         of ASM_ARGS_##nr.
2119         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2120         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2121         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2122         (ASM_ARGS_1): Add leading comma.
2123
2124         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2125         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2126         to __errno_location.
2127         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2128         Remove the expected plt for __errno_location.
2129
2130         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2131         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2132         call to __read_tp.
2133
2134         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2135         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2136         it and break it down.
2137         (DOCARGS_0, DOCARGS_1): Do nothing.
2138         (DOCARGS_2): Update to store into the new stack frame.
2139         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2140         (UNDOCARGS_1): Update to restore from the new stack frame.
2141         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2142         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2143
2144         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2145         (SINGLE_THREAD_P): New parameter for result regno.
2146         (PSEUDO): Update to match; use cbz instead of beq.
2147
2148         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2149         Use ENTRY to define the _nocancel entry point.  Share the syscall
2150         and syscall error check paths with the cancel path.
2151         (PSEUDO_END): New.
2152
2153         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2154         whitespace; tabs before and after asm mnemonics.
2155
2156 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2157
2158         [BZ #15132]
2159         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2160         Call fstat64 or stat64 internally, depending on arguments passed.
2161         Replace stat buffer argument with file descriptor argument.
2162         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2163         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2164         Pass fd to __internal_statvfs instead of calling fstat64.
2165         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2166         Pass fd to __internal_statvfs64 instead of calling fstat64.
2167         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2168         Pass -1 to __internal_statvfs instead of calling stat64.
2169         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2170         Pass -1 to __internal_statvfs64 instead of calling stat64.
2171
2172 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2173
2174         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2175         that was previously under [RESET_PID].
2176         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2177
2178         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2179         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2180
2181 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2182
2183         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2184
2185         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2186         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2187
2188 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2189
2190         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2191
2192 2014-05-27  Andreas Schwab  <schwab@suse.de>
2193
2194         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2195         TLS_INIT_TP macro.
2196         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2197         * elf/rtld.c (init_tls, dl_main): Likewise.
2198         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2199         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2200         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2201         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2202         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2203         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2204         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2205         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2206         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2207         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2208         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2209         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2210         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2211         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2212         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2213         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2214         * sysdeps/generic/tls.h: Update description.
2215
2216 2014-05-27  Will Newton  <will.newton@linaro.org>
2217
2218         [BZ #16990]
2219         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2220         and restore r2 rather than just restoring.
2221
2222 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2223
2224         [BZ #16724]
2225         * libio/tst-ftell-append.c: New test case.
2226         * libio/Makefile (tests): Add test case.
2227         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2228         append mode.
2229         * libio/wfileops.c (do_ftell_wide): Likewise.
2230
2231 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2232
2233         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2234
2235         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2236         ...
2237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2239         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2240         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2241         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2242         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2243         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2244         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2245         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2246         Moved ...
2247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2248         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2249         Moved ...
2250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2251         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2252         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2253         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2254         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2255         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2256         ...
2257         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2258         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2259         Moved ...
2260         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2261         here.
2262         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2263         ...
2264         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2265         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2266         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2267
2268         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2269         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2270         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2271         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2272
2273         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2274         merge into ...
2275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2276         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2277         ...
2278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2279         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2280         ...
2281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2282         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2283         Moved ...
2284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2285         here.
2286         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2287         Moved ...
2288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2289         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2290         Moved ...
2291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2292
2293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2294         conditional [RESET_PID].
2295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2296         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2297         removed.
2298         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2299         removed.
2300
2301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2302         <tcb-offsets.h>.
2303         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2304         (__libc_vfork): New strong alias.
2305         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2306         removed.
2307         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2308         Removed.
2309
2310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2311         <tcb-offsets.h>.
2312         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2313         (__libc_vfork): New strong alias.
2314         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2315         removed.
2316         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2317         removed.
2318
2319 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2320
2321         * malloc/malloc.c (mi_arena): New function.
2322         (malloc_info): Remove nested function mi_arena. Call non-nosted
2323         function mi_arena.
2324
2325 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2326
2327         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2328         by insrwi.
2329         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2330         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2331         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2332         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2333         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2334         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2335         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2336
2337 2014-05-26  Andreas Schwab  <schwab@suse.de>
2338
2339         [BZ #16984]
2340         * locale/programs/repertoire.c (repertoire_read): Add slash
2341         between I18NPATH element and file name.
2342         * locale/programs/locfile.c (locfile_read): Likewise.
2343
2344 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2345
2346         * nptl/pthread_mutexattr_settype.c
2347         (__pthread_mutexattr_settype):
2348         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2349
2350 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2351
2352         * nptl/tst-mutex5 (do_test):
2353         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2354
2355 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2356
2357         * benchtests/README: Document 'init' directive.
2358         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2359         BENCH_INIT.
2360         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2361         (parse_file): Recognize 'init' directive.
2362
2363 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2364
2365         [BZ #16796]
2366         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2367         alignment of struct pthread.
2368
2369 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2370
2371         [BZ #16878]
2372         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2373         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2374         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2375         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2376
2377 2014-05-25  Richard Henderson  <rth@twiddle.net>
2378
2379         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2380         (SINGLE_THREAD_P_PIC): Remove.
2381         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2382         (SINGLE_THREAD_P_PIC): Remove.
2383
2384         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2385         branch to syscall error ...
2386         (PSEUDO): ... here.
2387         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2388         from __local_syscall_error to .Lsyscall_error.
2389         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2390         (SYSCALL_ERROR): Update label name.
2391
2392         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2393         Do not use DOARGS/UNDOARGS.
2394         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2395         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2396         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2397         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2398         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
2399
2400         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
2401         block comment.
2402
2403         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
2404         define if !NOT_IN_libc.
2405         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
2406         define with non-default symbol versions.
2407
2408 2014-05-23  Richard Henderson  <rth@twiddle.net>
2409
2410         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
2411         (vfork, __vfork): Define via compat_symbol.
2412
2413         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
2414         [!HAVE_IFUNC] (vfork_compat): Remove.
2415         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
2416
2417 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2418
2419         [BZ #16978]
2420         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
2421         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
2422         variable.
2423
2424 2014-05-23  Richard Henderson  <rth@twiddle.net>
2425
2426         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
2427         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
2428         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
2429         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
2430
2431         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
2432         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
2433         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
2434         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
2435         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
2436         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
2437         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
2438         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
2439         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
2440         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2441         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2442         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2443         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2444         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2445         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2446         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2447         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2448         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2449         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2450         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2451         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2452         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2453         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2454         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2455         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2456         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2457         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2458         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2459         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2460         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2461         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2462         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2463         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2464         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2465         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2466         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2467         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2468         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2469         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2470         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2471         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2472         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2473         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2474         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2475         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2476         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2477         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2478         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2479         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2480         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2481         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2482         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2483         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2484         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2485         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2486         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2487
2488         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2489         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2490         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2491         before exiting on error.
2492         (__libc_vfork): New strong alias.
2493         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2494         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2495
2496         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2497         that was previously under [RESET_PID].
2498         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2499
2500         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2501
2502 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2503
2504         [BZ #16977]
2505         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2506         value when x - 1 is zero.
2507         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2508         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2509         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2510         0.0L for an argument of 1.0L.
2511         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2512         Likewise.
2513         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2514         value when x - 1 is zero.
2515         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2516         * sysdeps/i386/fpu/libm-test-ulps: Update.
2517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2518
2519 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2520
2521         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2522         alphasort and versionsort.
2523
2524 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2525
2526         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2527         macro.
2528         [copysignf]: Likewise.
2529
2530 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2531
2532         * crypt/md5-crypt.c: Fix formatting.
2533
2534 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2535
2536         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2537         (b64_from_24bit): New function.
2538
2539 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2540
2541         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2542         libc_hidden_builtin_def to ifunc.
2543         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2544         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2545
2546 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2547
2548         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2549         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2550
2551 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2552
2553         * nscd/Depend (linuxthreads): Remove.
2554         (nptl): Add.
2555         * resolv/Depend (linuxthreads): Remove.
2556         * rt/Depend (linuxthreads): Remove.
2557
2558         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2559         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2560         $(common-objpfx)elf/.
2561         (link-libc-before-gnulib): Likewise.
2562         (elfobjdir): Remove variable.
2563         * Makefile (install): Use $(elf-objpfx) instead of
2564         $(common-objpfx)elf/.
2565         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2566         $(elfobjdir)/.
2567         (link-libc-deps): Likewise.
2568         ($(common-objpfx)libc.so): Likewise.
2569         ($(common-objpfx)linkobj/libc.so): Likewise.
2570         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2571         instead of $(common-objpfx)elf/.
2572         (symbolic-link-list): Likewise.
2573         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2574         [$(cross-compiling) = no]: Likewise.
2575         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2576         $(elfobjdir)/.
2577         (static-gnulib-arch): Likewise.
2578         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2579         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2580         $(common-objpfx)elf/.
2581
2582 2014-05-21  Richard Henderson  <rth@redhat.com>
2583
2584         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2585         (SINGLE_THREAD_P): Use the correct width load.  Fold
2586         into the ldr offset.
2587
2588         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2589         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2590
2591 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2592
2593         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2594         (libgcc_s_resume): Use __attribute_used__.
2595         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2596         Likewise.
2597
2598 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2599
2600         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2601         optimization when used with float constants.
2602
2603         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2604
2605 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2606
2607         [BZ #16915]
2608         * locale/nl_langinfo_l.c: Make direct reference to every
2609         _nl_current_CATEGORY symbol.
2610         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2611         (tests-static): Add tst-langinfo-static.
2612         (tests-special): Add tst-langinfo-static.out.
2613         ($(objpfx)tst-langinfo.out): Redirect output.
2614         ($(objpfx)tst-langinfo-static.out): New.
2615         * localedata/tst-langinfo.sh: Send output to stdout.
2616         * localedata/tst-langinfo-static.c: New file.
2617
2618         [BZ #16965]
2619         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2620         when the shift amount is modulo the limb size.
2621
2622 2014-05-20  Richard Henderson  <rth@redhat.com>
2623
2624         [BZ #16967]
2625         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2626         Change type of sa_flags from unsigned int to int.
2627
2628         [BZ #16966]
2629         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2630
2631         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2632
2633 2014-05-20  Will Newton  <will.newton@linaro.org>
2634
2635         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2636         Test the return value of the system call in the nocancel case.
2637
2638 2014-05-20  Will Newton  <will.newton@linaro.org>
2639             Yvan Roux  <yvan.roux@linaro.org>
2640
2641         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2642         #include of asm/ptrace.h.
2643         (PTRACE_GET_THREAD_AREA): Remove #undef.
2644         (PTRACE_GETHBPREGS): Likewise.
2645         (PTRACE_SETHBPREGS): Likewise.
2646         (struct user_regs_struct): New structure.
2647         (struct user_fpsimd_struct): New structure.
2648         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2649         #include of asm/ptrace.h and second #include of sys/user.h.
2650         (PTRACE_GET_THREAD_AREA): Remove #undef.
2651         (PTRACE_GETHBPREGS): Likewise.
2652         (PTRACE_SETHBPREGS): Likewise.
2653         (ELF_NGREG): Use new struct user_regs_struct.
2654         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2655
2656 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2657
2658         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2659         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2660
2661 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2662
2663         [BZ #16958]
2664         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2665         membar to avoid block loads/stores to overlap previous stores.
2666
2667 2014-05-17  Richard Henderson  <rth@redhat.com>
2668
2669         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2670         Create the __##syscall_name##_nocancel entry point.
2671         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2672         Remove; let the sysdep-cancel.h code create it.
2673
2674 2014-05-17  David S. Miller  <davem@davemloft.net>
2675
2676         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2677         Protect with __USE_GNU.
2678         (TIOCSET_TEMPT): Likewise.
2679         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2680         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2681         these are already provided in bits/ioctl-types.h
2682
2683 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2684
2685         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2686         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2687
2688         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2689         Use wait4 regardless of [__NR_waitpid].
2690
2691 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2692
2693         PR libgcc/60166
2694         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2695         (_FP_NANSIGN_Q): Set the quiet bit.
2696
2697 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2698
2699         * benchtests/Makefile
2700         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2701         not $(common-objpfx)math/libm.so.
2702         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2703         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2704         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2705         $(common-objpfx)dlfcn/libdl.so.
2706         ($(objpfx)tst-audit8): Depend on $(libm), not
2707         $(common-objpfx)math/libm.so.
2708         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2709         not $(common-objpfx)dlfcn/libdl.so.
2710         * math/Makefile
2711         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2712         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2713         [$(build-shared) = yes].
2714         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2715         $(common-objpfx)nptl/libpthread.so.
2716         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2717         $(common-objpfx)math/libm.so$(libm.so-version) or
2718         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2719         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2720         $(common-objpfx)dlfcn/libdl.so.
2721         * setjmp/Makefile (link-libm): Remove variable.
2722         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2723         * stdio-common/Makefile (link-libm): Remove variable.
2724         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2725         * stdlib/Makefile (link-libm): Remove variable.
2726         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2727         ($(objpfx)tst-strtod-round): Likewise.
2728         ($(objpfx)tst-tininess): Likewise.
2729         ($(objpfx)tst-strtod-underflow): Likewise.
2730         ($(objpfx)tst-strtod6): Likewise.
2731         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2732         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2733         $(common-objpfx)dlfcn/libdl.so.
2734
2735 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2736
2737         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2738         BSD terminal modes definitions.
2739
2740 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2741
2742         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2743         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2744
2745         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2746         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2747         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2748         Don't do #include_next.
2749         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2750         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2751         Don't do #include_next.
2752         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2753         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2754         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2755         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2756
2757 2014-05-16  Allan McRae  <allan@archlinux.org>
2758
2759         * po/sv.po: Update Swedish translation from translation project.
2760
2761         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2762         in sed expression.
2763
2764 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2765
2766         [BZ #16917]
2767         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2768         errno if the TIOCGPTN ioctl fails with an error different than
2769         EINVAL.
2770         * login/tst-ptsname.c: New file.
2771         * login/Makefile (tests): Add tst-ptsname.
2772
2773         [BZ #16943]
2774         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2775         and prlimit64.
2776
2777 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2778
2779         [BZ #16849]
2780         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2781         herrno to return EAI_AGAIN.
2782
2783 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2784
2785         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2786         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2787         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2788         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2789         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2790         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2791         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2792         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2793         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2794         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2795         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2796         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2797         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2798         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2799         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2800         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2801         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2802         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2803         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2804         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2805         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2806         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2807         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2808         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2809         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2810         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2811         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2812         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2813         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2814         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2815         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2816         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2817         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2818         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2820         Moved ...
2821         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2822         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2823         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2824         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2825         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2826         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2827         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2828         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2829         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2830         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2831         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2832         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2833         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2834         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2835         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2836         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2837         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2838         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2839         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2840         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2841         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2842         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2843         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2844         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2845         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2846         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2847         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2849         Moved ...
2850         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2851         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2852         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2853         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2854         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2855         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2856         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2857         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2858         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2859         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2860         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2861         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2862         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2863         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2864         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2865         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2866         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2867         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2868         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2869         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2870         Moved ...
2871         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2872         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2873         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2874
2875         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2876         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2877         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2878         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2879         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2880         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2881         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2882         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2883         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2884         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2885         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2886         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2887         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2888         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2889         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2890         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2891         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2892         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2893         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2894         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2895         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2896         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2897         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2898         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2899         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2900         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2901         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2902         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2903         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2904         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2905         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2906
2907         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2908         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2909
2910         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2911         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2912         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2913         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2914         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2915         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2916         Moved ...
2917         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2918         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2919         Moved ...
2920         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2921         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2922         Moved ...
2923         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2924         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2925         Moved ...
2926         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2927         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2928         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2929         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2930         Moved ...
2931         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2932         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2933         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2934         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2935         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2936         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2937         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2938         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2939         Moved ...
2940         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2941         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2942         Moved ...
2943         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2944         ... here.
2945         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2946         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2947         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2948         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2949         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2950         Moved ...
2951         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2952         ... here.
2953         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2954         Moved ...
2955         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2956         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2957         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2958         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2959         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2960         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2961         Moved ...
2962         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2963         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2964         Moved ...
2965         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2966         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2967         Moved ...
2968         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2969         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2970         Moved ...
2971         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2972         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2973         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2974         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2975         Moved ...
2976         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2977         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2978         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2979         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2980         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2981         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2982         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2983         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2984         Moved ...
2985         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2986         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2987         Moved ...
2988         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2989         ... here.
2990         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2991         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2992         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2993         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2994         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2995         Moved ...
2996         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2997         ... here.
2998         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2999         Moved ...
3000         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
3001         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
3002         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
3003         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
3004         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
3005         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
3006         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
3007         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
3008         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
3009         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
3010         Moved ...
3011         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
3012         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
3013         Moved ...
3014         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
3015         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
3016         Moved ...
3017         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
3018         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
3019         Moved ...
3020         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
3021         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
3022         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
3023         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
3024         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
3025         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
3026         Moved ...
3027         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
3028         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
3029         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
3030         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
3031         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
3032         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
3033         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
3034         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
3035         Moved ...
3036         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
3037         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3038         Moved ...
3039         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3040         ... here.
3041         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
3042         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
3043         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
3044         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
3045         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3046         Moved ...
3047         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3048         ... here.
3049         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
3050         Moved ...
3051         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
3052         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
3053         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
3054         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
3055         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
3056         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3057         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3058         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3059         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3060         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3061         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3062
3063         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3064         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3065
3066         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3067         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3068
3069         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3070         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3071         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3072         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3073         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3074         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3075         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3076         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3077         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3078         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3079         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3080         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3081         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3082         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3083         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3084         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3085         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3086         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3087         Moved ...
3088         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3089         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3090         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3091         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3092         Moved ...
3093         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3094         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3095         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3096         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3097         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3098         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3099         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3100         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3101         Moved ...
3102         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3103         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3104         Moved ...
3105         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3106         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3107         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3108         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3109         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3110         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3111         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3112         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3113         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3114         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3115         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3116         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3117         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3118         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3119         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3120         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3121         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3122
3123         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3124         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3125         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3126         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3127         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3128
3129         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3130         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3131         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3132         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3133         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3134         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3135         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3136         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3137         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3138         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3139
3140         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3141         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3142
3143         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3144         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3145         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3146         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3147         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3148         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3149         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3150         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3151         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3152         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3153         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3154         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3155         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3156         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3157         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3158         Update #include.
3159         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3160         Likewise.
3161         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3162         Likewise.
3163         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3164         Likewise.
3165         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3166         Likewise.
3167         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3168         Likewise.
3169         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3170         Likewise.
3171         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3172         Likewise.
3173         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3174         Likewise.
3175         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3176         Likewise.
3177         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3178         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3179         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3180         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3181         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3182         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3183         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3184         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3185         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3186         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3187         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3188         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3189         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3190         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3191         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3192
3193         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3194         that was previously under [RESET_PID].
3195         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3196         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3197         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3198
3199         * sysdeps/i386/nptl/Implies: New file.
3200         * sysdeps/x86_64/nptl/Implies: New file.
3201         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3202         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3203         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3204         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3205
3206         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3207         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3208         (__libc_vfork): New strong alias.
3209         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3210         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3211
3212         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3213         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3214         (__libc_vfork): New strong alias.
3215         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3216         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3217
3218         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3219         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3220         (__libc_vfork): New strong alias.
3221         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3222         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3223         * nptl/pt-vfork.c: New file.
3224         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3225         (libpthread: GLIBC_2.20): New version set (empty).
3226
3227 2014-05-14  Will Newton  <will.newton@linaro.org>
3228
3229         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3230         rather than #if.
3231
3232 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3233
3234         [BZ #16564]
3235         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3236         arguments with exponent 65 or above.
3237         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3238         arguments 0x1p113L or above.
3239         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3240         to arguments 0x1p107L or above.
3241         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3242         positive arguments with exponent 65 or above.
3243         * math/auto-libm-test-in: Add more tests of log1p.
3244         * math/auto-libm-test-out: Regenerated.
3245
3246         [BZ #16928]
3247         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3248         non-finite arguments is +0.
3249         * math/s_cacosf.c (__cacosf): Likewise.
3250         * math/s_cacosl.c (__cacosl): Likewise.
3251         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3252         * sysdeps/i386/fpu/libm-test-ulps: Update.
3253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3254
3255         [BZ #16927]
3256         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3257         value.
3258         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3259         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3260         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3261         for explicit high bit of mantissa when testing for argument equal
3262         to 1.
3263         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3264         * sysdeps/i386/fpu/libm-test-ulps: Update.
3265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3266
3267         [BZ #16516]
3268         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3269         (__erf): Scale by 16 instead of 8 in potentially underflowing
3270         case.  Ensure exception if result actually underflows.
3271         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3272         (__erff): Scale by 16 instead of 8 in potentially underflowing
3273         case.  Ensure exception if result actually underflows.
3274         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
3275         (efx8): Remove variable.
3276         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3277         case.  Ensure exception if result actually underflows.
3278         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3279         (efx8): Remove variable.
3280         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3281         case.  Ensure exception if result actually underflows.
3282         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3283         (efx8): Remove variable.
3284         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3285         case.  Ensure exception if result actually underflows.
3286         * math/auto-libm-test-in: Add more tests of erf.
3287         * math/auto-libm-test-out: Regenerated.
3288
3289 2014-05-14  Andreas Schwab  <schwab@suse.de>
3290
3291         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3292         Remove code conditionalized on USE___THREAD.
3293
3294         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3295         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3296         not definedness.
3297
3298 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3299
3300         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3301         Define unconditionally.
3302         (__ASSUME_O_CLOEXEC): Likewise.
3303         (__ASSUME_SOCK_CLOEXEC): Likewise.
3304         (__ASSUME_IN_NONBLOCK): Likewise.
3305         (__ASSUME_PIPE2): Likewise.
3306         (__ASSUME_EVENTFD2): Likewise.
3307         (__ASSUME_SIGNALFD4): Likewise.
3308         (__ASSUME_DUP3): Likewise.
3309         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3310         (__ASSUME_DUP3): Do not define.
3311         (__ASSUME_EVENTFD2): Likewise.
3312         (__ASSUME_IN_NONBLOCK): Likewise.
3313         (__ASSUME_O_CLOEXEC): Likewise.
3314         (__ASSUME_PIPE2): Likewise.
3315         (__ASSUME_SIGNALFD4): Likewise.
3316         (__ASSUME_SOCK_CLOEXEC): Likewise.
3317         (__ASSUME_UTIMES): Undefine.
3318         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3319         (__ASSUME_UTIMES): Do not define.
3320         (__ASSUME_O_CLOEXEC): Likewise.
3321         (__ASSUME_SOCK_CLOEXEC): Likewise.
3322         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3323         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3324         0x020621].
3325         (__ASSUME_PIPE2): Likewise.
3326         (__ASSUME_EVENTFD2): Likewise.
3327         (__ASSUME_SIGNALFD4): Likewise.
3328         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3329         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3330         Do not define.
3331         (__ASSUME_EVENTFD2): Likewise.
3332         (__ASSUME_SIGNALFD4): Likewise.
3333         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3334         (__ASSUME_32BITUIDS): Likewise.
3335         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3336         (__ASSUME_IPC64): Likewise.
3337         (__ASSUME_ST_INO_64_BIT): Likewise.
3338         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3339         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3340         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3341         (__ASSUME_UTIMES): Do not define.
3342         (__ASSUME_PSELECT): Likewise.
3343         (__ASSUME_PPOLL): Likewise.
3344         (__ASSUME_O_CLOEXEC): Likewise.
3345         (__ASSUME_SOCK_CLOEXEC): Likewise.
3346         (__ASSUME_IN_NONBLOCK): Likewise.
3347         (__ASSUME_PIPE2): Likewise.
3348         (__ASSUME_EVENTFD2): Likewise.
3349         (__ASSUME_SIGNALFD4): Likewise.
3350         (__ASSUME_DUP3): Likewise.
3351         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3352         (__ASSUME_UTIMES): Likewise.
3353         (__ASSUME_O_CLOEXEC): Likewise.
3354         (__ASSUME_SOCK_CLOEXEC): Likewise.
3355         (__ASSUME_IN_NONBLOCK): Likewise.
3356         (__ASSUME_PIPE2): Likewise.
3357         (__ASSUME_EVENTFD2): Likewise.
3358         (__ASSUME_SIGNALFD4): Likewise.
3359         (__ASSUME_DUP3): Likewise.
3360         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3361         (__ASSUME_UTIMES): Likewise.
3362         (__ASSUME_O_CLOEXEC): Likewise.
3363         (__ASSUME_SOCK_CLOEXEC): Likewise.
3364         (__ASSUME_IN_NONBLOCK): Likewise.
3365         (__ASSUME_PIPE2): Likewise.
3366         (__ASSUME_EVENTFD2): Likewise.
3367         (__ASSUME_SIGNALFD4): Likewise.
3368         (__ASSUME_DUP3): Likewise.
3369         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3370         Likewise.
3371         (__ASSUME_UTIMES): Likewise.
3372         (__ASSUME_EVENTFD2): Likewise.
3373         (__ASSUME_SIGNALFD4): Likewise.
3374         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3375         (__ASSUME_O_CLOEXEC): Likewise.
3376         (__ASSUME_SOCK_CLOEXEC): Likewise.
3377         (__ASSUME_IN_NONBLOCK): Likewise.
3378         (__ASSUME_PIPE2): Likewise.
3379         (__ASSUME_EVENTFD2): Likewise.
3380         (__ASSUME_SIGNALFD4): Likewise.
3381         (__ASSUME_DUP3): Likewise.
3382         (__ASSUME_UTIMES): Undefine.
3383
3384         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3385         feclearexcept.  Remove symbol versioning code.
3386         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3387         symbol versioning code.
3388         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3389         symbol versioning code.
3390         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3391         feupdateenv.  Remove symbol versioning code.
3392         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3393         fegetexceptflag.  Remove symbol versioning code.
3394         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3395         fesetexceptflag.  Remove symbol versioning code.
3396         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3397         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3398         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
3399         (__posix_fadvise64_l32): Remove prototype.
3400         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
3401         code.
3402
3403 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3404
3405         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
3406         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
3407         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
3408         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
3409
3410 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
3411
3412         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
3413         current working directory
3414
3415 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3416
3417         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
3418         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
3419         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
3420         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
3421         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
3422         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
3423         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
3424         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
3425         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
3426         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
3427         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
3428         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
3429         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
3430         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
3431         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
3432         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
3433         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
3434         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
3435         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
3436         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
3437         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
3438         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
3439         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
3440         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3441         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3442         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3443         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3444         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3445         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3446         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3447         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3448         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3449         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3450         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3451         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3452         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3453         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3454         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3455         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3456         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3457         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3458         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3459
3460         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3461         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3462
3463         * sysdeps/unix/sysv/linux/arm/Makefile
3464         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3465         Add rt-aeabi_unwind_cpp_pr1.
3466         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3467         Add nptl-aeabi_unwind_cpp_pr1.
3468         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3469         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3470         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3471         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3472         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3473         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3474
3475         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3476         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3477         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3478         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3479
3480         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3481         Deconditionalize the code that was previously under [RESET_PID].
3482         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3483
3484         * sysdeps/generic/exit-thread.h: New file.
3485         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3486         * include/unistd.h (__exit_thread): Remove declaration.
3487         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3488         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3489         * csu/libc-start.c: Include <exit-thread.h>.
3490         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3491         * nptl/pthread_create.c: Include <exit-thread.h>.
3492         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3493         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3494         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3495         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3496         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3497         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3498         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3499         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3500         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3501         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3502         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3503         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3504         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3505         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3506         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3507         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3508         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3509
3510 2014-05-13  Andreas Schwab  <schwab@suse.de>
3511
3512         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3513
3514 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3515
3516         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3517         (__ASSUME_UTIMES): Do not condition on kernel version.
3518         (__ASSUME_PSELECT): Define unconditionally.
3519         (__ASSUME_PPOLL): Likewise.
3520         (__ASSUME_ATFCTS): Likewise.
3521         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3522         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3523         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3524         (__ASSUME_UTIMENSAT): Define unconditionally.
3525         (__ASSUME_PRIVATE_FUTEX): Likewise.
3526         (__ASSUME_FALLOCATE): Likewise.
3527         (__ASSUME_O_CLOEXEC): Likewise.
3528         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3529         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3530         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3531         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3532         (__ASSUME_IN_NONBLOCK): Likewise.
3533         (__ASSUME_PIPE2): Likewise.
3534         (__ASSUME_EVENTFD2): Likewise.
3535         (__ASSUME_SIGNALFD4): Likewise.
3536         (__ASSUME_DUP3): Likewise.
3537         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3538         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3539         (__ASSUME_AT_RANDOM): Likewise.
3540         (__ASSUME_PREADV): Likewise.
3541         (__ASSUME_PWRITEV): Likewise.
3542         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3543         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3544         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3545         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3546         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3547         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3548         (__ASSUME_O_CLOEXEC): Define unconditionally.
3549         (__ASSUME_PSELECT): Do not undefine conditionally.
3550         (__ASSUME_PPOLL): Likewise.
3551         (__ASSUME_ATFCTS): Likewise.
3552         (__ASSUME_SET_ROBUST_LIST): Likewise.
3553         (__ASSUME_UTIMENSAT): Likewise.
3554         (__ASSUME_FDATASYNC): Define unconditionally.
3555         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3556         (__ASSUME_SIGFRAME_V2): Likewise.
3557         )__ASSUME_EVENTFD2): Likewise.
3558         (__ASSUME_SIGNALFD4): Likewise.
3559         (__ASSUME_PSELECT): Do not undefine conditionally.
3560         (__ASSUME_PPOLL): Likewise.
3561         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3562         (__ASSUME_PSELECT): Define unconditionally.
3563         (__ASSUME_PPOLL): Likewise.
3564         (__ASSUME_O_CLOEXEC): Likewise.
3565         (__ASSUME_SOCK_CLOEXEC): Likewise.
3566         (__ASSUME_IN_NONBLOCK): Likewise.
3567         (__ASSUME_PIPE2): Likewise.
3568         (__ASSUME_EVENTFD2): Likewise.
3569         (__ASSUME_SIGNALFD4): Likewise.
3570         (__ASSUME_DUP3): Likewise.
3571         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3572         (__ASSUME_O_CLOEXEC): Likewise.
3573         (__ASSUME_SOCK_CLOEXEC): Likewise.
3574         (__ASSUME_IN_NONBLOCK): Likewise.
3575         (__ASSUME_PIPE2): Likewise.
3576         (__ASSUME_EVENTFD2): Likewise.
3577         (__ASSUME_SIGNALFD4): Likewise.
3578         (__ASSUME_DUP3): Likewise.
3579         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3580         (__ASSUME_EVENTFD2): Likewise.
3581         (__ASSUME_SIGNALFD4): Likewise.
3582         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3583
3584 2014-05-12  Andreas Schwab  <schwab@suse.de>
3585
3586         [BZ #16932]
3587         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3588         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3589         than maximum RPC packet size.
3590         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3591         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3592         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3593         (_nss_nis_getservbyport_r): Likewise.
3594
3595 2014-05-12  Will Newton  <will.newton@linaro.org>
3596
3597         * malloc/Makefile (tests): Add tst-mallopt.
3598         * malloc/tst-mallopt.c: New file.
3599
3600 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3601
3602         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3603         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3604
3605 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3606
3607         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3608         (tst-tlsmod6.so): Likewise.
3609
3610 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3611
3612         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3613
3614 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3615
3616         [BZ #16064]
3617         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3618         and <dl-procinfo.h>.
3619         (__fegetenv): Save SSE state in envp->__eip if supported.
3620         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3621         envp->__eip if supported.
3622         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3623         and <dl-procinfo.h>.
3624         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3625         __data_offset and __data_selector in environment to 0.  Set SSE
3626         state if supported.
3627         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3628         test-fenv-sse.
3629         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3630         -mfpmath=sse.
3631         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3632
3633 2014-05-09  Will Newton  <will.newton@linaro.org>
3634
3635         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3636         and libc_relro_required for ARM.
3637         * sysdeps/arm/preconfigure: Regenerate.
3638
3639 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3640             Stefan Liebler  <stli@linux.vnet.ibm.com>
3641
3642         * config.make.in (enable-lock-elision): New Makefile variable.
3643         * configure.ac: Likewise.
3644         * configure: Regenerate.
3645         * sysdeps/s390/configure.ac:
3646         Add check for gcc transactions support.
3647         * sysdeps/s390/configure: Regenerate.
3648         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3649         Build elision files if enabled.
3650         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3651         Add lock elision support for s390.
3652         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3653         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3654         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3655         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3656         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3657         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3658         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3659         Likewise.
3660         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3661         Likewise.
3662         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3663         Likewise.
3664         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3665         Likewise.
3666         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3667         (__lll_timedlock_elision, __lll_lock_elision)
3668         (__lll_unlock_elision, __lll_trylock_elision)
3669         (lll_timedlock_elision, lll_lock_elision)
3670         (lll_unlock_elision, lll_trylock_elision): Add.
3671         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3672         (pthread_mutex_t): Add lock elision support for s390.
3673
3674 2014-05-14  Wilco  <wdijkstr@arm.com>
3675
3676         * sysdeps/arm/fclrexcpt.c: Cleanup.
3677         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3678         * sysdeps/arm/feenablxcpt.c: Cleanup.
3679         * sysdeps/arm/fegetenv.c: Cleanup.
3680         * sysdeps/arm/fegetexcept.c: Cleanup.
3681         * sysdeps/arm/fegetround.c: Cleanup.
3682         * sysdeps/arm/feholdexcpt.c: Cleanup.
3683         * sysdeps/arm/fesetenv.c: Cleanup.
3684         * sysdeps/arm/fesetround.c: Cleanup.
3685         * sysdeps/arm/feupdateenv.c: Cleanup.
3686         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3687         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3688         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3689         * sysdeps/arm/ftestexcept.c: Cleanup.
3690         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3691         * sysdeps/arm/setfpucw.c: Cleanup.
3692
3693 2014-05-09  Will Newton  <will.newton@linaro.org>
3694
3695         * sysdeps/arm/armv7/strcmp.S: New file.
3696         * NEWS: Mention addition of ARMv7 optimized strcmp.
3697
3698 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3699
3700         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3701         look for %.ac rather than %.in.
3702
3703         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3704         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3705         * sysdeps/mach/hurd/configure: Regenerated.
3706         * sysdeps/unix/sysv/linux/configure: Regenerated.
3707
3708         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3709
3710 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3711
3712         [BZ# 16922]
3713         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3714         (LONG_SUB): Ditto.
3715         (PTR_SUB): Ditto.
3716
3717 2014-05-07  Andreas Schwab  <schwab@suse.de>
3718
3719         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3720         when skipping over non-matching result from nscd.
3721
3722 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3723
3724         [BZ #16876]
3725         * nptl/sockperf.c (client): Check socket return value.
3726
3727         [BZ #16877]
3728         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3729         nscd security class.
3730
3731 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3732
3733         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3734         * sysdeps/arm/unwind.h: ... here.
3735
3736 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3737
3738         [BZ# 16916]
3739         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3740         Define.
3741
3742 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3743
3744         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3745         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3746         multiarch strncpy for PPC64.
3747         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3748         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3749         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3750         multiarch optimizations.
3751         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3752         (__libc_ifunc_impl_list): Likewise.
3753         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3754         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3755         multiarch stpncpy for PPC64.
3756         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3757         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3758
3759 2014-05-06  Andreas Schwab  <schwab@suse.de>
3760
3761         [BZ #16912]
3762         * gmon/mcount.c (_MCOUNT_DECL): Use
3763         atomic_compare_and_exchange_bool_acq instead of
3764         catomic_compare_and_exchange_bool_acq.
3765
3766 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3767
3768         * elf/Makefile (others, install-bin): Remove pldd.
3769         (pldd-modules): Variable removed.
3770         ($(objpfx)pldd): Target removed.
3771         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3772         (others, install-bin): Append pldd here.
3773         ($(objpfx)pldd): New target.
3774
3775         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3776         to 0, so the first #if test emitted later doesn't see it undefined.
3777         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3778         * sysdeps/gnu/errlist.c: Regenerated.
3779
3780 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3781
3782         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3783         [libc_hidden_builtin_def]: Define to empty value.
3784         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3785         [libc_hidden_builtin_def]: Likewise.
3786         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3787         [libc_hidden_builtin_def]: Likewise.
3788         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3789         [libc_hidden_builtin_def]: Likewise.
3790         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3791         __redirect_memcpy and define ifunc as default hidden symbol.
3792         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3793         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3794
3795 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3796
3797         * locale/iso-4217.def: Reintroduce XDR currency.
3798
3799 2014-05-04  Allan McRae  <allan@archlinux.org>
3800
3801         * po/eo.po: Update Esperanto translation from translation project.
3802
3803 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3804
3805         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3806         and FEATURE_INDEX_MAX to 1.
3807         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3808
3809 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3810
3811         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3812         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3813         * iconvdata/big5.c (ONE_DIRECTION): Define.
3814         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3815         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3816         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3817         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3818         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3819         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3820         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3821         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3822         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3823         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3824         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3825         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3826         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3827         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3828         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3829         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3830         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3831         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3832         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3833         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3834         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3835         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3836         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3837         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3838         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3839         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3840         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3841         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3842         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3843         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3844         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3845         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3846         * iconvdata/johab.c (ONE_DIRECTION): Define.
3847         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3848         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3849         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3850         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3851         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3852         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3853         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3854         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3855         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3856         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3857
3858 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3859
3860         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3861         (_IO_JUMPS_OFFSET): Define to 0.
3862
3863         * nptl/sysdeps/pthread/bits/libc-lock.h
3864         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3865         (__libc_lock_define_initialized_recursive): Always define using
3866         initializer.  Modern compilers treat uninitialized (implicit zero) and
3867         explicit zero initializers the same (i.e. put the datum in bss).
3868
3869 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3870
3871         * nscd/nscd-client.h: Include <string.h>.
3872
3873 2014-05-01  David S. Miller  <davem@davemloft.net>
3874
3875         [BZ #16885]
3876         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3877         multiple zero bytes exist at the end of a string.
3878         Reported by Aurelien Jarno <aurelien@aurel32.net>
3879
3880         * string/test-strcmp.c (check): Add explicit test for situations where
3881         there are multiple zero bytes after the first.
3882
3883 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3884
3885         [BZ #16890]
3886         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3887         when compiling wprintf.
3888         * stdio-common/tstdiomisc.c (t3): New function.
3889         (main): Call it.
3890
3891 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3892
3893         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3894         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3895         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3896         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3897
3898 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3899
3900         * stdlib/longlong.h: Updated from GCC.
3901
3902 2014-05-01  Will Newton  <will.newton@linaro.org>
3903             Bernard Ogden  <bernie.ogden@linaro.org>
3904
3905         * NEWS: Update fixed bug list.
3906
3907         [BZ #15119]
3908         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3909
3910 2014-04-30  David S. Miller  <davem@davemloft.net>
3911
3912         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3913         (libc_feholdexcept_setround_sparc_ctx): New function.
3914         (libc_fesetenv_sparc_ctx): Likewise.
3915         (libc_feupdateenv_sparc_ctx): Likewise.
3916         (libc_feholdsetround_sparc_ctx): Likewise.
3917         (libc_feholdexcept_setround_ctx): Define.
3918         (libc_feholdexcept_setroundf_ctx): Likewise.
3919         (libc_feholdexcept_setroundl_ctx): Likewise.
3920         (libc_fesetenv_ctx): Likewise.
3921         (libc_fesetenvf_ctx): Likewise.
3922         (libc_fesetenvl_ctx): Likewise.
3923         (libc_feupdateenv_ctx): Likewise.
3924         (libc_feupdateenvf_ctx): Likewise.
3925         (libc_feupdateenvl_ctx): Likewise.
3926         (libc_feresetround_ctx): Likewise.
3927         (libc_feresetroundf_ctx): Likewise.
3928         (libc_feresetroundl_ctx): Likewise.
3929         (libc_feholdsetround_ctx): Likewise.
3930         (libc_feholdsetroundf_ctx): Likewise.
3931         (libc_feholdsetroundl_ctx): Likewise.
3932
3933         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3934         with __USE_GNU instead of XOPEN cpp guards.
3935
3936         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3937         0.
3938
3939         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3940         with XOPEN cpp guards.
3941
3942 2014-04-30  Julian Brown  <julian@codesourcery.com>
3943
3944         [BZ #16888]
3945         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3946         handling.
3947
3948 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3949
3950         [BZ #9894]
3951         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3952         Change to 2.6.32.
3953         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3954         * sysdeps/unix/sysv/linux/configure: Regenerated.
3955         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3956         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3957         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3958         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3959         * README: Update reference to required Linux kernel version.
3960         * manual/install.texi (Linux): Update reference to required Linux
3961         kernel headers version.
3962         * INSTALL: Regenerated.
3963
3964         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3965         header inclusion.
3966         [POSIX] (limits.h): Likewise.
3967         [POSIX] (math.h): Likewise.
3968         [POSIX] (sys/wait.h): Likewise.
3969         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3970         function.
3971         [POSIX] (stddef.h): Do not allow header inclusion.
3972
3973 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3974
3975         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3976
3977 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3978
3979         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3980         Return immediately after lll_futex_wake.
3981
3982 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3983
3984         [BZ #16791]
3985         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3986         structure.
3987         (datahead_init_pos): Call datahead_init_common early.
3988         (datahead_init_neg): Likewise.
3989
3990         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3991         datahead_init_neg): New functions.
3992         * nscd/aicache.c (addhstaiX): Use them.
3993         * nscd/grpcache.c (cache_addgr): Likewise.
3994         * nscd/hstcache.c (cache_addhst): Likewise.
3995         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3996         * nscd/netgroupcache.c (do_notfound): Likewise.
3997         (addgetnetgrentX): Likewise.
3998         (addinnetgrX): Likewise.
3999         * nscd/pwdcache.c (cache_addpw): Likewise.
4000         * nscd/servicescache.c (cache_addserv): Likewise.
4001
4002 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4003             Atsushi Onoe  <atsushi@onoe.org>
4004
4005         [BZ #14308]
4006         [BZ #12994]
4007         [BZ #13651]
4008         * resolv/res_query.c (__libc_res_nsearch): Return if at least
4009         one response is valid.
4010         * resolv/res_send.c (send_dg): Check for validity of other
4011         response if the current response is a referral.
4012
4013 2014-04-29  Steve Ellcey  <sellcey@mips.com>
4014
4015         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
4016
4017 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
4018
4019         [BZ #16823]
4020         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
4021         Always divide by positive zero when computing -Inf result.
4022         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
4023         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
4024
4025 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4026
4027         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
4028         FPSCR if value do not change.
4029         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4030         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
4031         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
4032         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
4033         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
4034         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
4035         function.
4036
4037 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
4038
4039         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
4040         * sysdeps/unix/sysv/linux/hppa: Move directory from
4041         ports/systeps/unix/sysv/linux/hppa.
4042         * README: Update listing for hppa-*-linux-gnu.
4043
4044 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
4045
4046         [BZ #16754]
4047         * manual/stdio.texi (Hook functions): Fix types of stream hook
4048         functions.
4049         [BZ #16854]
4050         * socket/sys/socket.h: Fix typo in comment.
4051
4052 2014-04-28  Wilco  <wdijkstr@arm.com>
4053
4054         * sysdeps/arm/fenv_private.h: New file.
4055         * sysdeps/arm/math_private.h: New file.
4056         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4057
4058 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4059
4060         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4061         with __int128_t.
4062         (La_x86_64_retval): Likewise.
4063
4064 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4065
4066         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4067         fpsr if value didn't change.
4068         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4069         to fpcr if value didn't change.
4070         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4071         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4072         fpsr or fpcr if value didn't change.
4073         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4074         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4075         fpcr if value didn't change.
4076         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4077         to fpsr if value didn't change.
4078
4079 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4080
4081         * nptl/tst-sem3.c: Use test-skeleton.c
4082         (main): Rename to do_test.  Use return instead of
4083         exit.
4084         * nptl/tst-sem4.c: Use test-skeleton.c
4085         (main): Rename to do_test.
4086
4087 2014-04-22  David S. Miller  <davem@davemloft.net>
4088
4089         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4090         (struct sigaction): New struct member __glibc_reserved0, change
4091         type of sa_flags to int.
4092
4093 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4094
4095         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4096         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4097
4098 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4099
4100         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4101         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4102
4103 2014-04-22  Will Newton  <will.newton@linaro.org>
4104             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4105
4106         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4107         (__longjmp): Add longjmp and longjmp_target SystemTap
4108         probes.
4109         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4110         (__sigsetjmp): Add setjmp SystemTap probe.
4111
4112 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4113
4114         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4115         match manual order.
4116
4117 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4118
4119         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4120
4121         * sysdeps/powerpc/fpu/fenv_private.h
4122         (libc_feholdexcept_setroundl_ctx): Define to
4123         libc_feholdexcept_setround_ppc_ctx.
4124         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4125         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4126         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4127         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4128
4129 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4130
4131         * sysdeps/aarch64/math-tests.h: New file.
4132
4133 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4134
4135         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4136         New.
4137         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4138         Check and set bit_AVX2_Usable.
4139         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4140         macro.
4141         (bit_AVX2): Likewise.
4142         (index_AVX2_Usable): Likewise.
4143         (CPUID_AVX2): Likewise.
4144         (HAS_AVX2): Likewise.
4145
4146 2014-04-17  Will Newton  <will.newton@linaro.org>
4147
4148         * manual/setjmp.texi (System V contexts): Add note that
4149         calling setcontext on a context created by a call to a
4150         signal handler is undefined.  Update text to note that
4151         setcontext from a signal handler is possible but not
4152         recommended.
4153
4154         [BZ #16629]
4155         * stdlib/tst-setcontext.c: Include signal.h.
4156         (main): Check that the signal stack before and
4157         after swapcontext is the same.
4158
4159         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4160         Re-implement to restore registers in user code and avoid
4161         rt_sigreturn system call.
4162
4163 2014-04-17  Wilco  <wdijkstr@arm.com>
4164
4165         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4166         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4167         * math/test-fenv.c: Skip exception trap tests on targets which only
4168         support non-stop mode.
4169
4170 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4171             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4172
4173         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4174         (libc_feholdsetround_aarch64_ctx)
4175         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4176         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4177         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4178         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4179         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4180         (libc_feresetround_noexl_ctx): Define.
4181
4182 2014-04-16  Richard Henderson  <rth@redhat.com>
4183
4184         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4185
4186         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4187         unwind tables.
4188
4189         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4190         const from the non-libc, non-ldso copy.
4191
4192         * sysdeps/alpha/libm-test-ulps: Regenerate.
4193
4194 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4195             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4196
4197         * sysdeps/aarch64/fpu/math_private.h: New file.
4198
4199 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4200
4201         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4202
4203 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4204
4205         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4206         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4207         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4208         Intel MPX bound registers before _dl_profile_fixup.
4209         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4210         registers after _dl_profile_fixup.  Save and restore bound
4211         registers bnd0/bnd1 when calling _dl_call_pltexit.
4212         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4213         (LR_BND_OFFSET): Likewise.
4214         (LRV_BND0_OFFSET): Likewise.
4215         (LRV_BND1_OFFSET): Likewise.
4216
4217 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4218
4219         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4220         to...
4221         * sysdeps/mach/hurd/i386/tls.h: ... here.
4222         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4223         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4224         fields.
4225
4226 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4227
4228         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4229
4230 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4231
4232         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4233
4234 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4235
4236         [BZ #14770]
4237         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4238         * sysdeps/s390/configure: Regenerate.
4239
4240         [BZ #16824]
4241         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4242         Set round-to-nearest internally to reduce error accumulation.
4243
4244 2014-04-16  Alan Modra  <amodra@gmail.com>
4245
4246         [BZ #16740]
4247         [BZ #16619]
4248         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4249         * math/libm-test.inc (frexp_test_data): Add tests.
4250         * NEWS: Update fixed bug list.
4251
4252 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4253
4254         * benchtests/Makefile: Depend on libraries in build directory.
4255         (bench-math): Separate out math tests.
4256         (bench-pthread): Separate out pthread tests.
4257         (bench): Include math and pthread tests.
4258
4259 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4260
4261         [BZ #16831]
4262         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4263         _dl_debug_initialize.
4264
4265         * configure.ac: Remove SELinux header check.
4266         * configure: Regenerate.
4267         * nscd/selinux.c (perms): Array of const char* to permission names.
4268         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4269         default policy. Call string_to_security_class and string_to_av_perm to
4270         translate strings. Enforce default policy and call avs_has_perm with
4271         results of translated strings.
4272
4273 2014-04-13  David S. Miller  <davem@davemloft.net>
4274
4275         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4276
4277 2014-04-12  Allan McRae  <allan@archlinux.org>
4278
4279         [BZ #16838]
4280         * manual/string.texi (Collation Functions): Fix qsort argument
4281         order in example.
4282         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4283
4284 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4285
4286         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4287         Make the test a no-op if there are no exceptions defined.
4288
4289 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4290
4291         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4292         enable-hardcoded-path-in-tests
4293
4294 2014-04-11  Will Newton  <will.newton@linaro.org>
4295
4296         * benchtests/Makefile (extra-objs): Add json-lib.o.
4297         (bench-func): Tidy up JSON output.
4298         * benchtests/bench-skeleton.c: Include json-lib.h.
4299         (main): Use JSON library functions to do output of
4300         benchmark results.
4301         * benchtests/bench-timing-type.c (main): Output the
4302         timing type simply, leaving formatting to the user.
4303         * benchtests/json-lib.c: New file.
4304         * benchtests/json-lib.h: Likewise.
4305
4306 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4307
4308         [BZ #15215]
4309         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4310         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4311         memory barriers.  Add comments.
4312         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4313         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4314         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4315         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4316         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4317         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4318
4319 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4320
4321         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4322         * sysdeps/s390/s390-64/configure.ac: ... this ...
4323         * sysdeps/s390/configure.ac: ... to here.
4324         * sysdeps/s390/s390-32/configure: Delete file.
4325         * sysdeps/s390/s390-64/configure: Delete file.
4326         * sysdeps/s390/configure: Regenerate.
4327
4328 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4329
4330         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4331
4332 2014-04-11  Will Newton  <will.newton@linaro.org>
4333
4334         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4335         to zero if it is not defined elsewhere.  (mtrim): Test
4336         the value of MALLOC_DEBUG with #if rather than #ifdef.
4337
4338 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4339
4340         * benchtests/pthread_once-inputs: New file.
4341         * benchtests/pthread_once-source.c: New file.
4342         * benchtests/README: Update documentation.
4343
4344 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4345             H.J. Lu  <hongjiu.lu@intel.com>
4346
4347         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4348         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4349         * sysdeps/x86_64/configure: Regenerated.
4350         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4351         macro.
4352         (REGISTER_SAVE_RAX): Likewise.
4353         (REGISTER_SAVE_RCX): Likewise.
4354         (REGISTER_SAVE_RDX): Likewise.
4355         (REGISTER_SAVE_RSI): Likewise.
4356         (REGISTER_SAVE_RDI): Likewise.
4357         (REGISTER_SAVE_R8): Likewise.
4358         (REGISTER_SAVE_R9): Likewise.
4359         (REGISTER_SAVE_BND0): Likewise.
4360         (REGISTER_SAVE_BND1): Likewise.
4361         (REGISTER_SAVE_BND2): Likewise.
4362         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4363         bound registers when calling _dl_fixup.
4364
4365 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4366
4367         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4368         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4369         of its definition.
4370         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4371         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4372         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4373         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4374         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4375         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4376         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4377
4378 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4379
4380         [BZ #15514]
4381         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4382         pathconf(_PC_NAME_MAX).
4383
4384 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4385
4386         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4387         Remove macro usage.
4388         (__PTHREAD_SPINS): Move definition to ...
4389         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4390         (__PTHREAD_SPINS): ... here.
4391         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4392         (__PTHREAD_SPIN): Likewise.
4393         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4394         (__PTHREAD_SPIN): Likewise.
4395         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4396         (__PTHREAD_SPIN): Likewise.
4397         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4398         (__PTHREAD_SPIN): Likewise.
4399         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
4400         (__PTHREAD_SPIN): Likewise.
4401         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
4402         (__PTHREAD_SPIN): Likewise.
4403         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
4404         (__PTHREAD_SPIN): Likewise.
4405         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
4406         (__PTHREAD_SPIN): Likewise.
4407         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
4408         (__PTHREAD_SPIN): Likewise.
4409         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
4410         (__PTHREAD_SPIN): Likewise.
4411         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
4412         (__PTHREAD_SPIN): Likewise.
4413         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
4414         (__PTHREAD_SPIN): Likewise.
4415
4416         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4417         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
4418         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
4419         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
4420         imply folder.
4421         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
4422         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4423         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
4424         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
4425         correct imply path.
4426         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
4427         strlen symbol for non multi-arch builds.
4428         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
4429         missing hidden_def and weak_alias.
4430
4431 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
4432
4433         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
4434
4435 2014-04-07  Will Newton  <will.newton@linaro.org>
4436
4437         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
4438         and contents.  [!_LIBC] Remove #ifndef and contents.
4439         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
4440         * string/memccpy.c (__memccpy): Use ANSI prototype.
4441         * string/memfrob.c (memfrob): Likewise.
4442         * string/strcoll.c (STRCOLL): Likewise.
4443         * string/strlen.c (strlen): Likewise.
4444         * string/strtok.c (STRTOK): Likewise.
4445         * string/strcat.c: Remove unused #include of memcopy.h.
4446         (strcat): Use ANSI prototype.
4447         * string/strchr.c: Remove unused #include of memcopy.h.
4448         (strchr): Use ANSI prototype.
4449         * string/strcmp.c: Remove unused #include of memcopy.h.
4450         (strcmp): Use ANSI prototype.
4451         * string/strcpy.c: Remove unused #include of memcopy.h.
4452         (strcpy): Use ANSI prototype.
4453
4454 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4455
4456         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4457         * config.make.in (config-extra-cppflags): Set it from
4458         libc_extra_cppflags.
4459         * configure.ac (libc_extra_cflags): Make it accumulate over
4460         configure fragments.
4461         (libc_extra_cppflags): New flag.
4462         * configure. Regenerate.
4463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4464         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4465         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4467
4468         [BZ #16815]
4469         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4470         result for FE_DOWNWARD rounding mode.
4471         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4472         Likewise.
4473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4474
4475 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4476
4477         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4478         in function argument name.
4479
4480 2014-04-03  David Svoboda  <svoboda@cert.org>
4481
4482         [BZ #5666]
4483         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4484         explicitly.
4485
4486 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4487
4488         * elf/dl-unmap-segments.h: New file.
4489         * sysdeps/generic/ldsodefs.h
4490         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4491         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4492         * elf/dl-fptr.c: Likewise.
4493         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4494         * sysdeps/aarch64/tlsdesc.c: Likewise.
4495         * sysdeps/arm/tlsdesc.c: Likewise.
4496         * sysdeps/i386/tlsdesc.c: Likewise.
4497         * sysdeps/tile/dl-runtime.c: Likewise.
4498         * sysdeps/x86_64/tlsdesc.c: Likewise.
4499         * elf/dl-load.h: New file.
4500         * elf/dl-load.c: Include it.
4501         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4502         Macros moved to dl-load.h.
4503         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4504         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4505         Use _dl_unmap_segments in place of __munmap.
4506         Break out segment-mapping loop into ...
4507         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4508
4509 2014-04-03  Will Newton  <will.newton@linaro.org>
4510
4511         * elf/dl-lookup.c (do_lookup_x): Remove comment
4512         referring to nested function and move variable
4513         declarations down to before first use.
4514
4515 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4516
4517         [BZ #16799]
4518         [BZ #16800]
4519         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4520         with 0 numerator.
4521         * math/s_catanf.c (__catanf): Likewise.
4522         * math/s_catanh.c (__catanh): Likewise.
4523         * math/s_catanhf.c (__catanhf): Likewise.
4524         * math/s_catanhl.c (__catanhl): Likewise.
4525         * math/s_catanl.c (__catanl): Likewise.
4526         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4527         by positive zero when computing -Inf result.
4528         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4529         (catanh_test): Likewise.
4530         * sysdeps/i386/fpu/libm-test-ulps: Update.
4531         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4532
4533         [BZ #16789]
4534         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4535         instead of using underflowing value in computing result.
4536         * math/s_clog10.c (__clog10): Likewise.
4537         * math/s_clog10f.c (__clog10f): Likewise.
4538         * math/s_clog10l.c (__clog10l): Likewise.
4539         * math/s_clogf.c (__clogf): Likewise.
4540         * math/s_clogl.c (__clogl): Likewise.
4541         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4542         (clog10_test): Likewise.
4543         * sysdeps/i386/fpu/libm-test-ulps: Update.
4544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4545
4546 2014-04-02  Alan Modra  <amodra@gmail.com>
4547
4548         [BZ #16739]
4549         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4550         output when value is near a power of two.  Use int64_t for lx and
4551         remove casts.  Use decimal rather than hex exponent constants.
4552         Don't use long double multiplication when double will suffice.
4553         * math/libm-test.inc (nextafter_test_data): Add tests.
4554         * NEWS: Add 16739 and 16786 to bug list.
4555
4556         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4557
4558         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4559
4560 2014-04-01  Will Newton  <will.newton@linaro.org>
4561
4562         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4563         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4564
4565 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4566
4567         [BZ #13347]
4568         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4569         * nptl/tst-setuid2.c: New file.
4570         * nptl/Makefile (xtests): Add tst-setuid2.
4571
4572 2014-04-01  Alan Modra  <amodra@gmail.com>
4573
4574         [BZ #16786]
4575         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4576
4577 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4578
4579         [BZ #6803]
4580         [BZ #6804]
4581         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4582         set errno as appropriate.
4583         * math/w_scalbf.c (__scalbf): Likewise.
4584         * math/w_scalbl.c (__scalbl): Likewise.
4585         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4586         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4587         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4588         Add more NaN tests.
4589
4590         [BZ #16349]
4591         * math/w_atan2.c: Include <errno.h>.
4592         (__atan2): Set errno for result underflowing to zero.
4593         * math/w_atan2f.c: Include <errno.h>.
4594         (__atan2f): Set errno for result underflowing to zero.
4595         * math/w_atan2l.c: Include <errno.h>.
4596         (__atan2l): Set errno for result underflowing to zero.
4597         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4598         tests.
4599         * math/auto-libm-test-out: Regenerated.
4600
4601 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4602
4603         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4604         Encode instruction correctly in little endian.
4605         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4606         Likewise.
4607         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4608         Likewise.
4609         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4610         Likewise.
4611         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4612         Likewise.
4613
4614 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4615
4616         [BZ #9894]
4617         * sysdeps/unix/sysv/linux/kernel-features.h
4618         [__sparc__ && !__arch64__ && !__sparc_v9__]
4619         (__ASSUME_SET_ROBUST_LIST): Do not define.
4620         [__sparc__ && !__arch64__ && !__sparc_v9__]
4621         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4622         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4623         Likewise.
4624         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4625         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4626         (__ASSUME_REQUEUE_PI): Likewise.
4627         (__ASSUME_SET_ROBUST_LIST): Likewise.
4628         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4629         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4630         Undefine.
4631         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4632         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4633         Likewise.
4634         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4635         Likewise.
4636         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4637         Likewise.
4638         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4639         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4640         Undefine.
4641         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4642         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4643         Likewise.
4644
4645         [BZ #16648]
4646         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4647         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4648         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4649
4650 2014-03-31  Will Newton  <will.newton@linaro.org>
4651
4652         * benchtests/Makefile (bench): Add ffs and ffsll to list
4653         of tests.
4654         * benchtests/ffs-inputs: New file.
4655         * benchtests/ffsll-inputs: Likewise.
4656
4657 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4658
4659         [BZ #16770]
4660         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4661         too large before casting to int.
4662         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4663         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4664         * math/libm-test.inc (scalb_test_data): Add more tests.
4665
4666 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4667
4668         * benchtests/Makefile (DETAILED_OPT): New make option.
4669         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4670         set.
4671         * benchtests/bench-skeleton.c: Include stdbool.h.
4672         (main): Store and print timings per input.
4673         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4674         member to each argument value.
4675         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4676         (_print_arg_data): Initialize per-input timing to 0.
4677
4678         * benchtests/Makefile (timing-type): New binary.
4679         (bench-clean): Also remove bench-timing-type.
4680         (bench): New target for timing-type.
4681         (bench-func): Print output in JSON format.
4682         * benchtests/bench-skeleton.c (main): Print output in JSON
4683         format.
4684         * benchtests/bench-timing-type.c: New file.
4685         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4686         (TIMING_PRINT_STATS): Remove.
4687         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4688         name separately.
4689
4690         * benchtests/bench-modf.c: Remove.
4691         * benchtests/modf-inputs: New inputs file.
4692
4693 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4694
4695         [BZ #16362]
4696         * math/s_clog10.c (M_PI_LOG10E): New macro.
4697         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4698         imaginary parts are 0.
4699         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4700         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4701         imaginary parts are 0.
4702         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4703         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4704         imaginary parts are 0.
4705         * math/libm-test.inc (clog10_test_data): Update expected results
4706         for when real and imaginary parts are 0.
4707
4708 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4709
4710         * elf/dl-load.c: Finish conversion of __builtin_expect into
4711         __glibc_{un}likely.
4712
4713 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4714
4715         [BZ #16348]
4716         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4717         1+x for argument with exponent below -67.
4718         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4719         Likewise.
4720         * math/auto-libm-test-in: Add more tests of exp.
4721         * math/auto-libm-test-out: Regenerated.
4722
4723 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4724
4725         [BZ #16759]
4726         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4727         (nscd_getnetgrent): Use it.
4728
4729         [BZ #16760]
4730         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4731         of stpcpy.
4732
4733 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4734
4735         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4736         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4737         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4738         (lll_robust_unlock): Remove out of line section. Use cfi
4739         intrinsics.
4740         (LLL_STUB_UNWIND_INFO*): Remove.
4741         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4742         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4743         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4744         (lll_robust_unlock): Remove out of line section. Use cfi
4745         intrinsics.
4746         (LLL_STUB_UNWIND_INFO*): Remove.
4747
4748 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4749
4750         [BZ #16758]
4751         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4752         blank values.
4753
4754 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4755
4756         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4757
4758 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4759
4760         [BZ #16198]
4761         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4762         fnstenv.
4763         * math/test-fenv-preserve.c: New file.
4764         * math/Makefile (tests): Add test-fenv-preserve.
4765
4766 2014-03-26  Will Newton <will.newton@linaro.org>
4767
4768         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4769
4770 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4771
4772         * scripts/versionlist.awk: Partition the version sets and emit all
4773         GLIBC_* (sorted) before all others (sorted).
4774
4775 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4776
4777         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4778         GLIBC_2.2.5 version.
4779
4780 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4781
4782         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4783         calls.
4784
4785         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4786         previous change.
4787
4788         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4789
4790 2014-03-25  Andreas Schwab  <schwab@suse.de>
4791
4792         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4793         label to be used after in6ailist is initialized.
4794
4795 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4796
4797         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4798         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4799
4800 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4801
4802         [BZ #16357]
4803         [BZ #16599]
4804         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4805         min_plus_half.
4806         (fp_formats): Update initializers.
4807         (init_fp_formats): Initialize new field.
4808         (output_for_one_input_case): Allow underflow for results up to
4809         min_plus_half.
4810         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4811         * math/auto-libm-test-in: Don't mark some underflows from asin and
4812         atanh as spurious.
4813         * math/auto-libm-test-out: Regenerated.
4814         * sysdeps/i386/fpu/libm-test-ulps: Update.
4815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4816
4817 2014-03-25  Andreas Schwab  <schwab@suse.de>
4818
4819         * libio/Makefile (tst-ftell-partial-wide-ENV)
4820         (tst-ftell-active-handler-ENV): Define.
4821
4822 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4823
4824         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4825
4826 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4827
4828         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4829
4830 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4831
4832         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4833         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4834         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4835
4836 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4837
4838         [BZ #16634]
4839         * elf/dl-load.c (open_verify): Add mode parameter.
4840         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4841         (open_path): Change from boolean 'secure' to complete flag 'mode'
4842         (_dl_map_object): Adjust.
4843         * elf/Makefile (tests): Add tst-dlopen-aout.
4844         * elf/tst-dlopen-aout.c: New test.
4845
4846 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4847
4848         [BZ #16714]
4849         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4850         (struct stat): Rename member pad0 to __glibc_reserved0.
4851
4852         [BZ #16712]
4853         * sysdeps/s390/s390-32/bits/wordsize.h
4854         (__WORDSIZE32_SIZE_ULONG): New define.
4855         * sysdeps/s390/s390-64/bits/wordsize.h
4856         (__WORDSIZE32_SIZE_ULONG): Likewise.
4857         * sysdeps/generic/stdint.h (SIZE_MAX):
4858         Define as UL if __WORDSIZE32_SIZE_ULONG.
4859
4860         [BZ #16713]
4861         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4862         (__glibc_reserved0): New variable.
4863         (sa_flags): Change type to int.
4864
4865         * posix/Makefile (before-compile): Use += before-compile instead
4866         of a :=.
4867
4868         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4869         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4870
4871 2014-03-20  Andreas Schwab  <schwab@suse.de>
4872
4873         [BZ #16743]
4874         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4875         non-matching result from nscd.
4876
4877 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4878
4879         * scripts/bench.py: Moved to ...
4880         * benchtests/scripts/bench.py: ... here.
4881         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4882
4883 2014-03-24  Andreas Schwab  <schwab@suse.de>
4884
4885         [BZ #16002]
4886         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4887         alloca_account and account alloca use for struct in6ailist.
4888
4889 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4890
4891         [BZ #16284]
4892         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4893         rounding mode to recompute results that overflow to infinity or
4894         underflow to zero.
4895         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4896         bug 16284.
4897         * math/auto-libm-test-out: Regenerated.
4898         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4899         (ccosh_test): Likewise.
4900         (csin_test_data): Use plus_oflow.
4901         (csin_test): Use ALL_RM_TEST.
4902         (csinh_test_data): Use plus_oflow.
4903         (csinh_test): Use ALL_RM_TEST.
4904         * sysdeps/i386/fpu/libm-test-ulps: Update.
4905         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4906
4907 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4908
4909         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4910         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4911         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4912
4913         [BZ #16731]
4914         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4915         when x - 1 is zero.
4916         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4917         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4918         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4919         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4920         argument is 1.
4921         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4922         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4923         zero.
4924         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4925         * sysdeps/i386/fpu/libm-test-ulps: Update.
4926         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4927
4928 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4929
4930         * scripts/bench.pl: Remove file.
4931         * scripts/bench.py: New benchmark script.
4932         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4933         * benchtests/README: Mention python dependency.
4934         * scripts/pylintrc: New file.
4935         * scripts/pylint: New file.
4936
4937         * bits/mathdef.h: Use #ifdef instead of #if.
4938         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4939         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4940         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4941         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4942         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4943         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4944
4945 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4946             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4947
4948         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4949         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4950         and strpbrk-ppc64 objects.
4951         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4952         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4953         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4954         multiarch strpbrk for POWER7.
4955         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4956         multiarch strpbrk for PPC64.
4957         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4958         ifunc selector.
4959         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4960         strpbrk for POWER7.
4961
4962 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4963
4964         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4965         (atan_test): Likewise.
4966         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4967         (atanh_test): Use ALL_RM_TEST.
4968         (atan2_test_data): Likewise.
4969         (cabs_test): Likewise.
4970         (cacosh_test): Likewise.
4971         (carg_test): Likewise.
4972         (casin_test): Likewise.
4973         (casinh_test): Likewise.
4974         (cbrt_test): Likewise.
4975         (csqrt_test): Likewise.
4976         (erf_test): Likewise.
4977         (erfc_test): Likewise.
4978         (pow10_test): Likewise.
4979         (exp2_test): Likewise.
4980         (hypot_test): Likewise.
4981         (j0_test): Likewise.
4982         (j1_test): Likewise.
4983         (lgamma_test): Likewise.
4984         (gamma_test): Likewise.
4985         (sincos_test): Likewise.
4986         (tanh_test): Likewise.
4987         (y0_test): Likewise.
4988         (y1_test): Likewise.
4989         * sysdeps/i386/fpu/libm-test-ulps: Update.
4990         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4991
4992 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4993
4994         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4995         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4996         and strcspn-ppc64 objects.
4997         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4998         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4999         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
5000         multiarch strcspn for POWER7.
5001         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
5002         multiarch strcspn for PPC64.
5003         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
5004         ifunc selector.
5005         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
5006         strcspn for POWER7.
5007
5008 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5009
5010         * math/gen-libm-test.pl (generate_testfile): Expect only function
5011         name as argument to AUTO_TESTS_* and pass results for all rounding
5012         modes to parse_args.
5013         (parse_auto_input): Separate inputs of automatic tests from
5014         outputs before storing in %auto_tests.
5015         * math/libm-test.inc (acos_test_data): Update call to
5016         AUTO_TESTS_f_f.
5017         (acos_test): Use ALL_RM_TEST.
5018         (acos_tonearest_test_data): Remove.
5019         (acos_test_tonearest): Likewise.
5020         (acos_towardzero_test_data): Likewise.
5021         (acos_test_towardzero): Likewise.
5022         (acos_downward_test_data): Likewise.
5023         (acos_test_downward): Likewise.
5024         (acos_upward_test_data): Likewise.
5025         (acos_test_upward): Likewise.
5026         (acosh_test_data): Update call to AUTO_TESTS_f_f.
5027         (asin_test_data): Likewise.
5028         (asin_test): Use ALL_RM_TEST.
5029         (asin_tonearest_test_data): Remove.
5030         (asin_test_tonearest): Likewise.
5031         (asin_towardzero_test_data): Likewise.
5032         (asin_test_towardzero): Likewise.
5033         (asin_downward_test_data): Likewise.
5034         (asin_test_downward): Likewise.
5035         (asin_upward_test_data): Likewise.
5036         (asin_test_upward): Likewise.
5037         (asinh_test_data): Update call to AUTO_TESTS_f_f.
5038         (atan_test_data): Likewise.
5039         (atanh_test_data): Likewise.
5040         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
5041         (cabs_test_data): Update call to AUTO_TESTS_c_f.
5042         (carg_test_data): Likewise.
5043         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
5044         (ccos_test_data): Update call to AUTO_TESTS_c_c.
5045         (ccosh_test_data): Likewise.
5046         (cexp_test_data): Likewise.
5047         (clog_test_data): Likewise.
5048         (clog10_test_data): Likewise.
5049         (cos_test_data): Update call to AUTO_TESTS_f_f.
5050         (cos_test): Use ALL_RM_TEST.
5051         (cos_tonearest_test_data): Remove.
5052         (cos_test_tonearest): Likewise.
5053         (cos_towardzero_test_data): Likewise.
5054         (cos_test_towardzero): Likewise.
5055         (cos_downward_test_data): Likewise.
5056         (cos_test_downward): Likewise.
5057         (cos_upward_test_data): Likewise.
5058         (cos_test_upward): Likewise.
5059         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5060         (cosh_test): Use ALL_RM_TEST.
5061         (cosh_tonearest_test_data): Remove.
5062         (cosh_test_tonearest): Likewise.
5063         (cosh_towardzero_test_data): Likewise.
5064         (cosh_test_towardzero): Likewise.
5065         (cosh_downward_test_data): Likewise.
5066         (cosh_test_downward): Likewise.
5067         (cosh_upward_test_data): Likewise.
5068         (cosh_test_upward): Likewise.
5069         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5070         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5071         (ctan_test_data): Likewise.
5072         (ctan_test): Use ALL_RM_TEST.
5073         (ctan_tonearest_test_data): Remove.
5074         (ctan_test_tonearest): Likewise.
5075         (ctan_towardzero_test_data): Likewise.
5076         (ctan_test_towardzero): Likewise.
5077         (ctan_downward_test_data): Likewise.
5078         (ctan_test_downward): Likewise.
5079         (ctan_upward_test_data): Likewise.
5080         (ctan_test_upward): Likewise.
5081         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5082         (ctanh_test): Use ALL_RM_TEST.
5083         (ctanh_tonearest_test_data): Remove.
5084         (ctanh_test_tonearest): Likewise.
5085         (ctanh_towardzero_test_data): Likewise.
5086         (ctanh_test_towardzero): Likewise.
5087         (ctanh_downward_test_data): Likewise.
5088         (ctanh_test_downward): Likewise.
5089         (ctanh_upward_test_data): Likewise.
5090         (ctanh_test_upward): Likewise.
5091         (erf_test_data): Update call to AUTO_TESTS_f_f.
5092         (erfc_test_data): Likewise.
5093         (exp_test_data): Likewise.
5094         (exp_test): Use ALL_RM_TEST.
5095         (exp_tonearest_test_data): Remove.
5096         (exp_test_tonearest): Likewise.
5097         (exp_towardzero_test_data): Likewise.
5098         (exp_test_towardzero): Likewise.
5099         (exp_downward_test_data): Likewise.
5100         (exp_test_downward): Likewise.
5101         (exp_upward_test_data): Likewise.
5102         (exp_test_upward): Likewise.
5103         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5104         (exp10_test): Use ALL_RM_TEST.
5105         (exp10_tonearest_test_data): Remove.
5106         (exp10_test_tonearest): Likewise.
5107         (exp10_towardzero_test_data): Likewise.
5108         (exp10_test_towardzero): Likewise.
5109         (exp10_downward_test_data): Likewise.
5110         (exp10_test_downward): Likewise.
5111         (exp10_upward_test_data): Likewise.
5112         (exp10_test_upward): Likewise.
5113         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5114         (expm1_test_data): Likewise.
5115         (expm1_test): Use ALL_RM_TEST.
5116         (expm1_tonearest_test_data): Remove.
5117         (expm1_test_tonearest): Likewise.
5118         (expm1_towardzero_test_data): Likewise.
5119         (expm1_test_towardzero): Likewise.
5120         (expm1_downward_test_data): Likewise.
5121         (expm1_test_downward): Likewise.
5122         (expm1_upward_test_data): Likewise.
5123         (expm1_test_upward): Likewise.
5124         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5125         (fma_test): Use ALL_RM_TEST.
5126         (fma_towardzero_test_data): Remove.
5127         (fma_test_towardzero): Likewise.
5128         (fma_downward_test_data): Likewise.
5129         (fma_test_downward): Likewise.
5130         (fma_upward_test_data): Likewise.
5131         (fma_test_upward): Likewise.
5132         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5133         (j0_test_data): Update call to AUTO_TESTS_f_f.
5134         (j1_test_data): Likewise.
5135         (jn_test_data): Update call to AUTO_TESTS_if_f.
5136         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5137         (log_test_data): Update call to AUTO_TESTS_f_f.
5138         (log10_test_data): Likewise.
5139         (log1p_test_data): Likewise.
5140         (log2_test_data): Likewise.
5141         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5142         (pow_tonearest_test_data): Likewise.
5143         (sin_test_data): Update call to AUTO_TESTS_f_f.
5144         (sin_test): Use ALL_RM_TEST.
5145         (sin_tonearest_test_data): Remove.
5146         (sin_test_tonearest): Likewise.
5147         (sin_towardzero_test_data): Likewise.
5148         (sin_test_towardzero): Likewise.
5149         (sin_downward_test_data): Likewise.
5150         (sin_test_downward): Likewise.
5151         (sin_upward_test_data): Likewise.
5152         (sin_test_upward): Likewise.
5153         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5154         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5155         (sinh_test): Use ALL_RM_TEST.
5156         (sinh_tonearest_test_data): Remove.
5157         (sinh_test_tonearest): Likewise.
5158         (sinh_towardzero_test_data): Likewise.
5159         (sinh_test_towardzero): Likewise.
5160         (sinh_downward_test_data): Likewise.
5161         (sinh_test_downward): Likewise.
5162         (sinh_upward_test_data): Likewise.
5163         (sinh_test_upward): Likewise.
5164         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5165         (sqrt_test): Use ALL_RM_TEST.
5166         (sqrt_tonearest_test_data): Remove.
5167         (sqrt_test_tonearest): Likewise.
5168         (sqrt_towardzero_test_data): Likewise.
5169         (sqrt_test_towardzero): Likewise.
5170         (sqrt_downward_test_data): Likewise.
5171         (sqrt_test_downward): Likewise.
5172         (sqrt_upward_test_data): Likewise.
5173         (sqrt_test_upward): Likewise.
5174         (tan_test_data): Update call to AUTO_TESTS_f_f.
5175         (tan_test): Use ALL_RM_TEST.
5176         (tan_tonearest_test_data): Remove.
5177         (tan_test_tonearest): Likewise.
5178         (tan_towardzero_test_data): Likewise.
5179         (tan_test_towardzero): Likewise.
5180         (tan_downward_test_data): Likewise.
5181         (tan_test_downward): Likewise.
5182         (tan_upward_test_data): Likewise.
5183         (tan_test_upward): Likewise.
5184         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5185         (tgamma_test_data): Likewise.
5186         (y0_test_data): Likewise.
5187         (y1_test_data): Likewise.
5188         (yn_test_data): Update call to AUTO_TESTS_if_f.
5189         (main): Do not call removed functions.
5190
5191 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5192
5193         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5194         (ldexp_test_data): Remove.
5195         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5196         scalbn_test_data.
5197         (scalb_test): Use ALL_RM_TEST.
5198
5199 2014-03-19  Andreas Schwab  <schwab@suse.de>
5200
5201         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5202
5203 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5204
5205         [BZ #16649]
5206         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5207         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5208         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5209         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5210         (__ASSUME_PREADV): Undefine.
5211         (__ASSUME_PWRITEV): Likewise.
5212
5213 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5214
5215         * bits/mman-linux.h: Add comment about non-Linux use.
5216         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5217         bits/mman-linux.h resting place.
5218
5219         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5220         * bits/mman-linux.h: ... here.
5221
5222 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5223
5224         * conform/conformtest.pl: Add standard definition when calling C
5225         preprocessor on data files.
5226         (checknamespace): Remove unused variable.
5227
5228 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5229
5230         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5231         minus_oflow, plus_uflow and minus_uflow in expected results.
5232         * math/libm-test.inc (scalbn_test_data): Add more tests of
5233         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5234         minus_uflow.
5235         (scalbn_test): Use ALL_RM_TEST.
5236         (scalbln_test_data): Add more tests of negative arguments.  Use
5237         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5238         (scalbln_test): Use ALL_RM_TEST.
5239
5240 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5241
5242         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5243
5244 2014-03-18  Will Newton  <will.newton@linaro.org>
5245
5246         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5247         inaccurate comment.
5248
5249 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5250
5251         * Makerules [!subdir] (check-abi): Exit with error status if a
5252         test failed.
5253
5254 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5255
5256         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5257         for rint.  Include results for all rounding modes.
5258         (nearbyint_test): Use ALL_RM_TEST.
5259         (rint_test_data): Include all tests used for nearbyint.
5260
5261 2014-03-17  Will Newton  <will.newton@linaro.org>
5262
5263         * nptl/sysdeps/pthread/pthread.h: Revert previous
5264         change.
5265
5266         * sysdeps/generic/ldsodefs.h: Revert previous
5267         change.
5268
5269         * libio/genops.c: Revert previous change.
5270         * libio/libioP.h: Likewise.
5271         * stdio-common/vfprintf.c: Likewise.
5272
5273         * sysdeps/generic/math_private.h: Revert previous
5274         change.
5275
5276         * sysdeps/generic/math_private.h: Check whether
5277         HAVE_RM_CTX is defined with #ifdef rather
5278         than #if.
5279
5280         * argp/argp-fmtstream.h: Check whether
5281         __STRICT_ANSI__ is defined with #ifdef rather
5282         than #if.
5283         * argp/argp.h: Likewise.
5284
5285         * libio/genops.c: Check whether
5286         _IO_JUMPS_OFFSET is defined with #ifdef rather
5287         than #if.
5288         * libio/libioP.h: Likewise.
5289         * stdio-common/vfprintf.c: Likewise.
5290
5291         * sysdeps/generic/ldsodefs.h: Check whether
5292         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5293         than #if.
5294
5295         * nptl/sysdeps/pthread/pthread.h: Check
5296         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5297         its value.
5298
5299 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5300
5301         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5302         setting O_APPEND.
5303         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5304         test case.
5305
5306         [BZ #16680]
5307         * libio/fileops.c (_IO_file_open): Seek to end of file but
5308         don't cache the offset.
5309         (get_file_offset): Remove function.
5310         (do_ftell): Use cached offset when available.
5311         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5312         don't cache the offset.
5313         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5314         case.
5315         (do_one_test): Call it.
5316         (do_ftell_test): Fix up expected old offset for a+ mode.
5317         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5318         available.
5319
5320         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5321         up test status with function return status.
5322         (do_write_test): Likewise.
5323         (do_append_test): Likewise.
5324
5325         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5326         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5327         Remove.
5328
5329 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5330
5331         * math/gen-libm-test.pl (parse_args): Handle results specified for
5332         each rounding mode separately.
5333         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5334         tests and results from lrint_tonearest_test_data,
5335         lrint_towardzero_test_data, lrint_downward_test_data and
5336         lrint_upward_test_data.
5337         (lrint_test): Use ALL_RM_TEST.
5338         (lrint_tonearest_test_data): Remove.
5339         (lrint_test_tonearest): Likewise.
5340         (lrint_towardzero_test_data): Likewise.
5341         (lrint_test_towardzero): Likewise.
5342         (lrint_downward_test_data): Likewise.
5343         (lrint_test_downward): Likewise.
5344         (lrint_upward_test_data): Likewise.
5345         (lrint_test_upward): Likewise.
5346         (llrint_test_data): Merge in per-rounding-mode tests and results
5347         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5348         llrint_downward_test_data and llrint_upward_test_data.
5349         (llrint_test): Use ALL_RM_TEST.
5350         (llrint_tonearest_test_data): Remove.
5351         (llrint_test_tonearest): Likewise.
5352         (llrint_towardzero_test_data): Likewise.
5353         (llrint_test_towardzero): Likewise.
5354         (llrint_downward_test_data): Likewise.
5355         (llrint_test_downward): Likewise.
5356         (llrint_upward_test_data): Likewise.
5357         (llrint_test_upward): Likewise.
5358         (rint_test_data): Merge in per-rounding-mode tests and results
5359         from rint_tonearest_test_data, rint_towardzero_test_data,
5360         rint_downward_test_data and rint_upward_test_data.  Add
5361         per-rounding-mode results for tests not in those arrays.
5362         (rint_test): Use ALL_RM_TEST.
5363         (rint_tonearest_test_data): Remove.
5364         (rint_test_tonearest): Likewise.
5365         (rint_towardzero_test_data): Likewise.
5366         (rint_test_towardzero): Likewise.
5367         (rint_downward_test_data): Likewise.
5368         (rint_test_downward): Likewise.
5369         (rint_upward_test_data): Likewise.
5370         (rint_test_upward): Likewise.
5371         (main): Don't call removed functions.
5372
5373 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5374
5375         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5376         "Compiled on ..." crapola.  It is anti-useful.
5377
5378 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5379
5380         * scripts/evaluate-test.sh: Handle fourth argument to determine
5381         whether test run should stop on failure.
5382         * Makeconfig (stop-on-test-failure): New variable.
5383         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5384         $(stop-on-test-failure).
5385         * Makefile (tests): Give a summary of results from testing and
5386         exit with failure status if they include an ERROR or FAIL.
5387         (xtests): Likewise.
5388         * manual/install.texi (Configuring and compiling): Mention
5389         stop-on-test-failure=y.
5390         * INSTALL: Regenerated.
5391
5392 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5393
5394         * scripts/versionlist.awk: New file.
5395         * Makerules [$(build-shared) = yes]
5396         (postclean-generated): Add Versions.def, not Versions.def.v and
5397         Versions.def.v.i.
5398         ($(common-objpfx)Versions.def.v.i): Target removed.
5399         ($(common-objpfx)Versions.def): New target.
5400         ($(common-objpfx)Versions.all): Depend on that rather that
5401         $(common-objpfx)Versions.def.v.
5402         * Versions.def: File removed.
5403
5404         * Makeconfig (+gccwarn): Add -Wundef.
5405         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
5406         a dl-sysdep.h breaking its contract.
5407         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
5408         * include/stackinfo.h: New file.
5409         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
5410         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
5411         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
5412         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
5413         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
5414         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
5415         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5416         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5417         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5418         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5419         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5420         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
5421         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5422         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5423         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5424
5425 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5426
5427         [BZ #16707]
5428         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
5429         implementation.
5430         * math/libm-test.inc (round_test_data): Add more tests.
5431
5432         [BZ #16706]
5433         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
5434         implementation.
5435         * math/libm-test.inc (nearbyint_test_data): Add more tests.
5436
5437         [BZ #16701]
5438         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
5439         implementation.
5440         * math/libm-test.inc (ceil_test_data): Add more tests.
5441
5442         * math/libm-test.inc (trunc_test_data): Add more tests related to
5443         BZ#16414.
5444
5445 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5446
5447         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5448         with #if rather than #ifdef.
5449         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5450
5451 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5452
5453         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5454         first.  Disable AVX-512 GCC support if assembler doesn't support
5455         it.
5456         * sysdeps/x86_64/configure: Regenerated.
5457
5458 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5459
5460         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5461         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5462         (__old_pthread_attr_setstack): Likewise.
5463         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5464         [!_STACK_GROWS_DOWN]: Likewise.
5465
5466 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5467
5468         * config.make.in (have-bash2): Delete.
5469         * configure.ac (libc_cv_have_bash2): Delete.
5470         * configure: Regenerate.
5471         * elf/Makefile (common-ldd-rewrite): Rename to ...
5472         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5473         (sh-ldd-rewrite): Delete.
5474         (bash-ldd-rewrite): Delete.
5475         (have-bash2): Delete checks.
5476         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5477         ldd-rewrite.
5478
5479         * config.make.in (have-ksh): Delete.
5480         (KSH): Delete.
5481         * configure.ac (libc_cv_have_ksh): Delete.
5482         * configure: Regenerate.
5483
5484         * elf/Makefile: Delete $(have-ksh) check.
5485         ($(objpfx)sotruss): Change KSH to BASH.
5486         * elf/sotruss.ksh: Rename to ...
5487         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5488         function style to match POSIX.  Drop ksh vim mode setting.
5489
5490         * manual/time.texi (Specifying the Time Zone with TZ): Change
5491         Tuesday to Thursday.
5492
5493         * debug/tst-longjmp_chk2.c: Update header comment.
5494         (stackoverflow_handler): Add comment.  Call assert on pass value.
5495
5496 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5497
5498         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5499         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5500         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5501         (La_x86_64_vector): Add zmm.
5502         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5503         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5504         ($(objpfx)tst-audit10): New target.
5505         ($(objpfx)tst-audit10.out): Likewise.
5506         (tst-audit10-ENV): New.
5507         (AVX512-CFLAGS): Likewise.
5508         (CFLAGS-tst-audit10.c): Likewise.
5509         (CFLAGS-tst-auditmod10a.c): Likewise.
5510         (CFLAGS-tst-auditmod10b.c): Likewise.
5511         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5512         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5513         * sysdeps/x86_64/configure: Regenerated.
5514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5515         AVX-512 zmm register support.
5516         (_dl_x86_64_save_sse): Likewise.
5517         (_dl_x86_64_restore_sse): Likewise.
5518         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5519         size vector registers.
5520         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5521         (ZMM_SIZE): Likewise.
5522         * sysdeps/x86_64/tst-audit10.c: New file.
5523         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5524         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5525
5526 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5527
5528         * configure.ac (HAVE_EHDR_START): New check.
5529         * configure: Regenerated.
5530         * config.h.in (HAVE_EHDR_START): New #undef.
5531         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5532         assuming the lowest-addressed segment maps the start of the file.
5533
5534 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5535
5536         * INSTALL: Regenerated.
5537
5538 2014-03-13  Will Newton  <will.newton@linaro.org>
5539
5540         * manual/setjmp.texi (System V contexts): Improve
5541         clarity and grammar of documentation.
5542
5543 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5544
5545         [BZ #16381]
5546         * elf/Makefile (tests): Add tst-pie2.
5547         (tests-pie): Add tst-pie2.
5548         * elf/tst-pie2.c: New file.
5549         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5550         for ET_EXEC.
5551         * elf/rtld.c (map_doit): Load executable as lt_executable.
5552         (dl_main): Likewise.
5553
5554 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5555
5556         [BZ #16642]
5557         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5558         (__ASSUME_PSELECT): Undefine.
5559
5560 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5561
5562         [BZ #16689]
5563         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5564         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5565         static build.
5566         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5567         selector for static builds.
5568
5569 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5570
5571         [BZ #16695]
5572         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5573         key in the buffer.
5574
5575 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5576
5577         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5578         IFUNC selector for static builds.
5579
5580 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5581
5582         * sysdeps/mips/math_private.h [__mips_hard_float]
5583         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5584         libc_feresetround_mips_ctx.
5585         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5586         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5587         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5588
5589         [BZ #16677]
5590         * math/s_nextafter.c (__nextafter): Do not return value from
5591         overflowing computation.
5592         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5593         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5594         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5595         Likewise.
5596         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5597         Likewise.
5598         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5599         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5600
5601 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5602
5603         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5604         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5605         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5606         the new mov targetting sp.
5607
5608 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5609
5610         [BZ #16683]
5611         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5612         Define it for static builds as well.
5613         (NO_BZERO_IMPL): Likewise.
5614
5615 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5616
5617         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5618         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5619         multiarch strspn for PPC64.
5620         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5621         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5622         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5623         (__libc_ifunc_impl_list): Likewise.
5624         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5625         multiarch optimizations
5626         * string/strspn.c (strspn): Using macro to redefine symbol name.
5627
5628 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5629             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5630
5631         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5632         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5633         multiarch strncat for PPC64.
5634         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5635         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5636         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5637         (__libc_ifunc_impl_list): Likewise.
5638         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5639         multiarch optimizations
5640
5641 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5642
5643         [BZ #16639]
5644         * nscd/nscd.service: Make service type forking.
5645
5646 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5647
5648         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5649         sign in non default rounding modes.
5650         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5651
5652 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5653
5654         * math/libm-test.inc (ALL_RM_TEST): New macro.
5655         (ceil_test): Use ALL_RM_TEST.
5656         (cimag_test): Likewise.
5657         (conj_test): Likewise.
5658         (copysign_test): Likewise.
5659         (cproj_test): Likewise.
5660         (creal_test): Likewise.
5661         (fabs_test): Likewise.
5662         (floor_test): Likewise.
5663         (fmax_test): Likewise.
5664         (fmin_test): Likewise.
5665         (fmod_test): Likewise.
5666         (fpclassify_test): Likewise.
5667         (frexp_test): Likewise.
5668         (ilogb_test): Likewise.
5669         (isfinite_test): Likewise.
5670         (finite_test): Likewise.
5671         (isgreater_test): Likewise.
5672         (isgreaterequal_test): Likewise.
5673         (isinf_test): Likewise.
5674         (isless_test): Likewise.
5675         (islessequal_test): Likewise.
5676         (islessgreater_test): Likewise.
5677         (isnan_test): Likewise.
5678         (isnormal_test): Likewise.
5679         (issignaling_test): Likewise.
5680         (isunordered_test): Likewise.
5681         (logb_test): Likewise.
5682         (logb_downward_test_data): Remove.
5683         (logb_test_downward): Likewise.
5684         (lround_test): Use ALL_RM_TEST.
5685         (llround_test): Likewise.
5686         (modf_test): Likewise.
5687         (nexttoward_test): Likewise.
5688         (remainder_test): Likewise.
5689         (drem_test): Likewise.
5690         (remainder_tonearest_test_data): Likewise.
5691         (remainder_test_tonearest): Likewise.
5692         (drem_test_tonearest): Likewise.
5693         (remainder_towardzero_test_data): Likewise.
5694         (remainder_test_towardzero): Likewise.
5695         (drem_test_towardzero): Likewise.
5696         (remainder_downward_test_data): Likewise.
5697         (remainder_test_downward): Likewise.
5698         (drem_test_downward): Likewise.
5699         (remainder_upward_test_data): Likewise.
5700         (remainder_test_upward): Likewise.
5701         (drem_test_upward): Likewise.
5702         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5703         (round_test): Use ALL_RM_TEST.
5704         (signbit_test): Likewise.
5705         (trunc_test): Likewise.
5706         (significand_test): Likewise.
5707         (main): Don't call removed functions.
5708
5709 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5710
5711         [BZ #16674]
5712         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5713         || __USE_XOPEN2K8].
5714         (ILL_ILLOPN): Likewise.
5715         (ILL_ILLADR): Likewise.
5716         (ILL_ILLTRP): Likewise.
5717         (ILL_PRVOPC): Likewise.
5718         (ILL_PRVREG): Likewise.
5719         (ILL_COPROC): Likewise.
5720         (ILL_BADSTK): Likewise.
5721         (FPE_INTDIV): Likewise.
5722         (FPE_INTOVF): Likewise.
5723         (FPE_FLTDIV): Likewise.
5724         (FPE_FLTOVF): Likewise.
5725         (FPE_FLTUND): Likewise.
5726         (FPE_FLTRES): Likewise.
5727         (FPE_FLTINV): Likewise.
5728         (FPE_FLTSUB): Likewise.
5729         (SEGV_MAPERR): Likewise.
5730         (SEGV_ACCERR): Likewise.
5731         (BUS_ADRALN): Likewise.
5732         (BUS_ADRERR): Likewise.
5733         (BUS_OBJERR): Likewise.
5734         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5735         (TRAP_TRACE): Likewise.
5736         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5737         __USE_XOPEN2K8].
5738         (CLD_KILLED): Likewise.
5739         (CLD_DUMPED): Likewise.
5740         (CLD_TRAPPED): Likewise.
5741         (CLD_STOPPED): Likewise.
5742         (CLD_CONTINUED): Likewise.
5743         (POLL_IN): Likewise.
5744         (POLL_OUT): Likewise.
5745         (POLL_MSG): Likewise.
5746         (POLL_ERR): Likewise.
5747         (POLL_PRI): Likewise.
5748         (POLL_HUP): Likewise.
5749         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5750         Likewise.
5751         (ILL_ILLOPN): Likewise.
5752         (ILL_ILLADR): Likewise.
5753         (ILL_ILLTRP): Likewise.
5754         (ILL_PRVOPC): Likewise.
5755         (ILL_PRVREG): Likewise.
5756         (ILL_COPROC): Likewise.
5757         (ILL_BADSTK): Likewise.
5758         (FPE_INTDIV): Likewise.
5759         (FPE_INTOVF): Likewise.
5760         (FPE_FLTDIV): Likewise.
5761         (FPE_FLTOVF): Likewise.
5762         (FPE_FLTUND): Likewise.
5763         (FPE_FLTRES): Likewise.
5764         (FPE_FLTINV): Likewise.
5765         (FPE_FLTSUB): Likewise.
5766         (SEGV_MAPERR): Likewise.
5767         (SEGV_ACCERR): Likewise.
5768         (BUS_ADRALN): Likewise.
5769         (BUS_ADRERR): Likewise.
5770         (BUS_OBJERR): Likewise.
5771         (BUS_MCEERR_AR): Likewise.
5772         (BUS_MCEERR_AO): Likewise.
5773         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5774         (TRAP_TRACE): Likewise.
5775         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5776         __USE_XOPEN2K8].
5777         (CLD_KILLED): Likewise.
5778         (CLD_DUMPED): Likewise.
5779         (CLD_TRAPPED): Likewise.
5780         (CLD_STOPPED): Likewise.
5781         (CLD_CONTINUED): Likewise.
5782         (POLL_IN): Likewise.
5783         (POLL_OUT): Likewise.
5784         (POLL_MSG): Likewise.
5785         (POLL_ERR): Likewise.
5786         (POLL_PRI): Likewise.
5787         (POLL_HUP): Likewise.
5788         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5789         (ILL_ILLOPN): Likewise.
5790         (ILL_ILLADR): Likewise.
5791         (ILL_ILLTRP): Likewise.
5792         (ILL_PRVOPC): Likewise.
5793         (ILL_PRVREG): Likewise.
5794         (ILL_COPROC): Likewise.
5795         (ILL_BADSTK): Likewise.
5796         (FPE_INTDIV): Likewise.
5797         (FPE_INTOVF): Likewise.
5798         (FPE_FLTDIV): Likewise.
5799         (FPE_FLTOVF): Likewise.
5800         (FPE_FLTUND): Likewise.
5801         (FPE_FLTRES): Likewise.
5802         (FPE_FLTINV): Likewise.
5803         (FPE_FLTSUB): Likewise.
5804         (SEGV_MAPERR): Likewise.
5805         (SEGV_ACCERR): Likewise.
5806         (BUS_ADRALN): Likewise.
5807         (BUS_ADRERR): Likewise.
5808         (BUS_OBJERR): Likewise.
5809         (BUS_MCEERR_AR): Likewise.
5810         (BUS_MCEERR_AO): Likewise.
5811         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5812         (TRAP_TRACE): Likewise.
5813         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5814         __USE_XOPEN2K8].
5815         (CLD_KILLED): Likewise.
5816         (CLD_DUMPED): Likewise.
5817         (CLD_TRAPPED): Likewise.
5818         (CLD_STOPPED): Likewise.
5819         (CLD_CONTINUED): Likewise.
5820         (POLL_IN): Likewise.
5821         (POLL_OUT): Likewise.
5822         (POLL_MSG): Likewise.
5823         (POLL_ERR): Likewise.
5824         (POLL_PRI): Likewise.
5825         (POLL_HUP): Likewise.
5826         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5827         Likewise.
5828         (ILL_ILLOPN): Likewise.
5829         (ILL_ILLADR): Likewise.
5830         (ILL_ILLTRP): Likewise.
5831         (ILL_PRVOPC): Likewise.
5832         (ILL_PRVREG): Likewise.
5833         (ILL_COPROC): Likewise.
5834         (ILL_BADSTK): Likewise.
5835         (ILL_BADIADDR): Likewise.
5836         (ILL_BREAK): Likewise.
5837         (FPE_INTDIV): Likewise.
5838         (FPE_INTOVF): Likewise.
5839         (FPE_FLTDIV): Likewise.
5840         (FPE_FLTOVF): Likewise.
5841         (FPE_FLTUND): Likewise.
5842         (FPE_FLTRES): Likewise.
5843         (FPE_FLTINV): Likewise.
5844         (FPE_FLTSUB): Likewise.
5845         (FPE_DECOVF): Likewise.
5846         (FPE_DECDIV): Likewise.
5847         (FPE_DECERR): Likewise.
5848         (FPE_INVASC): Likewise.
5849         (FPE_INVDEC): Likewise.
5850         (SEGV_MAPERR): Likewise.
5851         (SEGV_ACCERR): Likewise.
5852         (SEGV_PSTKOVF): Likewise.
5853         (BUS_ADRALN): Likewise.
5854         (BUS_ADRERR): Likewise.
5855         (BUS_OBJERR): Likewise.
5856         (BUS_MCEERR_AR): Likewise.
5857         (BUS_MCEERR_AO): Likewise.
5858         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5859         (TRAP_TRACE): Likewise.
5860         (TRAP_BRANCH): Likewise.
5861         (TRAP_HWBKPT): Likewise.
5862         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5863         __USE_XOPEN2K8].
5864         (CLD_KILLED): Likewise.
5865         (CLD_DUMPED): Likewise.
5866         (CLD_TRAPPED): Likewise.
5867         (CLD_STOPPED): Likewise.
5868         (CLD_CONTINUED): Likewise.
5869         (POLL_IN): Likewise.
5870         (POLL_OUT): Likewise.
5871         (POLL_MSG): Likewise.
5872         (POLL_ERR): Likewise.
5873         (POLL_PRI): Likewise.
5874         (POLL_HUP): Likewise.
5875         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5876         (ILL_ILLOPN): Likewise.
5877         (ILL_ILLADR): Likewise.
5878         (ILL_ILLTRP): Likewise.
5879         (ILL_PRVOPC): Likewise.
5880         (ILL_PRVREG): Likewise.
5881         (ILL_COPROC): Likewise.
5882         (ILL_BADSTK): Likewise.
5883         (FPE_INTDIV): Likewise.
5884         (FPE_INTOVF): Likewise.
5885         (FPE_FLTDIV): Likewise.
5886         (FPE_FLTOVF): Likewise.
5887         (FPE_FLTUND): Likewise.
5888         (FPE_FLTRES): Likewise.
5889         (FPE_FLTINV): Likewise.
5890         (FPE_FLTSUB): Likewise.
5891         (SEGV_MAPERR): Likewise.
5892         (SEGV_ACCERR): Likewise.
5893         (BUS_ADRALN): Likewise.
5894         (BUS_ADRERR): Likewise.
5895         (BUS_OBJERR): Likewise.
5896         (BUS_MCEERR_AR): Likewise.
5897         (BUS_MCEERR_AO): Likewise.
5898         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5899         (TRAP_TRACE): Likewise.
5900         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5901         __USE_XOPEN2K8].
5902         (CLD_KILLED): Likewise.
5903         (CLD_DUMPED): Likewise.
5904         (CLD_TRAPPED): Likewise.
5905         (CLD_STOPPED): Likewise.
5906         (CLD_CONTINUED): Likewise.
5907         (POLL_IN): Likewise.
5908         (POLL_OUT): Likewise.
5909         (POLL_MSG): Likewise.
5910         (POLL_ERR): Likewise.
5911         (POLL_PRI): Likewise.
5912         (POLL_HUP): Likewise.
5913         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5914         (ILL_ILLOPN): Likewise.
5915         (ILL_ILLADR): Likewise.
5916         (ILL_ILLTRP): Likewise.
5917         (ILL_PRVOPC): Likewise.
5918         (ILL_PRVREG): Likewise.
5919         (ILL_COPROC): Likewise.
5920         (ILL_BADSTK): Likewise.
5921         (FPE_INTDIV): Likewise.
5922         (FPE_INTOVF): Likewise.
5923         (FPE_FLTDIV): Likewise.
5924         (FPE_FLTOVF): Likewise.
5925         (FPE_FLTUND): Likewise.
5926         (FPE_FLTRES): Likewise.
5927         (FPE_FLTINV): Likewise.
5928         (FPE_FLTSUB): Likewise.
5929         (SEGV_MAPERR): Likewise.
5930         (SEGV_ACCERR): Likewise.
5931         (BUS_ADRALN): Likewise.
5932         (BUS_ADRERR): Likewise.
5933         (BUS_OBJERR): Likewise.
5934         (BUS_MCEERR_AR): Likewise.
5935         (BUS_MCEERR_AO): Likewise.
5936         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5937         (TRAP_TRACE): Likewise.
5938         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5939         __USE_XOPEN2K8].
5940         (CLD_KILLED): Likewise.
5941         (CLD_DUMPED): Likewise.
5942         (CLD_TRAPPED): Likewise.
5943         (CLD_STOPPED): Likewise.
5944         (CLD_CONTINUED): Likewise.
5945         (POLL_IN): Likewise.
5946         (POLL_OUT): Likewise.
5947         (POLL_MSG): Likewise.
5948         (POLL_ERR): Likewise.
5949         (POLL_PRI): Likewise.
5950         (POLL_HUP): Likewise.
5951         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5952         (ILL_ILLOPN): Likewise.
5953         (ILL_ILLADR): Likewise.
5954         (ILL_ILLTRP): Likewise.
5955         (ILL_PRVOPC): Likewise.
5956         (ILL_PRVREG): Likewise.
5957         (ILL_COPROC): Likewise.
5958         (ILL_BADSTK): Likewise.
5959         (FPE_INTDIV): Likewise.
5960         (FPE_INTOVF): Likewise.
5961         (FPE_FLTDIV): Likewise.
5962         (FPE_FLTOVF): Likewise.
5963         (FPE_FLTUND): Likewise.
5964         (FPE_FLTRES): Likewise.
5965         (FPE_FLTINV): Likewise.
5966         (FPE_FLTSUB): Likewise.
5967         (SEGV_MAPERR): Likewise.
5968         (SEGV_ACCERR): Likewise.
5969         (BUS_ADRALN): Likewise.
5970         (BUS_ADRERR): Likewise.
5971         (BUS_OBJERR): Likewise.
5972         (BUS_MCEERR_AR): Likewise.
5973         (BUS_MCEERR_AO): Likewise.
5974         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5975         (TRAP_TRACE): Likewise.
5976         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5977         __USE_XOPEN2K8].
5978         (CLD_KILLED): Likewise.
5979         (CLD_DUMPED): Likewise.
5980         (CLD_TRAPPED): Likewise.
5981         (CLD_STOPPED): Likewise.
5982         (CLD_CONTINUED): Likewise.
5983         (POLL_IN): Likewise.
5984         (POLL_OUT): Likewise.
5985         (POLL_MSG): Likewise.
5986         (POLL_ERR): Likewise.
5987         (POLL_PRI): Likewise.
5988         (POLL_HUP): Likewise.
5989         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5990         (ILL_ILLOPN): Likewise.
5991         (ILL_ILLADR): Likewise.
5992         (ILL_ILLTRP): Likewise.
5993         (ILL_PRVOPC): Likewise.
5994         (ILL_PRVREG): Likewise.
5995         (ILL_COPROC): Likewise.
5996         (ILL_BADSTK): Likewise.
5997         (ILL_DBLFLT): Likewise.
5998         (ILL_HARDWALL): Likewise.
5999         (FPE_INTDIV): Likewise.
6000         (FPE_INTOVF): Likewise.
6001         (FPE_FLTDIV): Likewise.
6002         (FPE_FLTOVF): Likewise.
6003         (FPE_FLTUND): Likewise.
6004         (FPE_FLTRES): Likewise.
6005         (FPE_FLTINV): Likewise.
6006         (FPE_FLTSUB): Likewise.
6007         (SEGV_MAPERR): Likewise.
6008         (SEGV_ACCERR): Likewise.
6009         (BUS_ADRALN): Likewise.
6010         (BUS_ADRERR): Likewise.
6011         (BUS_OBJERR): Likewise.
6012         (BUS_MCEERR_AR): Likewise.
6013         (BUS_MCEERR_AO): Likewise.
6014         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6015         (TRAP_TRACE): Likewise.
6016         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6017         __USE_XOPEN2K8].
6018         (CLD_KILLED): Likewise.
6019         (CLD_DUMPED): Likewise.
6020         (CLD_TRAPPED): Likewise.
6021         (CLD_STOPPED): Likewise.
6022         (CLD_CONTINUED): Likewise.
6023         (POLL_IN): Likewise.
6024         (POLL_OUT): Likewise.
6025         (POLL_MSG): Likewise.
6026         (POLL_ERR): Likewise.
6027         (POLL_PRI): Likewise.
6028         (POLL_HUP): Likewise.
6029         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
6030         (ILL_ILLOPN): Likewise.
6031         (ILL_ILLADR): Likewise.
6032         (ILL_ILLTRP): Likewise.
6033         (ILL_PRVOPC): Likewise.
6034         (ILL_PRVREG): Likewise.
6035         (ILL_COPROC): Likewise.
6036         (ILL_BADSTK): Likewise.
6037         (FPE_INTDIV): Likewise.
6038         (FPE_INTOVF): Likewise.
6039         (FPE_FLTDIV): Likewise.
6040         (FPE_FLTOVF): Likewise.
6041         (FPE_FLTUND): Likewise.
6042         (FPE_FLTRES): Likewise.
6043         (FPE_FLTINV): Likewise.
6044         (FPE_FLTSUB): Likewise.
6045         (SEGV_MAPERR): Likewise.
6046         (SEGV_ACCERR): Likewise.
6047         (BUS_ADRALN): Likewise.
6048         (BUS_ADRERR): Likewise.
6049         (BUS_OBJERR): Likewise.
6050         (BUS_MCEERR_AR): Likewise.
6051         (BUS_MCEERR_AO): Likewise.
6052         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6053         (TRAP_TRACE): Likewise.
6054         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6055         __USE_XOPEN2K8].
6056         (CLD_KILLED): Likewise.
6057         (CLD_DUMPED): Likewise.
6058         (CLD_TRAPPED): Likewise.
6059         (CLD_STOPPED): Likewise.
6060         (CLD_CONTINUED): Likewise.
6061         (POLL_IN): Likewise.
6062         (POLL_OUT): Likewise.
6063         (POLL_MSG): Likewise.
6064         (POLL_ERR): Likewise.
6065         (POLL_PRI): Likewise.
6066         (POLL_HUP): Likewise.
6067         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6068         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6069
6070         [BZ #16670]
6071         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6072         before #include of <time.h>.
6073         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6074         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6075         (test-xfail-UNIX98/sched.h/conform): Likewise.
6076
6077 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6078
6079         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6080         error absence of trapping exception support.
6081         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6082
6083 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6084
6085         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6086         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6087         * timezone/Makefile (testdata): Move definition above include of
6088         Rules.
6089         (test-zones): New variable.
6090         (tests-special): Add zone files.
6091         (build-testdata): Use $(evaluate-test).
6092
6093         * elf/Makefile (tests-special): Rename tests to end with .out.
6094         ($(objpfx)noload-mem): Likewise.
6095         ($(objpfx)tst-leaks1-mem): Likewise.
6096         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6097         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6098         $(objpfx)test-iconvconfig.out.
6099         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6100         set -e inside subshell and redirect output to file.
6101         * iconvdata/Makefile (generated): Rename tests to end with .out.
6102         Correct type.
6103         (tests-special): Rename tests to end with .out.
6104         ($(objpfx)mtrace-tst-loading): Likewise.
6105         * intl/Makefile (generated): Likewise.
6106         (tests-special): Likewise.
6107         ($(objpfx)mtrace-tst-gettext): Likewise.
6108         * misc/Makefile (generated): Likewise.
6109         (tests-special): Likewise.
6110         ($(objpfx)tst-error1-mem): Likewise.
6111         * nptl/Makefile (tests-special): Likewise.
6112         ($(objpfx)tst-stack3-mem): Likewise.
6113         (generated): Likewise.
6114         * posix/Makefile (generated): Likewise.
6115         (tests-special): Likewise.
6116         (xtests-special): Likewise.
6117         ($(objpfx)tst-fnmatch-mem): Likewise.
6118         ($(objpfx)bug-regex2-mem): Likewise.
6119         ($(objpfx)bug-regex14-mem): Likewise.
6120         ($(objpfx)bug-regex21-mem): Likewise.
6121         ($(objpfx)bug-regex31-mem): Likewise.
6122         ($(objpfx)tst-vfork3-mem): Likewise.
6123         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6124         ($(objpfx)tst-pcre-mem): Likewise.
6125         ($(objpfx)tst-boost-mem): Likewise.
6126         ($(objpfx)bug-ga2-mem): Likewise.
6127         ($(objpfx)bug-glob2-mem): Likewise.
6128         * resolv/Makefile (generate): Likewise.
6129         (tests-special): Likewise.
6130         (xtests-special): Likewise.
6131         (generated): Likewise.
6132         ($(objpfx)mtrace-tst-leaks): Likewise.
6133         ($(objpfx)mtrace-tst-leaks2): Likewise.
6134
6135         * scripts/merge-test-results.sh: New file.
6136         * Makefile (tests-special-notdir): New variable.
6137         (tests): Run merge-test-results.sh.
6138         (xtests): Likewise.
6139         * Rules (tests-special-notdir): New variable.
6140         (xtests-special-notdir): Likewise.
6141         (tests): Run merge-test-results.sh
6142         (xtests): Likewise.
6143
6144         * Makeconfig (test-xfail-name): New variable.
6145         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6146         compute variable name for expected failures.
6147         * conform/Makefile (conformtest-headers-data): New variable.
6148         (conformtest-standards): Likewise.
6149         (conformtest-headers-ISO): Likewise.
6150         (conformtest-headers-ISO99): Likewise.
6151         (conformtest-headers-ISO11): Likewise.
6152         (conformtest-headers-POSIX): Likewise.
6153         (conformtest-headers-XPG3): Likewise.
6154         (conformtest-headers-XPG4): Likewise.
6155         (conformtest-headers-UNIX98): Likewise.
6156         (conformtest-headers-XOPEN2K): Likewise.
6157         (conformtest-headers-POSIX2008): Likewise.
6158         (conformtest-headers-XOPEN2K8): Likewise.
6159         (conformtest-header-list-base): Likewise.
6160         (conformtest-header-list-tests): Likewise.
6161         (conformtest-header-base): Likewise.
6162         (conformtest-header-tests): Likewise.
6163         (tests-special): Add $(conformtest-header-list-tests).  If
6164         [$(fast-check) && !$(cross-compiling)], add
6165         $(conformtest-header-tests) instead of
6166         $(objpfx)run-conformtest.out.
6167         (generated): Add $(conformtest-header-list-base).  If
6168         [$(fast-check) && !$(cross-compiling)], add
6169         $(conformtest-header-base).  Remove previous setting.
6170         ($(conformtest-header-list-tests)): New target.
6171         (test-xfail-run-conformtest): Remove variable.
6172         ($(objpfx)run-conformtest.out): Remove target.
6173         (test-xfail-ISO11/complex.h/conform): New variable.
6174         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6175         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6176         (test-xfail-XPG3/varargs.h/conform): Likewise.
6177         (test-xfail-XPG4/varargs.h/conform): Likewise.
6178         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6179         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6180         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6181         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6182         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6183         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6184         (test-xfail-XPG3/ftw.h/conform): Likewise.
6185         (test-xfail-XPG3/grp.h/conform): Likewise.
6186         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6187         (test-xfail-XPG3/limits.h/conform): Likewise.
6188         (test-xfail-XPG3/pwd.h/conform): Likewise.
6189         (test-xfail-XPG3/search.h/conform): Likewise.
6190         (test-xfail-XPG3/signal.h/conform): Likewise.
6191         (test-xfail-XPG3/stdio.h/conform): Likewise.
6192         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6193         (test-xfail-XPG3/string.h/conform): Likewise.
6194         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6195         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6196         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6197         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6198         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6199         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6200         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6201         (test-xfail-XPG3/termios.h/conform): Likewise.
6202         (test-xfail-XPG3/time.h/conform): Likewise.
6203         (test-xfail-XPG3/unistd.h/conform): Likewise.
6204         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6205         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6206         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6207         (test-xfail-XPG4/netdb.h/conform): Likewise.
6208         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6209         (test-xfail-XPG4/signal.h/conform): Likewise.
6210         (test-xfail-XPG4/stdio.h/conform): Likewise.
6211         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6212         (test-xfail-XPG4/stropts.h/conform): Likewise.
6213         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6214         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6215         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6216         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6217         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6218         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6219         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6220         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6221         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6222         (test-xfail-XPG4/termios.h/conform): Likewise.
6223         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6224         (test-xfail-XPG4/unistd.h/conform): Likewise.
6225         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6226         (test-xfail-POSIX/sched.h/conform): Likewise.
6227         (test-xfail-POSIX/signal.h/conform): Likewise.
6228         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6229         (test-xfail-POSIX/tar.h/conform): Likewise.
6230         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6231         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6232         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6233         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6234         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6235         (test-xfail-UNIX98/sched.h/conform): Likewise.
6236         (test-xfail-UNIX98/signal.h/conform): Likewise.
6237         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6238         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6239         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6240         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6241         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6242         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6243         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6244         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6245         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6246         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6247         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6248         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6249         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6250         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6251         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6252         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6253         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6254         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6255         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6256         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6257         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6258         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6259         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6260         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6261         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6262         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6263         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6264         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6265         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6266         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6267         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6268         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6269         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6270         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6271         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6272         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6273         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6274         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6275         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6276         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6277         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6278         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6279         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6280         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6281         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6282         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6283         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6284         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6285         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6286         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6287         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6288         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6289         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6290         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6291         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6292         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6293         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6294         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6295         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6296         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6297         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6298         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6299         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6300         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6301         (conformtest-cc-flags): Likewise.
6302         ($(conformtest-header-tests): New target.
6303         * conform/check-header-lists.sh: New file.
6304         * conform/run-conformtest.sh: Remove.
6305
6306         * conform/conformtest.pl: Allow ' and \ in values given for
6307         constants.
6308         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6309         inclusion.
6310         [POSIX] (sys/types.h): Likewise.
6311         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6312         inclusion.
6313         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6314         inclusion.
6315         * conform/data/signal.h-data (SIGIO): Remove expectation.
6316         [XPG3] (SIGBUS): Do not expect.
6317         [POSIX || XPG3] (SIGPOLL): Likewise.
6318         [POSIX || XPG3] (SIGPROF): Likewise.
6319         [POSIX || XPG3] (SIGSYS): Likewise.
6320         [XPG3] (SIGTRAP): Likewise.
6321         [POSIX || XPG3] (SIGURG): Likewise.
6322         [POSIX || XPG3] (SIGVTALRM): Likewise.
6323         [POSIX || XPG3] (SIGXCPU): Likewise.
6324         [POSIX || XPG3] (SIGXFSZ): Likewise.
6325         [POSIX] (SA_SIGINFO): Expect.
6326         [XPG3] (siginfo_t): Do not expect type or contents.
6327         [POSIX] (si_pid): Do not expect element.
6328         [POSIX] (si_uid): Likewise.
6329         [POSIX] (si_addr): Likewise.
6330         [POSIX] (si_status): Likewise.
6331         [POSIX] (si_band): Likewise.
6332         [XPG4] (si_value): Likewise.
6333         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6334         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6335         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6336         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6337         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6338         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6339         [POSIX || XPG3] (ILL_COPROC): Likewise.
6340         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6341         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6342         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6343         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6344         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6345         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6346         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6347         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6348         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6349         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6350         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6351         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6352         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6353         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6354         [POSIX || XPG3] (CLD_EXITED): Likewise.
6355         [POSIX || XPG3] (CLD_KILLED): Likewise.
6356         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6357         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6358         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6359         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6360         [POSIX || XPG3] (POLL_IN): Likewise.
6361         [POSIX || XPG3] (POLL_OUT): Likewise.
6362         [POSIX || XPG3] (POLL_MSG): Likewise.
6363         [POSIX || XPG3] (POLL_ERR): Likewise.
6364         [POSIX || XPG3] (POLL_PRI): Likewise.
6365         [POSIX || XPG3] (POLL_HUP): Likewise.
6366         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6367         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6368         (SIG*): Do not allow.
6369         [XPG3] (si_*): Likewise.
6370         [XPG3] (SI_*): Likewise.
6371         [XPG3 || XPG4] (sigev_*): Likewise.
6372         [XPG3 || XPG4] (SIGEV_*): Likewise.
6373         [XPG3 || XPG4] (sival_*): Likewise.
6374         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6375         [POSIX || XPG3] (BUS_*): Likewise.
6376         [POSIX || XPG3] (CLD_*): Likewise.
6377         [POSIX || XPG3] (FPE_*): Likewise.
6378         [POSIX || XPG3] (ILL_*): Likewise.
6379         [POSIX || XPG3] (POLL_*): Likewise.
6380         [POSIX || XPG3] (SEGV_*): Likewise.
6381         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6382         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6383         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6384         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6385         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6386         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6387         Specify type and value.
6388         (TVERSLEN): Likewise.
6389         (REGTYPE): Likewise.
6390         (AREGTYPE): Likewise.
6391         (LNKTYPE): Likewise.
6392         (SYMTYPE): Likewise.
6393         (CHRTYPE): Likewise.
6394         (BLKTYPE): Likewise.
6395         (DIRTYPE): Likewise.
6396         (FIFOTYPE): Likewise.
6397         (CONTTYPE): Likewise.
6398         (TSUID): Likewise.
6399         (TSGID): Likewise.
6400         (TSVTX): Likewise.
6401         (TUREAD): Likewise.
6402         (TUWRITE): Likewise.
6403         (TUEXEC): Likewise.
6404         (TGREAD): Likewise.
6405         (TGWRITE): Likewise.
6406         (TGEXEC): Likewise.
6407         (TOREAD): Likewise.
6408         (TOWRITE): Likewise.
6409         (TOEXEC): Likewise.
6410         [POSIX] (TSVTX): Expect constant.
6411
6412 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
6413
6414         * Makefile (tests): Change dependencies to ....
6415         (tests-special): ... additions to this variable.
6416         (tests): Depend on $(tests-special).
6417         * Makerules (check-abi-list): New variable.
6418         (check-abi): Depend on $(check-abi-list).
6419         [$(subdir) = elf] (tests-special): Add
6420         $(objpfx)check-abi-libc.out.
6421         [$(build-shared) = yes && subdir] (tests-special): Add
6422         $(check-abi-list).
6423         [$(build-shared) = yes && subdir] (tests): Do not depend on
6424         check-abi.
6425         * Rules (tests): Depend on $(tests-special).
6426         (xtests): Depend on $(xtests-special).
6427         * catgets/Makefile (tests): Change dependencies to ....
6428         (tests-special): ... additions to this variable.
6429         * conform/Makefile (tests): Change dependencies to ....
6430         (tests-special): ... additions to this variable.
6431         * elf/Makefile (tests): Change dependencies to ....
6432         (tests-special): ... additions to this variable.
6433         * grp/Makefile (tests): Change dependencies to ....
6434         (tests-special): ... additions to this variable.
6435         * iconv/Makefile (xtests): Change dependencies to ....
6436         (xtests-special): ... additions to this variable.
6437         * iconvdata/Makefile (tests): Change dependencies to ....
6438         (tests-special): ... additions to this variable.
6439         * intl/Makefile (tests): Change dependencies to ....
6440         (tests-special): ... additions to this variable.  Also add
6441         $(objpfx)tst-gettext.out.
6442         * io/Makefile (tests): Change dependencies to ....
6443         (tests-special): ... additions to this variable.
6444         * libio/Makefile (tests): Change dependencies to ....
6445         (tests-special): ... additions to this variable.
6446         * malloc/Makefile (tests): Change dependencies to ....
6447         (tests-special): ... additions to this variable.
6448         * misc/Makefile (tests): Change dependencies to ....
6449         (tests-special): ... additions to this variable.
6450         * nptl/Makefile (tests): Change dependencies to ....
6451         (tests-special): ... additions to this variable.
6452         * nptl_db/Makefile (tests): Change dependencies to ....
6453         (tests-special): ... additions to this variable.
6454         * posix/Makefile (tests): Change dependencies to ....
6455         (tests-special): ... additions to this variable.
6456         (xtests): Change dependencies to ....
6457         (xtests-special): ... additions to this variable.
6458         * resolv/Makefile (tests): Change dependencies to ....
6459         (tests-special): ... additions to this variable.
6460         (xtests): Change dependencies to ....
6461         (xtests-special): ... additions to this variable.
6462         * stdio-common/Makefile (tests): Change dependencies to ....
6463         (tests-special): ... additions to this variable.
6464         (do-tst-unbputc): Remove target.
6465         (do-tst-printf): Likewise.
6466         * stdlib/Makefile (tests): Change dependencies to ....
6467         (tests-special): ... additions to this variable.
6468         * string/Makefile (tests): Change dependencies to ....
6469         (tests-special): ... additions to this variable.
6470         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6471         (tests-special): ... additions to this variable.
6472
6473         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6474         whole file.
6475         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6476         whole file.
6477         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6478         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6479
6480         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6481         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6482         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6483         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6484         * conform/data/libgen.h-data [XPG3]: Likewise.
6485         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6486         * conform/data/ndbm.h-data [XPG3]: Likewise.
6487         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6488         * conform/data/netdb.h-data [XPG3]: Likewise.
6489         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6490         * conform/data/poll.h-data [XPG3]: Likewise.
6491         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6492         * conform/data/strings.h-data [XPG3]: Likewise.
6493         * conform/data/stropts.h-data [XPG3]: Likewise.
6494         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6495         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6496         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6497         Likewise.
6498         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6499         * conform/data/sys/time.h-data [XPG3]: Likewise.
6500         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6501         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6502         * conform/data/sys/un.h-data [XPG3]: Likewise.
6503         * conform/data/syslog.h-data [XPG3]: Likewise.
6504         * conform/data/ucontext.h-data [XPG3]: Likewise.
6505         * conform/data/utmpx.h-data [XPG3]: Likewise.
6506         * conform/data/varargs.h-data [UNIX98]: Enable file.
6507
6508         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6509
6510         * math/libm-test.inc (struct test_f_f_data): Move expected results
6511         into structure for each rounding mode.
6512         (struct test_ff_f_data): Likewise.
6513         (struct test_ff_f_data_nexttoward): Likewise.
6514         (struct test_fi_f_data): Likewise.
6515         (struct test_fl_f_data): Likewise.
6516         (struct test_if_f_data): Likewise.
6517         (struct test_fff_f_data): Likewise.
6518         (struct test_c_f_data): Likewise.
6519         (struct test_f_f1_data): Likewise.
6520         (struct test_fF_f1_data): Likewise.
6521         (struct test_ffI_f1_data): Likewise.
6522         (struct test_c_c_data): Likewise.
6523         (struct test_cc_c_data): Likewise.
6524         (struct test_f_i_data): Likewise.
6525         (struct test_ff_i_data): Likewise.
6526         (struct test_f_l_data): Likewise.
6527         (struct test_f_L_data): Likewise.
6528         (struct test_fFF_11_data): Likewise.
6529         (RM_): New macro.
6530         (RM_FE_DOWNWARD): Likewise.
6531         (RM_FE_TONEAREST): Likewise.
6532         (RM_FE_TOWARDZERO): Likewise.
6533         (RM_FE_UPWARD): Likewise.
6534         (RUN_TEST_LOOP_f_f): Update references to expected results.
6535         (RUN_TEST_LOOP_2_f): Likewise.
6536         (RUN_TEST_LOOP_fff_f): Likewise.
6537         (RUN_TEST_LOOP_c_f): Likewise.
6538         (RUN_TEST_LOOP_f_f1): Likewise.
6539         (RUN_TEST_LOOP_fF_f1): Likewise.
6540         (RUN_TEST_LOOP_fI_f1): Likewise.
6541         (RUN_TEST_LOOP_ffI_f1): Likewise.
6542         (RUN_TEST_LOOP_c_c): Likewise.
6543         (RUN_TEST_LOOP_cc_c): Likewise.
6544         (RUN_TEST_LOOP_f_i): Likewise.
6545         (RUN_TEST_LOOP_f_i_tg): Likewise.
6546         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6547         (RUN_TEST_LOOP_f_b): Likewise.
6548         (RUN_TEST_LOOP_f_b_tg): Likewise.
6549         (RUN_TEST_LOOP_f_l): Likewise.
6550         (RUN_TEST_LOOP_f_L): Likewise.
6551         (RUN_TEST_LOOP_fFF_11): Likewise.
6552         * math/gen-libm-test.pl (parse_args): Output four copies of
6553         expected results for each test.
6554
6555         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6556         (__ASSUME_UTIMES): Remove.
6557         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6558         (__ASSUME_UTIMES): Likewise.
6559
6560         * math/gen-auto-libm-tests.c: Update comment on output format.
6561         (output_for_one_input_case): Generate before-rounding and
6562         after-rounding information as conditions on output flags not
6563         floating-point format.
6564         * math/auto-libm-test-out: Regenerated.
6565         * math/gen-libm-test.pl (cond_value): New function.
6566         (or_cond_value): Use cond_value.
6567         (generate_testfile): Handle conditional exceptions.
6568
6569 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6570
6571         * math/libm-test.inc (max_valid_error): New variable.
6572         (init_max_error): Take new argument specifying whether function
6573         results are exactly determined.  Set max_valid_error and bound
6574         other variables for errors based on this argument.
6575         (set_max_error): Do not record results above max_valid_error.
6576         (check_float_internal): Only accept errors of up to 0.5ulps if
6577         also at most max_valid_error.
6578         (START): Take new argument EXACT and pass it to init_max_error.
6579         (acos_test): Update call to START.
6580         (acos_test_tonearest): Likewise.
6581         (acos_test_towardzero): Likewise.
6582         (acos_test_downward): Likewise.
6583         (acos_test_upward): Likewise.
6584         (acosh_test): Likewise.
6585         (asin_test): Likewise.
6586         (asin_test_tonearest): Likewise.
6587         (asin_test_towardzero): Likewise.
6588         (asin_test_downward): Likewise.
6589         (asin_test_upward): Likewise.
6590         (asinh_test): Likewise.
6591         (atan_test): Likewise.
6592         (atanh_test): Likewise.
6593         (atan2_test): Likewise.
6594         (cabs_test): Likewise.
6595         (cacos_test): Likewise.
6596         (cacosh_test): Likewise.
6597         (carg_test): Likewise.
6598         (casin_test): Likewise.
6599         (casinh_test): Likewise.
6600         (catan_test): Likewise.
6601         (catanh_test): Likewise.
6602         (cbrt_test): Likewise.
6603         (ccos_test): Likewise.
6604         (ccosh_test): Likewise.
6605         (ceil_test): Likewise.
6606         (cexp_test): Likewise.
6607         (cimag_test): Likewise.
6608         (clog_test): Likewise.
6609         (clog10_test): Likewise.
6610         (conj_test): Likewise.
6611         (copysign_test): Likewise.
6612         (cos_test): Likewise.
6613         (cos_test_tonearest): Likewise.
6614         (cos_test_towardzero): Likewise.
6615         (cos_test_downward): Likewise.
6616         (cos_test_upward): Likewise.
6617         (cosh_test): Likewise.
6618         (cosh_test_tonearest): Likewise.
6619         (cosh_test_towardzero): Likewise.
6620         (cosh_test_downward): Likewise.
6621         (cosh_test_upward): Likewise.
6622         (cpow_test): Likewise.
6623         (cproj_test): Likewise.
6624         (creal_test): Likewise.
6625         (csin_test): Likewise.
6626         (csinh_test): Likewise.
6627         (csqrt_test): Likewise.
6628         (ctan_test): Likewise.
6629         (ctan_test_tonearest): Likewise.
6630         (ctan_test_towardzero): Likewise.
6631         (ctan_test_downward): Likewise.
6632         (ctan_test_upward): Likewise.
6633         (ctanh_test): Likewise.
6634         (ctanh_test_tonearest): Likewise.
6635         (ctanh_test_towardzero): Likewise.
6636         (ctanh_test_downward): Likewise.
6637         (ctanh_test_upward): Likewise.
6638         (erf_test): Likewise.
6639         (erfc_test): Likewise.
6640         (exp_test): Likewise.
6641         (exp_test_tonearest): Likewise.
6642         (exp_test_towardzero): Likewise.
6643         (exp_test_downward): Likewise.
6644         (exp_test_upward): Likewise.
6645         (exp10_test): Likewise.
6646         (exp10_test_tonearest): Likewise.
6647         (exp10_test_towardzero): Likewise.
6648         (exp10_test_downward): Likewise.
6649         (exp10_test_upward): Likewise.
6650         (pow10_test): Likewise.
6651         (exp2_test): Likewise.
6652         (expm1_test): Likewise.
6653         (expm1_test_tonearest): Likewise.
6654         (expm1_test_towardzero): Likewise.
6655         (expm1_test_downward): Likewise.
6656         (expm1_test_upward): Likewise.
6657         (fabs_test): Likewise.
6658         (fdim_test): Likewise.
6659         (floor_test): Likewise.
6660         (fma_test): Likewise.
6661         (fma_test_towardzero): Likewise.
6662         (fma_test_downward): Likewise.
6663         (fma_test_upward): Likewise.
6664         (fmax_test): Likewise.
6665         (fmin_test): Likewise.
6666         (fmod_test): Likewise.
6667         (fpclassify_test): Likewise.
6668         (frexp_test): Likewise.
6669         (hypot_test): Likewise.
6670         (ilogb_test): Likewise.
6671         (isfinite_test): Likewise.
6672         (finite_test): Likewise.
6673         (isgreater_test): Likewise.
6674         (isgreaterequal_test): Likewise.
6675         (isinf_test): Likewise.
6676         (isless_test): Likewise.
6677         (islessequal_test): Likewise.
6678         (islessgreater_test): Likewise.
6679         (isnan_test): Likewise.
6680         (isnormal_test): Likewise.
6681         (issignaling_test): Likewise.
6682         (isunordered_test): Likewise.
6683         (j0_test): Likewise.
6684         (j1_test): Likewise.
6685         (jn_test): Likewise.
6686         (ldexp_test): Likewise.
6687         (lgamma_test): Likewise.
6688         (gamma_test): Likewise.
6689         (lrint_test): Likewise.
6690         (lrint_test_tonearest): Likewise.
6691         (lrint_test_towardzero): Likewise.
6692         (lrint_test_downward): Likewise.
6693         (lrint_test_upward): Likewise.
6694         (llrint_test): Likewise.
6695         (llrint_test_tonearest): Likewise.
6696         (llrint_test_towardzero): Likewise.
6697         (llrint_test_downward): Likewise.
6698         (llrint_test_upward): Likewise.
6699         (log_test): Likewise.
6700         (log10_test): Likewise.
6701         (log1p_test): Likewise.
6702         (log2_test): Likewise.
6703         (logb_test): Likewise.
6704         (logb_test_downward): Likewise.
6705         (lround_test): Likewise.
6706         (llround_test): Likewise.
6707         (modf_test): Likewise.
6708         (nearbyint_test): Likewise.
6709         (nextafter_test): Likewise.
6710         (nexttoward_test): Likewise.
6711         (pow_test): Likewise.
6712         (pow_test_tonearest): Likewise.
6713         (pow_test_towardzero): Likewise.
6714         (pow_test_downward): Likewise.
6715         (pow_test_upward): Likewise.
6716         (remainder_test): Likewise.
6717         (drem_test): Likewise.
6718         (remainder_test_tonearest): Likewise.
6719         (drem_test_tonearest): Likewise.
6720         (remainder_test_towardzero): Likewise.
6721         (drem_test_towardzero): Likewise.
6722         (remainder_test_downward): Likewise.
6723         (drem_test_downward): Likewise.
6724         (remainder_test_upward): Likewise.
6725         (drem_test_upward): Likewise.
6726         (remquo_test): Likewise.
6727         (rint_test): Likewise.
6728         (rint_test_tonearest): Likewise.
6729         (rint_test_towardzero): Likewise.
6730         (rint_test_downward): Likewise.
6731         (rint_test_upward): Likewise.
6732         (round_test): Likewise.
6733         (scalb_test): Likewise.
6734         (scalbn_test): Likewise.
6735         (scalbln_test): Likewise.
6736         (signbit_test): Likewise.
6737         (sin_test): Likewise.
6738         (sin_test_tonearest): Likewise.
6739         (sin_test_towardzero): Likewise.
6740         (sin_test_downward): Likewise.
6741         (sin_test_upward): Likewise.
6742         (sincos_test): Likewise.
6743         (sinh_test): Likewise.
6744         (sinh_test_tonearest): Likewise.
6745         (sinh_test_towardzero): Likewise.
6746         (sinh_test_downward): Likewise.
6747         (sinh_test_upward): Likewise.
6748         (sqrt_test): Likewise.
6749         (sqrt_test_tonearest): Likewise.
6750         (sqrt_test_towardzero): Likewise.
6751         (sqrt_test_downward): Likewise.
6752         (sqrt_test_upward): Likewise.
6753         (tan_test): Likewise.
6754         (tan_test_tonearest): Likewise.
6755         (tan_test_towardzero): Likewise.
6756         (tan_test_downward): Likewise.
6757         (tan_test_upward): Likewise.
6758         (tanh_test): Likewise.
6759         (tgamma_test): Likewise.
6760         (trunc_test): Likewise.
6761         (y0_test): Likewise.
6762         (y1_test): Likewise.
6763         (yn_test): Likewise.
6764         (significand_test): Likewise.
6765
6766         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6767         individual tests in comment.
6768         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6769         (prev_max_error): New variable.
6770         (prev_real_max_error): Likewise.
6771         (prev_imag_max_error): Likewise.
6772         (compare_ulp_data): Don't refer to test names in comment.
6773         (find_test_ulps): Remove function.
6774         (find_function_ulps): Likewise.
6775         (find_complex_function_ulps): Likewise.
6776         (init_max_error): Take function name as argument.  Look up ulps
6777         for that function.
6778         (print_ulps): Remove function.
6779         (print_max_error): Use prev_max_error instead of calling
6780         find_function_ulps.
6781         (print_complex_max_error): Use prev_real_max_error and
6782         prev_imag_max_error instead of calling find_complex_function_ulps.
6783         (check_float_internal): Take max_ulp parameter instead of calling
6784         find_test_ulps.  Don't call print_ulps.
6785         (check_float): Update call to check_float_internal.
6786         (check_complex): Update calls to check_float_internal.
6787         (START): Pass argument to init_max_error.
6788         * math/gen-libm-test.pl (%results): Don't include "kind"
6789         information.
6790         (parse_ulps): Don't handle ulps of individual tests.
6791         (print_ulps_file): Likewise.
6792         (output_ulps): Likewise.
6793         * math/README.libm-test: Update.
6794         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6795         individual tests.
6796         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6797         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6798         * sysdeps/arm/libm-test-ulps: Likewise.
6799         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6800         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6801         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6802         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6803         * sysdeps/microblaze/libm-test-ulps: Likewise.
6804         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6805         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6806         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6807         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6808         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6809         * sysdeps/sh/libm-test-ulps: Likewise.
6810         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6811         * sysdeps/tile/libm-test-ulps: Likewise.
6812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6813
6814 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6815
6816         * math/libm-test.inc (print_complex_max_error): Check separately
6817         whether real and imaginary errors are within allowed range and
6818         pass 0 to print_complex_function_ulps instead of value within
6819         allowed range.
6820
6821 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6822
6823         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6824         formatting.
6825         (get_handles_fopen): Likewise.
6826         (do_write_test): Likewise.
6827
6828         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6829
6830         * libio/fileops.c (do_ftell): Use cached offset when
6831         available.
6832         * libio/iofwide.c (do_ftell_wide): Likewise.
6833         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6834         _IO_file_attach.
6835         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6836
6837         [BZ #16532]
6838         * libio/libioP.h (get_file_offset): New function.
6839         * libio/fileops.c (get_file_offset): Likewise.
6840         (do_ftell): Likewise.
6841         (_IO_new_file_seekoff): Split out ftell logic.
6842         * libio/wfileops.c (do_ftell_wide): Likewise.
6843         (_IO_wfile_seekoff): Split out ftell logic.
6844         * libio/tst-ftell-active-handler.c: New test case.
6845         * libio/Makefile (tests): Add it.
6846
6847 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6848
6849         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6850         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6851
6852 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6853
6854         [BZ #16639]
6855         * nscd/connections.c (nscd_init): Call do_exit.
6856         (start_threads): Call do_exit and notify_parent.
6857         (begin_drop_privileges): Call do_exit.
6858         (finish_drop_privileges): Likewise.
6859         * nscd/selinux.c (preserve_capabilities): Likewise.
6860         (install_real_capabilities): Likewise.
6861         (nscd_selinux_enabled): Likewise.
6862         (avc_create_thread): Likewise.
6863         (avc_alloc_lock): Likewise.
6864         (nscd_avc_init): Likewise.
6865         * nscd/nscd.c (parent_fd): New static variable.
6866         (main): Create a pipe between parent and child processes.
6867         Skip closing parent_fd.
6868         (monitor_child): New function.
6869         (do_exit): Likewise.
6870         (notify_parent): Likewise.
6871         * nscd/nscd.h (notify_parent): Likewise.
6872         (do_exit): Likewise.
6873
6874 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6875
6876         * malloc/malloc.c (__libc_calloc): Revert last change.
6877
6878 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6879
6880         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6881
6882 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6883
6884         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6885         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6886         implementation.
6887         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6888         (__libc_ifunc_impl_list): Likewise.
6889         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6890         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6891         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6892         * string/strrchr.c: Define STRRCHR.
6893
6894 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6895
6896         * benchtest/bench-strtok.c (simple_strtok): Delete.
6897         (strtok_string): Use as benchmark.
6898         * string/strtok (STRTOK): New macro.
6899
6900 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6901
6902         * manual/threads.texi: Add header and standard comments to all
6903         functions.
6904
6905         * elf/dl-lookup.c (check_match): New function.
6906         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6907         (do_lookup_x): Remove nested function check_match. Use non-nested
6908         function check_match.
6909
6910 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6911
6912         * csu/Makefile (generated, before-compile): Use += rather than =.
6913         * catgets/Makefile (generated, generated-dirs): Likewise.
6914         * debug/Makefile (generated): Likewise.
6915         * dlfcn/Makefile (generated): Likewise.
6916         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6917         * iconvdata/Makefile (before-compile, generated): Likewise.
6918         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6919         * libio/Makefile (generated): Likewise.
6920         * malloc/Makefile (generated): Likewise.
6921         * manual/Makefile (generated, generated-dirs): Likewise.
6922         * misc/Makefile (generated): Likewise.
6923         * posix/Makefile (generated): Likewise.
6924         * resolv/Makefile (generated): Likewise.
6925         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6926         * timezone/Makefile (generated, generated-dirs): Likewise.
6927
6928         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6929
6930 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6931
6932         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6933         power8 implementation.
6934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6935         file: POWER8 llround ifunc implementation.
6936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6937         (__lllround): Add POWER8 implementation.
6938         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6939         POWER8 llround implementation.
6940
6941         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6942         power8 implementation.
6943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6944         file: POWER8 llrint ifunc implementation.
6945         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6946         Add POWER8 implementation.
6947         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6948         POWER8 llrint implementation.
6949
6950         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6951         power8 implementation.
6952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6953         file: POWER8 finite ifunc implementation.
6954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6955         Add POWER8 implementation.
6956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6957         Likewise.
6958         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6959         POWER8 finite implementation.
6960         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6961
6962         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6963         power8 implementation.
6964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6965         file: POWER8 isinf ifunc implementation.
6966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6967         POWER8 implementation.
6968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6969         Likewise.
6970         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6971         isinf implementation.
6972         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6973
6974         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6975         (INIT_ARCH): Add hwcap2 initialization.
6976         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6977         power8 implementation.
6978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6979         file: POWER8 isnan ifunc implementation.
6980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6981         POWER8 implementation.
6982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6983         Likewise.
6984         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6985         isnan implementation.
6986         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6987
6988 2014-02-27  Joey Ye  <joey.ye@arm.com>
6989
6990         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6991         (_FP_NANFRAC_Q): Set to zero.
6992
6993 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6994
6995         [BZ #16623]
6996         * math/auto-libm-test-in: New test inputs.
6997         * math/auto-libm-test-out: Regenerate.
6998         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6999         and DA.
7000         (__cos): Likewise.
7001         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
7002
7003 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
7004
7005         * scripts/evaluate-test.sh: Take new argument indicating whether
7006         failure is expected.
7007         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
7008         indicating whether failure is expected.
7009         * conform/Makefile (test-xfail-run-conformtest): New variable.
7010         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
7011         level.
7012         * posix/Makefile (test-xfail-annexc): New variable.
7013         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
7014
7015 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
7016
7017         * argp/Makefile: Include Makeconfig immediately after defining
7018         subdir.
7019         * assert/Makefile: Likewise.
7020         * benchtests/Makefile: Likewise.
7021         * catgets/Makefile: Likewise.
7022         * conform/Makefile: Likewise.
7023         * crypt/Makefile: Likewise.
7024         * csu/Makefile: Likewise.
7025         (all): Remove target.
7026         * ctype/Makefile: Include Makeconfig immediately after defining
7027         subdir.
7028         * debug/Makefile: Likewise.
7029         * dirent/Makefile: Likewise.
7030         * dlfcn/Makefile: Likewise.
7031         * gmon/Makefile: Likewise.
7032         * gnulib/Makefile: Likewise.
7033         * grp/Makefile: Likewise.
7034         * gshadow/Makefile: Likewise.
7035         * hesiod/Makefile: Likewise.
7036         * hurd/Makefile: Likewise.
7037         (all): Remove target.
7038         * iconvdata/Makefile: Include Makeconfig immediately after
7039         defining subdir.
7040         * inet/Makefile: Likewise.
7041         * intl/Makefile: Likewise.
7042         * io/Makefile: Likewise.
7043         * libio/Makefile: Likewise.
7044         (all): Remove target.
7045         * locale/Makefile: Include Makeconfig immediately after defining
7046         subdir.
7047         * login/Makefile: Likewise.
7048         * mach/Makefile: Likewise.
7049         (all): Remove target.
7050         * malloc/Makefile: Include Makeconfig immediately after defining
7051         subdir.
7052         (all): Remove target.
7053         * manual/Makefile: Include Makeconfig immediately after defining
7054         subdir.
7055         * math/Makefile: Likewise.
7056         * misc/Makefile: Likewise.
7057         * nis/Makefile: Likewise.
7058         * nss/Makefile: Likewise.
7059         * po/Makefile: Likewise.
7060         (all): Remove target.
7061         * posix/Makefile: Include Makeconfig immediately after defining
7062         subdir.
7063         * pwd/Makefile: Likewise.
7064         * resolv/Makefile: Likewise.
7065         * resource/Makefile: Likewise.
7066         * rt/Makefile: Likewise.
7067         * setjmp/Makefile: Likewise.
7068         * shadow/Makefile: Likewise.
7069         * signal/Makefile: Likewise.
7070         * socket/Makefile: Likewise.
7071         * soft-fp/Makefile: Likewise.
7072         * stdio-common/Makefile: Likewise.
7073         * stdlib/Makefile: Likewise.
7074         * streams/Makefile: Likewise.
7075         * string/Makefile: Likewise.
7076         * sunrpc/Makefile: Likewise.
7077         (all): Remove target.
7078         * sysvipc/Makefile: Include Makeconfig immediately after defining
7079         subdir.
7080         * termios/Makefile: Likewise.
7081         * time/Makefile: Likewise.
7082         * timezone/Makefile: Likewise.
7083         (all): Remove target.
7084         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7085         subdir.
7086         * wctype/Makefile: Likewise.
7087
7088 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7089
7090         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7091         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7092         (libc_feholdexcept_setround_mips): Ditto.
7093         (libc_feholdsetround): New.
7094         (libc_feholdsetroundf): New.
7095         (libc_feholdsetroundl): New.
7096         (libc_feupdateenv_test_mips): New.
7097         (libc_feupdateenv_test): New.
7098         (libc_feupdateenv_testf): New.
7099         (libc_feupdateenv_testl): New.
7100         (libc_feresetround): New.
7101         (libc_feresetroundf): New.
7102         (libc_feresetroundl): New.
7103         (libc_fetestexcept_mips): New.
7104         (libc_fetestexcept): New.
7105         (libc_fetestexceptf): New.
7106         (libc_fetestexceptl): New.
7107         (HAVE_RM_CTX): New.
7108         (libc_feholdexcept_setround_mips_ctx): New.
7109         (libc_feholdexcept_setround_ctx): New.
7110         (libc_feholdexcept_setroundf_ctx): New.
7111         (libc_feholdexcept_setroundl_ctx): New.
7112         (libc_fesetenv_mips_ctx): New.
7113         (libc_fesetenv_ctx): New.
7114         (libc_fesetenv_ctxf): New.
7115         (libc_fesetenv_ctxl): New.
7116         (libc_feupdateenv_mips_ctx): New.
7117         (libc_feupdateenv_ctx): New.
7118         (libc_feupdateenvf_ctx): New.
7119         (libc_feupdateenvl_ctx): New.
7120         (libc_feholdsetround_mips_ctx): New.
7121         (libc_feholdsetround_ctx): New.
7122         (libc_feholdsetroundf_ctx): New.
7123         (libc_feholdsetroundl_ctx): New.
7124         (libc_feresetround_mips_ctx): New.
7125         (libc_feresetround_ctx): New.
7126         (libc_feresetroundf_ctx): New.
7127         (libc_feresetroundl_ctx): New.
7128
7129 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7130
7131         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7132
7133         * manual/ipc.texi: New file.
7134         * manual/Makefile (chapters): Add ipc.
7135         * manual/job.texi: Add "Inter-Process Communication" to next.
7136         * manual/process.texi: Add "Inter-Process Communication" to prev.
7137
7138 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7139
7140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7141
7142 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7143
7144         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7145
7146         * manual/arith.texi: Fix spaces after sentences.
7147         * manual/charset.texi: Likewise.
7148         * manual/errno.texi: Likewise.
7149         * manual/install.texi: Likewise.
7150         * manual/llio.texi: Likewise.
7151         * manual/locale.texi: Likewise.
7152         * manual/maint.texi: Likewise.
7153         * manual/math.texi: Likewise.
7154         * manual/memory.texi: Likewise.
7155         * manual/message.texi: Likewise.
7156         * manual/probes.texi: Likewise.
7157         * manual/resource.texi: Likewise.
7158         * manual/signal.texi: Likewise.
7159         * manual/socket.texi: Likewise.
7160         * manual/stdio.texi: Likewise.
7161         * manual/string.texi: Likewise.
7162         * manual/time.texi: Likewise.
7163         * manual/users.texi: Likewise.
7164
7165 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7166
7167         [BZ #16632]
7168         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7169         _DEFAULT_SOURCE is defined.
7170
7171 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7172             Carlos O'Donell  <carlos@redhat.com>
7173
7174         [BZ #16613]
7175         * elf/dl-tls.c (_dl_count_modids): New function.
7176         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7177         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7178         audit library and increment generation counter.
7179         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7180         * elf/tst-audit9.c: New file.
7181         * elf/tst-auditmod9a.c: New file.
7182         * elf/tst-auditmod9b.c: New file.
7183         * elf/Makefile: Add rules to build and run tst-audit9.
7184
7185 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7186
7187         [BZ #15347]
7188         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7189
7190 2014-02-25  Will Newton  <will.newton@linaro.org>
7191
7192         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7193         (__longjmp): Restore sp and lr before restoring callee
7194         saved registers.  Add longjmp and longjmp_target
7195         SystemTap probe point.
7196         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7197         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7198         Define to zero to match jmpbuf layout.
7199         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7200         (__sigsetjmp): Save sp and lr before saving callee
7201         saved registers.  Add setjmp SystemTap probe point.
7202
7203 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7204
7205         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7206
7207 2014-02-24  Andreas Schwab  <schwab@suse.de>
7208
7209         [BZ #15804]
7210         * elf/pldd.c (wait_for_ptrace_stop): New function.
7211         (main): Call it after attaching.
7212
7213 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7214
7215         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7216         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7217         Versions files is now verboten.
7218         * hurd/Versions (libc: GLIBC_2.0):
7219         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7220         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7221         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7222         * mach/Versions: Likewise.
7223
7224         * csu/Versions: Remove unused %include.
7225         * resolv/Versions: Likewise.
7226
7227 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7228
7229         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7230         ($(objpfx)check-local-headers.out): Likewise.
7231         ($(objpfx)begin-end-check.out): Likewise.
7232         * Makerules (check-abi-%.out): Likewise.
7233         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7234         ($(objpfx)test2.cat): Likewise.
7235         ($(objpfx)de/libc.cat): Likewise.
7236         ($(objpfx)test-gencat.out): Likewise.
7237         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7238         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7239         ($(objpfx)noload-mem): Likewise.
7240         ($(objpfx)tst-pathopt.out): Likewise.
7241         ($(objpfx)tst-rtld-load-self.out): Likewise.
7242         ($(objpfx)tst-array1-cmp.out): Likewise.
7243         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7244         ($(objpfx)tst-array2-cmp.out): Likewise.
7245         ($(objpfx)tst-array3-cmp.out): Likewise.
7246         ($(objpfx)tst-array4-cmp.out): Likewise.
7247         ($(objpfx)tst-array5-cmp.out): Likewise.
7248         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7249         ($(objpfx)check-textrel.out): Likewise.
7250         ($(objpfx)check-execstack.out): Likewise.
7251         ($(objpfx)check-localplt.out): Likewise.
7252         ($(objpfx)order2-cmp.out): Likewise.
7253         ($(objpfx)tst-leaks1-mem): Likewise.
7254         ($(objpfx)tst-leaks1-static-mem): Likewise.
7255         ($(objpfx)tst-initorder-cmp.out): Likewise.
7256         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7257         ($(objpfx)tst-unused-dep.out): Likewise.
7258         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7259         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7260         * iconv/Makefile (test-iconvconfig): Likewise.
7261         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7262         ($(objpfx)iconv-test.out): Likewise.
7263         ($(objpfx)tst-tables.out): Likewise.
7264         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7265         ($(objpfx)tst-gettext.out): Likewise.
7266         ($(objpfx)tst-translit.out): Likewise.
7267         ($(objpfx)tst-gettext2.out): Likewise.
7268         ($(objpfx)tst-gettext4.out): Likewise.
7269         ($(objpfx)tst-gettext6.out): Likewise.
7270         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7271         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7272         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7273         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7274         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7275         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7276         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7277         ($(objpfx)wordexp-tst.out): Likewise.
7278         ($(objpfx)annexc.out): Likewise.
7279         ($(objpfx)tst-fnmatch-mem): Likewise.
7280         ($(objpfx)bug-regex2-mem): Likewise.
7281         ($(objpfx)bug-regex14-mem): Likewise.
7282         ($(objpfx)bug-regex21-mem): Likewise.
7283         ($(objpfx)bug-regex31-mem): Likewise.
7284         ($(objpfx)tst-vfork3-mem): Likewise.
7285         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7286         ($(objpfx)tst-pcre-mem): Likewise.
7287         ($(objpfx)tst-boost-mem): Likewise.
7288         ($(objpfx)tst-getconf.out): Likewise.
7289         ($(objpfx)bug-ga2-mem): Likewise.
7290         ($(objpfx)bug-glob2-mem): Likewise.
7291         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7292         ($(objpfx)mtrace-tst-leaks2): Likewise.
7293         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7294         ($(objpfx)tst-printf.out): Likewise.
7295         ($(objpfx)tst-setvbuf1.out): Likewise.
7296         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7297         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7298         ($(objpfx)tst-fmtmsg.out): Likewise.
7299         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7300         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7301
7302         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7303         * bits/sigaction.h [__USE_MISC]: Likewise.
7304         * bits/waitstatus.h: Update #endif comments.
7305         * ctype/ctype.h: Likewise.
7306         * dirent/dirent.h: Likewise.
7307         [__USE_MISC]: Remove redundant conditionals.
7308         * grp/grp.h: Update #endif comments.
7309         [__USE_GNU]: Remove redundant conditionals.
7310         [__USE_MISC]: Likewise.
7311         * inet/netinet/in.h [__USE_GNU]: Likewise.
7312         * io/sys/stat.h [__USE_MISC]: Likewise.
7313         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7314         * libio/bits/stdio.h: Update #endif comments.
7315         [__USE_MISC]: Remove redundant conditionals.
7316         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7317         * libio/stdio.h: Update #endif comments.
7318         [__USE_MISC]: Remove redundant conditionals.
7319         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7320         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7321         * math/math.h: Update #else and #endif comments.
7322         [__USE_MISC]: Remove redundant conditionals.
7323         * misc/sys/uio.h: Update #endif comments.
7324         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7325         * posix/glob.h [__USE_MISC]: Likewise.
7326         * posix/sys/types.h: Update #endif comments.
7327         [__USE_MISC]: Remove redundant conditionals.
7328         * posix/sys/wait.h: Update #endif comments.
7329         [__USE_MISC]: Remove redundant conditionals.
7330         * posix/unistd.h: Update #endif comments.
7331         [__USE_MISC]: Remove redundant conditionals.
7332         * pwd/pwd.h [__USE_GNU]: Likewise.
7333         [__USE_MISC]: Likewise.
7334         * resolv/netdb.h [__USE_GNU]: Likewise.
7335         * signal/signal.h: Update #endif comments.
7336         [__USE_MISC]: Remove redundant conditionals.
7337         * stdlib/stdlib.h: Update #else and #endif comments.
7338         [__USE_MISC]: Remove redundant conditionals.
7339         [__USE_GNU]: Likewise.
7340         * string/bits/string2.h [__USE_MISC]: Likewise.
7341         * string/string.h: Update #endif comments.
7342         [__USE_MISC]: Remove redundant conditionals.
7343         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7344         Likewise.
7345         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7346         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7347         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7348         Likewise.
7349         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7350         Likewise.
7351         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7352         comments.
7353         [__USE_MISC]: Remove redundant conditionals.
7354         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7355         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7356         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7357         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7358         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7359         Likewise.
7360         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7361         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7362         Likewise.
7363         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7364         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7365         Likewise.
7366         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7367         Likewise.
7368         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7369         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7370         Likewise.
7371         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7372         Likewise.
7373         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7374         * sysdeps/x86/bits/string.h: Update #endif comments.
7375         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7376         conditionals.
7377         * time/sys/time.h: Update #endif comments.
7378         * time/time.h: Likewise.
7379         [__USE_MISC]: Remove redundant conditionals.
7380
7381 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7382
7383         [BZ #16600]
7384         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7385
7386 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7387
7388         * Versions.def (librt): Add GLIBC_2.17.
7389
7390 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7391
7392         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7393         synonym for _SYS_AUXV_H to allow direct inclusion.
7394         * sysdeps/sparc/bits/hwcap.h: Likewise.
7395         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7396         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7397         * sysdeps/sparc/sysdep.h: Likewise.
7398
7399 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7400
7401         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
7402
7403 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7404
7405         * benchtests/bench-strrchr.c: Print length instead of position.
7406
7407 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
7408
7409         [BZ #16611]
7410         * sysdeps/unix/sysv/linux/kernel-features.h
7411         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
7412         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
7413         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
7414         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
7415         Likewise.
7416         [__i386__ || __powerpc__ || __sh__ || __sparc__]
7417         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7418         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
7419         (__ASSUME_SENDMMSG): Define instead of using previous
7420         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
7421         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7422         (__ASSUME_SENDMMSG_SYSCALL): Define.
7423         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7424         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
7425         Likewise.
7426         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7427         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7428         Likewise.
7429         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7430         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7431         Likewise.
7432         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
7433         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7434         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7435         [__ASSUME_SENDMMSG]: Change conditionals to
7436         [__ASSUME_SENDMMSG_SOCKETCALL].
7437         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7438         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
7439         Define.
7440         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7441         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7442         Likewise.
7443         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7444         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7445         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7446         [!__ASSUME_SENDMMSG]: Change conditional to
7447         [!__ASSUME_SENDMMSG_SOCKETCALL].
7448         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7449         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7450         Define.
7451
7452         [BZ #16610]
7453         * sysdeps/unix/sysv/linux/kernel-features.h
7454         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7455         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7456         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7457         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7458         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7459         [__i386__ || __sparc__]
7460         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7461         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7462         (__ASSUME_RECVMMSG): Define instead of using previous
7463         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7464         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7465         (__ASSUME_RECVMMSG_SYSCALL): Define.
7466         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7467         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7468         Likewise.
7469         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7470         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7471         Likewise.
7472         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7473         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7474         Likewise.
7475         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7476         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7477         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7478         [__ASSUME_RECVMMSG]: Change condition to
7479         [__ASSUME_RECVMMSG_SOCKETCALL].
7480         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7481         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7482         Define.
7483         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7484         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7485         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7486         Likewise.
7487         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7488         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7489         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7490         [!__ASSUME_RECVMMSG]: Change condition to
7491         [!__ASSUME_RECVMMSG_SOCKETCALL].
7492         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7493         (__ASSUME_RECVMMSG_SYSCALL): Define.
7494
7495         [BZ #16609]
7496         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7497         __powerpc__ || __s390__ || __sh__ || __sparc__]
7498         (__ASSUME_SOCKETCALL): Define.
7499         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7500         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7501         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7502         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7503         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7504         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7505         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7506         (__ASSUME_ACCEPT4): Define instead of using previous
7507         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7508         __powerpc__ || __sparc__ || __s390__)] condition.
7509         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7510         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7511         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7512         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7513         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7514         [!__ASSUME_ACCEPT4]: Change condition to
7515         [!__ASSUME_ACCEPT4_SOCKETCALL].
7516         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7517         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7518         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7519         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7520         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7521         __ASSUME_ACCEPT4_SYSCALL.
7522         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7523         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7524         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7525         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7526         __ASSUME_ACCEPT4_SYSCALL.
7527         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7528         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7529         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7530         [__ASSUME_ACCEPT4]: Change condition to
7531         [__ASSUME_ACCEPT4_SOCKETCALL].
7532         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7533         (__ASSUME_SOCKETCALL): Define.
7534         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7535         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7536         (__ASSUME_SOCKETCALL): Define.
7537         (__ASSUME_ACCEPT4): Remove.
7538         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7539         Define.
7540         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7541         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7542         Likewise.
7543         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7544         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7545
7546         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7547         macro.
7548         (HWCAP_ARM_LPAE): Likewise.
7549         (HWCAP_ARM_EVTSTRM): Likewise.
7550         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7551         Add vpfd32, lpae and evtstrm.
7552         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7553         Increase to 22.
7554
7555 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7556
7557         * math/auto-libm-test-in: Add tests of clog10.
7558         * math/auto-libm-test-out: Regenerated.
7559         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7560         * sysdeps/i386/fpu/libm-test-ulps: Update.
7561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7562
7563 2014-02-18  Andreas Schwab  <schwab@suse.de>
7564
7565         [BZ #16574]
7566         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7567         Store non-zero if the second buffer was newly allocated.
7568         (send_dg): Likewise.
7569         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7570         to send_vc and send_dg.
7571         (res_nsend): Pass NULL for ansp2_malloced.
7572         * resolv/res_query.c (__libc_res_nquery): Add parameter
7573         answerp2_malloced and pass it down to __libc_res_nsend.
7574         (res_nquery): Pass additional NULL to __libc_res_nquery.
7575         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7576         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7577         second answer buffer if answerp2_malloced was set.
7578         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7579         (__libc_res_nquerydomain): Add parameter
7580         answerp2_malloced and pass it down to __libc_res_nquery.
7581         (res_nquerydomain): Pass additional NULL to
7582         __libc_res_nquerydomain.
7583         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7584         additional NULL to __libc_res_nsend and __libc_res_nquery.
7585         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7586         additional NULL to __libc_res_nsearch.
7587         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7588         parameter of __libc_res_nsearch to check for separately allocated
7589         second buffer.
7590         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7591         __libc_res_nquery.
7592         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7593         additional NULL to __libc_res_nquery.
7594         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7595         __libc_res_nsearch.
7596         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7597         * include/resolv.h: Update prototypes of __libc_res_nquery,
7598         __libc_res_nsearch, __libc_res_nsend.
7599
7600 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7601
7602         * math/auto-libm-test-in: Add tests of fma.
7603         * math/auto-libm-test-out: Regenerated.
7604         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7605         (fma_towardzero_test_data): Likewise.
7606         (fma_downward_test_data): Likewise.
7607         (fma_upward_test_data): Likewise.
7608         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7609         mpc_mode.
7610         (rounding_modes): Add values for new field.
7611         (func_calc_method): Add value mpfr_fff_f.
7612         (func_calc_desc): Add mpfr_fff_f union field.
7613         (test_function): Add field exact_args.
7614         (FUNC): Add macro argument EXACT_ARGS.
7615         (FUNC_mpfr_f_f): Update call to FUNC.
7616         (FUNC_mpfr_f_f): Likewise.
7617         (FUNC_mpfr_ff_f): Likewise.
7618         (FUNC_mpfr_if_f): Likewise.
7619         (FUNC_mpc_c_f): Likewise.
7620         (FUNC_mpc_c_c): Likewise.
7621         (test_functions): Add fma.  Update calls to FUNC.
7622         (handle_input_arg): Add argument exact_args.
7623         (add_test): Update call to handle_input_arg.
7624         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7625         (output_for_one_input_case): Update call to calc_generic_results.
7626         Recalculate exact zero results in each rounding mode.
7627
7628         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7629         non-negative before setting low bit.
7630         * math/auto-libm-test-in: Mark one asin test possibly having
7631         spurious underflow.
7632         * math/auto-libm-test-out: Regenerated.
7633         * sysdeps/i386/fpu/libm-test-ulps: Update.
7634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7635
7636 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7637
7638         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7639         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7640         ports/sysdeps/unix/sysv/linux/microblaze.
7641         * README: Add missing listing for microblaze*-*-linux-gnu.
7642
7643 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7644
7645         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7646         * sysdeps/unix/sysv/linux/ia64: Move directory from
7647         ports/sysdeps/unix/sysv/linux/ia64.
7648         * README: Update listing for ia64-*-linux-gnu.
7649
7650 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7651             Joseph Myers  <joseph@codesourcery.com>
7652
7653         * Makeconfig (test-name): New variable.
7654         (evaluate-test): Likewise.
7655         * Makerules (do-test-clean): Remove .test-result files.
7656         (common-mostlyclean): Likewise.
7657         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7658         * scripts/evaluate-test.sh: New file.
7659
7660 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7661
7662         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7663         separate $(objpfx)tst-fopenloc-cmp.out and
7664         $(objpfx)tst-fopenloc-mem.out targets.
7665         (tests): Update dependencies.
7666         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7667         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7668         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7669         (tst-rxspencer-no-utf8-ARGS): New variable.
7670         (tst-rxspencer-no-utf8-ENV): Likewise.
7671         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7672         instead of $(objpfx)tst-rxspencer-mem.
7673         ($(objpfx)tst-rxspencer-mem): Change target to
7674         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7675         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7676         * posix/tst-rxspencer-no-utf8.c: New file.
7677
7678         * elf/Makefile ($(objpfx)order.out): Remove rule.
7679         [$(run-built-tests) = yes] (tests): Depend on
7680         $(objpfx)order-cmp.out.
7681         ($(objpfx)order-cmp.out): New rule.
7682         [$(run-built-tests) = yes] (tests): Depend on
7683         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7684         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7685         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7686         $(objpfx)tst-array5-static-cmp.out.
7687         ($(objpfx)tst-array1.out): Remove rule.
7688         ($(objpfx)tst-array1-cmp.out): New rule.
7689         ($(objpfx)tst-array1-static.out): Remove rule.
7690         ($(objpfx)tst-array1-static-cmp.out): New rule.
7691         ($(objpfx)tst-array2.out): Remove rule.
7692         ($(objpfx)tst-array2-cmp.out): New rule.
7693         ($(objpfx)tst-array3.out): Remove rule.
7694         ($(objpfx)tst-array3-cmp.out): New rule.
7695         ($(objpfx)tst-array4.out): Remove rule.
7696         ($(objpfx)tst-array4-cmp.out): New rule.
7697         ($(objpfx)tst-array5.out): Remove rule.
7698         ($(objpfx)tst-array5-cmp.out): New rule.
7699         ($(objpfx)tst-array5-static.out): Remove rule.
7700         ($(objpfx)tst-array5-static-cmp.out): New rule.
7701         [$(run-built-tests) = yes] (tests): Depend on
7702         $(objpfx)order2-cmp.out.
7703         ($(objpfx)order2.out): Remove rule.
7704         ($(objpfx)order2-cmp.out): New rule.
7705         ($(objpfx)tst-initorder.out): Remove rule.
7706         [$(run-built-tests) = yes] (tests): Depend on
7707         $(objpfx)tst-initorder-cmp.out.
7708         ($(objpfx)tst-initorder-cmp.out): New rule.
7709         ($(objpfx)tst-initorder2.out): Remove rule.
7710         [$(run-built-tests) = yes] (tests): Depend on
7711         $(objpfx)tst-initorder2-cmp.out.
7712         ($(objpfx)tst-initorder2-cmp.out): New rule.
7713         [$(run-built-tests) = yes] (tests): Depend on
7714         $(objpfx)tst-unused-dep-cmp.out.
7715         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7716         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7717         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7718         on $(objpfx)tst-setvbuf1-cmp.out.
7719         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7720         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7721         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7722         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7723         ($(objpfx)tst-svc.out): Remove rule.
7724         ($(objpfx)tst-svc-cmp.out): New rule.
7725
7726 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7727
7728         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7729         * ctype/ctype.h [__USE_MISC]: Likewise.
7730         * dirent/dirent.h [__USE_MISC]: Likewise.
7731         * grp/grp.h [__USE_MISC]: Likewise.
7732         * io/fcntl.h [__USE_MISC]: Likewise.
7733         * io/sys/stat.h [__USE_MISC]: Likewise.
7734         * libio/stdio.h [__USE_MISC]: Likewise.
7735         * posix/unistd.h [__USE_MISC]: Likewise.
7736         * pwd/pwd.h [__USE_MISC]: Likewise.
7737         * stdlib.h [__USE_MISC]: Likewise.
7738         * string/bits/string2.h [__USE_MISC]: Likewise.
7739         * string/string.h [__USE_MISC]: Likewise.
7740         * time/time.h [__USE_MISC]: Likewise.
7741
7742 2014-02-13  Andreas Schwab  <schwab@suse.de>
7743
7744         [BZ #16574]
7745         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7746         second answer buffer if it was separately allocated.
7747
7748 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7749
7750         * sysdeps/mips/math-tests.h: Include <features.h>.
7751         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7752         (ROUNDING_TESTS_long_double): Do not define.
7753         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7754         (EXCEPTION_TESTS_long_double): Likewise.
7755         * sysdeps/mips/mips64/libm-test-ulps: Update.
7756
7757         * include/features.h (__USE_BSD): Remove macro definitions.
7758         (__USE_SVID): Likewise.
7759         (_BSD_SOURCE): Likewise.
7760         (_SVID_SOURCE): Likewise.
7761         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7762         from definition of _DEFAULT_SOURCE.
7763         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7764         [_DEFAULT_SOURCE].
7765         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7766         * bits/mman.h [__USE_BSD]: Likewise.
7767         * bits/termios.h [__USE_BSD]: Likewise.
7768         * bits/waitstatus.h [__USE_BSD]: Likewise.
7769         * ctype/ctype.h [__USE_SVID]: Likewise.
7770         * dirent/dirent.h [__USE_BSD]: Likewise.
7771         * grp/grp.h [__USE_SVID]: Likewise.
7772         [__USE_BSD]: Likewise.
7773         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7774         * io/fcntl.h [__USE_BSD]: Likewise.
7775         * io/ftw.h [__USE_BSD]: Likewise.
7776         * io/sys/stat.h [__USE_BSD]: Likewise.
7777         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7778         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7779         * libio/stdio.h [__USE_SVID]: Likewise.
7780         [__USE_BSD]: Likewise.
7781         * math/math.h [__USE_SVID]: Likewise.
7782         [__USE_BSD]: Likewise.
7783         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7784         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7785         * misc/search.h [__USE_SVID]: Likewise.
7786         * misc/sys/mman.h [__USE_BSD]: Likewise.
7787         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7788         * misc/sys/uio.h [__USE_BSD]: Likewise.
7789         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7790         * posix/glob.h [__USE_BSD]: Likewise.
7791         * posix/regex.h [__USE_BSD]: Likewise.
7792         * posix/sys/types.h [__USE_BSD]: Likewise.
7793         [__USE_SVID]: Likewise.
7794         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7795         * posix/sys/wait.h [__USE_BSD]: Likewise.
7796         [__USE_SVID]: Likewise.
7797         * posix/unistd.h [__USE_BSD]: Likewise.
7798         [__USE_SVID]: Likewise.
7799         * pwd/pwd.h [__USE_SVID]: Likewise.
7800         * resolv/netdb.h [__USE_BSD]: Likewise.
7801         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7802         * signal/signal.h [__USE_BSD]: Likewise.
7803         [__USE_SVID]: Likewise.
7804         * socket/sys/socket.h [__USE_BSD]: Likewise.
7805         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7806         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7807         [__USE_SVID]: Likewise.
7808         * string/bits/string2.h [__USE_BSD]: Likewise.
7809         [__USE_SVID]: Likewise.
7810         * string/bits/string3.h [__USE_BSD]: Likewise.
7811         * string/endian.h [__USE_BSD]: Likewise.
7812         * string/string.h [__USE_SVID]: Likewise.
7813         [__USE_BSD]: Likewise.
7814         * string/strings.h [__USE_BSD]: Likewise.
7815         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7816         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7817         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7818         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7819         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7820         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7821         Likewise.
7822         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7823         Likewise.
7824         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7825         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7826         Likewise.
7827         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7828         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7829         Likewise.
7830         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7831         Likewise.
7832         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7833         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7834         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7835         Likewise.
7836         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7837         Likewise.
7838         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7839         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7840         * termios/termios.h [__USE_BSD]: Likewise.
7841         * time/sys/time.h [__USE_BSD]: Likewise.
7842         * time/time.h [__USE_BSD]: Likewise.
7843         [__USE_SVID]: Likewise.
7844
7845         * Makefile (subdir_targets): Remove subdir_lint.out.
7846
7847         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7848         (do-tst-printf): Likewise.
7849         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7850         $(objpfx)tst-printf.out.
7851
7852         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7853
7854         * Makerules (check-abi-%): Change target to
7855         $(objpfx)check-abi-%.out.
7856         (check-abi target): Update dependencies.
7857         (check-abi-pattern variable): Redirect output of diff to $@.
7858         (check-abi variable): Likewise.
7859         * elf/Makefile (check-abi): Update dependencies.
7860
7861         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7862         unused.
7863         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7864         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7865         subnormal range.
7866         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7867         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7868         value has largest subnormal exponent.
7869         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7870         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7871         * sysdeps/aarch64/soft-fp/sfp-machine.h
7872         (_FP_TININESS_AFTER_ROUNDING): New macro.
7873         * sysdeps/alpha/soft-fp/sfp-machine.h
7874         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7875         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7876         Likewise.
7877         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7878         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7879         * sysdeps/mips/soft-fp/sfp-machine.h
7880         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7881         * sysdeps/powerpc/soft-fp/sfp-machine.h
7882         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7883         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7884         Likewise.
7885         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7886         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7887         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7888         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7889         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7890         Likewise.
7891
7892 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7893
7894         [BZ #16545]
7895         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7896         model 1.
7897
7898 2014-02-12  Richard Henderson  <rth@redhat.com>
7899
7900         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7901         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7902         * sysdeps/unix/sysv/linux/alpha: Move directory from
7903         ports/sysdeps/unix/sysv/linux/alpha.
7904         * README: Update listing for alpha-*-linux-gnu.
7905
7906 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7907
7908         * include/features.h: Update comment documenting feature test
7909         macros.
7910         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7911         _DEFAULT_SOURCE.
7912         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7913         (_SVID_SOURCE): Likewise.
7914         (_DEFAULT_SOURCE): Update description of default features.
7915         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7916         with _GNU_SOURCE.
7917         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7918         (S_ISVTX): Likewise.
7919         * manual/math.texi (Mathematical Constants): Likewise.
7920         * manual/signal.texi (Interrupted Primitives): Likewise.
7921         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7922         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7923         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7924         Don't refer to _SVID_SOURCE in warning text.
7925
7926         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7927
7928         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7929         already defined.
7930         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7931         * sysdeps/mips/dl-lookup.c: Remove.
7932         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7933
7934 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7935
7936         [BZ #16447]
7937         * math/auto-libm-test-in: Add testcase for expl.
7938         * math/auto-libm-test-out: Regenerate.
7939         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7940         calculation of unsafe.
7941         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7942
7943 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7944
7945         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7946         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7947         ports/sysdeps/unix/sysv/linux/aarch64.
7948         * README: Update listing for aarch64*-*-linux-gnu.
7949
7950 2014-02-11  Will Newton  <will.newton@linaro.org>
7951
7952         * manual/probes.texi (Mathematical Function Probes): Use
7953         "triggered" instead of "hit".
7954
7955         * manual/probes.texi (Internal Probes): Add documentation
7956         of setjmp, longjmp and longjmp_target probes.
7957
7958         * include/stap-probe.h: Add comment about probe argument
7959         format.
7960
7961         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7962         definition.  (tr_where, tr_freehook, tr_mallochook,
7963         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7964
7965 2014-02-11  David S. Miller  <davem@davemloft.net>
7966
7967         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7968         processing int_tests.
7969
7970 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7971
7972         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7973         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7974         * sysdeps/unix/sysv/linux/mips: Move directory from
7975         ports/sysdeps/unix/sysv/linux/mips.
7976         * README: Update listing for mips-*-linux-gnu and
7977         mips64-*-linux-gnu.
7978
7979 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7980
7981         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7982         * sysdeps/unix/sysv/linux/m68k: Move directory from
7983         ports/sysdeps/unix/sysv/linux/m68k.
7984         * README: Update listing for m68k-*-linux-gnu.
7985
7986 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7987
7988         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7989         * sysdeps/unix/sysv/linux/generic: Move directory from
7990         ports/sysdeps/unix/sysv/linux/generic.
7991         * sysdeps/unix/sysv/linux/tile: Move directory from
7992         ports/sysdeps/unix/sysv/linux/tile.
7993         * README: Update listing for tile*-*-linux-gnu.
7994
7995 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7996
7997         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7998         __builtin_expect.
7999         * benchtests/bench-memmem.c (simple_memmem): Likewise.
8000         * catgets/open_catalog.c (__open_catalog): Likewise.
8001         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
8002         * debug/confstr_chk.c: Likewise.
8003         * debug/fread_chk.c (__fread_chk): Likewise.
8004         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
8005         * debug/getgroups_chk.c: Likewise.
8006         * debug/mbsnrtowcs_chk.c: Likewise.
8007         * debug/mbsrtowcs_chk.c: Likewise.
8008         * debug/mbstowcs_chk.c: Likewise.
8009         * debug/memcpy_chk.c: Likewise.
8010         * debug/memmove_chk.c: Likewise.
8011         * debug/mempcpy_chk.c: Likewise.
8012         * debug/memset_chk.c: Likewise.
8013         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
8014         * debug/strcat_chk.c (__strcat_chk): Likewise.
8015         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
8016         * debug/strncat_chk.c (__strncat_chk): Likewise.
8017         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
8018         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
8019         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
8020         * debug/wcpncpy_chk.c: Likewise.
8021         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
8022         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
8023         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
8024         * debug/wcsncpy_chk.c: Likewise.
8025         * debug/wcsnrtombs_chk.c: Likewise.
8026         * debug/wcsrtombs_chk.c: Likewise.
8027         * debug/wcstombs_chk.c: Likewise.
8028         * debug/wmemcpy_chk.c: Likewise.
8029         * debug/wmemmove_chk.c: Likewise.
8030         * debug/wmempcpy_chk.c: Likewise.
8031         * debug/wmemset_chk.c: Likewise.
8032         * dirent/scandirat.c (SCANDIRAT): Likewise.
8033         * dlfcn/dladdr1.c (dladdr1): Likewise.
8034         * dlfcn/dladdr.c (dladdr): Likewise.
8035         * dlfcn/dlclose.c (dlclose_doit): Likewise.
8036         * dlfcn/dlerror.c (__dlerror): Likewise.
8037         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8038         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8039         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8040         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
8041         * dlfcn/dlsym.c (dlsym_doit): Likewise.
8042         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
8043         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
8044         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
8045         Likewise.
8046         * elf/dl-conflict.c: Likewise.
8047         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
8048         * elf/dl-dst.h: Likewise.
8049         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
8050         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
8051         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
8052         * elf/dl-init.c (call_init, _dl_init): Likewise.
8053         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
8054         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
8055         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
8056         Likewise.
8057         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8058         Likewise.
8059         * elf/dl-minimal.c (__libc_memalign): Likewise.
8060         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8061         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8062         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8063         * elf/dl-sym.c (do_sym): Likewise.
8064         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8065         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8066         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8067         * elf/dl-writev.h (_dl_writev): Likewise.
8068         * elf/ldconfig.c (search_dir): Likewise.
8069         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8070         (dl_main): Likewise.
8071         * elf/setup-vdso.h (setup_vdso): Likewise.
8072         * grp/compat-initgroups.c (compat_call): Likewise.
8073         * grp/fgetgrent.c (fgetgrent): Likewise.
8074         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8075         * grp/putgrent.c (putgrent): Likewise.
8076         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8077         Likewise.
8078         * hurd/hurdinit.c: Likewise.
8079         * iconvdata/8bit-gap.c (struct): Likewise.
8080         * iconvdata/ansi_x3.110.c : Likewise.
8081         * iconvdata/big5.c : Likewise.
8082         * iconvdata/big5hkscs.c : Likewise.
8083         * iconvdata/cp1255.c: Likewise.
8084         * iconvdata/cp1258.c : Likewise.
8085         * iconvdata/cp932.c : Likewise.
8086         * iconvdata/euc-cn.c: Likewise.
8087         * iconvdata/euc-jisx0213.c : Likewise.
8088         * iconvdata/euc-jp.c: Likewise.
8089         * iconvdata/euc-jp-ms.c : Likewise.
8090         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8091         * iconvdata/gb18030.c : Likewise.
8092         * iconvdata/gbbig5.c (const): Likewise.
8093         * iconvdata/gbgbk.c: Likewise.
8094         * iconvdata/gbk.c : Likewise.
8095         * iconvdata/ibm1364.c : Likewise.
8096         * iconvdata/ibm930.c : Likewise.
8097         * iconvdata/ibm932.c: Likewise.
8098         * iconvdata/ibm933.c : Likewise.
8099         * iconvdata/ibm935.c : Likewise.
8100         * iconvdata/ibm937.c : Likewise.
8101         * iconvdata/ibm939.c : Likewise.
8102         * iconvdata/ibm943.c: Likewise.
8103         * iconvdata/iso_11548-1.c: Likewise.
8104         * iconvdata/iso-2022-cn.c : Likewise.
8105         * iconvdata/iso-2022-cn-ext.c : Likewise.
8106         * iconvdata/iso-2022-jp-3.c: Likewise.
8107         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8108         * iconvdata/iso-2022-kr.c : Likewise.
8109         * iconvdata/iso646.c (gconv_end): Likewise.
8110         * iconvdata/iso_6937-2.c : Likewise.
8111         * iconvdata/iso_6937.c : Likewise.
8112         * iconvdata/iso8859-1.c: Likewise.
8113         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8114         * iconvdata/shift_jisx0213.c : Likewise.
8115         * iconvdata/sjis.c : Likewise.
8116         * iconvdata/t.61.c : Likewise.
8117         * iconvdata/tcvn5712-1.c : Likewise.
8118         * iconvdata/tscii.c: Likewise.
8119         * iconvdata/uhc.c : Likewise.
8120         * iconvdata/unicode.c (gconv_end): Likewise.
8121         * iconvdata/utf-16.c (gconv_end): Likewise.
8122         * iconvdata/utf-32.c (gconv_end): Likewise.
8123         * iconvdata/utf-7.c (base64): Likewise.
8124         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8125         * iconv/gconv_close.c (__gconv_close): Likewise.
8126         * iconv/gconv_open.c (__gconv_open): Likewise.
8127         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8128         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8129         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8130         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8131         (ucs4le_internal_loop_single): Likewise.
8132         * iconv/iconv.c (iconv): Likewise.
8133         * iconv/iconv_close.c: Likewise.
8134         * iconv/loop.c (SINGLE): Likewise.
8135         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8136         * include/atomic.h: Likewise.
8137         * inet/inet6_option.c (option_alloc): Likewise.
8138         * intl/bindtextdom.c (set_binding_values): Likewise.
8139         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8140         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8141         * intl/localealias.c (read_alias_file): Likewise.
8142         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8143         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8144         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8145         * libio/fmemopen.c (fmemopen): Likewise.
8146         * libio/iofgets.c (_IO_fgets): Likewise.
8147         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8148         * libio/iofgetws.c (fgetws): Likewise.
8149         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8150         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8151         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8152         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8153         * locale/findlocale.c (_nl_find_locale): Likewise.
8154         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8155         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8156         Likewise.
8157         * locale/setlocale.c (setlocale): Likewise.
8158         * login/programs/pt_chown.c (main): Likewise.
8159         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8160         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8161         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8162         (mmap, mmap64, mremap, munmap): Likewise.
8163         * math/e_exp2l.c: Likewise.
8164         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8165         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8166         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8167         * math/s_catan.c (__catan): Likewise.
8168         * math/s_catanf.c (__catanf): Likewise.
8169         * math/s_catanh.c (__catanh): Likewise.
8170         * math/s_catanhf.c (__catanhf): Likewise.
8171         * math/s_catanhl.c (__catanhl): Likewise.
8172         * math/s_catanl.c (__catanl): Likewise.
8173         * math/s_ccosh.c (__ccosh): Likewise.
8174         * math/s_ccoshf.c (__ccoshf): Likewise.
8175         * math/s_ccoshl.c (__ccoshl): Likewise.
8176         * math/s_cexp.c (__cexp): Likewise.
8177         * math/s_cexpf.c (__cexpf): Likewise.
8178         * math/s_cexpl.c (__cexpl): Likewise.
8179         * math/s_clog10.c (__clog10): Likewise.
8180         * math/s_clog10f.c (__clog10f): Likewise.
8181         * math/s_clog10l.c (__clog10l): Likewise.
8182         * math/s_clog.c (__clog): Likewise.
8183         * math/s_clogf.c (__clogf): Likewise.
8184         * math/s_clogl.c (__clogl): Likewise.
8185         * math/s_csin.c (__csin): Likewise.
8186         * math/s_csinf.c (__csinf): Likewise.
8187         * math/s_csinh.c (__csinh): Likewise.
8188         * math/s_csinhf.c (__csinhf): Likewise.
8189         * math/s_csinhl.c (__csinhl): Likewise.
8190         * math/s_csinl.c (__csinl): Likewise.
8191         * math/s_csqrt.c (__csqrt): Likewise.
8192         * math/s_csqrtf.c (__csqrtf): Likewise.
8193         * math/s_csqrtl.c (__csqrtl): Likewise.
8194         * math/s_ctan.c (__ctan): Likewise.
8195         * math/s_ctanf.c (__ctanf): Likewise.
8196         * math/s_ctanh.c (__ctanh): Likewise.
8197         * math/s_ctanhf.c (__ctanhf): Likewise.
8198         * math/s_ctanhl.c (__ctanhl): Likewise.
8199         * math/s_ctanl.c (__ctanl): Likewise.
8200         * math/w_pow.c: Likewise.
8201         * math/w_powf.c: Likewise.
8202         * math/w_powl.c: Likewise.
8203         * math/w_scalb.c (sysv_scalb): Likewise.
8204         * math/w_scalbf.c (sysv_scalbf): Likewise.
8205         * math/w_scalbl.c (sysv_scalbl): Likewise.
8206         * misc/error.c (error_tail): Likewise.
8207         * misc/pselect.c (__pselect): Likewise.
8208         * nis/nis_callback.c (__nis_create_callback): Likewise.
8209         * nis/nis_call.c (__nisfind_server): Likewise.
8210         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8211         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8212         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8213         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8214         * nis/nis_lookup.c (nis_lookup): Likewise.
8215         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8216         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8217         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8218         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8219         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8220         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8221         * nis/nss_compat/compat-initgroups.c (add_group)
8222         (internal_getgrent_r): Likewise.
8223         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8224         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8225         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8226         (internal_getspnam_r): Likewise.
8227         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8228         (_nss_nis_getaliasbyname_r): Likewise.
8229         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8230         (_nss_nis_getntohost_r): Likewise.
8231         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8232         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8233         (_nss_nis_getgrgid_r): Likewise.
8234         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8235         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8236         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8237         (_nss_nis_gethostbyname4_r): Likewise.
8238         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8239         (initgroups_netid): Likewise.
8240         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8241         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8242         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8243         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8244         (_nss_nis_getprotobynumber_r): Likewise.
8245         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8246         (_nss_nis_getsecretkey): Likewise.
8247         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8248         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8249         (_nss_nis_getpwuid_r): Likewise.
8250         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8251         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8252         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8253         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8254         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8255         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8256         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8257         Likewise.
8258         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8259         (_nss_nisplus_getntohost_r): Likewise.
8260         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8261         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8262         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8263         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8264         Likewise.
8265         * nis/nss_nisplus/nisplus-initgroups.c
8266         (_nss_nisplus_initgroups_dyn): Likewise.
8267         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8268         (_nss_nisplus_getnetbyaddr_r): Likewise.
8269         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8270         (_nss_nisplus_getprotobynumber_r): Likewise.
8271         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8272         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8273         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8274         Likewise.
8275         * nis/nss_nisplus/nisplus-service.c
8276         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8277         (_nss_nisplus_getservbyport_r): Likewise.
8278         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8279         (_nss_nisplus_getspnam_r): Likewise.
8280         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8281         Likewise.
8282         * nscd/aicache.c (addhstaiX): Likewise.
8283         * nscd/cache.c (cache_search, prune_cache): Likewise.
8284         * nscd/connections.c (register_traced_file, send_ro_fd)
8285         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8286         (main_loop_epoll): Likewise.
8287         * nscd/grpcache.c (addgrbyX): Likewise.
8288         * nscd/hstcache.c (addhstbyX): Likewise.
8289         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8290         * nscd/mem.c (gc, mempool_alloc): Likewise.
8291         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8292         (addinnetgrX): Likewise.
8293         * nscd/nscd-client.h (__nscd_acquire_maplock)
8294         (__nscd_drop_map_ref): Likewise.
8295         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8296         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8297         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8298         Likewise.
8299         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8300         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8301         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8302         (__nscd_get_map_ref): Likewise.
8303         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8304         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8305         Likewise.
8306         * nscd/pwdcache.c (addpwbyX): Likewise.
8307         * nscd/selinux.c (preserve_capabilities): Likewise.
8308         * nscd/servicescache.c (addservbyX): Likewise.
8309         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8310         * posix/fnmatch.c (fnmatch): Likewise.
8311         * posix/getopt.c (_getopt_internal_r): Likewise.
8312         * posix/glob.c (glob, glob_in_dir): Likewise.
8313         * posix/wordexp.c (exec_comm_child): Likewise.
8314         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8315         (getanswer_r, gaih_getanswer_slice): Likewise.
8316         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8317         * resolv/res_init.c: Likewise.
8318         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8319         * resolv/res_query.c (__libc_res_nquery): Likewise.
8320         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8321         Likewise.
8322         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8323         * stdio-common/perror.c (perror): Likewise.
8324         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8325         * stdio-common/tmpnam.c (tmpnam): Likewise.
8326         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8327         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8328         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8329         Likewise.
8330         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8331         * stdlib/putenv.c (putenv): Likewise.
8332         * stdlib/setenv.c (__add_to_environ): Likewise.
8333         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8334         * stdlib/strtol_l.c (INTERNAL): Likewise.
8335         * string/memmem.c (memmem): Likewise.
8336         * string/strerror.c (strerror): Likewise.
8337         * string/strnlen.c (__strnlen): Likewise.
8338         * string/test-memmem.c (simple_memmem): Likewise.
8339         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8340         * sunrpc/pm_getport.c (__get_socket): Likewise.
8341         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8342         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8343         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8344         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8345         Likewise.
8346         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8347         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8348         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8349         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8350         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8351         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8352         Likewise.
8353         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8354         Likewise.
8355         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8356         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8357         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8358         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8359         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8360         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8361         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8362         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8363         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8364         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8365         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8366         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8367         Likewise.
8368         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8369         Likewise.
8370         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8371         Likewise.
8372         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8373         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8374         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8375         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8376         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8377         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8378         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8379         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8380         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8381         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8382         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8383         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8384         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8385         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8386         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8387         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8388         Likewise.
8389         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8390         Likewise.
8391         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8392         Likewise.
8393         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8394         Likewise.
8395         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8396         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8397         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8398         Likewise.
8399         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
8400         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
8401         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8402         * sysdeps/posix/sleep.c: Likewise.
8403         * sysdeps/posix/tempname.c: Likewise.
8404         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
8405         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8406         Likewise.
8407         * sysdeps/powerpc/powerpc32/dl-machine.h
8408         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
8409         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8410         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8411         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
8412         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
8413         Likewise.
8414         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
8415         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
8416         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8417         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
8418         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8419         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
8420         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
8421         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
8422         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8423         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
8424         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
8425         (elf_machine_lazy_rel): Likewise.
8426         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8427         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
8428         (elf_machine_lazy_rel): Likewise.
8429         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
8430         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
8431         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
8432         * sysdeps/unix/grantpt.c (grantpt): Likewise.
8433         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
8434         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
8435         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8436         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8437         Likewise.
8438         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8439         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8440         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8441         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8442         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8443         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8444         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8445         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8446         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8447         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8448         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8449         Likewise.
8450         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8451         (__posix_fallocate64_l64): Likewise.
8452         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8453         (posix_fallocate): Likewise.
8454         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8455         Likewise.
8456         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8457         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8458         (getifaddrs_internal): Likewise.
8459         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8460         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8461         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8462         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8463         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8464         (__posix_fallocate64_l64): Likewise.
8465         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8466         Likewise.
8467         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8468         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8469         (__get_clockfreq): Likewise.
8470         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8471         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8472         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8473         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8474         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8475         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8476         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8477         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8478         Likewise.
8479         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8480         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8481         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8482         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8483         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8484         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8485         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8486         Likewise.
8487         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8488         (posix_fallocate): Likewise.
8489         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8490         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8491         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8492         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8493         (elf_machine_rela, elf_machine_rela_relative)
8494         (elf_machine_lazy_rel): Likewise.
8495         * time/asctime.c (asctime_internal): Likewise.
8496         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8497         * time/tzset.c (__tzset_parse_tz): Likewise.
8498         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8499         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8500         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8501         * wcsmbs/wcsmbsload.h: Likewise.
8502
8503         [BZ #15894]
8504         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8505
8506         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8507         (arena_get2): Remove THREAD_STATS conditionals.
8508         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8509         (__malloc_stats, int): Likewise.
8510
8511 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8512
8513         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8514         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8515
8516         * manual/setjmp.texi: Fix typos/grammar errors.
8517
8518         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8519         Only return early when n is <= 0.  Delete unused return statement.
8520
8521         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8522         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8523         * debug/tst-longjmp_chk3.c: New file.
8524
8525         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8526         (test_main): Replace code with set_fortify_handler call.
8527         * debug/test-strcpy_chk.c: Likewise.
8528         * debug/tst-chk1.c: Likewise.
8529         * debug/tst-longjmp_chk.c: Likewise.
8530         * test-skeleton.c: Include fcntl.h & paths.h
8531         (set_fortify_handler): Define.
8532
8533         * debug/tst-longjmp_chk.c: Add header comment and include
8534         ../test-skeleton.c.
8535         (do_test): Mark static.
8536         (TEST_FUNCTION): Define.
8537
8538         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8539         (IP_PMTUDISC_INTERFACE): Likewise.
8540         (IP_MULTICAST_IF): Likewise.
8541         (IP_MULTICAST_TTL): Likewise.
8542         (IP_MULTICAST_LOOP): Likewise.
8543         (IP_ADD_MEMBERSHIP): Likewise.
8544         (IP_DROP_MEMBERSHIP): Likewise.
8545         (IP_UNBLOCK_SOURCE): Likewise.
8546         (IP_BLOCK_SOURCE): Likewise.
8547         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8548         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8549         (IP_MSFILTER): Likewise.
8550         (MCAST_JOIN_GROUP): Likewise.
8551         (MCAST_BLOCK_SOURCE): Likewise.
8552         (MCAST_UNBLOCK_SOURCE): Likewise.
8553         (MCAST_LEAVE_GROUP): Likewise.
8554         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8555         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8556         (MCAST_MSFILTER): Likewise.
8557         (IP_MULTICAST_ALL): Likewise.
8558         (IP_UNICAST_IF): Likewise.
8559
8560         * timezone/Makefile: Delete $(have-ksh) check.
8561         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8562         * timezone/tzselect.ksh: Add +x mode bits.
8563
8564         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8565         (ANON_INODE_FS_MAGIC): Likewise.
8566         (BDEVFS_MAGIC): Likewise.
8567         (BINFMTFS_MAGIC): Likewise.
8568         (BTRFS_TEST_MAGIC): Likewise.
8569         (CRAMFS_MAGIC_WEND): Likewise.
8570         (DEBUGFS_MAGIC): Likewise.
8571         (ECRYPTFS_SUPER_MAGIC): Likewise.
8572         (EXT3_SUPER_MAGIC): Likewise.
8573         (EXT4_SUPER_MAGIC): Likewise.
8574         (FUTEXFS_SUPER_MAGIC): Likewise.
8575         (HOSTFS_SUPER_MAGIC): Likewise.
8576         (HUGETLBFS_MAGIC): Likewise.
8577         (MINIX3_SUPER_MAGIC): Likewise.
8578         (MTD_INODE_FS_MAGIC): Likewise.
8579         (NILFS_SUPER_MAGIC): Likewise.
8580         (OPENPROM_SUPER_MAGIC): Likewise.
8581         (PIPEFS_MAGIC): Likewise.
8582         (PSTOREFS_MAGIC): Likewise.
8583         (QNX6_SUPER_MAGIC): Likewise.
8584         (RAMFS_MAGIC): Likewise.
8585         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8586         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8587         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8588         (SECURITYFS_MAGIC): Likewise.
8589         (SELINUX_MAGIC): Likewise.
8590         (SMACK_MAGIC): Likewise.
8591         (SOCKFS_MAGIC): Likewise.
8592         (SQUASHFS_MAGIC): Likewise.
8593         (STACK_END_MAGIC): Likewise.
8594         (TMPFS_MAGIC): Likewise.
8595         (USBDEVICE_SUPER_MAGIC): Likewise.
8596         (V9FS_MAGIC): Likewise.
8597         (XENFS_SUPER_MAGIC): Likewise.
8598         (CRAMFS_MAGIC): Fix typo in comment.
8599         (EXT2_SUPER_MAGIC): Update comment.
8600         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8601
8602 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8603
8604         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8605         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8606         * sysdeps/unix/sysv/linux/arm: Move directory from
8607         ports/sysdeps/unix/sysv/linux/arm.
8608         * README: Update listing for arm-*-linux-gnueabi.
8609
8610         * README: Remove mention of am33.
8611
8612 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8613
8614         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8615         than the comma operator, to avoid "rhs of comma has no effect"
8616         compiler warnings.
8617         (__sigfillset, __sigandset, __sigorset): Likewise.
8618         * include/signal.h (__sigemptyset): Likewise.
8619         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8620
8621 2014-02-07  Allan McRae  <allan@archlinux.org>
8622
8623         * version.h (RELEASE): Set to "development".
8624         (VERSION): Set to "2.19.90"
8625         * NEWS: Add 2.20 section.
8626
8627 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8628
8629         [BZ #16529]
8630         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8631
8632 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8633
8634         * manual/contrib.texi: Update entry for Carlos O'Donell,
8635         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8636
8637 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8638
8639         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8640
8641         * sysdeps/unix/sysv/linux/kernel-features.h
8642         [__LINUX_KERNEL_VERSION >= 0x020621]
8643         (__ASSUME_PROC_PID_TASK_COMM): Define.
8644
8645 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8646
8647         [BZ #16398]
8648         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8649         conversion when destination buffer does not have enough space.
8650         * libio/tst-ftell-partial-wide.c: New test case.
8651         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8652
8653         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8654         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8655         Leonard and Allan McRae.
8656
8657 2014-02-04  David S. Miller  <davem@davemloft.net>
8658
8659         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8660         32-bit.
8661
8662 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8663
8664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8665         New file
8666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8667         New file
8668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8669         New file.
8670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8671         New file.
8672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8673         New file.
8674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8675         New file.
8676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8677         New file.
8678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8679         New file.
8680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8681         New file.
8682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8683         New file.
8684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8685         New file.
8686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8687         New file.
8688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8689         New file.
8690
8691 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8692
8693         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8694         * shlib-versions: Likewise.
8695
8696 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8697             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8698
8699         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8700         (abilist-pattern): New variable, set to %-le.abilist.
8701
8702         * Makerules (abilist-pattern): New variable.
8703         (vpath): Use $(abilist-pattern) in place of %.abilist.
8704         (check-abi-% pattern rule): Likewise.
8705         (check-abi, update-abi): Likewise.
8706
8707 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8708
8709         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8710
8711 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8712
8713         * manual/startup.texi: Add next, previous, and top entries for
8714         the `Program Arguments' and `Environment Variables' nodes.
8715
8716 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8717
8718         * manual/macros.texi: Add comments before MTASC-safety macros.
8719
8720         * manual/users.texi: Document MTASC-safety properties.
8721
8722         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8723         (pthread_getspecific, pthread_setspecific): Format with
8724         @deftypefun, and add @safety note.
8725         * manual/signal.texi: Move comments that analyze the above
8726         functions to their home place.
8727
8728 2014-02-03  Allan McRae  <allan@archlinux.org>
8729
8730         * po/sl.po: Update Slovenian translation from translation project.
8731
8732 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8733
8734         * manual/time.texi (timegm): Add missing blank after @c.
8735         Reported by Joseph Myers <joseph@codesourcery.com>.
8736
8737 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8738
8739         * manual/check-safety.sh: New.
8740         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8741
8742         * manual/terminal.texi: Document MTASC-safety properties.
8743
8744         * manual/filesys.texi: Document MTASC-safety properties.
8745
8746         * manual/errno.texi: Document MTASC-safety properties.
8747
8748         * manual/intro.texi: Document safety identifiers and
8749         conditionals.
8750
8751         * manual/string.texi (wcstok): Fix prototype.
8752         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8753
8754         * manual/time.texi: Document MTASC-safety properties.
8755
8756         * manual/string.texi: Document MTASC-safety properties.
8757
8758         * manual/threads.texi: Document MTASC-safety properties.
8759
8760         * manual/stdio.texi: Document MTASC-safety properties.
8761
8762         * manual/syslog.texi: Document MTASC-safety properties.
8763
8764         * manual/sysinfo.texi: Document MTASC-safety properties.
8765
8766         * manual/startup.texi: Document MTASC-safety properties.
8767
8768         * manual/socket.texi: Document MTASC-safety properties.
8769
8770         * manual/signal.texi: Document MTASC-safety properties.
8771
8772 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8773
8774         * manual/setjmp.texi: Document MTASC-safety properties.
8775
8776         * manual/search.texi: Document MTASC-safety properties.
8777
8778         * manual/resource.texi: Document MTASC-safety properties.
8779
8780         * manual/process.texi: Document MTASC-safety properties.
8781
8782         * manual/platform.texi: Document MTASC-safety properties.
8783
8784         * manual/pipe.texi: Document MTASC-safety properties.
8785
8786         * manual/pattern.texi: Document MTASC-safety properties.
8787
8788         * manual/message.texi: Document MTASC-safety properties.
8789
8790         [BZ #12751]
8791         * manual/memory.texi: Document MTASC-safety properties.
8792
8793         * manual/math.texi: Document MTASC-safety properties.
8794
8795         * manual/locale.texi: Document MTASC-safety properties.
8796
8797         * manual/llio.texi: Document MTASC-safety properties.
8798
8799         * manual/libdl.texi: New.
8800
8801         * manual/lang.texi: Document MTASC-safety properties.
8802
8803         * manual/job.texi: Document MTASC-safety properties.
8804
8805         * manual/getopt.texi: Document MTASC-safety properties.
8806
8807         * manual/ctype.texi: Document MTASC-safety properties.
8808
8809 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8810
8811         [BZ #16046]
8812         * csu/libc-tls.c (static_map): Remove variable.
8813         (__libc_setup_tls): Use main executable's link map for TLS data.
8814         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8815         casing for LM_ID_BASE and GL(dl_nns).
8816         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8817         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8818         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8819         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8820         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8821         member.
8822         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8823         l_phnum members.
8824
8825 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8826
8827         * manual/debug.texi: Document MTASC-safety properties.
8828
8829 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8830
8831         [BZ #16510]
8832         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8833         of __x86_64__ when disabling x87 inline functions.
8834
8835 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8836
8837         * manual/charset.texi: Document MTASC-safety properties.
8838
8839         * manual/crypt.texi: Document MTASC-safety properties.
8840
8841         * manual/conf.texi: Document MTASC-safety properties.
8842
8843         * manual/arith.texi: Document MTASC-safety properties.
8844
8845         * manual/argp.texi: Document MTASC-safety properties.
8846
8847         * manual/macros.texi: Introduce macros to document multi
8848         thread, asynchronous signal and asynchronous cancellation
8849         safety properties.
8850         * manual/intro.texi: Introduce the properties themselves.
8851
8852 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8853
8854         * sysdeps/sh/sh4/Makefile: New file.
8855
8856 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8857
8858         * math/gen-libm-test.pl ($srcdir): New variable.
8859         ($auto_input): Use it.
8860
8861 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8862
8863         [BZ #16506]
8864         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8865         access beyond array bounds when parsing netgroups file.
8866
8867         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8868         the old buffer before realloc.
8869
8870 2014-01-27  Allan McRae  <allan@archlinux.org>
8871
8872         * po/fr.po: Update French translation from translation project.
8873
8874 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8875
8876         * sysdeps/sh/libm-test-ulps: Regenerate.
8877
8878 2014-01-24  David S. Miller  <davem@davemloft.net>
8879
8880         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8881
8882 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8883
8884         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8885         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8886
8887 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8888
8889         [BZ #16474]
8890         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8891         string pointers after reallocation.
8892
8893 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8894
8895         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8896         __SH4A__ instead of __SH_FPU_ANY__.
8897
8898 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8899
8900         * sysdeps/sh/fpu_control.h: New file.
8901         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8902         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8903         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8904         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8905         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8906         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8907         * sysdeps/sh/sys/ucontext.h: Remove.
8908         * sysdeps/sh/sys: Remove directory.
8909
8910 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8911
8912         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8913         s390/sys/ucontext.h.
8914         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8915         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8916
8917 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8918
8919         [BZ #15605]
8920         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8921
8922 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8923
8924         [BZ#16431]
8925         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8926         Adjust the vDSO correctly for internal calls.
8927         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8928
8929 2014-01-20  Allan McRae  <allan@archlinux.org>
8930
8931         * po/ca.po: Update Catalan translation from translation project.
8932
8933 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8934
8935         * sysdeps/s390/sotruss-lib.c: New file.
8936
8937 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8938
8939         [BZ#16430]
8940         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8941         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8942         local calls issues by not having a PLT stub required for IFUNC calls.
8943         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8944
8945 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8946
8947         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8948         * math/test-fpucw-static.c: Likewise.
8949
8950 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8951
8952         [BZ #16453]
8953         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8954
8955 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8956
8957         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8958         implementation for powerpc.
8959
8960 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8961
8962         [BZ #14782]
8963         * sysdeps/posix/system.c (__libc_system): Do not enable
8964         asynchronous cancellation.
8965
8966 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8967
8968         [BZ #16427]
8969         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8970         handling only for numbers special also in the IEEE case.
8971
8972 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8973
8974         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8975
8976 2014-01-11  Allan McRae  <allan@archlinux.org>
8977
8978         * po/bg.po: Update Bulgarian translation from translation project.
8979
8980         * po/de.po: Update German translation from translation project.
8981
8982 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8983
8984         * sysdeps/generic/gcc-compat.h: New file.
8985
8986 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8987
8988         * benchtests/asin-inputs: Correct slow inputs.
8989         * benchtests/acos-inputs: Likewise.
8990
8991 2014-01-10  Allan McRae  <allan@archlinux.org>
8992
8993         * po:sv.po: Update Swedish translation from translation project.
8994
8995         * po/vi.po: Update Vietnamese translation from translation project.
8996
8997         * po/eo.po: Update Esperanto translation from translation project.
8998
8999         * po/cs.po: Update Czech translation from translation project.
9000
9001         * po/nl.po: Update Dutch translation from translation project.
9002
9003         * po/pl.po: Update Polish translation from translation project.
9004
9005         * po/ru.po: Update Russian translation from translation project.
9006
9007         * po/uk.po: Update Ukrainian translation from translation project.
9008
9009 2014-01-08  Brooks Moses  <bmoses@google.com>
9010
9011         * elf/dl-load.c: Fix comment typo.
9012
9013 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
9014
9015         * po/header.pot: Rename to...
9016         * po/pot.header: ... this.
9017         * po/Makefile: Use pot.header.
9018
9019 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
9020             Maxim Kuvyrkov  <maxim@kugelworks.com>
9021
9022         [BZ #16394]
9023         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
9024         SRC and DEST against LEN.
9025
9026 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9027
9028         [BZ #16414]
9029         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
9030         implementation.
9031         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
9032
9033 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9034
9035         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9036
9037 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
9038
9039         [BZ #16408]
9040         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
9041         for large positive arguments.
9042
9043 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
9044
9045         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9046
9047         * math/auto-libm-test-in: Mark various tests with
9048         xfail-rounding:ldbl-128ibm.
9049         * math/auto-libm-test-out: Regenerated.
9050
9051         [BZ #16407]
9052         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
9053         Increase overflow threshold.
9054
9055 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
9056
9057         [BZ #14286]
9058         * stdio-common/vfprintf.c: Check for integer overflow.
9059
9060 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9061
9062         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9063         the first argument and return value of __tls_get_addr_internal.
9064
9065 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9066
9067         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9068         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9069
9070 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9071
9072         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9073         * sysdeps/s390/rtld-global-offsets.sym: New file.
9074         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9075         GLIBC_2.19 symbol.
9076         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9077         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9078         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9079         ... this.
9080         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9081         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9082         ... this.
9083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9084         Regenerate.
9085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9086         Regenerate.
9087         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9088         halfs of GPRs for high_gprs contexts.
9089         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9090         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9091         field.
9092         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9093         uc_flags field.
9094         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9095         64 bit versions:
9096         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9097         for high GPRs (uc_high_gprs) and for future extensions
9098         (__reserved).
9099         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9100         for future extensions (__reserved).
9101         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9102         64 bit versions:
9103         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9104         SC_HIGHGPRS offset definition.
9105         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9106         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9107
9108         * Versions.def: Add GLIBC_2.19 for libpthread.
9109         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9110         siglongjmp for libpthread with GLIBC_2.19 symver.
9111         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9112         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9113         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9114         * sysdeps/s390/__longjmp.c: New file.
9115         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9116         * sysdeps/s390/longjmp.c: New file.
9117         * sysdeps/s390/setjmp.S: New file.
9118         * sysdeps/s390/sigjmp.S: New file.
9119         * sysdeps/s390/v1-longjmp.c: New file.
9120         * sysdeps/s390/v1-setjmp.h: New file.
9121         * sysdeps/s390/v1-sigjmp.c: New file.
9122         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9123         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9124         GLIBC_2.19 version.
9125         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9126         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9127         versioned symbols for ____longjmp_chk.
9128         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9129         Likewise.
9130         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9131         Regenerate.
9132         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9133         Regenerate.
9134         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9135         Regenerate.
9136         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9137         Regenerate.
9138         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9139         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9140         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9141         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9142         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9143         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9144         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9145         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9146         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9147         * sysdeps/s390/rtld-__longjmp.c: New file.
9148         * sysdeps/s390/rtld-setjmp.S: New file.
9149
9150 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9151
9152         [BZ #16400]
9153         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9154         Return -__logl (x) for small positive arguments without evaluating
9155         a polynomial.
9156
9157 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9158
9159         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9160         Rename to ...
9161         (__ptrace_peeksiginfo_args): ... this.
9162         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9163         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9164         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9165
9166 2014-01-06  Allan McRae  <allan@archlinux.org>
9167
9168         * inet/netinet/in.h: Fix typo in comment.
9169
9170 2014-01-05  Andreas Jaeger  <aj@suse.de>
9171
9172         * sysdeps/i386/fpu/libm-test-ulps: Update.
9173
9174 2014-01-05  Allan McRae  <allan@archlinux.org>
9175
9176         * po/libc.pot: Regenerated.
9177
9178         * malloc/memusagestat.c: Fix gettext call formatting.
9179
9180 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9181
9182         * nscd/nscd.c: Improve usage() output.
9183
9184 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9185
9186         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9187         * sysdeps/unix/sysv/linux/configure: Regenerated.
9188         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9189         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9190
9191 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9192
9193         [BZ #16390]
9194         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9195         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9196
9197 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9198
9199         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9200         extra tokens at end of #undef directive.
9201         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9202         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9203         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9204
9205 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9206
9207         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9208
9209         * math/auto-libm-test-in: Mark various tests with
9210         xfail-rounding:ldbl-128ibm.
9211         * math/auto-libm-test-out: Regenerated.
9212
9213 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9214
9215         [BZ #16386]
9216         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9217         numbers with subnormal high part when calculating exponent.
9218
9219         [BZ #16385]
9220         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9221         fabs.
9222
9223         [BZ #16384]
9224         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9225         M_LN2l.
9226         (__ieee754_acoshl): Use __log1pl not __log1p.
9227
9228 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9229
9230         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9231         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9232         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9233         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9234         (reused_arena, arena_get2): Convert to GNU style.
9235         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9236         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9237         (memalign_check, __malloc_set_state): Likewise.
9238         * malloc/mallocbug.c (main): Likewise.
9239         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9240         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9241         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9242         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9243         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9244         (__posix_memalign, malloc_info): Likewise.
9245         * malloc/malloc.h: Likewise.
9246         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9247         (mallochook, memalignhook, reallochook, mabort): Likewise.
9248         * malloc/mcheck.h: Likewise.
9249         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9250         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9251         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9252         * malloc/morecore.c (__default_morecore): Likewise.
9253         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9254         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9255         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9256         (print_and_abort): Likewise.
9257         * malloc/obstack.h: Likewise.
9258         * malloc/set-freeres.c (__libc_freeres): Likewise.
9259         * malloc/tst-mallocstate.c (main): Likewise.
9260         * malloc/tst-mtrace.c (main): Likewise.
9261         * malloc/tst-realloc.c (do_test): Likewise.
9262
9263 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9264
9265         [BZ #16366]
9266         * nscd/netgroupcache.c (do_notfound): New function.
9267         (addgetnetgrentX): Use it.
9268
9269         [BZ # 16365]
9270         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9271         NSS_STATUS_NOTFOUND.
9272
9273 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9274
9275         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9276         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9277
9278 2014-01-01  Allan McRae  <allan@archlinux.org>
9279
9280         * scripts/update-copyrights: Update configure input file suffix.
9281
9282         * NEWS: Update copyright year.
9283         * catgets/gencat.c: Likewise.
9284         * csu/version.c: Likewise.
9285         * debug/catchsegv.sh: Likewise.
9286         * debug/pcprofiledump.c: Likewise.
9287         * debug/xtrace.sh: Likewise.
9288         * elf/ldconfig.c: Likewise.
9289         * elf/ldd.bash.in: Likewise.
9290         * elf/pldd.c: Likewise.
9291         * elf/sotruss.ksh: Likewise.
9292         * elf/sprof.c: Likewise.
9293         * iconv/iconv_prog.c: Likewise.
9294         * iconv/iconvconfig.c: Likewise.
9295         * locale/programs/locale.c: Likewise.
9296         * locale/programs/localedef.c: Likewise.
9297         * login/programs/pt_chown.c: Likewise.
9298         * malloc/memusage.sh: Likewise.
9299         * malloc/memusagestat.c: Likewise.
9300         * malloc/mtrace.pl: Likewise.
9301         * manual/libc.texinfo: Likewise.
9302         * nscd/nscd.c: Likewise.
9303         * nss/getent.c: Likewise.
9304         * nss/makedb.c: Likewise.
9305         * posix/getconf.c: Likewise.
9306         * scripts/test-installation.pl: Likewise.
9307
9308         * All files with FSF copyright notices: Update copyright dates
9309         using scripts/update-copyrights.
9310         * intl/plural.c: Regenerated.
9311         * locale/programs/charmap-kw.h: Likewise.
9312         * locale/programs/locfile-kw.h: Likewise.
9313
9314 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9315
9316         * sysdeps/unix/sysv/linux/configure: Regenerated.
9317         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9318         the linux/fanotify.h header.
9319         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9320         HAVE_LINUX_FANOTIFY_H is defined.
9321
9322 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9323
9324         * benchtests/cos-inputs: New inputs.
9325         * benchtests/sin-inputs: Likewise.
9326
9327         * benchtests/atan-inputs: New inputs. Fix name of multiple
9328         precision fallback inputs.
9329
9330         * benchtests/atanh-inputs: New inputs.
9331         * benchtests/tanh-inputs: Likewise.
9332
9333         * benchtests/acosh-inputs: New inputs.
9334         * benchtests/asinh-inputs: Likewise.
9335
9336         * benchtests/cosh-inputs: New inputs.
9337         * benchtests/sinh-inputs: Likewise.
9338
9339         * benchtests/acos-inputs: Add more inputs.
9340         * benchtests/asin-inputs: Likewise.
9341
9342 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9343
9344         [BZ #16375]
9345         * manual/arith.texi: Fix spelling.
9346         * manual/charset.texi: Likewise.
9347         * manual/errno.texi: Likewise.
9348         * manual/filesys.texi: Likewise.
9349         * manual/lang.texi: Likewise.
9350         * manual/llio.texi: Likewise.
9351         * manual/locale.texi: Likewise.
9352         * manual/message.texi: Likewise.
9353         * manual/resource.texi: Likewise.
9354         * manual/search.texi: Likewise.
9355         * manual/setjmp.texi: Likewise.
9356         * manual/stdio.texi: Likewise.
9357         * manual/string.texi: Likewise.
9358         * manual/sysinfo.texi: Likewise.
9359         * manual/time.texi: Likewise.
9360
9361 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9362
9363         * po/sl.po: New file.
9364
9365 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9366
9367         * .gitignore: Add core/.gdbinit/.gdb_history.
9368
9369 2013-12-27  Allan McRae  <allan@archlinux.org>
9370
9371         [BZ #16369]
9372         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9373         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9374
9375 2013-12-24  Brooks Moses  <bmoses@google.com>
9376
9377         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9378         all compilers that claim C++98 compliance, not just GCC.
9379         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9380         Likewise.
9381
9382 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9383
9384         * NEWS: Restore accidentally deleted bug-fix entries.
9385
9386 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9387             Ondřej Bílka  <neleai@seznam.cz>
9388
9389         [BZ #15073]
9390         * malloc/malloc.c (_int_free): Perform sanity check only if we
9391         have_lock.
9392
9393 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9394
9395         [BZ #12986]
9396         * manual/stdio.texi (String Input Conversions): Clarify that character
9397         classes are not supported.
9398
9399 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9400
9401         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9402
9403 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
9404
9405         [BZ #16337]
9406         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9407         Calculate results for small negative arguments directly rather
9408         than using reflection formula with special underflow handling.
9409
9410         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
9411         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
9412         sysdeps/unix/bsd/bsd4.4/syscalls.list.
9413         (fchflags): Likewise.
9414         (revoke): Likewise.
9415         (setlogin): Likewise.
9416         (sigaltstack): Likewise.
9417         (wait4): Likewise.
9418         (sigblock): Remove.
9419         (sigsetmask): Likewise.
9420         (wait3): Likewise.
9421         (waitpid): Likewise.
9422         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
9423         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
9424         file.
9425         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
9426         * sysdeps/unix/bsd/Makefile: ... here.
9427         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
9428         * sysdeps/unix/bsd/Versions: ... here.
9429         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
9430         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
9431         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
9432         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
9433         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
9434         * sysdeps/unix/bsd/sigblock.c: ... here.
9435         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
9436         * sysdeps/unix/bsd/sigsetmask.c: ... here.
9437         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
9438         * sysdeps/unix/bsd/sigvec.c: ... here.
9439         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
9440         * sysdeps/unix/bsd/tcdrain.c: ... here.
9441         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9442         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9443         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9444         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9445         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9446         * sysdeps/unix/bsd/wait.c: ... here.
9447         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9448         * sysdeps/unix/bsd/wait3.c: ... here.
9449         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9450         * sysdeps/unix/bsd/waitpid.c: ... here.
9451
9452 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9453
9454         [BZ #16356]
9455         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9456         round-to-nearest for [!USE_AS_EXPM1L].
9457         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9458         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9459         more tests of exp and exp10.  Expect some exp10 tests to miss
9460         exceptions or fail in directed rounding modes.
9461         * math/auto-libm-test-out: Regenerated.
9462         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9463         (exp10_test_tonearest): New function.
9464         (exp10_towardzero_test_data): New array.
9465         (exp10_test_towardzero): New function.
9466         (exp10_downward_test_data): New array.
9467         (exp10_test_downward): New function.
9468         (exp10_upward_test_data): New array.
9469         (exp10_test_upward): New function.
9470         (main): Call the new functions.
9471         * sysdeps/i386/fpu/libm-test-ulps: Update.
9472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9473
9474 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9475
9476         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9477         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9478         * math/auto-libm-test-out: Regenerated.
9479         * math/libm-test.inc (acosh_test_data): Add more tests.
9480         (atanh_test_data): Likewise.
9481         (ceil_test_data): Likewise.
9482         (copysign_test_data): Likewise.
9483         * sysdeps/i386/fpu/libm-test-ulps: Update.
9484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9485
9486         * timezone/checktab.awk: Update from tzcode 2013i.
9487         * timezone/private.h: Likewise.
9488         * timezone/scheck.c: Likewise.
9489         * timezone/tzfile.h: Likewise.
9490         * timezone/tzselect.ksh: Likewise.
9491         * timezone/zdump.c: Likewise.
9492         * timezone/zic.c: Likewise.
9493
9494         * math/auto-libm-test-in: Add tests of cpow.
9495         * math/auto-libm-test-out: Regenerated.
9496         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9497         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9498         mpc_cc_c.
9499         (func_calc_desc): Add mpc_cc_c union field.
9500         (test_functions): Add cpow.
9501         (special_fill_2pi): New function.
9502         (special_real_inputs): Add 2pi.
9503         (calc_generic_results): Handle mpc_cc_c.
9504         * sysdeps/i386/fpu/libm-test-ulps: Update.
9505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9506
9507         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9508         csqrt, ctan and ctanh.
9509         * math/auto-libm-test-out: Regenerated.
9510         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9511         (TEST_COND_x86): Likewise.
9512         (ccos_test_data): Use AUTO_TESTS_c_c.
9513         (ccosh_test_data): Likewise.
9514         (cexp_test_data): Likewise.
9515         (clog_test_data): Likewise.
9516         (csqrt_test_data): Likewise.
9517         (ctan_test_data): Likewise.
9518         (ctan_tonearest_test_data): Likewise.
9519         (ctan_towardzero_test_data): Likewise.
9520         (ctan_downward_test_data): Likewise.
9521         (ctan_upward_test_data): Likewise.
9522         (ctanh_test_data): Likewise.
9523         (ctanh_tonearest_test_data): Likewise.
9524         (ctanh_towardzero_test_data): Likewise.
9525         (ctanh_downward_test_data): Likewise.
9526         (ctanh_upward_test_data): Likewise.
9527         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9528         mpc_c_c.
9529         (func_calc_desc): Add mpc_c_c union field.
9530         (FUNC_mpc_c_c): New macro.
9531         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9532         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9533         ctanh.
9534         (special_fill_min_subnorm_p120): New function.
9535         (special_real_inputs): Add min_subnorm_p120.
9536         (calc_generic_results): Handle mpc_c_c.
9537         * sysdeps/i386/fpu/libm-test-ulps: Update.
9538         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9539
9540 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9541
9542         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9543         (do_sin_slow): New functions.
9544         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9545         (cslow2, csloww1, csloww2): Use the new functions.
9546
9547         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9548         Use M to change sign of result instead of X.  Assume X is
9549         positive.
9550         (csloww1): Likewise.
9551         (__sin): Adjust.
9552         (__cos): Adjust.
9553
9554         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9555         arguments A and DA.
9556         (__sin): Adjust.
9557         (__cos): Likewise.
9558
9559         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9560         (__cos): Likewise.
9561         (sloww1): Don't adjust sign of DX.
9562         (csloww1): Likewise.
9563         (sloww2): Use X directly and don't adjust sign of DX.
9564         (csloww2): Likewise.
9565
9566 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9567
9568         * math/auto-libm-test-in: Add tests of cabs and carg.
9569         * math/auto-libm-test-out: Regenerated.
9570         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9571         (carg_test_data): Likewise.
9572         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9573         mpc_c_f.
9574         (func_calc_desc): Add mpc_c_f union field.
9575         (test_functions): Add cabs and carg.
9576         (calc_generic_results): Handle mpc_c_f.
9577
9578         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9579         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9580         as a macro and a compat symbol.
9581         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9582         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9583         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9584         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9585         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9586         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9587         not use .hidden.
9588         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9589         Likewise.
9590         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9591         Likewise.
9592         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9593         Likewise.
9594         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9595         Likewise.
9596         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9597         Likewise.
9598         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9599         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9600         from GLIBC_2.3.2.
9601
9602 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9603
9604         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9605
9606 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9607
9608         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9609         trailing whitespace removed.
9610         * scripts/config.guess: Update to version 2013-11-29.
9611         * scripts/config.sub: Update to version 2013-10-01.
9612
9613         * math/auto-libm-test-in: Add tests of sincos.
9614         * math/auto-libm-test-out: Regenerated.
9615         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9616         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9617         mpfr_f_11.
9618         (func_calc_desc): Add mpfr_f_11 union field.
9619         (test_functions): Add sincos.
9620         (calc_generic_results): Handle mpfr_f_11.
9621         * sysdeps/i386/fpu/libm-test-ulps: Update.
9622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9623
9624 2013-12-19  Andreas Schwab  <schwab@suse.de>
9625
9626         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9627         CALL_MCOUNT.
9628         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9629         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9630         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9631
9632 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9633
9634         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9635         * sysdeps/i386/fpu/libm-test-ulps: Update.
9636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9637
9638         [BZ #16293]
9639         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9640         round-to-nearest mode when using frndint.
9641         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9642         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9643         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9644         Likewise.
9645         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9646         sinh test to fail.
9647         * math/auto-libm-test-out: Regenerated.
9648         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9649         (TEST_COND_x86): Likewise.
9650         (expm1_tonearest_test_data): New array.
9651         (expm1_test_tonearest): New function.
9652         (expm1_towardzero_test_data): New array.
9653         (expm1_test_towardzero): New function.
9654         (expm1_downward_test_data): New array.
9655         (expm1_test_downward): New function.
9656         (expm1_upward_test_data): New array.
9657         (expm1_test_upward): New function.
9658         (main): Run the new test functions.
9659         * sysdeps/i386/fpu/libm-test-ulps: Update.
9660         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9661
9662         * include/features.h: Update comment documenting feature test
9663         macros.  Mention _DEFAULT_SOURCE in comment.
9664         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9665         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9666         _BSD_SOURCE and _SVID_SOURCE.
9667         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9668         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9669         !_SVID_SOURCE]: Likewise.
9670         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9671         (__USE_POSIX_IMPLICITLY): Define.
9672         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9673         (_POSIX_SOURCE): Undefine and redefine.
9674         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9675         (_POSIX_C_SOURCE): Likewise.
9676         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9677         (Feature Test Macros): Update documentation of default features.
9678
9679 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9680
9681         * benchtests/Makefile: Add bench-strtok.
9682         * benchtests/bench-strtok.c: New file: strtok benchtest.
9683
9684 2013-12-19  Allan McRae  <allan@archlinux.org>
9685
9686         * manual/install.texi: Suppress menu for plain text output.
9687         * INSTALL: Regenerated.
9688
9689 2013-12-18  Brooks Moses  <bmoses@google.com>
9690
9691         [BZ #15846]
9692         * misc/getauxval.c: Include errno.h.
9693         (__getauxval): Set errno to ENOENT if the requested type is not
9694         found.
9695         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9696         don't declare with __attribute_const__.
9697         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9698         * manual/startup.texi: Document that getauxval sets errno.
9699
9700 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9701
9702         * math/auto-libm-test-in: Add tests of jn and yn.
9703         * math/auto-libm-test-out: Regenerated.
9704         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9705         (yn_test_data): Likewise.
9706         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9707         mpfr_if_f.
9708         (func_calc_desc): Add mpfr_if_f union field.
9709         (FUNC_mpfr_if_f): New macro.
9710         (test_functions): Add jn and yn.
9711         (calc_generic_results): Assert type of second input for
9712         mpfr_ff_f.  Handle mpfr_if_f.
9713         (output_for_one_input_case): Disable all checking for arguments
9714         fitting floating-point types in case of an integer argument.
9715         * sysdeps/i386/fpu/libm-test-ulps: Update.
9716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9717
9718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9719         Don't expect fegetround reference in libm.so.
9720
9721 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9722
9723         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9724         $(config-cflags-nofma).
9725
9726 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9727
9728         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9729         * math/auto-libm-test-out: Regenerated.
9730
9731         [BZ #16338]
9732         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9733         to determine exponent and adjust argument to have exponent of -1.
9734         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9735         log2.
9736         * math/auto-libm-test-out: Regenerated.
9737         * sysdeps/i386/fpu/libm-test-ulps: Update.
9738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9739
9740 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9741
9742         * manual/probes.texi: Remove cases when per-thread arenas are
9743         disabled.
9744
9745 2013-12-18  Andreas Schwab  <schwab@suse.de>
9746
9747         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9748         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9749         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9750         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9751         * sysdeps/i386/i686/multiarch/Makefile: Update.
9752         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9753
9754 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9755
9756         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9757         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9758
9759 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9760
9761         [BZ #15968]
9762         Support TZ transition times < 00:00:00.
9763         This is needed for version-3 tz-format files; it supports time
9764         stamps past 2037 for America/Godthab (the only entry in the tz
9765         database for which this change is relevant).
9766         * manual/time.texi (TZ Variable): Document transition times
9767         from -167:59:59 through -00:00:01.
9768         * time/tzset.c (tz_rule): Time of day is now signed.
9769         (__tzset_parse_tz): Parse negative time of day.
9770
9771         Document TZ transition times >= 25:00:00.
9772         * manual/time.texi (TZ Variable): Document transition times from
9773         25:00:00 through 167:59:59.  These are already supported, and this
9774         support will help with version-3 tz-format files.
9775
9776         * manual/time.texi (TZ Variable): Modernize North America example
9777         to reflect current (i.e., 2007-and-later) daylight saving rules.
9778
9779         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9780
9781 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9782
9783         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9784         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9785         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9786         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9787         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9788         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9789         * sysdeps/unix/bsd/clock.c: Likewise.
9790         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9791         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9792         * sysdeps/unix/bsd/init-posix.c: Likewise.
9793         * sysdeps/unix/bsd/poll.c: Likewise.
9794         * sysdeps/unix/bsd/ptsname.c: Likewise.
9795         * sysdeps/unix/bsd/seekdir.c: Likewise.
9796         * sysdeps/unix/bsd/setegid.c: Likewise.
9797         * sysdeps/unix/bsd/seteuid.c: Likewise.
9798         * sysdeps/unix/bsd/setgid.c: Likewise.
9799         * sysdeps/unix/bsd/setrgid.c: Likewise.
9800         * sysdeps/unix/bsd/setruid.c: Likewise.
9801         * sysdeps/unix/bsd/setsid.c: Likewise.
9802         * sysdeps/unix/bsd/setuid.c: Likewise.
9803         * sysdeps/unix/bsd/sigaction.c: Likewise.
9804         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9805         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9806         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9807         * sysdeps/unix/bsd/telldir.c: Likewise.
9808         * sysdeps/unix/bsd/times.c: Likewise.
9809         * sysdeps/unix/bsd/usleep.c: Likewise.
9810
9811         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9812         ($(objpfx)libbsd-compat.a): Remove rule.
9813
9814         * include/features.h (__FAVOR_BSD): Do not define.
9815         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9816         features conflicting with POSIX.
9817         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9818         (_BSD_SOURCE): Remove description of not being a subset of other
9819         feature test macros.
9820         * manual/job.texi (getpgrp): Do not document BSD version.
9821         (getpgid): Do not document by reference to BSD getpgrp.
9822         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9823         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9824         * signal/signal.h [__FAVOR_BSD]: Likewise.
9825         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9826         instead of making contents conditional on [__FAVOR_BSD].
9827         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9828
9829 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9830
9831         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9832
9833 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9834
9835         [BZ #16314]
9836         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9837         values below 2**-450, not 2**-500.
9838         * math/auto-libm-test-in: Don't allow spurious underflow from
9839         hypot.
9840         * math/auto-libm-test-out: Regenerated.
9841
9842         [BZ #16316]
9843         [BZ #16330]
9844         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9845         values of ha and hb and sort them after adjusting subnormal
9846         arguments.
9847         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9848         Likewise.
9849         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9850         values of ea and eb and sort them after adjusting subnormal
9851         arguments.
9852         * math/auto-libm-test-in: Do not expect some hypot tests of
9853         subnormals to fail.  Add more hypot tests.
9854         * math/auto-libm-test-out: Regenerated.
9855
9856 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9857
9858         [BZ #13304]
9859         * sysdeps/sh/s_fma.c: New file.
9860         * sysdeps/sh/s_fmaf.c: New file.
9861         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9862         version.
9863         * sysdeps/sh/Implies: Add sh/soft-fp.
9864
9865 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9866
9867         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9868         level of indirection to members `objname', `errstring', `malloced'.
9869         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9870         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9871         it as the __longjmp argument (just pass 1 instead).
9872         (_dl_catch_error): Initialize C with argument pointers and address of
9873         volatile local ERRCODE rather than copying values out of C at return.
9874
9875 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9876
9877         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9878         * math/auto-libm-test-out: Regenerated.
9879         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9880         (hypot_test_data): Likewise.
9881         (pow_test_data): Likewise.
9882         (pow_tonearest_test_data): Likewise.
9883         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9884         mpfr_ff_f.
9885         (func_calc_desc): Add mpfr_ff_f union field.
9886         (FUNC_mpfr_ff_f): New macro.
9887         (test_functions): Add atan2, hypot and pow.
9888         (special_fill_min): New function.
9889         (special_fill_minus_min): Likewise.
9890         (special_fill_min_subnorm): Likewise.
9891         (special_fill_minus_min_subnorm): Likewise.
9892         (special_real_inputs): Add min, -min, min_subnorm and
9893         -min_subnorm.
9894         (calc_generic_results): Handle mpfr_ff_f.
9895         * sysdeps/i386/fpu/libm-test-ulps: Update.
9896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9897
9898 2013-12-16  Will Newton  <will.newton@linaro.org>
9899
9900         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9901         (Aligned Memory Blocks): Add documentation for aligned_alloc
9902         and suggest it as an alternative to posix_memalign.
9903         (Hooks for Malloc): Document __memalign_hook is also called
9904         for aligned_alloc.  (Summary of Malloc): Add summary for
9905         aligned alloc.  Document __memalign_hook is also called
9906         for aligned_alloc.
9907
9908 2013-12-16  Will Newton  <will.newton@linaro.org>
9909
9910         * manual/memory.texi (Malloc Examples): Clarify default
9911         alignment documentation.  Suggest posix_memalign rather
9912         than memalign or valloc.
9913         (Aligned Memory Blocks): Remove suggestion to use memalign
9914         or valloc.  Remove obsolete comment about BSD.
9915         Document memalign errno values and mark the function obsolete.
9916         Document posix_memalign returned error codes.  Mark valloc
9917         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9918         called for posix_memalign and valloc.
9919         (Summary of Malloc): Add posix_memalign to function summary.
9920         __memalign_hook is also called for posix_memalign and valloc.
9921
9922 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9923
9924         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9925         TAYLOR_SIN.
9926         (__sin): Adjust.
9927         (__cos): Likewise.
9928         (sloww): Use mynumber union.  Expand ternary operator into
9929         if-else statements.
9930         (cslow): use mynumber union.
9931
9932 2013-12-16  Allan McRae  <allan@archlinux.org>
9933
9934         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9935         * configure: Regenerated.
9936
9937         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9938
9939         [BZ #14120]
9940         * configure.ac: Added --enable-maintainer-mode. Check for
9941         autoconf when enabled.
9942         * configure: Regenerated.
9943
9944         * nscd/nscd.service: New file.
9945         * nscd/nscd.tmpfiles: New file.
9946
9947 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9948
9949         [BZ #12100]
9950         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9951         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9952         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9953         (strstr): Add __strstr_sse2_unaligned ifunc.
9954         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9955         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9956         (strcasestr): Remove __strcasestr_sse42 ifunc.
9957         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9958         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9959         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9960
9961 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9962
9963         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9964         * sysdeps/sh/bits/fenv.h: ... here.
9965         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9966
9967 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9968
9969         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9970
9971         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9972         hypotf multiarch implementations.
9973         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9974         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9975         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9976         multiarch hypot for PPC64.
9977         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9978         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9979         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9980         multiarch hypotf for PPC64.
9981
9982         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9983         modff multiarch implementations.
9984         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9985         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9986         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9987         multiarch modf for PPC64.
9988         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9991         multiarch modff for PPC64.
9992
9993         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9994         and logl multiarch implementations.
9995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9996         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9997         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9998         multiarch logb for PPC64.
9999         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
10000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
10001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
10002         multiarch logb for PPC64.
10003         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
10004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
10005         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
10006         multiarch logb for PPC64.
10007
10008         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
10009         isinff multiarch implementation.
10010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
10011         file.
10012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
10013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
10014         multiarch isinf for PPC64.
10015         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
10016         file.
10017         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
10018         multiarch isinff for PPC64.
10019
10020         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
10021         finitef multiarch implementation.
10022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
10023         file.
10024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
10025         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
10026         multiarch finite for PPC64.
10027         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
10028         file.
10029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
10030         multiarch finitef for PPC64.
10031
10032         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
10033         lrint multiarch implementation.
10034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
10035         file.
10036         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
10037         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
10038         multiarch llrint for PPC64.
10039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
10040         multiarch lrint for PPC64.
10041
10042         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
10043         copysignf multiarch implementation.
10044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
10045         file.
10046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
10047         file.
10048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
10049         multiarch copysign for PPC64.
10050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
10051         multiarch copysignf for PPC64.
10052
10053         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
10054         multiarch implementation.
10055         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
10056         file.
10057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10058         file.
10059         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10060         file.
10061         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10062         file.
10063         multiarch llround for PPC64.
10064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10065         multiarch trunc for PPC64.
10066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10067         multiarch truncf for PPC64.
10068
10069         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10070         multiarch implementation.
10071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10072         file.
10073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10074         file.
10075         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10076         file.
10077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10078         file.
10079         multiarch llround for PPC64.
10080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10081         multiarch round for PPC64.
10082         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10083         multiarch roundf for PPC64.
10084
10085         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10086         multiarch implementation.
10087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10088         file.
10089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10090         file.
10091         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10092         file.
10093         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10094         file.
10095         multiarch llround for PPC64.
10096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10097         multiarch floor for PPC64.
10098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10099         multiarch floorf for PPC64.
10100
10101         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10102         multiarch implementation.
10103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10104         file.
10105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10106         file.
10107         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10108         file.
10109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10110         file.
10111         multiarch llround for PPC64.
10112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10113         multiarch ceil for PPC64.
10114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10115         multiarch ceilf for PPC64.
10116
10117         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10118         multiarch implementation.
10119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10120         file.
10121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10122         file.
10123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10124         file.
10125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10126         multiarch llround for PPC64.
10127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10128         multiarch lround for PPC64.
10129
10130         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10131         multiarch implementation.
10132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10135         file.
10136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10139         multiarch isnan for PPC64.
10140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10141         multiarch isnanf for PPC64.
10142
10143         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10144         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10145         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10146         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10147         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10149
10150         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10151         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10152         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10153         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10154
10155         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10156         multiarch implementations.
10157         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10158         (__libc_ifunc_impl_list): Likewise.
10159         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10160         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10161         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10162         multiarch stpcpy for PPC64.
10163
10164         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10165         multiarch implementations.
10166         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10167         (__libc_ifunc_impl_list): Likewise.
10168         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10169         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10170         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10171         multiarch strcpy for PPC64.
10172
10173         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10174         redefine function name.
10175         (_wordcopy_fwd_dest_aligned): Likewise.
10176         (_wordcopy_bwd_aligned): Likewise.
10177         (_wordcopy_bwd_dest_aligned): Likewise.
10178         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10179         multiarch implementations.
10180         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10181         (__libc_ifunc_impl_list): Likewise.
10182         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10183         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10184         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10185         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10186         multiarch wcscpy for PPC64.
10187
10188         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10189         multiarch implementations.
10190         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10191         (__libc_ifunc_impl_list): Likewise.
10192         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10193         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10194         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10195         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10196         multiarch wcscpy for PPC64.
10197
10198         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10199         multiarch implementations.
10200         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10201         (__libc_ifunc_impl_list): Likewise.
10202         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10203         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10204         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10205         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10206         multiarch wcsrchr for PPC64.
10207
10208         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10209         multiarch implementations.
10210         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10211         (__libc_ifunc_impl_list): Likewise.
10212         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10213         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10214         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10215         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10216         multiarch wcschr for PPC64.
10217
10218         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10219         multiarch implementations.
10220         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10221         (__libc_ifunc_impl_list): Likewise.
10222         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10223         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10224         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10225         multiarch strchrnul for PPC64.
10226
10227         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10228         implementations.
10229         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10230         (__libc_ifunc_impl_list): Likewise.
10231         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10232         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10233         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10234         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10235         strchr for PPC64.
10236
10237         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10238         implementations.
10239         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10240         (__libc_ifunc_impl_list): Likewise.
10241         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10242         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10243         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10244         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10245         strncmp for PPC64.
10246
10247         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10248         multiarch implementations.
10249         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10250         (__libc_ifunc_impl_list): Likewise.
10251         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10252         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10253         strncasecmp for PPC64.
10254         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10255         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10256         multiarch strncasecmp_l for PPC64.
10257
10258         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10259         multiarch implementations.
10260         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10261         (__libc_ifunc_impl_list): Likewise.
10262         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10263         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10264         multiarch strcasecmp for PPC64.
10265         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10266         file.
10267         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10268         multiarch strcasecmp_l for PPC64.
10269
10270         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10271         implementations.
10272         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10273         (__libc_ifunc_impl_list): Likewise.
10274         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10275         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10276         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10277         strnlen for PPC64.
10278
10279         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10280         implementations.
10281         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10282         (__libc_ifunc_impl_list): Likewise.
10283         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10284         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10285         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10286         strlen for PPC64.
10287
10288         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10289         implementations.
10290         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10291         (__libc_ifunc_impl_list): Likewise.
10292         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10293         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10294         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10295         rawmemrchr for PPC64.
10296
10297         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10298         implementation.
10299         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10300         (__libc_ifunc_impl_list): Likewise.
10301         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10302         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10303         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10304         memrchr for PPC64.
10305
10306         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10307         implementation.
10308         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10309         (__libc_ifunc_impl_list): Likewise.
10310         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10311         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10312         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10313         memchr for PPC64.
10314
10315         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10316         implementation.
10317         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10318         (__libc_ifunc_impl_list): Likewise.
10319         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10320         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10321         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10322         mempcpy for PPC64.
10323
10324         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10325         avoid cretion of __bzero symbol.
10326         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10327         Likewise.
10328         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10329         Likewise.
10330         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10331         Likewise.
10332         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10333         multiarch implementations.
10334         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10335         (__libc_ifunc_impl_list): Likewise.
10336         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10337         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10338         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10339         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10340         bzero for PPC32.
10341         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10342         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10343         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10344         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10345         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10346         memset for PPC64.
10347         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10348
10349         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10350         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10351         implementations.
10352         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10353         (__libc_ifunc_impl_list): Likewise.
10354         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10355         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10356         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10357         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10358         memcmp for PPC64.
10359
10360         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10361         multiarch for POWER/PPC64.
10362         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10363         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10364         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10365         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10366         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10367         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10368         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10369         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10370         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10371         memcpy for PPC64.
10372
10373         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10374         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10375         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10376         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10377         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10378         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10379         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10380         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10381         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10382         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10383         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10384         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10385         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10386         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10387         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10395
10396 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10397
10398         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
10399
10400 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10401
10402         * benchtests/Makefile (bench): Add exp2 and log2.
10403         (LDLIBS-bench-exp2): Add -lm.
10404         (LDLIBS-bench-log2): Likewise.
10405         * benchtests/exp2-inputs: New inputs file.
10406         * benchtests/log2-inputs: New inputs file.
10407         * benchtests/log-inputs: Add new inputs.
10408         * benchtests/tan-inputs: Likewise.
10409
10410 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10411
10412         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
10413         definition...
10414         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
10415         (csloww2): ... from here.
10416
10417         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
10418         instead of structures.
10419         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
10420         (POLYNOMIAL): Likewise.
10421         (TAYLOR_SLOW): Likewise.
10422         (__sin): Likewise.
10423         (__cos): Likewise.
10424         (slow1): Likewise.
10425         (slow2): Likewise.
10426         (sloww): Likewise.
10427         (sloww1); Likewise.
10428         (sloww2): Likewise.
10429         (bsloww1): Likewise.
10430         (bsloww2): Likewise.
10431         (cslow2): Likewise.
10432         (csloww): Likewise.
10433         (csloww1): Likewise.
10434         (csloww2): Likewise.
10435
10436 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
10437
10438         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
10439         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
10440         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10441         * malloc/hooks.c (realloc_check): Likewise.
10442
10443         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10444         * malloc/arena.c: Remove PER_THREAD conditional.
10445         [!PER_THREAD]: Remove code.
10446         (ptmalloc_unlock_all2): Likewise.
10447         (ptmalloc_init): Likewise.
10448         (_int_new_arena): Likewise.
10449         (arena_get2): Likewise.
10450         * malloc/hooks.c (__malloc_get_state): Likewise.
10451         (__malloc_set_state): Likewise.
10452         * malloc/malloc.c: Likewise.
10453         (struct malloc_state): Likewise.
10454         (struct malloc_par): Likewise.
10455         (__libc_realloc): Likewise.
10456         (__libc_mallopt): Likewise.
10457
10458 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10459
10460         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10461
10462 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10463
10464         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10465         macro to a function.  Check for zero perturb_byte.
10466         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10467
10468         * malloc/malloc.c: (force_reg): Remove.
10469         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10470         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10471         force_reg by atomic_forced_read.
10472         * malloc/arena.c (ptmalloc_init): Likewise.
10473         * malloc/hooks.c (top_check): Likewise.
10474
10475 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10476
10477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10478
10479 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10480
10481         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10482
10483 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10484
10485         * math/auto-libm-test-in: Add tests of lgamma.
10486         * math/auto-libm-test-out: Regenerated.
10487         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10488         (M_LOG_2_SQRT_PIl): Likewise.
10489         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10490         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10491         mpfr_f_f1.
10492         (func_calc_desc): Add mpfr_f_f1 union field.
10493         (ARGS1): New macro.
10494         (ARGS2): Likewise.
10495         (ARGS3): Likewise.
10496         (ARGS4): Likewise.
10497         (RET1): Likewise.
10498         (RET2): Likewise.
10499         (CALC): Likewise.
10500         (FUNC): Likewise.
10501         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10502         (test_functions): Add lgamma.
10503         (calc_generic_results): Handle mpfr_f_f1.
10504         * sysdeps/i386/fpu/libm-test-ulps: Update.
10505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10506
10507 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10508
10509         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10510         __mpn_add_n for PowerPC64/POWER7.
10511         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10512         __mpn_sub_n for PowerPC64/POWER7.
10513
10514         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10515         __mpn_addmul_1 for PowerPC64.
10516         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10517         __mpn_submul_1 for PowerPC64.
10518         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10519         for PowerPC64.
10520         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10521         for PowerPC64.
10522
10523 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10524
10525         [BZ #15089]
10526         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10527
10528 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10529
10530         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10531
10532         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10533         add multiarch folders.
10534         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10535         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10536         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10537         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10538         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10539         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10540         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10541         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10542         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10543         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10544         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10551
10552         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10553         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10555         New file.
10556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10557         New file.
10558         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10559         multiarch __ieee754_hypot for PowerPC32.
10560         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10561         New file.
10562         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10563         New file.
10564         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10565         multiarch __ieee754_hypotf for PowerPC32.
10566
10567         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10568         long_double_symbol only if __logbl is defined.
10569         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10570         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10571         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10572         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10573         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10574         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10575         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10576         path for implementation.
10577         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10578         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10579         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10580         logb, and logbl multiarch implementations for PowerPC32.
10581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10582         file.
10583         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10584         file.
10585         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10586         multiarch logb for PowerPC32.
10587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10588         file.
10589         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10590         file.
10591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10592         multiarch logbf for PowerPC32.
10593         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10595         file.
10596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10597         multiarch logbl implementation for PowerPC32.
10598
10599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10600         and modff multiarch implementations.
10601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10602         New file.
10603         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10604         New file.
10605         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10606         multiarch modf for PowerPC32.
10607         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10608         New file.
10609         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10610         New file.
10611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10612         multiarch modff for PowerPC32.
10613
10614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10615         and lrintf multiarch implementations.
10616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10617         New file.
10618         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10619         New file.
10620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10621         multiarch lrint for PowerPC32.
10622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10623         file: multiarch lrintf for PowerPC32.
10624
10625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10626         and lroundf multiarch implementations.
10627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10628         New file.
10629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10630         New file.
10631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10632         New file.
10633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10634         multiarch lround for PowerPC32.
10635         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10636         file: multiarch lroundf for PowerPC32.
10637
10638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10639         copysign and copysignf multiarch implementations.
10640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10641         New file.
10642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10643         New file.
10644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10645         file: multiarch copysign for PowerPC32.
10646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10647         file: multiarch copysignf for PowerPC32.
10648
10649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10650         and truncf multiarch implementations.
10651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10652         New file.
10653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10654         file.
10655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10656         multiarch trunc for PowerPC32.
10657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10658         New file.
10659         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10660         New file.
10661         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10662         multiarch truncf for PowerPC32.
10663
10664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10665         and roundf multiarch implementations.
10666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10667         New file.
10668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10669         file.
10670         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10671         multiarch round for PowerPC32.
10672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10673         New file.
10674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10675         New file.
10676         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10677         multiarch roundf for PowerPC32.
10678
10679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10680         and floorf multiarch implementations.
10681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10682         New file.
10683         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10684         file.
10685         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10686         multiarch floor for PowerPC32.
10687         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10688         New file.
10689         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10690         New file.
10691         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10692         multiarch floorf for PowerPC32.
10693
10694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10695         and ceilf multiarch implementations.
10696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10697         New file.
10698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10699         file.
10700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10701         multiarch ceil for PowerPC32.
10702         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10703         New file.
10704         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10705         file.
10706         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10707         multiarch ceilf for PowerPC32.
10708
10709         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10710         is defined.
10711         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10712         FINITEF is defined.
10713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10714         and finitef multiarch implementations.
10715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10716         New file.
10717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10718         file.
10719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10720         multiarch finite for PowerPC32.
10721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10722         New file.
10723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10724         file: multiarch finitef for PowerPC32.
10725
10726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10727         and isinff multiarch implementations.
10728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10729         file.
10730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10731         file.
10732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10733         multiarch isinf for PowerPC32.
10734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10735         New file.
10736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10737         multiarch isinff for PowerPC32.
10738
10739         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10740         alias when __isnan is defined.
10741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10742         and isnanf multiarch implementations.
10743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10744         file.
10745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10746         file.
10747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10748         file.
10749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10750         file.
10751         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10752         multiarch isnan for PowerPC32.
10753         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10754         New file.
10755         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10756         New file.
10757         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10758         multiarch isnanf for PowerPC32.
10759
10760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10761         and sqrtf multiarch implementations.
10762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10763         file.
10764         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10765         file.
10766         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10767         multiarch sqrt for PowerPC32.
10768         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10769         file.
10770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10771         file.
10772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10773         multiarch sqrtf for PowerPC32.
10774
10775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10776         and llroundf multiarch implementations.
10777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10778         New file.
10779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10780         New file.
10781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10782         New file.
10783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10784         file: multiarch llround for PowerPC32.
10785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10786         file: multiarch llroundf for PowerPC32.
10787
10788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10789         multiarch PowerPC32 fpu implementations.
10790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10791         New file.
10792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10793         New file.
10794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10795         multiarch llrint for PowerPC32.
10796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10797         New file.
10798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10799         New file.
10800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10801         file.
10802
10803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10804
10805         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10806         file.
10807         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10808         file.
10809         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10810         file.
10811         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10812         multiarch wordcopy for PPC32.
10813         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10814         wordcopy objects.
10815         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10816         (__libc_ifunc_impl_list): Likewise.
10817         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10818         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10819         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10820         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10821         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10822         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10823
10824         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10825         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10826         file.
10827         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10828         file.
10829         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10830         file.
10831         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10832         multiarch wcscpy for PPC32.
10833         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10834         multiarch objects.
10835         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10836         (__libc_ifunc_impl_list): Likewise.
10837         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10838         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10839         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10840         sysdeps/powerpc/power6/wcscpy.c.
10841
10842         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10843         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10844         file.
10845         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10846         file.
10847         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10848         file.
10849         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10850         multiarch wcsrchr for PPC32.
10851         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10852         multiarch objects.
10853         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10854         (__libc_ifunc_impl_list): Likewise.
10855         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10856         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10857         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10858         sysdeps/powerpc/power6/wcsrchr.c.
10859
10860         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10861         file.
10862         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10863         file.
10864         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10865         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10866         multiarch wcschr for PPc32.
10867         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10868         multiarch objects.
10869         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10870         (__libc_ifunc_impl_list): Likewise.
10871         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10872         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10873         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10874         sysdeps/powerpc/power6/wcschr.c.
10875
10876         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10877         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10878         file.
10879         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10880         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10881         file: multiarch strchr for PPC32.
10882         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10883         multiarch objects.
10884         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10885         (__libc_ifunc_impl_list): Likewise.
10886
10887         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10888         name.
10889         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10890         file.
10891         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10892         file.
10893         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10894         multiarch strchrnul for PPC32.
10895         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10896         multiarch objects.
10897         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10898         (__libc_ifunc_impl_list): Likewise.
10899
10900         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10901         file.
10902         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10903         multiarch strncasecmp for PPC32.
10904         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10905         file.
10906         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10907         multiarch strncasecmp_l for PPC32.
10908         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10909         strncasecmp multiarch objects.
10910         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10911         (__libc_ifunc_impl_list): Likewise.
10912
10913         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10914         file.
10915         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10916         multiarch strncasecmp for PPC32.
10917         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10918         New file.
10919         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10920         multiarch strcasecmp_l for PPC32.
10921         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10922         multiarch objects.
10923         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10924         (__libc_ifunc_impl_list): Likewise.
10925
10926         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10927         file.
10928         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10929         file.
10930         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10931         multiarch strncmp for PPC32.
10932         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10933         multiarch objects.
10934         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10935         (__libc_ifunc_impl_list): Likewise.
10936
10937         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10938         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10939         file.
10940         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10941         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10942         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10943         multiarch objects.
10944         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10945         (__libc_ifunc_impl_list): Likewise.
10946
10947         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10948         file.
10949         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10950         file.
10951         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10952         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10953         multiarch objects.
10954         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10955         (__libc_ifunc_impl_list): Likewise.
10956
10957         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10958         file.
10959         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10960         file.
10961         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10962         multiarch rawmemchr for PPC32.
10963         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10964         multiarch objects.
10965         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10966         (__libc_ifunc_impl_list): Likewise.
10967
10968         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10969         file.
10970         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10971         file.
10972         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10973         file: memrchr multiarch for PPC32.
10974         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10975         multiarch objects.
10976         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10977         (__libc_ifunc_impl_list): Likewise.
10978
10979         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10980         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10981         file.
10982         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10983         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10984         multiarch memchr for PPC32.
10985         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10986         multiarch objects.
10987         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10988         (__libc_ifunc_impl_list): Likewise.
10989
10990         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10991         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10992         file.
10993         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10994         file.
10995         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10996         file: multiarch mempcpy for PPC32.
10997         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10998         multiarch objects.
10999         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11000         (__libc_ifunc_impl_list): Likewise.
11001
11002         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
11003         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
11004         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
11005         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
11006         multiarch bzero for PPC32.
11007         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
11008         file.
11009         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
11010         file.
11011         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
11012         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
11013         file: multiarch memset for PPC32.
11014         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
11015         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
11016         memset multiarch objects.
11017         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11018         (__libc_ifunc_impl_list): Likewise.
11019
11020         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
11021         file.
11022         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
11023         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
11024         memcmp for PPC32.
11025         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
11026         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
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/memcpy-a2.S: New file.
11032         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
11033         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
11034         file.
11035         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
11036         file.
11037         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
11038         file.
11039         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
11040         multiarch memcpy for PPC32.
11041         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
11042         multiarch objects.
11043         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11044         (__libc_ifunc_impl_list): Likewise.
11045
11046         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
11047         support multiarch for POWER/PPC32.
11048         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
11049         Likewise.
11050         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
11051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
11052         Implies file to make multiarch folder appers before the fpu and
11053         default folder for power4 configuration.
11054
11055 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11056
11057         * scripts/bench.pl: Append volatile keyword to type.
11058
11059 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11060
11061         * sysdeps/sh/sotruss-lib.c: New file.
11062         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11063
11064 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11065
11066         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11067
11068 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11069
11070         [BZ #6810]
11071         * math/w_tgamma.c: Include <errno.h>.
11072         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11073         * math/w_tgammaf.c: Include <errno.h>.
11074         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11075         * math/w_tgammal.c: Include <errno.h>.
11076         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11077         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11078         underflow.  Add more tgamma tests.
11079         * math/auto-libm-test-out: Regenerated.
11080         * sysdeps/i386/fpu/libm-test-ulps: Update.
11081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11082
11083         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11084         sin, sinh, tan, tanh, tgamma, y0 and y1.
11085         * math/auto-libm-test-out: Regenerated.
11086         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11087         (TEST_COND_x86): Likewise.
11088         (M_E2l): Remove macro.
11089         (M_E3l): Likewise.
11090         (M_2_SQRT_PIl): Likewise.
11091         (M_SQRT_PIl): Likewise.
11092         (M_1_DIV_El): Likewise.
11093         (log_test_data): Use AUTO_TESTS_f_f.
11094         (log10_test_data): Likewise.
11095         (log1p_test_data): Likewise.
11096         (log2_test_data): Likewise.
11097         (sin_test_data): Likewise.
11098         (sin_tonearest_test_data): Likewise.
11099         (sin_towardzero_test_data): Likewise.
11100         (sin_downward_test_data): Likewise.
11101         (sin_upward_test_data): Likewise.
11102         (sinh_test_data): Likewise.
11103         (sinh_tonearest_test_data): Likewise.
11104         (sinh_towardzero_test_data): Likewise.
11105         (sinh_downward_test_data): Likewise.
11106         (sinh_upward_test_data): Likewise.
11107         (tan_test_data): Likewise.
11108         (tan_tonearest_test_data): Likewise.
11109         (tan_towardzero_test_data): Likewise.
11110         (tan_downward_test_data): Likewise.
11111         (tan_upward_test_data): Likewise.
11112         (tanh_test_data): Likewise.
11113         (tgamma_test_data): Likewise.
11114         (y0_test_data): Likewise.
11115         (y1_test_data): Likewise.
11116         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11117         (special_real_inputs): Add pi/4.
11118         * sysdeps/i386/fpu/libm-test-ulps: Update.
11119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11120
11121 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11122
11123         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11124         "longjmp_target" static probes.
11125         (__longjmp): Rename to __longjmp_symbol.
11126         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11127         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11128         on which longjmp to generate.
11129         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11130         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11131         probe.
11132         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11133         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11134         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11135         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11136         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11137         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11139         __longjmp_symbol based on which __longjmp to generate.
11140         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11141         probe.
11142         (setjmp): Rename to setjmp_symbol.
11143         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11144         (_setjmp): Rename to _setjmp_symbol.
11145         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11146         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11147         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11148         which setjmp to generate.
11149         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11150         "longjmp_target" static probes.
11151
11152 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11153
11154         * benchtests/README: Add note about output arguments.
11155         * benchtests/bench-sincos.c: Remove file.
11156         * benchtests/sincos-inputs: New file.
11157         * scripts/bench.pl: Identify output arguments and define
11158         static variables for them.
11159
11160         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11161
11162         [BZ #15941]
11163         * Makefile (INSTALL): Add install-plain.texi as the primary
11164         dependency.
11165         * manual/install-plain.texi: New file.
11166         * manual/install.texi: Include node directive only for
11167         non-plaintext output.
11168
11169 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11170
11171         * stdlib/longlong.h: Update from GCC.
11172
11173         [BZ #6807]
11174         [BZ #15901]
11175         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11176         * math/w_j0f.c (y0f): Likewise.
11177         * math/w_j0l.c (__y0l): Likewise.
11178         * math/w_j1.c (y1): Likewise.
11179         * math/w_j1f.c (y1f): Likewise.
11180         * math/w_j1l.c (__y1l): Likewise
11181         * math/w_jn.c (yn): Likewise.
11182         * math/w_jnf.c (ynf): Likewise.
11183         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11184         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11185         value for Bessel function domain errors outside _SVID_ mode.
11186         Adjust sign of return value for yn (negative integer, 0).
11187         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11188         by zero in return for negative x and set sign appropriately for
11189         negative n.
11190         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11191         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11192         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11193         expectations in error cases.
11194         (y1_test_data): Likewise.
11195         (yn_test_data): Likewise.
11196         * sysdeps/i386/fpu/libm-test-ulps: Update.
11197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11198
11199 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11200
11201         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11202         "64" to "64-v1".  Add "64-v2".
11203         (abi-64-options): Rename to ...
11204         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11205         (abi-64-condition): Rename to ...
11206         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11207         (abi-64-ld-soname): Rename to ...
11208         (abi-64-v1-ld-soname): ... this.
11209         (abi-64-v2-options): Define.
11210         (abi-64-v2-condition): Likewise.
11211         (abi-64-v2-ld-soname): Likewise.
11212         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11213         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11217
11218 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11219             Alan Modra  <amodra@gmail.com>
11220
11221         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11222         New versions for use with the ELFv2 ABI.
11223         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11224         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11225         declaration.
11226         (struct La_ppc64v2_retval): Likewise.
11227         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11228         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11229         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11230         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11231         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11232         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11233         Do not save or restore CR.
11234         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11235         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11236         return values for ELFv2 ABI.  Fix location of FPR return registers.
11237         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11238         updated values for _CALL_ELF == 2.
11239         (La_regs, La_retval, int_retval): Likewise.
11240
11241 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11242
11243         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11244         (FRAME_MIN_SIZE_PARM): Likewise.
11245         (FRAME_BACKCHAIN): Likewise.
11246         (FRAME_CR_SAVE): Likewise.
11247         (FRAME_LR_SAVE): Likewise.
11248         (FRAME_TOC_SAVE): Likewise.
11249         (FRAME_PARM_SAVE): Likewise.
11250         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11251         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11252         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11253         (call_mcount_parm_offset): New macro.
11254         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11255         (PROF): Use symbolic stack frame offsets.
11256         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11257         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11258         Redefine in terms of FRAME_MIN_SIZE.
11259         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11260         (_dl_profile_resolve): Likewise.  Update comment.
11261         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11262         symbols stack frame offsets.
11263         (__sigsetjmp): Likewise.
11264         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11265         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11266         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11267         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11268
11269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11270         (FRAME_BACKCHAIN): Remove.
11271         (FRAME_CR_SAVE): Likewise.
11272         (FRAME_LR_SAVE): Likewise.
11273         (FRAME_COMPILER_DW): Likewise.
11274         (FRAME_LINKER_DW): Likewise.
11275         (FRAME_TOC_SAVE): Likewise.
11276         (FRAME_PARM_SAVE): Likewise.
11277         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11278         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11279         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11281         (CHECK_SP): Use symbolic stack frame offsets.
11282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11283         zone" instead of caller's parameter save area for temp storage.
11284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11285         Likewise.  Also, use symbolic stack frame offsets.
11286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11287         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11288         our own stack frame instead of the caller's.
11289         (__socket): Use symbolic stack frame offsets.
11290
11291 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11292             Alan Modra  <amodra@gmail.com>
11293
11294         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11295         Define.
11296         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11297         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11298         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11299         New function.
11300         (elf_machine_fixup_plt): Call it.
11301         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11302         reloc arguments.
11303         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11304         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11305         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11306         r2 before calling target.
11307
11308 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11309             Alan Modra  <amodra@gmail.com>
11310
11311         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11312         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11313         versions of macros to support ELFv2 ABI.
11314         (LOCALENTRY): New macro.
11315         (ENTRY, EALIGN): Use it.
11316         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11317         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11318         fall through into ENTRY entry point.
11319         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11320         Only define if _CALL_ELF != 2.
11321
11322         (elf_machine_matches_host): Verify ABI version matches.
11323         (RTLD_START): Use LOCALENTRY.
11324         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11325         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11326         (PLT_ENTRY_WORDS): New macro.
11327         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11328         (elf_machine_runtime_setup): Support ELFv2 ABI.
11329         (elf_machine_fixup_plt): Likewise.
11330         (elf_machine_plt_conflict): Likewise.
11331         (resolve_ifunc): Likewise.
11332         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11333         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11334         Likewise.
11335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11336         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11338         (makecontext): Support ELFv2 ABI.
11339         * elf/elf.h (EF_PPC64_ABI): Define.
11340
11341 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11342
11343         * sysdeps/powerpc/powerpc64/sysdep.h
11344         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11345         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11346         (ENTRY) [ASSEMBLER]: ... but instead here ...
11347         (EALIGN) [ASSEMBLER]: ... and here.
11348         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11349         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11350         (ENTRY_2) [!ASSEMBLER]: Use it.
11351         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11352         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11353         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11354         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11355         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11357         Use PPC64_LOAD_FUNCPTR.
11358
11359         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11360
11361 2013-12-04  Alan Modra  <amodra@gmail.com>
11362
11363         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11364         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11365         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11366         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11367
11368         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11369         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11370         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11371         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11372         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11373         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11374
11375 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11376
11377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11378         (__makecontext): Fix incorrect CFI when backtracing out of
11379         context created via makecontext.
11380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11381         (__setcontext): Fix incorrect CFI during switch to new context.
11382         (__novec_setcontext): Likewise.
11383
11384 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11385
11386         [BZ #4772]
11387         * time/strptime_l.c (__strptime_internal): Allow modifiers
11388         in strptime.
11389         * time/tst-strptime.c (day_tests): Add testcase.
11390
11391 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11392
11393         * scripts/bench.pl: Skip over blank lines.
11394
11395 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11396
11397         [BZ #926]
11398         * manual/time.texi (Calendar Time): Clarify what timezone functions
11399         use.
11400
11401 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11402
11403         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11404
11405 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11406
11407         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
11408         implementation.
11409         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
11410         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
11411         * debug/memset_chk.c (__memset_chk): Likewise.
11412         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
11413         * debug/strncpy_chk.c: Likewise.
11414
11415 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11416
11417         [BZ #15268]
11418         [BZ #15425]
11419         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
11420         (__ieee754_exp): For possibly underflowing results, check size of
11421         result and force underflow exception if required.
11422         * math/auto-libm-test-in: Add more tests of exp.
11423         * math/auto-libm-test-out: Regenerated.
11424         * sysdeps/i386/fpu/libm-test-ulps: Update.
11425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11426
11427         [BZ #16283]
11428         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
11429         * math/w_exp2f.c (__exp2f): Likewise.
11430         * math/w_exp2l.c (__exp2l): Likewise.
11431         * math/auto-libm-test-in: Do not allow missing errno on exp2
11432         underflow.
11433         * math/auto-libm-test-out: Regenerated.
11434
11435 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
11436
11437         [BZ #16274]
11438         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
11439         handle filename validation.
11440         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11441         (do_open): Delete.
11442
11443 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11444
11445         [BZ #6786]
11446         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11447         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11448         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11449         <float.h>.
11450         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11451         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11452         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11453         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11454         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11455         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11456         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11457         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11458         Add more erfc tests.
11459         * math/auto-libm-test-out: Regenerated.
11460         * sysdeps/i386/fpu/libm-test-ulps: Update.
11461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11462
11463         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11464         exp2, expm1, j0 and j1.
11465         * math/auto-libm-test-out: Regenerated.
11466         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11467         (erfc_test_data): Likewise.
11468         (exp_test_data): Likewise.
11469         (exp_tonearest_test_data): Likewise.
11470         (exp_towardzero_test_data): Likewise.
11471         (exp_downward_test_data): Likewise.
11472         (exp_upward_test_data): Likewise.
11473         (exp10_test_data): Likewise.
11474         (exp2_test_data): Likewise.
11475         (expm1_test_data): Likewise.
11476         (j0_test_data): Likewise.
11477         (j1_test_data): Likewise.
11478         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11479         (input_flag_type): Add flag_xfail_rounding.
11480         (input_flags): Add xfail-rounding.
11481         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11482         (output_for_one_input_case): Handle flag_xfail_rounding.
11483         * sysdeps/i386/fpu/libm-test-ulps: Update.
11484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11485
11486 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11487
11488         [BZ #16289]
11489         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11490         division by 0.
11491
11492 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11493
11494         [BZ #16195]
11495         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11496         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11497         (STAP_PROBE0): New macro.
11498         (STAP_PROBE1): Likewise.
11499         (STAP_PROBE2): Likewise.
11500         (STAP_PROBE3): Likewise.
11501         (STAP_PROBE4): Likewise.
11502
11503 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11504
11505         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11506
11507 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11508
11509         * benchtests/Makefile (bench): Add sqrt.
11510         (LDLIBS-bench-sqrt): New.
11511         * benchtests/sqrt-input: New.
11512
11513 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11514
11515         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11516         (GAIH_EAI): Likewise.
11517         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11518         (gaih_inet): Likewise.
11519         (getaddrinfo): Don't use GAIH_EAI.
11520
11521         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11522         (struct gaih): Remove definition.
11523
11524 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11525
11526         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11527         Use HERRNOP directly.
11528
11529 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11530
11531         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11532
11533 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11534
11535         * math/gen-auto-libm-tests.c (test_functions): Add more
11536         single-argument functions.
11537         (special_fill_pi_2): New function.
11538         (special_fill_minus_pi_2): Likewise.
11539         (special_fill_pi_6): Likewise.
11540         (special_fill_minus_pi_6): Likewise.
11541         (special_fill_pi_3): Likewise.
11542         (special_fill_2pi_3): Likewise.
11543         (special_fill_e): Likewise.
11544         (special_fill_1_e): Likewise.
11545         (special_fill_e_minus_1): Likewise.
11546         (special_real_inputs): Add more special inputs.
11547         (output_for_one_input_case): Do not require ERANGE on underflow to
11548         zero if round-to-nearest result does not underflow to zero, unless
11549         exact results required.
11550         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11551         atan, atanh, cbrt, cos and cosh.
11552         * math/auto-libm-test-out: Regenerated.
11553         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11554         (acos_tonearest_test_data): Likewise.
11555         (acos_towardzero_test_data): Likewise.
11556         (acos_downward_test_data): Likewise.
11557         (acos_upward_test_data): Likewise.
11558         (acosh_test_data): Likewise.
11559         (asin_test_data): Likewise.
11560         (asin_tonearest_test_data): Likewise.
11561         (asin_towardzero_test_data): Likewise.
11562         (asin_upward_test_data): Likewise.
11563         (asinh_test_data): Likewise.
11564         (atan_test_data): Likewise.
11565         (atanh_test_data): Likewise.
11566         (cbrt_test_data): Likewise.
11567         (cos_test_data): Likewise.
11568         (cos_tonearest_test_data): Likewise.
11569         (cos_towardzero_test_data): Likewise.
11570         (cos_downward_test_data): Likewise.
11571         (cos_upward_test_data): Likewise.
11572         (cosh_test_data): Likewise.
11573         (cosh_tonearest_test_data): Likewise.
11574         (cosh_towardzero_test_data): Likewise.
11575         (cosh_downward_test_data): Likewise.
11576         (cosh_upward_test_data): Likewise.
11577         * sysdeps/i386/fpu/libm-test-ulps: Update.
11578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11579
11580 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11581
11582         [BZ #6787]
11583         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11584         * math/w_exp10f.c (__exp10f): Likewise.
11585         * math/w_exp10l.c (__exp10l): Likewise.
11586         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11587         errno settings in existing tests.
11588
11589         [BZ #14032]
11590         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11591         precision control set to double precision.
11592         * sysdeps/i386/fpu/w_sqrt.c: New file.
11593         * math/auto-libm-test-in: Add more tests.
11594         * math/auto-libm-test-out: Update.
11595
11596         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11597         (sqrt_test_tonearest): New function.
11598         (sqrt_towardzero_test_data): New variable.
11599         (sqrt_test_towardzero): New function.
11600         (sqrt_downward_test_data): New variable.
11601         (sqrt_test_downward): New function.
11602         (sqrt_upward_test_data): New variable.
11603         (sqrt_test_upward): New function.
11604         (main): Call the new functions.
11605
11606         * math/gen-auto-libm-tests.c: New file.
11607         * math/auto-libm-test-in: Likewise.
11608         * math/auto-libm-test-out: New generated file.
11609         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11610         variables.
11611         (%beautify): Add generated representations of zero.
11612         (top level): Set $auto_input and call parse_auto_input.
11613         (beautify): Remove trailing "f" from hex float constants.
11614         (parse_args): Handle XFAIL_TEST.
11615         (convert_condition): New function.
11616         (or_value): Likewise.
11617         (or_cond_value): Likewise.
11618         (generate_testfile): Handle AUTO_TESTS_* lines.
11619         (parse_auto_input): New function.
11620         * math/libm-test.inc (XFAIL_TEST): New macro.
11621         (ERRNO_UNCHANGED): Update value.
11622         (ERRNO_EDOM): Likewise.
11623         (ERRNO_ERANGE): Likewise.
11624         (IGNORE_RESULT): Likewise.
11625         (TEST_COND_flt_32): New macro.
11626         (TEST_COND_dbl_64): Likewise.
11627         (TEST_COND_ldbl_96_intel): Likewise.
11628         (TEST_COND_ldbl_96_m68k): Likewise.
11629         (TEST_COND_ldbl_128): Likewise.
11630         (TEST_COND_ldbl_128ibm): Likewise.
11631         (TEST_COND_long32): Likewise.
11632         (TEST_COND_long64): Likewise.
11633         (TEST_COND_before_rounding): Likewise.
11634         (TEST_COND_after_rounding): Likewise.
11635         (enable_test): Handle XFAIL_TEST flag.
11636         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11637         with finite results.
11638         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11639         auto-libm-test-out.
11640
11641 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11642             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11643
11644         [BZ #16214]
11645         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11646         __tls_get_addr_internal instead of __tls_get_offset in order to
11647         avoid GOT pointer dependency.  Make rtld export
11648         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11649         __tls_get_addr since we are a __tls_get_offset platform.
11650         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11651         GOT pointer being set up before.
11652         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11653
11654 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11655
11656         * manual/math.texi (Errors in Math Functions): Document accuracy
11657         goals.
11658
11659         [BZ #15004]
11660         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11661         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11662         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11664         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11666         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11668         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11669         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11673         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11674         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11675         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11676
11677         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11678         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11679         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11680         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11681         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11682         Likewise.
11683         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11684         Likewise.
11685         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11686         Likewise.
11687         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11688         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11689         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11690         atomic-feupdateenv and flt-rounds.
11691         * sysdeps/powerpc/nofpu/Versions (libc): Add
11692         __atomic_feholdexcept, __atomic_feclearexcept,
11693         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11694         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11695         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11696         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11697         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11698         here.
11699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11700         Update.
11701
11702         * manual/arith.texi (FP Exceptions): Document that exceptions may
11703         not be raised when matherr is used.
11704         (Math Error Reporting): Document overflow in directed rounding
11705         modes.  Document that errno may not be set when finite values are
11706         returned on overflow.  Document intent to set errno on underflow
11707         only for underflow to zero.
11708
11709         [BZ #16271]
11710         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11711         round-to-nearest then adjust result for other rounding modes.
11712         * include/fenv.h (fegetround): Use libm_hidden_proto.
11713         * math/fegetround.c (fegetround): Use libm_hidden_def.
11714         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11715         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11716         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11717         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11718         Likewise.
11719         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11720         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11721         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11722         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11723
11724 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11725
11726         [BZ #16077]
11727         * nss/Versions (libnss_files): Add
11728         _nss_files_gethostbyname3_r.
11729         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11730         New function.
11731         (HOST_DB_LOOKUP): Remove macro.
11732         (_nss_files_gethostbyname_r): Implement function without the
11733         HOST_DB_LOOKUP macro.
11734         (_nss_files_gethostbyname2_r): Likewise.
11735
11736 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11737
11738         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11739
11740 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11741
11742         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11743         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11744         warning.
11745
11746 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11747
11748         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11749         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11750         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11751         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11752         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11753         __fe_nomask_env_priv and attribute_hidden.
11754         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11755         (libc_feupdateenv_test_ppc): Likewise.
11756         (libc_feresetround_ppc): Likewise.
11757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11758         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11759         compat_symbol macro.
11760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11761         (__fe_nomask_env): Likewise.
11762         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11763
11764 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11765
11766         * string/Makefile: Remove ifunc tests.
11767         * string/test-string.h: Define TEST_IFUNC.
11768         * string/test-bcopy-ifunc.c: Remove.
11769         * string/test-bzero-ifunc.c: Likewise.
11770         * string/test-memccpy-ifunc.c: Likewise.
11771         * string/test-memchr-ifunc.c: Likewise.
11772         * string/test-memcmp-ifunc.c: Likewise.
11773         * string/test-memcpy-ifunc.c: Likewise.
11774         * string/test-memmem-ifunc.c: Likewise.
11775         * string/test-memmove-ifunc.c: Likewise.
11776         * string/test-mempcpy-ifunc.c: Likewise.
11777         * string/test-memrchr-ifunc.c: Likewise.
11778         * string/test-memset-ifunc.c: Likewise.
11779         * string/test-rawmemchr-ifunc.c: Likewise.
11780         * string/test-stpcpy-ifunc.c: Likewise.
11781         * string/test-stpncpy-ifunc.c: Likewise.
11782         * string/test-strcasecmp-ifunc.c: Likewise.
11783         * string/test-strcasestr-ifunc.c: Likewise.
11784         * string/test-strcat-ifunc.c: Likewise.
11785         * string/test-strchr-ifunc.c: Likewise.
11786         * string/test-strchrnul-ifunc.c: Likewise.
11787         * string/test-strcmp-ifunc.c: Likewise.
11788         * string/test-strcpy-ifunc.c: Likewise.
11789         * string/test-strcspn-ifunc.c: Likewise.
11790         * string/test-strlen-ifunc.c: Likewise.
11791         * string/test-strncasecmp-ifunc.c: Likewise.
11792         * string/test-strncat-ifunc.c: Likewise.
11793         * string/test-strncmp-ifunc.c: Likewise.
11794         * string/test-strncpy-ifunc.c: Likewise.
11795         * string/test-strnlen-ifunc.c: Likewise.
11796         * string/test-strpbrk-ifunc.c: Likewise.
11797         * string/test-strrchr-ifunc.c: Likewise.
11798         * string/test-strspn-ifunc.c: Likewise.
11799         * string/test-strstr-ifunc.c: Likewise.
11800
11801 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11802
11803         * benchtests/Makefile: Remove ifunc tests.
11804         * benchtests/bench-string.h: Define TEST_IFUNC.
11805         * benchtests/bench-bcopy-ifunc.c: Remove.
11806         * benchtests/bench-bzero-ifunc.c: Likewise.
11807         * benchtests/bench-memccpy-ifunc.c: Likewise.
11808         * benchtests/bench-memchr-ifunc.c: Likewise.
11809         * benchtests/bench-memcmp-ifunc.c: Likewise.
11810         * benchtests/bench-memcpy-ifunc.c: Likewise.
11811         * benchtests/bench-memmem-ifunc.c: Likewise.
11812         * benchtests/bench-memmove-ifunc.c: Likewise.
11813         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11814         * benchtests/bench-memrchr-ifunc.c: Likewise.
11815         * benchtests/bench-memset-ifunc.c: Likewise.
11816         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11817         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11818         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11819         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11820         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11821         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11822         * benchtests/bench-strcat-ifunc.c: Likewise.
11823         * benchtests/bench-strchr-ifunc.c: Likewise.
11824         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11825         * benchtests/bench-strcmp-ifunc.c: Likewise.
11826         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11827         * benchtests/bench-strcpy-ifunc.c: Likewise.
11828         * benchtests/bench-strcspn-ifunc.c: Likewise.
11829         * benchtests/bench-strlen-ifunc.c: Likewise.
11830         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11831         * benchtests/bench-strncat-ifunc.c: Likewise.
11832         * benchtests/bench-strncmp-ifunc.c: Likewise.
11833         * benchtests/bench-strncpy-ifunc.c: Likewise.
11834         * benchtests/bench-strnlen-ifunc.c: Likewise.
11835         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11836         * benchtests/bench-strrchr-ifunc.c: Likewise.
11837         * benchtests/bench-strsep-ifunc.c: Likewise.
11838         * benchtests/bench-strspn-ifunc.c: Likewise.
11839         * benchtests/bench-strstr-ifunc.c: Likewise.
11840
11841 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11842
11843         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11844
11845 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11846
11847         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11848         * rt/aio.h: Likewise.
11849         * sysdeps/gnu/bits/utmp.h: Likewise.
11850         * sysdeps/gnu/bits/utmpx.h: Likewise.
11851         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11852         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11853         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11854         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11855         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11856         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11857         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11858         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11859         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11860         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11861         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11862         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11863         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11865         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11866         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11867         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11868         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11869         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11870         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11871         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11872         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11873         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11874         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11875         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11876         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11877         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11878         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11879         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11880         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11881         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11882         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11883         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11884         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11885         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11886         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11887         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11888         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11889         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11890         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11891         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11892         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11893
11894 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11895
11896         [BZ #16245]
11897         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11898         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11899
11900 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11901
11902         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11903         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11904         Likewise.
11905
11906 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11907
11908         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11909         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11910         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11911         (__fesetround): Remove define.
11912         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11913         rounding and exceptions handling.
11914         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11915         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11916         (__fe_nomask_env): Likewise.
11917         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11918         __fegetround instead of fegetround.
11919         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11920         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11921
11922 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11923
11924         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11925         it's there.
11926
11927         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11928
11929 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11930
11931         [BZ #11157]
11932         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11933         (encrypt_r): Likewise.
11934         * malloc/obstack.h (obstack_free): Likewise.
11935         * posix/unistd.h (encrypt): Likewise.
11936
11937 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11938
11939         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11940         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11941         DL_CALL_DT_FINI() that call the functions directly.
11942         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11943         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11944         * elf/dl-fini.c: Likewise.
11945
11946 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11947
11948         * malloc/hooks.c (memalign_check): Add alignment rounding.
11949         * malloc/malloc.c (_mid_memalign): New function.
11950         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11951         Implement by calling _mid_memalign.
11952         * manual/probes.texi (Memory Allocation Probes): Remove
11953         memory_valloc_retry and memory_pvalloc_retry.
11954
11955 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11956
11957         * locale/programs/locarchive.c (open_archive): Add const
11958         qualifier to ARCHIVEFNAME and copy default fname to
11959         DEFAULT_FNAME.
11960
11961         [BZ #15601]
11962         * libio/tst-widetext.input: Rename Oriya to Odia.
11963         * locale/iso-639.def: Likewise.
11964
11965         * manual/probes.texi (Mathematical Function Probes): Add
11966         documentation for sin, cos, asin and acos probes.
11967         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11968         (__sin32): Add slowasin probe.
11969         (__cos32): Add slowacos probe.
11970         (__mpsin): Add slowsin probe.
11971         (__mpcos): Add slowcos probe.
11972
11973 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11974
11975         [BZ #15483]
11976         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11977         thread-local __sim_exceptions_thread and global
11978         __sim_exceptions_global.
11979         (__sim_disabled_exceptions): Change to thread-local
11980         __sim_disabled_exceptions_thread and global
11981         __sim_disabled_exceptions_global.
11982         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11983         and global __sim_round_mode_global.
11984         (__simulate_exceptions): Use thread-local floating-point state and
11985         set global state from it as needed.
11986         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11987         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11988         __sim_round_mode_thread.
11989         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11990         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11991         and global __sim_exceptions_global.
11992         (__sim_disabled_exceptions): Change to thread-local
11993         __sim_disabled_exceptions_thread and global
11994         __sim_disabled_exceptions_global.
11995         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11996         and global __sim_round_mode_global.
11997         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11998         (SIM_SET_GLOBAL): Likewise.
11999         * sysdeps/powerpc/soft-fp/sfp-machine.h
12000         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
12001         __sim_round_mode_thread.
12002         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
12003         __sim_disabled_exceptions_thread.
12004         (__sim_exceptions): Change to __sim_exceptions_thread.
12005         (__sim_disabled_exceptions): Change to
12006         __sim_disabled_exceptions_thread.
12007         (__sim_round_mode): Change to __sim_round_mode_thread.
12008         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
12009         thread-local floating-point state and set global state from it as
12010         needed.
12011         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
12012         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
12013         (__sim_disabled_exceptions): Remove extern declaration.
12014         (feenableexcept): Use thread-local floating-point state and set
12015         global state from it as needed.
12016         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
12017         extern declaration.
12018         (__sim_disabled_exceptions): Likewise.
12019         (__sim_round_mode): Likewise.
12020         (__fegetenv): Use thread-local floating-point state.
12021         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
12022         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12023         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
12024         floating-point state and set global state from it as needed.
12025         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
12026         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
12027         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
12028         Likewise.
12029         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
12030         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
12031         Likewise.
12032         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
12033         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
12034         Use __sim_round_mode_thread.
12035         * math/test-fenv-tls.c: New file.
12036         * math/Makefile (tests): Add test-fenv-tls.
12037         ($(objpfx)test-fenv-tls): Depend on
12038         $(common-objpfx)nptl/libpthread.so.
12039
12040 2013-11-19  Andreas Schwab  <schwab@suse.de>
12041
12042         * locale/programs/locale.c (show_info): Decode wordarray elements.
12043         * locale/categories.def (LC_MONETARY): Add element for
12044         _NL_MONETARY_CRNCYSTR.
12045         * locale/C-monetary.c (conversion_rate): New variable.
12046         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
12047         element.
12048
12049 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
12050
12051         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
12052         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
12053
12054 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12055
12056         * elf/Makefile (tst-auxv): New test.
12057         * elf/tst-auxv.c: New
12058         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12059
12060 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12061
12062         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12063         (hidden_proto): Caller changed.
12064         (hidden_tls_proto): New macro.
12065         (libc_hidden_tls_proto): Likewise.
12066         (rtld_hidden_tls_proto): Likewise.
12067         (libm_hidden_tls_proto): Likewise.
12068         (libresolv_hidden_tls_proto): Likewise.
12069         (librt_hidden_tls_proto): Likewise.
12070         (libdl_hidden_tls_proto): Likewise.
12071         (libnss_files_hidden_tls_proto): Likewise.
12072         (libnsl_hidden_tls_proto): Likewise.
12073         (libnss_nisplus_hidden_tls_proto): Likewise.
12074         (libutil_hidden_tls_proto): Likewise.
12075
12076 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12077
12078         [BZ #10253]
12079         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12080         (decompose_rpath): Defer expansion to fillin_rpath.
12081         (_dl_init_paths): Pass linkmap to fillin_rpath.
12082
12083 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12084
12085         * benchtests/Makefile: Add strsep.
12086         * benchtests/bench-strsep.c: New file: strsep benchtest.
12087         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12088
12089 2013-11-18  Andreas Schwab  <schwab@suse.de>
12090
12091         * locale/programs/locale.c (show_info) [case byte]: Check for
12092         '\377' instead of '\177'.
12093         * locale/C-monetary.c (not_available): Always use "\377".
12094         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12095         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12096         detect unavailable sign_posn locale elements.
12097         * locale/localeconv.c (__localeconv): For grouping and
12098         mon_grouping handle "\177" and "\377" like no grouping.
12099         (INT_ELEM): New macro.  Use it to set all numeric members.
12100         * locale/programs/ld-monetary.c (monetary_read)
12101         <tok_mon_grouping>: Normalize single -1 to the empty string.
12102         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12103         Likewise.
12104
12105 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12106
12107         [BZ #16055]
12108         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12109         when we match (nil).
12110         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12111
12112 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12113
12114         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12115         (NO_TEST_INLINE): Update value.
12116         (ERRNO_UNCHANGED): Likewise.
12117         (ERRNO_EDOM): Likewise.
12118         (ERRNO_ERANGE): Likewise.
12119         (IGNORE_RESULT): Likewise.
12120         (check_float_internal): Check signs of NaN results if
12121         TEST_NAN_SIGN used.
12122         (check_complex): Pass TEST_NAN_SIGN flag through to second
12123         check_float_internal call.
12124         (copysign_test_data): Add tests with quiet NaNs as second
12125         argument.  Use TEST_NAN_SIGN.
12126         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12127         TEST_NAN_SIGN.
12128         (signbit_test_data): Add tests of quiet NaN argument.
12129         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12130
12131         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12132         $ignore_result.
12133         (parse_args): Handle function results specified as IGNORE.
12134         * math/libm-test.inc (IGNORE_RESULT): New macro.
12135         (check_float_internal): Do not check numerical result if flag
12136         IGNORE_RESULT set.
12137         (check_complex): Pass through IGNORE_RESULT to second
12138         check_float_internal call.
12139         (check_int): Do not check numerical result if flag IGNORE_RESULT
12140         set.
12141         (check_long): Likewise.
12142         (check_bool): Likewise.
12143         (check_longlong): Likewise.
12144         (lrint_test_data): Add tests of infinite and NaN arguments.
12145         (lrint_tonearest_test_data): Likewise.
12146         (lrint_towardzero_test_data): Likewise.
12147         (lrint_downward_test_data): Likewise.
12148         (lrint_upward_test_data): Likewise.
12149         (llrint_test_data): Likewise.
12150         (llrint_tonearest_test_data): Likewise.
12151         (llrint_towardzero_test_data): Likewise.
12152         (llrint_downward_test_data): Likewise.
12153         (llrint_upward_test_data): Likewise.
12154         (lround_test_data): Likewise.
12155         (llround_test_data): Likewise.
12156
12157         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12158         (ERRNO_UNCHANGED): Update value.
12159         (ERRNO_EDOM): Likewise.
12160         (ERRNO_ERANGE): Likewise.
12161         (NO_TEST_INLINE_FLOAT): New macro.
12162         (NO_TEST_INLINE_DOUBLE): Likewise.
12163         (enable_test): New function.
12164         (RUN_TEST_f_f): Check enable_test before running test.
12165         (RUN_TEST_2_f): Likewise.
12166         (RUN_TEST_fff_f): Likewise.
12167         (RUN_TEST_c_f): Likewise.
12168         (RUN_TEST_f_f1): Likewise.
12169         (RUN_TEST_fF_f1): Likewise.
12170         (RUN_TEST_fI_f1): Likewise.
12171         (RUN_TEST_ffI_f1): Likewise.
12172         (RUN_TEST_c_c): Likewise.
12173         (RUN_TEST_cc_c): Likewise.
12174         (RUN_TEST_f_i): Likewise.
12175         (RUN_TEST_f_i_tg): Likewise.
12176         (RUN_TEST_ff_i_tg): Likewise.
12177         (RUN_TEST_f_b): Likewise.
12178         (RUN_TEST_f_b_tg): Likewise.
12179         (RUN_TEST_f_l): Likewise.
12180         (RUN_TEST_f_L): Likewise.
12181         (RUN_TEST_fFF_11): Likewise.
12182         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12183         conditionals.
12184         (cosh_test_data): Likewise.
12185         (exp_test_data): Likewise.
12186         (expm1_test_data): Likewise.
12187         (hypot_test_data): Likewise.
12188         (pow_test_data): Likewise.
12189         (sinh_test_data): Likewise.
12190         (tanh_test_data): Likewise.
12191         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12192         flags argument.
12193
12194         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12195         tests with quiet NaN input and output.
12196         (acosh_test_data): Likewise.
12197         (asin_test_data): Likewise.
12198         (asinh_test_data): Likewise.
12199         (atan_test_data): Likewise.
12200         (atanh_test_data): Likewise.
12201         (atan2_test_data): Likewise.
12202         (cbrt_test_data): Likewise.
12203         (cos_test_data): Likewise.
12204         (cosh_test_data): Likewise.
12205         (erf_test_data): Likewise.
12206         (erfc_test_data): Likewise.
12207         (exp_test_data): Likewise.
12208         (exp10_test_data): Likewise.
12209         (exp2_test_data): Likewise.
12210         (expm1_test_data): Likewise.
12211         (hypot_test_data): Likewise.
12212         (j0_test_data): Likewise.
12213         (j1_test_data): Likewise.
12214         (jn_test_data): Likewise.
12215         (lgamma_test_data): Likewise.
12216         (log_test_data): Likewise.
12217         (log10_test_data): Likewise.
12218         (log1p_test_data): Likewise.
12219         (log2_test_data): Likewise.
12220         (pow_test_data): Likewise.
12221         (scalb_test_data): Likewise.
12222         (sin_test_data): Likewise.
12223         (sincos_test_data): Likewise.
12224         (sinh_test_data): Likewise.
12225         (tan_test_data): Likewise.
12226         (tanh_test_data): Likewise.
12227         (tgamma_test_data): Likewise.
12228         (y0_test_data): Likewise.
12229         (y1_test_data): Likewise.
12230         (yn_test_data): Likewise.
12231
12232         [BZ #16167]
12233         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12234         argument being NaN and avoid computations with second argument in
12235         that case.
12236         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12237         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12238         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12239
12240 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12241
12242         * locale/iso-639.def: Add Chitwani Tharu (the).
12243
12244 2013-11-14  Andreas Schwab  <schwab@suse.de>
12245
12246         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12247         word instead of empty string.
12248
12249 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12250
12251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12252         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12254         (__fe_nomask_env): Likewise.
12255
12256 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12257
12258         * benchtests/bench-timing.h: Include time.h.
12259
12260 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12261
12262         [BZ #15997]
12263         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12264         to 3.4.0 for x32.
12265         * sysdeps/unix/sysv/linux/configure: Regenerated.
12266
12267 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12268
12269         [BZ #16151]
12270         * stdlib/strtod_l.c (round_and_return): Do not consider
12271         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12272         exponent one less than half the least subnormal exponent.
12273         * stdlib/test-strtod-round-data: Add more tests.
12274         * stdlib/tst-strtod-round.c (tests): Regenerated.
12275
12276 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12277
12278         [BZ #14143]
12279         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12280         (__fe_mask_env): Likewise.
12281         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12282         libm_hidden_proto and add function prototype.
12283         (__fe_mask_env): Add function prototype.
12284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12285         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12287         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12289         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12290
12291 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12292
12293         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12294         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12295
12296 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12297
12298         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12299         of htab_find_slot().
12300
12301 2013-11-11  David S. Miller  <davem@davemloft.net>
12302
12303         [BZ #16150]
12304         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12305         symbol in the non-vis3 case in static builds.
12306         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12307         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12308         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12309         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12310
12311 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12312
12313         [BZ #387]
12314         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12315         it is empty.
12316
12317 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12318
12319         * benchtests/Makefile: Add bench-strtod.
12320         * benchtests/bench-strtod.c: New file: strtod benchtest
12321
12322 2013-11-11  Andreas Schwab  <schwab@suse.de>
12323
12324         [BZ #16153]
12325         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12326         terminating NUL in key length.
12327
12328 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12329
12330         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12331         Add artificial ODP entry for vDSO symbol for PPC64.
12332         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12333         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12334
12335 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12336
12337         [BZ #15374]
12338         * nss/getent.c (services_keys): Recognize services starting with digit.
12339
12340 2013-11-06  David S. Miller  <davem@davemloft.net>
12341
12342         [BZ #15985]
12343         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12344         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12345
12346 2013-11-06  Will Newton  <will.newton@linaro.org>
12347
12348         * manual/memory.texi (Malloc Examples): Remove register
12349         keyword from examples.
12350
12351 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12352
12353         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12354
12355 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12356
12357         [BZ #6981]
12358         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12359         depending on [__GCC_IEC_559 > 0].
12360         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12361         depending on [__GCC_IEC_559_COMPLEX > 0].
12362
12363 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12364
12365         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12366         to iso-639.def.
12367
12368 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12369
12370         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12371
12372 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12373
12374         [BZ #16112]
12375         * malloc/malloc (malloc_info): Do not handle first bin as
12376         special case.
12377
12378 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12379
12380         * locale/iso-639.def: Add Central Nahuatl (nhn).
12381
12382 2013-11-01  Bruno Haible  <bruno@clisp.org>
12383
12384         [BZ #7003]
12385         * manual/math.texi (BSD Random): Specify range upper bound as
12386         in POSIX.
12387
12388 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12389
12390         * locale/iso-639.def: Add Meadow Mari (mhr).
12391
12392 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12393
12394         [BZ #14752], [BZ #15763]
12395         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12396         Validate name.
12397         * rt/tst_shm.c: Add test for escaping directory.
12398
12399 2013-10-31  Andreas Schwab  <schwab@suse.de>
12400
12401         [BZ #15917]
12402         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
12403         followed by 'x' as part of digit sequence.
12404         * stdio-common/tst-sscanf.c (double_tests2): New tests.
12405
12406 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12407
12408         [BZ #16037]
12409         * configure.ac: allow GNU Make 4.0 and greater.
12410         * configure: Regenerated.
12411
12412 2013-10-30  Will Newton  <will.newton@linaro.org>
12413
12414         [BZ #16038]
12415         * malloc/hooks.c (memalign_check): Limit alignment to the
12416         maximum representable power of two.
12417         * malloc/malloc.c (__libc_memalign): Likewise.
12418         * malloc/tst-memalign.c (do_test): Add test for very
12419         large alignment values.
12420         * malloc/tst-posix_memalign.c (do_test): Likewise.
12421
12422 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12423
12424         [BZ #11087]
12425         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
12426         (munmap_chunk): Likewise.
12427         (mremap_chunk): Likewise.
12428
12429 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12430
12431         [BZ #15799]
12432         * stdlib/div.c (div): Remove obsolete code.
12433         * stdlib/ldiv.c (ldiv): Likewise.
12434         * stdlib/lldiv.c (lldiv): Likewise.
12435
12436 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12437
12438         [BZ #16071]
12439         * nss/nss_files/files-XXX.c (get_contents_ret): New
12440         enumerator.
12441         (get_contents): New function.
12442         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12443
12444 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12445
12446         * configure.in: Moved to ...
12447         * configure.ac: ... here. Change reference to configure.in
12448         to configure.ac.
12449         * sysdeps/arm/preconfigure.ac: ... here.
12450         configure.in to configure.ac.
12451         * sysdeps/gnu/configure.in: Moved to ...
12452         * sysdeps/gnu/configure.ac: ... here.
12453         * sysdeps/i386/configure.in: Moved to ...
12454         * sysdeps/i386/configure.ac: ... here.
12455         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12456         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12457         * sysdeps/mach/configure.in: Moved to ...
12458         * sysdeps/mach/configure.ac: ... here.
12459         * sysdeps/mach/hurd/configure.in: Moved to ...
12460         * sysdeps/mach/hurd/configure.ac: ... here.
12461         * sysdeps/powerpc/configure.in: Moved to ...
12462         * sysdeps/powerpc/configure.ac: ... here.
12463         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12464         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12465         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12466         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12467         * sysdeps/s390/s390-32/configure.in: Moved to ...
12468         * sysdeps/s390/s390-32/configure.ac: ... here.
12469         * sysdeps/s390/s390-64/configure.in: Moved to ...
12470         * sysdeps/s390/s390-64/configure.ac: ... here.
12471         * sysdeps/sh/configure.in: Moved to ...
12472         * sysdeps/sh/configure.ac: ... here.
12473         * sysdeps/sparc/configure.in: Moved to ...
12474         * sysdeps/sparc/configure.ac: ... here.
12475         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12476         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12477         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12478         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12479         * sysdeps/x86_64/configure.in: Moved to ...
12480         * sysdeps/x86_64/configure.ac: ... here.
12481         * sysdeps/x86_64/preconfigure.in: Moved to ...
12482         * sysdeps/x86_64/preconfigure.ac: ... here.
12483         * aclocal.m4: Change reference to configure.in to configure.ac.
12484         * config.h.in: Likewise.
12485         * manual/install.texi: Likewise.
12486         * manual/maint.texi: Likewise.
12487         * Makefile: Likewise.
12488         * malloc/Makefile: Likewise.
12489         * nscd/Makefile: Likewise.
12490         * Makeconfig: Change reference to configure.in and
12491         preconfigure.in to configure.ac and preconfigure.ac
12492         respectively.
12493         * INSTALL: Regenerated.
12494         * configure: Likewise.
12495         * sysdeps/gnu/configure: Likewise.
12496         * sysdeps/i386/configure: Likewise.
12497         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12498         * sysdeps/mach/configure: Likewise.
12499         * sysdeps/mach/hurd/configure: Likewise.
12500         * sysdeps/powerpc/configure: Likewise.
12501         * sysdeps/powerpc/powerpc32/configure: Likewise.
12502         * sysdeps/powerpc/powerpc64/configure: Likewise.
12503         * sysdeps/s390/s390-32/configure: Likewise.
12504         * sysdeps/s390/s390-64/configure: Likewise.
12505         * sysdeps/sh/configure: Likewise.
12506         * sysdeps/sparc/configure: Likewise.
12507         * sysdeps/unix/sysv/linux/configure: Likewise.
12508         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12509         * sysdeps/x86_64/configure: Likewise.
12510         * sysdeps/x86_64/preconfigure: Likewise.
12511
12512 2013-10-29  Andreas Schwab  <schwab@suse.de>
12513
12514         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12515
12516 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12517
12518         * benchtests/pow-inputs: Add new inputs.
12519
12520         * benchtests/exp-inputs: Add new inputs.
12521
12522         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12523         conditional check for return value.
12524         (__cos32): Likewise.
12525
12526 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12527
12528         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12529         to provide a boost for large inputs with word alignment.
12530         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12531         implementation based on optimized PPC64 strcpy.
12532         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12533         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12534         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12535         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12536
12537 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12538
12539         [BZ #2801]
12540         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12541
12542 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12543
12544         [BZ #14876]
12545         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12546         * time/tst-strptime.c (day_tests): Add testcase.
12547
12548 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12549
12550         [BZ #14029]
12551         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12552
12553 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12554
12555         [BZ #16074]
12556         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12557         MAP_FAILED on error.
12558
12559 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12560
12561         [BZ #16072]
12562         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12563         heap for large requests.
12564
12565 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12566
12567         [BZ #9954]
12568         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12569         result if the result has no associated interface.
12570         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12571         interface for all 127.X.Y.Z addresses.
12572
12573 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12574
12575         * locale/iso-639.def: Add Ligurian (lij)
12576
12577 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12578
12579         [BZ #15825]
12580         * sunrpc/rpc_main.c: Document rpcgen -5.
12581
12582 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12583
12584         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12585
12586 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12587
12588         [BZ #10278]
12589         * posix/glob.c: Match only directories when trailing slash is present.
12590         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12591         (main): Add testcase.
12592
12593 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12594
12595         [BZ #15670]
12596         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12597
12598 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12599
12600         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12601         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12602         AUTH_DES and cindex for FIPS 140-2.
12603         (DES Encryption): Add cindex FIPS 46-3.
12604
12605         * locale/locarchive.h (struct locarhandle): Add fname.
12606         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12607         if an optional argument was specified to --list-archive,
12608         otherwise NULL.
12609         * locale/programs/locarchive.c (show_archive_content): Take new
12610         argument fname and pass it via ah.fname to open_archive.
12611         * locale/programs/localedef.h: Update decl.
12612         (open_archive): If AH->fname is non-null, open that file
12613         rather than the default file name, and don't ignore ENOENT.
12614         (create_archive): Set AH.fname to NULL.
12615         (delete_locales_from_archive): Likewise.
12616         (add_locales_to_archive): Likewise.
12617         * locale/programs/locfile.c (write_all_categories): Likewise.
12618
12619 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12620             Aldy Hernandez  <aldyh@redhat.com>
12621
12622         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12623         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12624         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12625         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12626         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12627         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12628         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12629         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12630         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12631         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12632         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12633         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12634         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12635         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12636         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12637         Likewise.
12638         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12639         Likewise.
12640         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12641         Likewise.
12642         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12643         Likewise.
12644         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12645         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12646         Likewise.
12647         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12648         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12649         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12650         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12651         Likewise.
12652         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12653         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12654         * sysdeps/powerpc/preconfigure: Likewise.
12655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12656         Likewise.
12657         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12658         Replace contents of file by #include of <fenv_libc.h>.
12659         * sysdeps/powerpc/soft-fp/sfp-machine.h
12660         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12661         and <sys/prctl.h>.
12662         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12663         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12664         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12665         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12666         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12667         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12668         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12669         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12670         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12671         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12672         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12673         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12675         Allow copysignl PLT reference to be missing.
12676
12677 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12678             Joseph Myers  <joseph@codesourcery.com
12679
12680         [BZ #15948]
12681         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12682         single character.
12683         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12684
12685 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12686
12687         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12688         * elf/tst-tls1.c: Likewise.
12689         * elf/tst-tls10.h: Likewise.
12690         * elf/tst-tls14.c: Likewise.
12691         * elf/tst-tls2.c: Likewise.
12692         * elf/tst-tls3.c: Likewise.
12693         * elf/tst-tls4.c: Likewise.
12694         * elf/tst-tls5.c: Likewise.
12695         * elf/tst-tls6.c: Likewise.
12696         * elf/tst-tls7.c: Likewise.
12697         * elf/tst-tls8.c: Likewise.
12698         * elf/tst-tls9.c: Likewise.
12699         * elf/tst-tlsmod1.c: Likewise.
12700         * elf/tst-tlsmod13.c: Likewise.
12701         * elf/tst-tlsmod13a.c: Likewise.
12702         * elf/tst-tlsmod14a.c: Likewise.
12703         * elf/tst-tlsmod16a.c: Likewise.
12704         * elf/tst-tlsmod16b.c: Likewise.
12705         * elf/tst-tlsmod2.c: Likewise.
12706         * elf/tst-tlsmod3.c: Likewise.
12707         * elf/tst-tlsmod4.c: Likewise.
12708         * elf/tst-tlsmod5.c: Likewise.
12709         * elf/tst-tlsmod6.c: Likewise.
12710
12711 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12712
12713         [BZ #12486]
12714         * malloc/malloc.c: remove checks for statistics.
12715
12716 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12717
12718         [BZ #15277]
12719         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12720         * inet/tst-network.c: Add testcase.
12721
12722 2013-10-17  Andreas Schwab  <schwab@suse.de>
12723
12724         [BZ #15218]
12725         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12726         to determine canonical name.
12727
12728 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12729
12730         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12731         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12732         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12733         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12734         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12735         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12736         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12737         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12738         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12739         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12740         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12741         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12742         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12743         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12744         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12745         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12746         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12747         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12748         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12749         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12750         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12751         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12752         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12753         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12754         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12755         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12756         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12757         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12758         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12759         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12760         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12761         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12762         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12763         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12764         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12765         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12766         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12767         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12768         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12774         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12775         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12776         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12788
12789 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12790
12791         [BZ #16041]
12792         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12793         make result into a quiet NaN.
12794
12795 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12796
12797         * soft-fp/adddf3.c: Fix horizontal whitespace.
12798         * soft-fp/addsf3.c: Likewise.
12799         * soft-fp/addtf3.c: Likewise.
12800         * soft-fp/divdf3.c: Likewise.
12801         * soft-fp/divsf3.c: Likewise.
12802         * soft-fp/divtf3.c: Likewise.
12803         * soft-fp/double.h: Likewise.
12804         * soft-fp/eqdf2.c: Likewise.
12805         * soft-fp/eqsf2.c: Likewise.
12806         * soft-fp/eqtf2.c: Likewise.
12807         * soft-fp/extenddftf2.c: Likewise.
12808         * soft-fp/extended.h: Likewise.
12809         * soft-fp/extendsfdf2.c: Likewise.
12810         * soft-fp/extendsftf2.c: Likewise.
12811         * soft-fp/extendxftf2.c: Likewise.
12812         * soft-fp/fixdfdi.c: Likewise.
12813         * soft-fp/fixdfsi.c: Likewise.
12814         * soft-fp/fixdfti.c: Likewise.
12815         * soft-fp/fixsfdi.c: Likewise.
12816         * soft-fp/fixsfsi.c: Likewise.
12817         * soft-fp/fixsfti.c: Likewise.
12818         * soft-fp/fixtfdi.c: Likewise.
12819         * soft-fp/fixtfsi.c: Likewise.
12820         * soft-fp/fixtfti.c: Likewise.
12821         * soft-fp/fixunsdfdi.c: Likewise.
12822         * soft-fp/fixunsdfsi.c: Likewise.
12823         * soft-fp/fixunsdfti.c: Likewise.
12824         * soft-fp/fixunssfdi.c: Likewise.
12825         * soft-fp/fixunssfsi.c: Likewise.
12826         * soft-fp/fixunssfti.c: Likewise.
12827         * soft-fp/fixunstfdi.c: Likewise.
12828         * soft-fp/fixunstfsi.c: Likewise.
12829         * soft-fp/fixunstfti.c: Likewise.
12830         * soft-fp/floatdidf.c: Likewise.
12831         * soft-fp/floatdisf.c: Likewise.
12832         * soft-fp/floatditf.c: Likewise.
12833         * soft-fp/floatsidf.c: Likewise.
12834         * soft-fp/floatsisf.c: Likewise.
12835         * soft-fp/floatsitf.c: Likewise.
12836         * soft-fp/floattidf.c: Likewise.
12837         * soft-fp/floattisf.c: Likewise.
12838         * soft-fp/floattitf.c: Likewise.
12839         * soft-fp/floatundidf.c: Likewise.
12840         * soft-fp/floatundisf.c: Likewise.
12841         * soft-fp/floatunditf.c: Likewise.
12842         * soft-fp/floatunsidf.c: Likewise.
12843         * soft-fp/floatunsisf.c: Likewise.
12844         * soft-fp/floatunsitf.c: Likewise.
12845         * soft-fp/floatuntidf.c: Likewise.
12846         * soft-fp/floatuntisf.c: Likewise.
12847         * soft-fp/floatuntitf.c: Likewise.
12848         * soft-fp/fmadf4.c: Likewise.
12849         * soft-fp/fmasf4.c: Likewise.
12850         * soft-fp/fmatf4.c: Likewise.
12851         * soft-fp/gedf2.c: Likewise.
12852         * soft-fp/gesf2.c: Likewise.
12853         * soft-fp/getf2.c: Likewise.
12854         * soft-fp/ledf2.c: Likewise.
12855         * soft-fp/lesf2.c: Likewise.
12856         * soft-fp/letf2.c: Likewise.
12857         * soft-fp/muldf3.c: Likewise.
12858         * soft-fp/mulsf3.c: Likewise.
12859         * soft-fp/multf3.c: Likewise.
12860         * soft-fp/negdf2.c: Likewise.
12861         * soft-fp/negsf2.c: Likewise.
12862         * soft-fp/negtf2.c: Likewise.
12863         * soft-fp/op-1.h: Likewise.
12864         * soft-fp/op-2.h: Likewise.
12865         * soft-fp/op-4.h: Likewise.
12866         * soft-fp/op-8.h: Likewise.
12867         * soft-fp/op-common.h: Likewise.
12868         * soft-fp/quad.h: Likewise.
12869         * soft-fp/single.h: Likewise.
12870         * soft-fp/soft-fp.h: Likewise.
12871         * soft-fp/sqrtdf2.c: Likewise.
12872         * soft-fp/sqrtsf2.c: Likewise.
12873         * soft-fp/sqrttf2.c: Likewise.
12874         * soft-fp/subdf3.c: Likewise.
12875         * soft-fp/subsf3.c: Likewise.
12876         * soft-fp/subtf3.c: Likewise.
12877         * soft-fp/truncdfsf2.c: Likewise.
12878         * soft-fp/trunctfdf2.c: Likewise.
12879         * soft-fp/trunctfsf2.c: Likewise.
12880         * soft-fp/trunctfxf2.c: Likewise.
12881         * soft-fp/unorddf2.c: Likewise.
12882         * soft-fp/unordsf2.c: Likewise.
12883         * soft-fp/unordtf2.c: Likewise.
12884
12885 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12886
12887         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12888         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12889
12890 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12891
12892         * elf/dl-libc.c: Clear initfini list after freeing.
12893
12894 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12895
12896         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12897         * soft-fp/addsf3.c: Likewise.
12898         * soft-fp/addtf3.c: Likewise.
12899         * soft-fp/divdf3.c: Likewise.
12900         * soft-fp/divsf3.c: Likewise.
12901         * soft-fp/divtf3.c: Likewise.
12902         * soft-fp/double.h: Likewise.
12903         * soft-fp/eqdf2.c: Likewise.
12904         * soft-fp/eqsf2.c: Likewise.
12905         * soft-fp/eqtf2.c: Likewise.
12906         * soft-fp/extenddftf2.c: Likewise.
12907         * soft-fp/extended.h: Likewise.
12908         * soft-fp/extendsfdf2.c: Likewise.
12909         * soft-fp/extendsftf2.c: Likewise.
12910         * soft-fp/extendxftf2.c: Likewise.
12911         * soft-fp/fixdfdi.c: Likewise.
12912         * soft-fp/fixdfsi.c: Likewise.
12913         * soft-fp/fixdfti.c: Likewise.
12914         * soft-fp/fixsfdi.c: Likewise.
12915         * soft-fp/fixsfsi.c: Likewise.
12916         * soft-fp/fixsfti.c: Likewise.
12917         * soft-fp/fixtfdi.c: Likewise.
12918         * soft-fp/fixtfsi.c: Likewise.
12919         * soft-fp/fixtfti.c: Likewise.
12920         * soft-fp/fixunsdfdi.c: Likewise.
12921         * soft-fp/fixunsdfsi.c: Likewise.
12922         * soft-fp/fixunsdfti.c: Likewise.
12923         * soft-fp/fixunssfdi.c: Likewise.
12924         * soft-fp/fixunssfsi.c: Likewise.
12925         * soft-fp/fixunssfti.c: Likewise.
12926         * soft-fp/fixunstfdi.c: Likewise.
12927         * soft-fp/fixunstfsi.c: Likewise.
12928         * soft-fp/fixunstfti.c: Likewise.
12929         * soft-fp/floatdidf.c: Likewise.
12930         * soft-fp/floatdisf.c: Likewise.
12931         * soft-fp/floatditf.c: Likewise.
12932         * soft-fp/floatsidf.c: Likewise.
12933         * soft-fp/floatsisf.c: Likewise.
12934         * soft-fp/floatsitf.c: Likewise.
12935         * soft-fp/floattidf.c: Likewise.
12936         * soft-fp/floattisf.c: Likewise.
12937         * soft-fp/floattitf.c: Likewise.
12938         * soft-fp/floatundidf.c: Likewise.
12939         * soft-fp/floatundisf.c: Likewise.
12940         * soft-fp/floatunsidf.c: Likewise.
12941         * soft-fp/floatunsisf.c: Likewise.
12942         * soft-fp/floatuntidf.c: Likewise.
12943         * soft-fp/floatuntisf.c: Likewise.
12944         * soft-fp/floatuntitf.c: Likewise.
12945         * soft-fp/fmadf4.c: Likewise.
12946         * soft-fp/fmasf4.c: Likewise.
12947         * soft-fp/fmatf4.c: Likewise.
12948         * soft-fp/gedf2.c: Likewise.
12949         * soft-fp/gesf2.c: Likewise.
12950         * soft-fp/getf2.c: Likewise.
12951         * soft-fp/ledf2.c: Likewise.
12952         * soft-fp/lesf2.c: Likewise.
12953         * soft-fp/letf2.c: Likewise.
12954         * soft-fp/muldf3.c: Likewise.
12955         * soft-fp/mulsf3.c: Likewise.
12956         * soft-fp/multf3.c: Likewise.
12957         * soft-fp/negdf2.c: Likewise.
12958         * soft-fp/negsf2.c: Likewise.
12959         * soft-fp/negtf2.c: Likewise.
12960         * soft-fp/op-1.h: Likewise.
12961         * soft-fp/op-2.h: Likewise.
12962         * soft-fp/op-4.h: Likewise.
12963         * soft-fp/op-8.h: Likewise.
12964         * soft-fp/op-common.h: Likewise.
12965         * soft-fp/quad.h: Likewise.
12966         * soft-fp/single.h: Likewise.
12967         * soft-fp/soft-fp.h: Likewise.
12968         * soft-fp/sqrtdf2.c: Likewise.
12969         * soft-fp/sqrtsf2.c: Likewise.
12970         * soft-fp/sqrttf2.c: Likewise.
12971         * soft-fp/subdf3.c: Likewise.
12972         * soft-fp/subsf3.c: Likewise.
12973         * soft-fp/subtf3.c: Likewise.
12974         * soft-fp/truncdfsf2.c: Likewise.
12975         * soft-fp/trunctfdf2.c: Likewise.
12976         * soft-fp/trunctfsf2.c: Likewise.
12977         * soft-fp/trunctfxf2.c: Likewise.
12978         * soft-fp/unorddf2.c: Likewise.
12979         * soft-fp/unordsf2.c: Likewise.
12980         * soft-fp/unordtf2.c: Likewise.
12981
12982 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12983
12984         [BZ #15672]
12985         * misc/error.c (error_tail): Fix possible buffer overflow.
12986
12987 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12988
12989         [BZ #13028]
12990         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12991         address.
12992
12993 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12994
12995         [BZ #832]
12996         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12997         testing pipefail option.
12998
12999 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13000
13001         * soft-fp/double.h: Indent preprocessor directives inside #if.
13002         * soft-fp/extended.h: Likewise.
13003         * soft-fp/op-2.h: Likewise.
13004         * soft-fp/op-4.h: Likewise.
13005         * soft-fp/op-common.h: Likewise.
13006         * soft-fp/quad.h: Likewise.
13007         * soft-fp/single.h: Likewise.
13008         * soft-fp/soft-fp.h: Likewise.
13009
13010 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
13011
13012         * iconv/iconv_prog.c: Fix typos.
13013         * stdio-common/psiginfo-data.h: Likewise.
13014
13015 2013-10-12   Reuben Thomas <rrt@sc3d.org>
13016
13017         [BZ #15764]
13018         * locale/setlocale.c: Fix typo.
13019
13020 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13021
13022         [BZ #16036]
13023         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
13024         signaling NaN arguments.
13025         * soft-fp/unordsf2.c (__unordsf2): Likewise.
13026         * soft-fp/unordtf2.c (__unordtf2): Likewise.
13027
13028         [BZ #14910]
13029         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
13030         unordered operands.
13031         * soft-fp/gesf2.c (__gesf2): Likewise.
13032         * soft-fp/getf2.c (__getf2): Likewise.
13033         * soft-fp/ledf2.c (__ledf2): Likewise.
13034         * soft-fp/lesf2.c (__lesf2): Likewise.
13035         * soft-fp/letf2.c (__letf2): Likewise.
13036
13037         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
13038         * soft-fp/eqsf2.c (__eqsf2): Likewise.
13039         * soft-fp/eqtf2.c (__eqtf2): Likewise.
13040         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
13041         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
13042         * soft-fp/fixdfti.c (__fixdfti): Likewise.
13043         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
13044         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
13045         * soft-fp/fixsfti.c (__fixsfti): Likewise.
13046         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
13047         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
13048         * soft-fp/fixtfti.c (__fixtfti): Likewise.
13049         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
13050         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
13051         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
13052         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
13053         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
13054         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
13055         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
13056         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13057         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13058         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13059         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13060         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13061         * soft-fp/floattidf.c (__floattidf): Likewise.
13062         * soft-fp/floattisf.c (__floattisf): Likewise.
13063         * soft-fp/floattitf.c (__floattitf): Likewise.
13064         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13065         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13066         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13067         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13068         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13069         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13070         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13071         * soft-fp/gesf2.c (__gesf2): Likewise.
13072         * soft-fp/getf2.c (__getf2): Likewise.
13073         * soft-fp/ledf2.c (__ledf2): Likewise.
13074         * soft-fp/lesf2.c (__lesf2): Likewise.
13075         * soft-fp/letf2.c (__letf2): Likewise.
13076
13077         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13078         Undefine and redefine.
13079         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13080         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13081         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13082         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13083         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13084         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13085         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13086         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13087         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13088         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13089         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13090         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13091         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13092         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13093         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13094
13095         [BZ #16032]
13096         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13097         without decrementing exponent if mantissa >= that for the
13098         denominator, not >.
13099         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13100         denominator, not >.  Decrement exponent in < case instead of
13101         incrementing in >= case.
13102         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13103         without decrementing exponent if mantissa >= that for the
13104         denominator, not >.
13105
13106         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13107         computing saturated result for unsigned overflow.
13108
13109 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13110             Jeff Law  <law@redhat.com>
13111
13112         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13113         (atan2Mp): Add systemtap probe marker.
13114         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13115         (__ieee754_log): Add systemtap probe marker.
13116         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13117         (atanMp): Add systemtap probe marker.
13118         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13119         (tanMp): Add systemtap probe marker.
13120         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13121         (__slowexp): Add systemtap probe marker.
13122         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13123         (__slowpow): Add systemtap probe marker.
13124         * manual/probes.texi: Document probes.
13125
13126 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13127
13128         [BZ #15362]
13129         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13130         written.
13131         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13132         written.
13133         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13134         written to buffer but not flushed.
13135         * libio/iofwrite_u.c:  Likewise.
13136         * libio/iopadn.c:  Return bytes returned even if EOF was
13137         encountered.
13138         * libio/iowpadn.c:  Likewise.
13139         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13140         if _IO_padn does not write the whole buffer.
13141         [!COMPILE_WPRINTF] (PAD): Likewise.
13142
13143 2013-10-10  David S. Miller  <davem@davemloft.net>
13144
13145         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13146         directory block.
13147
13148 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13149
13150         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13151         instead of FSF address.
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         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13167         * soft-fp/fixdfti.c: Likewise.
13168         * soft-fp/fixsfti.c: Likewise.
13169         * soft-fp/fixtfti.c: Likewise.
13170         * soft-fp/fixunsdfti.c: Likewise.
13171         * soft-fp/fixunssfti.c: Likewise.
13172         * soft-fp/fixunstfti.c: Likewise.
13173         * soft-fp/floattidf.c: Likewise.
13174         * soft-fp/floattisf.c: Likewise.
13175         * soft-fp/floattitf.c: Likewise.
13176         * soft-fp/floatuntidf.c: Likewise.
13177         * soft-fp/floatuntisf.c: Likewise.
13178         * soft-fp/floatuntitf.c: Likewise.
13179         * soft-fp/trunctfxf2.c: Likewise.
13180
13181 2013-10-10  David S. Miller  <davem@davemloft.net>
13182
13183         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13184
13185 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13186
13187         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13188         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13189         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13190         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13191         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13192         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13193         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13194
13195         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13196         for NaNs before doing comparisons on argument.
13197         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13198         Likewise.
13199
13200 2013-10-10  Will Newton  <will.newton@linaro.org>
13201
13202         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13203         passed to _int_memalign does not overflow.
13204
13205 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13206
13207         * scripts/bench.pl: Add include-sources directive.
13208         * benchtests/README: Update documentation.
13209
13210 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13211
13212         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13213         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13214         instead of FP_INIT_ROUNDMODE.
13215         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13216         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13217
13218         [BZ #16034]
13219         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13220         copy class of input value.
13221         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13222         not handle exceptions.
13223         * soft-fp/negsf2.c (__negsf2): Likewise.
13224         * soft-fp/negtf2.c (__negtf2): Likewise.
13225         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13226
13227 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13228
13229         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13230         semicolon.  From Linux kernel.
13231
13232 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13233
13234         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13235
13236 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13237
13238         [BZ #156]
13239         * manual/socket.texi: Added statement about buffer
13240         for gethostbyname2_r.
13241
13242 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13243
13244         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13245         Use .p2align directive instead, throughout.
13246         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13247         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13248         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13249         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13250         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13251         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13252         * sysdeps/x86_64/strchr.S: Likewise.
13253         * sysdeps/x86_64/strrchr.S: Likewise.
13254
13255 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13256
13257         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13258
13259         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13260
13261         * sysdeps/generic/math_private.h (__mpsin1): Remove
13262         declaration.
13263         (__mpcos1): Likewise.
13264         (__mpsin): New argument __range_reduce.
13265         (__mpcos): Likewise.
13266         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13267         (slow): Use __mpsin and __mpcos.
13268         (slow1): Likewise.
13269         (slow2): Likewise.
13270         (sloww): Likewise.
13271         (sloww1): Likewise.
13272         (sloww2): Likewise.
13273         (bsloww): Likewise.
13274         (bsloww1): Likewise.
13275         (bsloww2): Likewise.
13276         (cslow2): Likewise.
13277         (csloww): Likewise.
13278         (csloww1): Likewise.
13279         (csloww2): Likewise.
13280         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13281         range_reduce.  Merge in __mpsin1.
13282         (__mpcos): Likewise.
13283         (__mpsin1): Remove.
13284         (__mpcos1): Likewise.
13285
13286 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13287
13288         * locale/loadlocale.c (_nl_intern_locale_data): Use
13289         LOCFILE_ALIGNED_P.
13290         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13291         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13292         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13293         obstack data is appropriately aligned.
13294         (obstack_int32_grow_fast): Likewise.
13295         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13296         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13297         (add_locale_uint32_array): Likewise.
13298
13299 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13300
13301         * benchtests/Makefile: Remove ARGLIST and RET variables.
13302         ($(objpfx)bench-%.c): Pass only function name to the script.
13303         * benchtests/README: Update documentation.
13304         * benchtests/acos-inputs: Add new directives.
13305         * benchtests/acosh-inputs: Likewise.
13306         * benchtests/asin-inputs: Likewise.
13307         * benchtests/asinh-inputs: Likewise.
13308         * benchtests/atan-inputs: Likewise.
13309         * benchtests/atanh-inputs: Likewise.
13310         * benchtests/cos-inputs: Likewise.
13311         * benchtests/cosh-inputs: Likewise.
13312         * benchtests/exp-inputs: Likewise.
13313         * benchtests/log-inputs: Likewise.
13314         * benchtests/pow-inputs: Likewise.
13315         * benchtests/rint-inputs: Likewise.
13316         * benchtests/sin-inputs: Likewise.
13317         * benchtests/sinh-inputs: Likewise.
13318         * benchtests/tan-inputs: Likewise.
13319         * benchtests/tanh-inputs: Likewise.
13320         * scripts/bench.pl: Add support for new directives.
13321
13322 2013-10-07  Alan Modra  <amodra@gmail.com>
13323
13324         * README: Fix careless merge.
13325
13326 2013-10-05  Alan Modra  <amodra@gmail.com>
13327
13328         * NEWS: Mention powerpc64le support and bugs fixed.
13329         * README: Both big-endian and little-endian powerpc64 supported.
13330
13331 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13332
13333         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13334         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13335         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13336         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13337
13338 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13339
13340         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13341         match prototype.
13342
13343 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13344
13345         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13346         Move -mhard-float appending from
13347         ports/sysdeps/powerpc/powerpc32/Makefile.
13348         [$(with-fp) = yes] (ASFLAGS): Likewise.
13349         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13350         * sysdeps/powerpc/nofpu: Move directory from
13351         ports/sysdeps/powerpc/nofpu.
13352         * sysdeps/powerpc/soft-fp: Move directory from
13353         ports/sysdeps/powerpc/soft-fp.
13354         * sysdeps/powerpc/powerpc32/405: Move directory from
13355         ports/sysdeps/powerpc/powerpc32/405.
13356         * sysdeps/powerpc/powerpc32/440: Move directory from
13357         ports/sysdeps/powerpc/powerpc32/440.
13358         * sysdeps/powerpc/powerpc32/464: Move directory from
13359         ports/sysdeps/powerpc/powerpc32/464.
13360         * sysdeps/powerpc/powerpc32/476: Move directory from
13361         ports/sysdeps/powerpc/powerpc32/476.
13362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13363         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13365         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13367         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13369         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13371         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13372         * README: Update for powerpc-*-linux-gnu software floating point
13373         support in libc.
13374
13375         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13376         case to powerpc/powerpc32*.
13377         * sysdeps/unix/sysv/linux/configure: Regenerated.
13378
13379         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13380         (_FPU_MASK_OM): Define as 0x04.
13381         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13382         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13383         0x00c10080.
13384         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13385         0x0000003c.
13386         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13387
13388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13389         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13390         getcontext_e500.
13391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13392         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13393         setcontext_e500.
13394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13395         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13396         and setcontext_e500.
13397
13398 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
13399
13400         * locale/iso-3166.def: Update iso-1366.def and related occurrences
13401
13402 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13403
13404         * manual/threads.texi (Default Thread Attributes): Fix typo.
13405
13406 2013-10-04  Will Newton  <will.newton@linaro.org>
13407
13408         * malloc/Makefile: Add tst-memalign.
13409         * malloc/tst-memalign.c: New file.
13410
13411         * malloc/tst-posix_memalign.c: Add comments.
13412         (do_test): Add comments and call free on all potentially
13413         allocated pointers. Add space after cast.
13414
13415         * malloc/tst-pvalloc.c: Add comments.
13416         (do_test): Add comments and call free on all potentially
13417         allocated pointers. Remove duplicate check for NULL pointer.
13418         Add space after cast.
13419
13420         * malloc/tst-valloc.c: Add comments.
13421         (do_test): Add comments and call free on all potentially
13422         allocated pointers. Remove duplicate check for NULL pointer.
13423         Add space after cast.
13424
13425 2013-10-04  Alan Modra  <amodra@gmail.com>
13426
13427         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13428         Use stdint types in rather than __attribute__((mode())).
13429         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13430
13431 2013-10-04  Alan Modra  <amodra@gmail.com>
13432
13433         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13434         Correct handling of unaligned relocs for little-endian.
13435         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13436
13437 2013-10-04  Alan Modra  <amodra@gmail.com>
13438
13439         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
13440         * configure: Regenerate.
13441         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13442         * shlib-versions: Likewise.
13443
13444 2013-10-04  Alan Modra  <amodra@gmail.com>
13445
13446         * string/tester.c (test_memrchr): Increment reported test cycle.
13447
13448 2013-10-04  Alan Modra  <amodra@gmail.com>
13449
13450         * string/test-memcpy.c (do_one_test): When reporting errors, print
13451         string address and don't overrun end of string.
13452
13453 2013-10-04  Alan Modra  <amodra@gmail.com>
13454
13455         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13456         insrdi.  Make better use of reg selection to speed exit slightly.
13457         Schedule entry path a little better.  Remove useless "are we done"
13458         checks on entry to main loop.  Handle wrapping around zero address.
13459         Correct main loop count.  Handle single left-over word from main
13460         loop inline rather than by using loop_small.  Remove extra word
13461         case in loop_small caused by wrong loop count.  Add little-endian
13462         support.
13463         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13464         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13465         cache hint.
13466         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13467         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13468         support.  Avoid rlwimi.
13469         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13470
13471 2013-10-04  Alan Modra  <amodra@gmail.com>
13472
13473         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13474         insrdi.  Formatting.
13475         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13476         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13477         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13478         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13479         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13480         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13481
13482 2013-10-04  Alan Modra  <amodra@gmail.com>
13483
13484         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13485         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13486         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13487         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13488         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13489         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13490         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13491         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13492         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13493         use of regs.  Use power7 mtocrf.  Tidy function tails.
13494
13495 2013-10-04  Alan Modra  <amodra@gmail.com>
13496
13497         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13498         Formatting.  Consistently use rXXX register defines or rN defines.
13499         Use early exit labels that avoid restoring unused non-volatile regs.
13500         Make cr field use more consistent with rWORDn compares.  Rename
13501         regs used as shift registers for unaligned loop, using rN defines
13502         for short lifetime/multiple use regs.
13503         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13504         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13505         addi 1,1,64 to pop stack frame.  Simplify return value code.
13506         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13507
13508 2013-10-04  Alan Modra  <amodra@gmail.com>
13509
13510         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13511         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13512         rather than rlwimi.
13513         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13514         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13515         little-endian support.  Correct typos.
13516         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13517         rather than rlwimi.
13518         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13519         in loop and entry code to keep "and." results.
13520         (strchr): Add little-endian support.  Comment.  Move cntlzd
13521         earlier in tail.
13522         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13523
13524 2013-10-04  Alan Modra  <amodra@gmail.com>
13525
13526         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13527         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13528         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13529         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13530
13531 2013-10-04  Alan Modra  <amodra@gmail.com>
13532
13533         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13534         (rTMP): Define as r11.
13535         (strcmp): Add little-endian support.  Optimise tail.
13536         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13537         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13538         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13539         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13540         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13541         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13542         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13543
13544 2013-10-04  Alan Modra  <amodra@gmail.com>
13545
13546         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13547         little-endian support.  Remove unnecessary "are we done" tests.
13548         Handle "s" wrapping around zero and extremely large "size".
13549         Correct main loop count.  Handle single left-over word from main
13550         loop inline rather than by using small_loop.  Correct comments.
13551         Delete "zero" tail, use "end_max" instead.
13552         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13553
13554 2013-10-04  Alan Modra  <amodra@gmail.com>
13555
13556         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13557         support.  Don't branch over align.
13558         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13559         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13560         support.  Rearrange tmp reg use to suit.  Comment.
13561         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13562
13563 2013-10-04  Alan Modra  <amodra@gmail.com>
13564
13565         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13566
13567 2013-10-04  Alan Modra  <amodra@gmail.com>
13568
13569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13570         conditional form of branch and link when obtaining pc.
13571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13572
13573 2013-10-04  Alan Modra  <amodra@gmail.com>
13574
13575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13576         HIWORD/LOWORD.
13577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13579
13580 2013-10-04  Alan Modra  <amodra@gmail.com>
13581
13582         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13583         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13584         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13585         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13586         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13587         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13588         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13589         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13590         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13591         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13592
13593 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13594             Alistair Popple <alistair@ozlabs.au.ibm.com>
13595             Alan Modra <amodra@gmail.com>
13596
13597         [BZ #15723]
13598         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13599         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13600         _dl_hwcap access for little-endian.
13601         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13602         destroy vmx regs when saving unaligned.
13603         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13604         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13605         destroy vmx regs when saving unaligned.
13606
13607 2013-10-04  Alan Modra  <amodra@gmail.com>
13608
13609         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13610         Don't use a union to pack hi/low value.
13611
13612 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13613
13614         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13615         for little-endian.
13616         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13617         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13618         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13619         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13620         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13621
13622 2013-10-04  Alan Modra  <amodra@gmail.com>
13623
13624         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13625         constants to usual value for .cst8 section, and remove redundant
13626         high address load.
13627         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13628         constant for 0x1p52.  Load little-endian words of double from
13629         correct stack offsets.
13630
13631 2013-10-04  Alan Modra  <amodra@gmail.com>
13632
13633         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13634         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13635         words of double from correct stack offsets.
13636         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13637         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13638         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13639         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13640         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13641         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13642         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13643         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13644         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13645         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13646         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13647         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13648         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13649         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13650         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13651         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13652         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13653
13654 2013-10-04  Alan Modra  <amodra@gmail.com>
13655
13656         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13657         64-bit int/double union.
13658         (_FPU_SETCW): Likewise.
13659         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13660         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13661
13662 2013-10-04  Alan Modra  <amodra@gmail.com>
13663
13664         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13665         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13666
13667 2013-10-04  Alan Modra  <amodra@gmail.com>
13668
13669         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13670         use vector int constants.
13671         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13672
13673 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13674
13675         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13676         array with long long.
13677         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13678         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13679         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13680         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13681         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13682         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13683         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13684         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13685         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13686         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13687         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13688         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13689         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13690
13691 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13692
13693         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13694         (__signbit): Likewise.  Correct for little-endian.
13695         (__signbitl): Call __signbit.
13696         (lrint): Correct for little-endian.
13697         (lrintf): Call lrint.
13698
13699 2013-10-04  Alan Modra  <amodra@gmail.com>
13700
13701         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13702         union 32-bit int array member with 64-bit int array.
13703         (t515, tm256): Double rather than long double.
13704         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13705
13706 2013-10-04  Alan Modra  <amodra@gmail.com>
13707
13708         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13709         Delete.
13710         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13711         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13712         version of math_ldbl.h.
13713
13714 2013-10-04  Alan Modra  <amodra@gmail.com>
13715
13716         [BZ #15734], [BZ #15735]
13717         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13718         all uses of ieee875 long double macros and unions.  Simplify test
13719         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13720         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13721         normalize after ldbl_extract_mantissa, and don't add hidden bit
13722         already handled.  Don't treat low word of ieee854 mantissa like
13723         low word of IBM long double and mask off bit when testing for
13724         zero.
13725         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13726         all uses of ieee875 long double macros and unions.  Simplify tests
13727         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13728         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13729         two1022, instead use their values.  Recognise that tests for large
13730         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13731         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13732         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13733         test for 0.0L and nan.  Correct negation.
13734         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13735         ieee875 long double macros and unions.  Correct output for large
13736         magnitude x.  Correct absolute value calculation.
13737         (__erfcl): Likewise.
13738         * math/libm-test.inc: Add tests for errors discovered in IBM long
13739         double versions of fmodl, remainderl, erfl and erfcl.
13740
13741 2013-10-04  Alan Modra  <amodra@gmail.com>
13742
13743         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13744         all uses of ieee854 long double macros and unions.  Simplify tests
13745         for long doubles that are fully specified by the high double.
13746         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13747         Likewise.
13748         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13749         Remove dead code too.
13750         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13751         (__ieee754_ynl): Likewise.
13752         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13753         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13754         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13755         Remove dead code too.
13756         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13757         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13758         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13759         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13760         Simplify.
13761         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13762         Simplify.
13763         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13764         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13765         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13766         Comment on variable precision.
13767         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13768         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13769         Likewise.
13770         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13771         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13772         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13773         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13774         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13775
13776 2013-10-04  Alan Modra  <amodra@gmail.com>
13777
13778         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13779         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13780         all uses of ieee854 long double macros and unions.
13781         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13782         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13783         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13784         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13785         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13786         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13787         Likewise.
13788         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13789         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13790         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13791         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13792         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13793         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13794         Simplify sign and nan test too.
13795         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13796         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13797         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13798         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13799         Likewise.
13800         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13801         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13802         Likewise.
13803         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13804         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13805         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13806         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13807         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13808         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13809
13810 2013-10-04  Alan Modra  <amodra@gmail.com>
13811
13812         * stdio-common/printf_size.c (__printf_size): Don't use
13813         union ieee854_long_double in fpnum union.
13814         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13815         signbit macro to retrieve sign from long double.
13816         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13817         retrieve sign from long double.
13818         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13819         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13820         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13821         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13822         * math/test-misc.c (main): Don't use union ieee854_long_double.
13823
13824 2013-10-04  Alan Modra  <amodra@gmail.com>
13825
13826         [BZ #15680]
13827         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13828         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13829         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13830         calculation.  Remove unnecessary test for denormal exponent.
13831         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13832         Correct handling of denormals.  Avoid undefined shift behaviour.
13833         Correct normalisation of low mantissa when low double is denormal.
13834         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13835         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13836         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13837         Correct normalisation of low mantissa.  Test for overflow of high
13838         mantissa and normalise.
13839         (ldbl_nearbyint): Use more readable constant for two52.
13840         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13841         (__mpn_construct_long_double): Fix test for overflow of high
13842         mantissa and correct normalisation.  Avoid undefined shift.
13843
13844 2013-10-04  Alan Modra  <amodra@gmail.com>
13845
13846         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13847         (union ibm_extended_long_double): Define as an array of ieee754_double.
13848         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13849         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13850         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13851         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13852         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13853         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13854         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13855         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13856         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13857         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13858         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13859
13860 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13861
13862         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13863         page size instead of calling getpagesize.
13864
13865         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13866         (LOCFILE_ALIGN_MASK): Likewise.
13867         (LOCFILE_ALIGN_UP): Likewise.
13868         (LOCFILE_ALIGNED_P): Likewise.
13869         * locale/programs/ld-collate.c (collate_output): Use the new
13870         macros instead of __alignof__ (int32_t).
13871         * locale/weight.h (findidx): Likewise.
13872
13873 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13874
13875         [BZ #431]
13876         * manual/string.texi: Fix strncat and wcsncat.
13877
13878 2013-10-03  Brooks Moses  <bmoses@google.com>
13879
13880         [BZ #15915]
13881         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13882         * Makerules: ...here, and adjust associated comments.
13883
13884 2013-10-02  Will Newton  <will.newton@linaro.org>
13885
13886         * malloc/Makefile: Add tst-pvalloc.
13887         * malloc/tst-pvalloc.c: New file.
13888
13889 2013-10-02  Will Newton  <will.newton@linaro.org>
13890
13891         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13892         improve test coverage.
13893
13894 2013-10-02  Will Newton  <will.newton@linaro.org>
13895
13896         * malloc/Makefile: Add tst-posix_memalign.
13897         * malloc/tst-posix_memalign.c: New file.
13898
13899 2013-10-01  Eric Blake  <eblake@redhat.com>
13900
13901         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13902         Use __THROWNL rather than __THROW on static functions.
13903
13904 2013-09-30  Petr Machata  <pmachata@redhat.com>
13905
13906         * elf/elf.h (R_AARCH64_ABS16): New macro.
13907         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13908         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13909         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13910         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13911         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13912         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13913         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13914         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13915         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13916         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13917         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13918         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13919         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13920         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13921         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13922         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13923         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13924         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13925         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13926         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13927         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13928         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13929         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13930         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13931         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13932         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13933         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13934         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13935         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13936         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13937         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13938         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13939         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13940         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13941         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13942         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13943         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13944         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13945         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13946         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13947         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13948         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13949         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13950         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13951         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13952         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13953         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13954         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13955         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13956         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13957         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13958         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13959         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13960         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13961         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13962         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13963         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13964         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13965         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13966         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13967         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13968         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13969         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13970         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13971         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13972         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13973         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13974         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13975         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13976         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13977         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13978         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13979         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13980         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13981         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13982         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13983         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13984         (R_AARCH64_TLSDESC_LDR): Likewise.
13985         (R_AARCH64_TLSDESC_ADD): Likewise.
13986         (R_AARCH64_TLSDESC_CALL): Likewise.
13987
13988 2013-09-30  Andreas Schwab  <schwab@suse.de>
13989
13990         [BZ #15048]
13991         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13992         the nss database lookup.
13993         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13994         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13995
13996 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13997
13998         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13999
14000 2013-09-28  P. J. McDermott  <pj@pehjota.net>
14001
14002         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
14003         ${Bash-specific parameter/pattern/string} parameter expansion.
14004         * sysdeps/unix/make-syscalls.sh: Likewise.
14005
14006 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14007
14008         * sysdeps/sh/stackguard-macros.h: New file.
14009
14010 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
14011
14012         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
14013         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
14014         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
14015         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
14016         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14017         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
14018
14019 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14020
14021         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
14022         Fix thread ID register.
14023
14024 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
14025
14026         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
14027         [POSIX || UNIX98]: Require rather than permitting all symbols from
14028         <time.h>.
14029         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
14030         element of struct sched_param.
14031         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
14032         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
14033         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
14034         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
14035         constant.
14036
14037 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
14038
14039         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
14040         argument calculation.
14041
14042 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14043
14044         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
14045         Expect macro.
14046         [POSIX] (pthread_attr_t): Do not require type.
14047         [POSIX] (pthread_cond_t): Likewise.
14048         [POSIX] (pthread_condattr_t): Likewise.
14049         [POSIX] (pthread_key_t): Likewise.
14050         [POSIX] (pthread_mutex_t): Likewise.
14051         [POSIX] (pthread_mutexattr_t): Likewise.
14052         [POSIX] (pthread_once_t): Likewise.
14053         [POSIX] (pthread_t): Likewise.
14054         [POSIX-based standards] (pthread_atfork): Expect function.
14055
14056 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14057             Richard Sandiford  <richard@codesourcery.com>
14058
14059         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14060         (swap_endianness_p): New extern variable.
14061         (set_big_endian): New inline function.
14062         (maybe_swap_uint32): Likewise.
14063         (maybe_swap_uint32_array): Likewise.
14064         (maybe_swap_uint32_obstack): Likewise.
14065         * locale/programs/locfile.c: Include <stdbool.h>.
14066         (swap_endianness_p): New variable.
14067         (add_locale_uint32): Call maybe_swap_uint32.
14068         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14069         (write_locale_data): Call maybe_swap_uint32_array.
14070         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14071         maybe_swap_uint32.
14072         (obstack_int32_grow_fast): Likewise.
14073         (output_weightwc): Call maybe_swap_uint32_obstack.
14074         (collate_output): Likewise.
14075         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14076         (OPT_LITTLE_ENDIAN): Likewise.
14077         (options): Add --little-endian and --big-endian options.
14078         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14079         * locale/programs/locarchive.c: Include "locfile.h".
14080         (GET): New macro.
14081         (SET): Likewise.
14082         (INC): Likewise.
14083         (create_archive): Use the new macros to access fields of
14084         structures directly mapped from or written to locale archives.
14085         (oldlocrecentcmp): Likewise.
14086         (enlarge_archive): Likewise.
14087         (insert_name): Likewise.
14088         (add_alias): Likewise.
14089         (add_locale): Likewise.
14090         (delete_locales_from_archive): Likewise.
14091         (show_archive_content): Likewise.
14092         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14093         locale data.
14094
14095 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14096
14097         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14098         http://www.gnu.org/doc/freemanuals.texi.
14099         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14100
14101 2013-09-24  Will Newton  <will.newton@linaro.org>
14102
14103         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14104         macro.
14105
14106 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14107
14108         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14109         unsigned char.
14110
14111 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14112
14113         * manual/threads.texi (POSIX Threads): Fix a typo.
14114
14115 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14116
14117         [BZ #14547]
14118         * string/tst-strcoll-overflow.c: New test case.
14119         * string/Makefile (xtests): Add tst-strcoll-overflow.
14120         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14121         cache if string sizes may cause integer overflow.
14122
14123         [BZ #14547]
14124         * string/strcoll_l.c (coll_seq): New members rule, idx,
14125         save_idx and back_us.
14126         (get_next_seq_nocache): New function.
14127         (do_compare_nocache): New function.
14128         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14129         when malloc fails.
14130
14131 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14132
14133         [BZ #15754]
14134         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14135         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14136         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14137
14138         [BZ #15754]
14139         * elf/Makefile (tests): Add tst-ptrguard1.
14140         (tests-static): Add tst-ptrguard1-static.
14141         (tst-ptrguard1-ARGS): Define.
14142         (tst-ptrguard1-static-ARGS): Define.
14143         * elf/tst-ptrguard1.c: New file.
14144         * elf/tst-ptrguard1-static.c: New file.
14145         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14146         * sysdeps/i386/stackguard-macros.h: Likewise.
14147         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14148         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14149         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14150         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14151         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14152         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14153
14154 2013-09-23  Hector Marco  <hecmargi@upv.es>
14155             Ismael Ripoll  <iripoll@disca.upv.es>
14156             Carlos O'Donell  <carlos@redhat.com>
14157
14158         [BZ #15754]
14159         * sysdeps/generic/stackguard-macros.h: Define
14160         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14161         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14162         Define __pointer_chk_guard_local.
14163         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14164         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14165
14166 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14167
14168         [BZ #15859]
14169         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14170
14171 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14172
14173         * include/string.h (__ffs): Declare as hidden.
14174         * string/ffs.c (__ffs): Define as hidden.
14175         * sysdeps/i386/ffs.c (__ffs): Likewise.
14176         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14177         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14178         * sysdeps/s390/ffs.c (__ffs): Likewise.
14179         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14180
14181 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14182
14183         * NEWS: Mention malloc probes.
14184
14185         * malloc/arena.c (new_heap): New memory_heap_new probe.
14186         (grow_heap): New memory_heap_more probe.
14187         (shrink_heap): New memory_heap_less probe.
14188         (heap_trim): New memory_heap_free probe.
14189         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14190         (systrim): New memory_sbrk_less probe.
14191         * manual/probes.texi: Document them.
14192
14193         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14194         * manual/probes.texi: Document it.
14195
14196         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14197         (__libc_realloc): Add memory_realloc_retry probe.
14198         (__libc_memalign): Add memory_memalign_retry probe.
14199         (__libc_valloc): Add memory_valloc_retry probe.
14200         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14201         (__libc_calloc): Add memory_calloc_retry probe.
14202         * manual/probes.texi: Document them.
14203
14204         * malloc/arena.c (get_free_list): Add probe
14205         memory_arena_reuse_free_list.
14206         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14207         and memory_arena_reuse.
14208         (arena_get2) [!PER_THREAD]: Likewise.
14209         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14210         memory_arena_reuse_realloc.
14211         * manual/probes.texi: Document them.
14212
14213         * malloc/malloc.c (__libc_free): Add
14214         memory_mallopt_free_dyn_thresholds probe.
14215         (__libc_mallopt): Add multiple memory_mallopt probes.
14216         * manual/probes.texi: Document them.
14217
14218         * malloc/malloc.c: Include stap-probe.h.
14219         (__libc_mallopt): Add memory_mallopt probe.
14220         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14221         * manual/probes.texi: New.
14222         * manual/Makefile (chapters): Add probes.
14223         * manual/threads.texi: Set next node.
14224
14225 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14226
14227         [BZ #15963, #13985]
14228         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14229         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14230         Add `Chinese' to `nan' entry name.
14231
14232 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14233
14234         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14235         (POLYNOMIAL): Likewise.
14236         (TAYLOR_SINCOS): Likewise.
14237         (TAYLOR_SLOW): Likewise.
14238         (__sin): Use TAYLOR_SINCOS.
14239         (__cos): Likewise.
14240         (slow): Use TAYLOR_SLOW.
14241         (sloww): Likewise.
14242         (bsloww): Likewise.
14243         (csloww): Likewise.
14244
14245 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14246
14247         * stdlib/strtod_l.c: Fix buffer overrun.
14248
14249 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14250
14251         * benchtests/Makefile (bench): Add sincos.
14252         * benchtests/bench-sincos.c: New file.
14253
14254         * math/libm-test.inc (cos_test_data): New test inputs.
14255         (sin_test_data): Likewise.
14256
14257         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14258         macro.
14259         (__sin): Use it.
14260         (__cos): Likewise.
14261         (slow1): Likewise.
14262         (slow2): Likewise.
14263         (sloww1): Likewise.
14264         (sloww2): Likewise.
14265         (bsloww1): Likewise.
14266         (bsloww2): Likewise.
14267         (cslow2): Likewise.
14268         (csloww1): Likewise.
14269         (csloww2): Likewise.
14270
14271         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14272         function.
14273         (__sin): Use it.
14274         (__cos): Likewise.
14275
14276         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14277         gotos.
14278         (__cos): Likewise.
14279
14280 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14281
14282         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14283         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14284         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14285         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14286         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14287         * elf/cache.c (print_entry): Handle the new cache flags.
14288
14289 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14290             Aldy Hernandez  <aldyh@redhat.com>
14291
14292         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14293         Change condition to [_SOFT_FLOAT].
14294         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14295         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14296         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14297         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14298         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14299         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14300         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14301         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14302         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14303         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14304         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14305         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14306         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14307         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14308         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14309         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14310         declaration.
14311
14312 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14313
14314         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14315         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14316         (__longjmp): Use LOAD_GP to load saved GPRs.
14317         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14318         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14319         (__sigsetjmp): Use SAVE_GP to save GPRs.
14320
14321         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14322         Do not append -msoft-float.
14323         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14324
14325 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14326
14327         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14328
14329 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14330
14331         [BZ #15966]
14332         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14333         (_FPU_GETCW): Use initial "__" on variable and field names but not
14334         on macro parameter name.
14335         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14336         parentheses around reference to macro parameter.
14337
14338 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14339
14340         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14341         prototype.
14342         (ctype_startup): Use uint32_t in cast and sizeof for
14343         ctype->charnames.
14344
14345 2013-09-11  Jia Liu  <proljc@gmail.com>
14346
14347         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14348         __daddr_t_defined.
14349         [__FreeBSD__]: Likewise.
14350
14351 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14352
14353         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14354         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14355         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14356         (strchr): Remove __strchr_sse42 ifunc selection.
14357         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14358         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14359
14360 2013-09-11  Will Newton  <will.newton@linaro.org>
14361
14362         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14363         parameter to RES. Remove hardcoded 1000 value.
14364         * benchtests/bench-skeleton.c (main): Pass RES parameter
14365         to TIMING_INIT and multiply result by 1000.
14366
14367 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14368
14369         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14370
14371 2013-09-11  Andreas Schwab  <schwab@suse.de>
14372
14373         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14374         if not defined.
14375         (O_TMPFILE) [__USE_GNU]: Define.
14376         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14377         Define.
14378
14379 2013-09-11  Will Newton  <will.newton@linaro.org>
14380
14381         [BZ #15857]
14382         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14383         does not overflow.
14384
14385 2013-09-11  Will Newton  <will.newton@linaro.org>
14386
14387         [BZ #15856]
14388         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14389         does not overflow.
14390
14391 2013-09-11  Will Newton  <will.newton@linaro.org>
14392
14393         [BZ #15855]
14394         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14395         does not overflow.
14396
14397 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14398
14399         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
14400         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14401         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14402         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14403         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14404
14405 2013-09-10  Allan McRae  <allan@archlinux.org>
14406
14407         [BZ #15748]
14408         * manual/arith.texi (Parsing of Floats): Clarify
14409         cross-reference.
14410
14411         [BZ #15849]
14412         * manual/install.texi (Running make install): Mention
14413         --enable-pt-chown.
14414         * INSTALL: Regenerated.
14415
14416 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
14417
14418         * csu/init-first.c (_init): Remove the !SHARED condition around
14419         FPU control word initialization.
14420         * elf/dl-support.c (_dl_fpu_control): New variable.
14421         (_dl_aux_init) <AT_FPUCW>: Initialize it.
14422         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
14423         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
14424         * math/test-fpucw-static.c: New file.
14425         * math/test-fpucw-ieee.c: New file.
14426         * math/test-fpucw-ieee-static.c: New file.
14427         * math/Makefile (tests): Add `test-fpucw-ieee' and
14428         `$(tests-static)'.
14429         (tests-static): New variable.
14430         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
14431         dependency to...
14432         [($(build-shared),yes)]
14433         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
14434         ... this.
14435         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
14436         New dependency.
14437
14438 2013-09-09  Allan McRae  <allan@archlinux.org>
14439
14440         [BZ #15939]
14441         * manual/string.texi (Collation Functions): Fix typo in
14442         strcoll example.
14443         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14444
14445         [BZ #15893]
14446         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14447
14448         [BZ #15892]
14449         * libio/memstream.c (open_memstream): Fix memory leak.
14450         * libio/wmemstream.c (open_wmemstream): Likewise.
14451
14452         [BZ #15895]
14453         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14454
14455 2013-09-09  Will Newton  <will.newton@linaro.org>
14456
14457         * malloc/Makefile: Add tst-realloc to tests.
14458         * malloc/tst-realloc.c: New file.
14459
14460 2013-09-09  Allan McRae  <allan@archlinux.org>
14461
14462         [BZ #15844]
14463         * COPYING: Update from GNU website to fix FSF address.
14464         * COPYING.LIB: Likewise.
14465
14466 2013-09-06  David S. Miller  <davem@davemloft.net>
14467
14468         * po/zh_TW.po: Update Chinese (traditional) translation from
14469         translation project.
14470
14471 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14472             Joseph Myers  <joseph@codesourcery.com>
14473
14474         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14475         "localeinfo.h".
14476         (obstack_chunk_alloc): New macro.
14477         (obstack_chunk_free): Likewise.
14478         (record_offset): New function.
14479         (init_locale_data): Likewise.
14480         (align_locale_data): Likewise.
14481         (add_locale_empty): Likewise.
14482         (add_locale_raw_data): Likewise.
14483         (add_locale_raw_obstack): Likewise.
14484         (add_locale_string): Likewise.
14485         (add_locale_wstring): Likewise.
14486         (add_locale_uint32): Likewise.
14487         (add_locale_uint32_array): Likewise.
14488         (add_locale_char): Likewise.
14489         (start_locale_structure): Likewise.
14490         (end_locale_structure): Likewise.
14491         (start_locale_prelude): Likewise.
14492         (end_locale_prelude): Likewise.
14493         (write_locale_data): Take locale_file structure rather than an
14494         iovec.
14495         * locale/programs/locfile.h: Include "obstack.h".
14496         (struct locale_file): Change to store locale file contents instead
14497         of header.
14498         (init_locale_data): New prototype.
14499         (align_locale_data): Likewise.
14500         (add_locale_empty): Likewise.
14501         (add_locale_raw_data): Likewise.
14502         (add_locale_raw_obstack): Likewise.
14503         (add_locale_string): Likewise.
14504         (add_locale_wstring): Likewise.
14505         (add_locale_uint32): Likewise.
14506         (add_locale_uint32_array): Likewise.
14507         (add_locale_char): Likewise.
14508         (start_locale_structure): Likewise.
14509         (end_locale_structure): Likewise.
14510         (start_locale_prelude): Likewise.
14511         (end_locale_prelude): Likewise.
14512         (write_locale_data): Update prototype.
14513         * locale/programs/3level.h (struct TABLE): Remove result field.
14514         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14515         Use new locale_file interface.
14516         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14517         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14518         * locale/programs/ld-address.c (address_output): Use new
14519         locale_file interface.
14520         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14521         NO_ADD_LOCALE.
14522         (collate_finish): Don't call collseq_table_finalize.
14523         (collate_output): Use new locale_file interface.
14524         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14525         in file.
14526         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14527         (TABLE): Move defines earlier in file.
14528         (ELEMENT): Likewise.
14529         (DEFAULT): Likewise.
14530         (wctrans_table_add): Move macro and inline function earlier in
14531         file.
14532         (struct wctype_table): Move type earlier in file.
14533         (add_locale_wctype_table): New static prototype.
14534         (struct locale_ctype_t): Use logical types instead of struct iovec
14535         pointers for members.
14536         (ctype_output): Use new locale_file interface.
14537         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14538         new locale_file interface.
14539         (allocate_arrays): Update for use of new locale_file interface.
14540         * locale/programs/ld-identification.c (identification_output): Use
14541         new locale_file interface.
14542         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14543         * locale/programs/ld-messages.c (messages_output): Likewise.
14544         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14545         * locale/programs/ld-name.c (name_output): Likewise.
14546         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14547         * locale/programs/ld-paper.c (paper_output): Likewise.
14548         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14549         * locale/programs/ld-time.c (time_output): Likewise.
14550
14551 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14552
14553         * benchtests/Makefile: Add memrchr benchmark.
14554         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14555         benchmark as memrchr.
14556         * benchtests/bench-memrchr-ifunc.c: New file.
14557         * benchtests/bench-memrchr.c: New file.
14558
14559 2013-09-06   Will Newton  <will.newton@linaro.org>
14560
14561         * benchtests/Makefile (string-bench): Add memcpy.
14562
14563 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14564             Cong Wang  <amwang@redhat.com>
14565
14566         [BZ #15850]
14567         * sysdeps/unix/sysv/linux/bits/in.h
14568         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14569         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14570         before __USE_KERNEL_IPV6_DEFS uses.
14571         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14572         IPPROTO_BEETPH.
14573         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14574         sockaddr_in6, or ipv6_mreq.
14575
14576 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14577
14578         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14579         memory access for final bytes in some large inputs.
14580         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14581
14582 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14583
14584         * string/test-memrchr.c: New file.
14585         * string/test-memrchr-ifunc.c: New file.
14586         * string/Makefile: Add new memrchr testcase.
14587
14588 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14589
14590         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14591         fanotify_init returns EPERM.
14592
14593 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14594
14595         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14596         errors.
14597         (top level): Treat second token from macro or constant entries for
14598         allowed headers as allowed.
14599         * include/complex.h: Condition internal declarations on
14600         [!_ISOMAC].
14601         * include/fenv.h: Condition include of <stdbool.h> and internal
14602         declarations on [!_ISOMAC].
14603
14604 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14605
14606         [BZ #15923]
14607         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14608
14609 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14610
14611         * configure.in (--enable-versioning): Remove configure option.
14612         (libc_cv_asm_symver_directive): Remove configure test.
14613         (libc_cv_ld_version_script_option): Likewise.
14614         (VERSIONING): Remove variable and AC_SUBST.
14615         (DO_VERSIONING): Remove AC_DEFINE.
14616         * configure: Regenerated.
14617         * config.h.in (DO_VERSIONING): Remove macro.
14618         * Makerules [$(versioning) = yes]: Change conditionals to
14619         [$(build-shared) = yes].
14620         * config.make.in (versioning): Remove variable.
14621         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14622         [$(build-shared) = yes].
14623         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14624         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14625         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14626         [$(build-shared) = yes].
14627         * extra-lib.mk [$(versioning) = yes]: Likewise.
14628         * hurd/Makefile [$(versioning) = yes]: Likewise.
14629         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14630         [SHARED].
14631         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14632         [SHARED].
14633         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14634         [SHARED && !NO_HIDDEN].
14635         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14636         [SHARED].
14637         [SHARED && DO_VERSIONING]: Likewise..
14638         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14639         [$(build-shared) = yes].
14640         * manual/install.texi (--disable-versioning): Remove
14641         documentation.
14642         * INSTALL: Regenerated.
14643         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14644         to [SHARED].
14645         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14646         [$(build-shared) = yes].
14647         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14648         * sysdeps/i386/i686/multiarch/strstr-c.c
14649         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14650         [SHARED && !NO_HIDDEN].
14651         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14652         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14653         * sysdeps/powerpc/powerpc32/dl-machine.c
14654         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14655         * sysdeps/powerpc/powerpc32/sysdep.h
14656         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14657         to [SHARED && PIC && !NO_HIDDEN].
14658         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14659         conditional to [SHARED].
14660
14661 2013-09-04   Will Newton  <will.newton@linaro.org>
14662
14663         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14664         * benchtests/bench-string.h: Include bench-timing.h instead
14665         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14666         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14667         call to HP_TIMING_DIFF_INIT.
14668         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14669         instead of hp-timing.h macros.
14670         * benchtests/bench-memchr.c: Likewise.
14671         * benchtests/bench-memcmp.c: Likewise.
14672         * benchtests/bench-memcpy.c: Likewise.
14673         * benchtests/bench-memmem.c: Likewise.
14674         * benchtests/bench-memmove.c: Likewise.
14675         * benchtests/bench-memset.c: Likewise.
14676         * benchtests/bench-rawmemchr.c: Likewise.
14677         * benchtests/bench-strcasecmp.c: Likewise.
14678         * benchtests/bench-strcasestr.c: Likewise.
14679         * benchtests/bench-strcat.c: Likewise.
14680         * benchtests/bench-strchr.c: Likewise.
14681         * benchtests/bench-strcmp.c: Likewise.
14682         * benchtests/bench-strcpy.c: Likewise.
14683         * benchtests/bench-strcpy_chk.c: Likewise.
14684         * benchtests/bench-strlen.c: Likewise.
14685         * benchtests/bench-strncasecmp.c: Likewise.
14686         * benchtests/bench-strncat.c: Likewise.
14687         * benchtests/bench-strncmp.c: Likewise.
14688         * benchtests/bench-strncpy.c: Likewise.
14689         * benchtests/bench-strnlen.c: Likewise.
14690         * benchtests/bench-strpbrk.c: Likewise.
14691         * benchtests/bench-strrchr.c: Likewise.
14692         * benchtests/bench-strspn.c: Likewise.
14693         * benchtests/bench-strstr.c: Likewise.
14694
14695 2013-09-04  Will Newton  <will.newton@linaro.org>
14696
14697         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14698
14699 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14700
14701         [BZ #15427]
14702         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14703         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14704         * math/libm-test.inc (lgamma_test_data): Add more tests.
14705         * sysdeps/i386/fpu/libm-test-ulps: Update.
14706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14707
14708 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14709
14710         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14711         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14712         Add ifunc.
14713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14714         Add strcmp-sse2-unaligned
14715         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14716
14717 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14718
14719         * Versions.def (libc): Add GLIBC_2.19.
14720
14721 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14722
14723         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14724         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14725
14726 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14727
14728         [BZ #14155]
14729         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14730         intermediate calculations in recurrence.
14731         (__ieee754_ynf): Likewise.
14732         * math/libm-test.inc (jn_test_data): Do not allow spurious
14733         underflow exception.  Add more tests.
14734         (yn_test_data): Add more tests.
14735         * sysdeps/i386/fpu/libm-test-ulps: Update.
14736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14737
14738 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14739
14740         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14741
14742 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14743
14744         * csu/init-first.c: Fix then/than typos.
14745         * locale/programs/ld-collate.c: Likewise.
14746         * locale/programs/linereader.h: Likewise.
14747         * manual/charset.texi: Likewise.
14748         * manual/filesys.texi: Likewise.
14749         * manual/stdio.texi: Likewise.
14750         * manual/string.texi: Likewise.
14751         * stdlib/fmtmsg.c: Likewise.
14752         * sysdeps/i386/stpncpy.S: Likewise.
14753         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14754         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14755         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14756         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14757
14758 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14759
14760         * elf/dl-open.c: Fix typos.
14761         * iconvdata/gbbig5.c: Likewise.
14762         * iconvdata/iso-2022-jp.c: Likewise.
14763         * iconv/gconv_int.h: Likewise.
14764         * iconv/loop.c: Likewise.
14765         * nis/rpcsvc/nis.h: Likewise.
14766         * resolv/ns_name.c: Likewise.
14767         * stdio-common/vfscanf.c: Likewise.
14768         * streams/stropts.h: Likewise.
14769         * sunrpc/rpc_thread.c: Likewise.
14770         * sysdeps/i386/strpbrk.S: Likewise.
14771         * sysdeps/ieee754/k_standard.c: Likewise.
14772         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14773         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14774         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14775         * sysdeps/mach/hurd/profil.c: Likewise.
14776         * sysdeps/s390/dl-procinfo.h: Likewise.
14777         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14778         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14779         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14780         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14781         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14782
14783 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14784
14785         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14786         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14787
14788 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14789
14790         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14791         aix specific files.
14792         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14793         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14794         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14795         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14796         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14797         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14798         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14799         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14800
14801 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14802             Roland McGrath  <roland@hack.frob.com>
14803
14804         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14805         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14806
14807 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14808
14809         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14810         __executable_start symbol instead of _start.
14811
14812 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14813
14814         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14815         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14816         Move macros to...
14817         * sysdeps/gnu/ldsodefs.h: ... this new file.
14818
14819         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14820         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14821         instead of ELFOSABI_LINUX.
14822
14823         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14824         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14825         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14826         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14827         Likewise.
14828         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14829         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14830         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14831         Likewise.
14832         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14833         (ibm_extended_long_double): Add ieee_nan member.
14834         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14835         (do_test): New function.
14836
14837         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14838         TEST_TRUNC.
14839         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14840         functions, renamed from truncdfsf_test, trunctfsf_test,
14841         trunctfdf_test.
14842         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14843         functions.
14844         (do_test): Run all these.
14845
14846 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14847
14848         * argp/argp-help.c: Fix typos.
14849         * argp/argp-parse.c: Likewise.
14850         * debug/backtracesyms.c: Likewise.
14851         * elf/elf.h: Likewise.
14852         * malloc/malloc.c: Likewise.
14853         * nis/nis_print.c: Likewise.
14854         * resolv/res_comp.c: Likewise.
14855         * stdlib/stdlib.h: Likewise.
14856         * sunrpc/clnt_tcp.c: Likewise.
14857         * sunrpc/clnt_udp.c: Likewise.
14858         * sunrpc/clnt_unix.c: Likewise.
14859         * sysdeps/unix/bsd/ptsname.c: Likewise.
14860         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14861         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14863         Likewise.
14864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14865         Likewise.
14866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14867         Likewise.
14868         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14869
14870 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14871
14872         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14874
14875 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14876
14877         [BZ #15897]
14878         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14879         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14880         ($(objpfx)bug-dl-leaf): New rule.
14881         ($(objpfx)bug-dl-leaf.so): Likewise.
14882         ($(objpfx)bug-dl-leaf.out): Likewise.
14883         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14884         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14885         * dlfcn/bug-dl-leaf.c: New test.
14886         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14887         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14888         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14889         (dlclose): Likewise.
14890         (dlmopen): Likewise.
14891
14892 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14893
14894         * include/netdb.h [!_ISOMAC]:
14895         Don't include <tls.h>.
14896         (h_errno, __libc_h_errno): Move declaration and macros out of
14897         [_LIBC_REENTRANT].
14898
14899         * include/resolv.h [_RESOLV_H_]:
14900         Don't include <tls.h>.
14901         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14902         * resolv/res_libc.c: Don't include <tls.h>.
14903         (_res): Use __attribute__ ((nocommon)) in place of
14904         __attribute__ ((section (".bss"))).
14905
14906         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14907         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14908
14909         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14910
14911         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14912         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14913
14914         * resolv/res_mkquery.c: Include <sys/time.h>.
14915
14916         * inet/ifreq.c: Moved to ...
14917         * sysdeps/unix/ifreq.c: ... here.
14918         * inet/ifreq.c: New file, true stub version.
14919
14920         * socket/sa_len.c: New file.
14921         * socket/Makefile (aux): Add it.
14922         * sysdeps/unix/sysv/linux/Makefile
14923         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14924         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14925         and #include <socket/sa_len.c>.
14926         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14927         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14928
14929         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14930         * bits/socket.h: ... here.
14931
14932         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14933         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14934         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14935
14936 2013-08-27  Andreas Schwab  <schwab@suse.de>
14937
14938         [BZ #15736]
14939         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14940         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14941         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14942         * string/test-strcasecmp.c (test_main): Run tests in several
14943         locales.
14944         * string/test-strncasecmp.c (test_main): Likewise.
14945
14946         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14947         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14948         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14949         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14950         (__strncasecmp_ssse3) [PIC]: Likewise.
14951
14952 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14953
14954         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14955
14956         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14957         instead of explicitly declaring xdecrypt.
14958         * nis/nss_nis/nis-publickey.c: Likewise.
14959
14960 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14961
14962         [BZ #15890]
14963         * nscd/aicache.c: Include res_hconf.h.
14964         (addhstaiX): Initialize res_hconf.
14965
14966 2013-08-26  Andreas Schwab  <schwab@suse.de>
14967
14968         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14969         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14970
14971 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14972
14973         * nscd/aicache.c (addhstaiX): Fix indentation.
14974
14975 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14976
14977         * configure.ac: Quote $build_pt_chown test.
14978         * configure: Regenerated.
14979
14980 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14981
14982         [BZ #15532]
14983         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14984         * math/s_cexpf.c (__cexpf): Likewise.
14985         * math/s_cexpl.c (__cexpl): Likewise.
14986         * math/libm-test.inc (cexp_test_data): Correct expected return
14987         value for NaN + i0.  Add another test.
14988
14989 2013-08-22  David S. Miller  <davem@davemloft.net>
14990
14991         * po/ca.po: Update Catalan translation from translation project.
14992         * po/uk.po: Add Ukrainian translations from translation project.
14993
14994 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14995
14996         [BZ #15797]
14997         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14998         is infinite, not alongside NaN test.
14999         * math/s_fdimf.c (__fdimf): Likewise.
15000         * math/s_fdiml.c (__fdiml): Likewise.
15001         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
15002         errno is unchanged.
15003
15004 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
15005
15006         * argp/argp-help.c: Fix typos.
15007         * crypt/speeds.c: Likewise.
15008         * csu/check_fds.c: Likewise.
15009         * elf/dl-load.c: Likewise.
15010         * elf/dl-open.c: Likewise.
15011         * elf/reldep3.c: Likewise.
15012         * elf/reldep.c: Likewise.
15013         * elf/sprof.c: Likewise.
15014         * iconv/iconv_charmap.c: Likewise.
15015         * iconv/skeleton.c: Likewise.
15016         * iconv/strtab.c: Likewise.
15017         * io/lockf64.c: Likewise.
15018         * libio/libioP.h: Likewise.
15019         * resolv/gai_notify.c: Likewise.
15020         * resolv/ns_name.c: Likewise.
15021         * resolv/ns_samedomain.c: Likewise.
15022         * resolv/res_send.c: Likewise.
15023         * stdlib/random.c: Likewise.
15024         * sunrpc/rpc/xdr.h: Likewise.
15025         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
15026         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15027         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15028         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15029         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15030         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15031         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15032         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15033         * sysdeps/mach/hurd/check_fds.c: Likewise.
15034         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15035         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
15036         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15037         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15038         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
15039         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15040         * sysdeps/pthread/aio_notify.c: Likewise.
15041         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
15042         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
15043         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
15044         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15045         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
15046
15047 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15048
15049         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
15050         version if bit_Slow_SSE4_2 is set.
15051         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15052         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15053
15054 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15055
15056         [BZ #15867]
15057         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15058         trampoline stack frame information.
15059         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15060         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15061         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15062         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15063         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15064         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15065         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15066         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15067         sa_flags value.
15068         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15069         interrupting a syscall and set with option SA_SIGINFO.
15070
15071 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15072
15073         [BZ #15531]
15074         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15075         argument is infinite.
15076         * math/s_cprojf.c (__cprojf): Likewise.
15077         * math/s_cprojl.c (__cprojl): Likewise.
15078         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15079         * math/libm-test.inc (cproj_test_data): Add more tests.
15080
15081         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15082
15083         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15084         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15085         size.  Use __ffs to determine corresponding shift.
15086
15087 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15088             Roland McGrath  <roland@hack.frob.com>
15089
15090         * Makefile (INSTALL): Remove trailing blank lines from output of
15091         makeinfo.
15092
15093 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15094
15095         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15096         Align 32 bit compat elf_greg to 8 bytes.
15097
15098 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15099
15100         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15101
15102 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15103
15104         * string/strcoll_l.c (coll_seq): New structure.
15105         (get_next_seq_cached): New function.
15106         (get_next_seq): New function.
15107         (do_compare): New function.
15108         (STRCOLL): Use GNU style definition.  Simplify implementation
15109         by using get_next_seq, get_next_seq_cached and do_compare.
15110
15111 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15112
15113         [BZ #14699]
15114         CVE-2013-4237
15115         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15116         member.
15117         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15118         member.
15119         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15120         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15121         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15122         conditional.
15123         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15124         GETDENTS_64BIT_ALIGNED.
15125         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15126         * manual/filesys.texi (Reading/Closing Directory): Document
15127         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15128         strongly.
15129         * manual/conf.texi (Limits for Files): Add portability note to
15130         NAME_MAX, PATH_MAX.
15131         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15132
15133 2013-08-13  Andreas Schwab  <schwab@suse.de>
15134
15135         [BZ #15749]
15136         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15137         of fabs.
15138         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15139         LDBL_MAX_EXP >= 16384]: Add tests for it.
15140
15141 2013-08-12  David S. Miller  <davem@davemloft.net>
15142
15143         * version.h (RELEASE): Set to "development".
15144         (VERSION): Set to "2.18.90".
15145         * NEWS: Add 2.19 section.
15146
15147 2013-08-03  David S. Miller  <davem@davemloft.net>
15148
15149         * po/ko.po: Update Korean translation from translation project.
15150
15151 2013-08-01  David S. Miller  <davem@davemloft.net>
15152
15153         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15154         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15155         Bilka.
15156
15157 2013-07-30  David S. Miller  <davem@davemloft.net>
15158
15159         * po/fr.po: Update French translation from translation project.
15160
15161 2013-07-28  David S. Miller  <davem@davemloft.net>
15162
15163         * po/cs.po: Update Czech translation from translation project.
15164
15165         * po/sv.po: Update Swedish translation from translation project.
15166
15167 2013-07-27  David S. Miller  <davem@davemloft.net>
15168
15169         * po/eo.po: Update Esperanto translation from translation project.
15170
15171         * po/vi.po: Update Vietnamese translation from translation project.
15172
15173         * po/de.po: Update German translation from translation project.
15174
15175 2013-07-26  David S. Miller  <davem@davemloft.net>
15176
15177         * po/bg.po: Update Bulgarian translation from translation project.
15178
15179         * po/nl.po: Update Dutch translation from translation project.
15180         * po/pl.po: Update Polish translation from translation project.
15181         * po/ru.po: Update Russian translation from translation project.
15182
15183 2013-07-24  David S. Miller  <davem@davemloft.net>
15184
15185         * po/libc.pot: Update.
15186
15187 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15188
15189         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15190         variable page size.
15191         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15192         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15193         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15194
15195 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15196
15197         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15198
15199 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15200             Andreas Schwab  <schwab@suse.de>
15201             Roland McGrath  <roland@hack.frob.com>
15202             Joseph Myers  <joseph@codesourcery.com>
15203             Carlos O'Donell  <carlos@redhat.com>
15204
15205         [BZ #15755]
15206         * config.h.in: Define HAVE_PT_CHOWN.
15207         * config.make.in (build-pt-chown): New variable.
15208         * configure.in (--enable-pt_chown): New configure option.
15209         * configure: Regenerate.
15210         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15211         build-pt-chown is enabled.
15212         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15213         pt_chown to fix pty ownership.
15214         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15215         CLOSE_ALL_FDS.
15216         * manual/install.texi (Configuring and compiling): Mention
15217         --enable-pt_chown. Add @findex for grantpt.
15218         * INSTALL: Regenerate.
15219
15220 2013-07-20  David S. Miller  <davem@davemloft.net>
15221
15222         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15223         difference between 32-bit and 64-bit.
15224
15225 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15226
15227         [BZ #15711]
15228         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15229         Avoid system header dependency with -ffreestanding.
15230         ($(objpfx)bits/syscall%d): Likewise.
15231
15232 2013-07-13  David S. Miller  <davem@davemloft.net>
15233
15234         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15235         underflows from atanl/atan2l due to bug 15319.
15236         (casinh_test_data): Likewise.
15237
15238 2013-07-07  David S. Miller  <davem@davemloft.net>
15239
15240         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15241
15242 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15243
15244         * sysdeps/i386/fpu/libm-test-ulps: Update.
15245         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15246
15247 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15248
15249         * configure.in (--enable-lock-elision): Fix message text.
15250         * INSTALL: Regenerate.
15251         * configure: Regenerate.
15252
15253 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15254
15255         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15256
15257 2013-07-03  Andreas Jaeger  <aj@suse.de>
15258
15259         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15260         define.
15261         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15262         (ptrace_peeksiginfo_args): Add.
15263         (__ptrace_peeksiginfo_flags): Add.
15264         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15265         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15266         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15267
15268 2013-07-03  Allan McRae  <allan@archlinux.org>
15269
15270         * sysdeps/i386/fpu/libm-test-ulps: Update.
15271
15272 2013-07-02  David S. Miller  <davem@davemloft.net>
15273
15274         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15275
15276 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15277
15278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15279
15280 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15281
15282         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15284
15285 2013-07-02  Andi Kleen <ak@linux.intel.com>
15286
15287         * config.h.in (ENABLE_LOCK_ELISION): Add.
15288         * configure.in (--enable-lock-elision): Add option.
15289         * manual/install.texi: Document --enable lock elision.
15290         * configure: Regenerate
15291         * INSTALL: Regenerate.
15292
15293 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15294
15295         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15296         SSE4.2 strcasecmp for libc.a.
15297         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15298
15299 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15300
15301         [BZ #13304]
15302         * soft-fp/op-common.h (_FP_FMA): New macro.
15303         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15304         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15305         (_FP_MUL_MEAT_1_imm): ... here.
15306         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15307         (_FP_MUL_MEAT_1_wide): ... here.
15308         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15309         (_FP_MUL_MEAT_1_hard): ... here.
15310         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15311         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15312         (_FP_MUL_MEAT_2_wide): ... here.
15313         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15314         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15315         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15316         (_FP_MUL_MEAT_2_gmp): ... here.
15317         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15318         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15319         (_FP_MUL_MEAT_4_wide): ... here.
15320         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15321         (_FP_MUL_MEAT_4_gmp): ... here.
15322         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15323         (_FP_WFRACBITS_DW_S): Likewise.
15324         (_FP_WFRACXBITS_DW_S): Likewise.
15325         (_FP_HIGHBIT_DW_S): Likewise.
15326         (FP_FMA_S): Likewise.
15327         (_FP_FRAC_HIGH_DW_S): Likewise.
15328         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15329         (_FP_WFRACBITS_DW_D): Likewise.
15330         (_FP_WFRACXBITS_DW_D): Likewise.
15331         (_FP_HIGHBIT_DW_D): Likewise.
15332         (FP_FMA_D): Likewise.
15333         (_FP_FRAC_HIGH_DW_D): Likewise.
15334         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15335         (_FP_WFRACBITS_DW_E): Likewise.
15336         (_FP_WFRACXBITS_DW_E): Likewise.
15337         (_FP_HIGHBIT_DW_E): Likewise.
15338         (FP_FMA_E): Likewise.
15339         (_FP_FRAC_HIGH_DW_E): Likewise.
15340         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15341         (_FP_WFRACBITS_DW_Q): Likewise.
15342         (_FP_WFRACXBITS_DW_Q): Likewise.
15343         (_FP_HIGHBIT_DW_Q): Likewise.
15344         (FP_FMA_Q): Likewise.
15345         (_FP_FRAC_HIGH_DW_Q): Likewise.
15346         * soft-fp/fmasf4.c: New file.
15347         * soft-fp/fmadf4.c: Likewise.
15348         * soft-fp/fmatf4.c: Likewise.
15349
15350 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15351
15352         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15353         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15354         Silvermont.
15355         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15356         macro.
15357         (index_Slow_SSE4_2): Likewise.
15358         (index_Prefer_PMINUB_for_stringop): Likewise.
15359         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15360         bit_Slow_SSE4_2 is set.
15361         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15362         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15363
15364 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15365
15366         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15367         rtld_global._dl_hwcap2.
15368         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15369         POWER8.
15370         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15371         POWER8 feature descriptions defined in _dl_hwcap2.
15372         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15373         string handling for POWER8 feature bits.
15374         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15375         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15376         _dl_powerpc_cap_flags.
15377         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15378         * sysdeps/powerpc/rtld-global-offsets.sym
15379         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15380         _dl_hwcap2 in the rtld_global_ro structure.
15381
15382 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15383
15384         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15385         hardware capabilities in support of AT_HWCAP2.
15386         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15387         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15388         GLRO(dl_hwcap2).
15389         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15390         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15391         explicitly the unknown a_type display mechanism is used.
15392         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15393         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15394         struct member.
15395         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15396         to macro prototype for AT_HWCAP2 support.
15397         * sysdeps/i386/dl-procinfo.h: Likewise.
15398         * sysdeps/s390/dl-procinfo.h: Likewise.
15399         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
15400         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
15401         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
15402         return -1 for unknown a_type display fallback.
15403         * sysdeps/sparc/dl-procinfo.h: Likewise.
15404         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
15405         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
15406
15407 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
15408
15409         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
15410         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
15411
15412 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
15413
15414         [BZ #12492]
15415         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
15416         mprotect making __stack_prot writable.
15417
15418 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15419             Joseph Myers  <joseph@codesourcery.com>
15420
15421         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
15422         as being properly aligned.
15423
15424 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
15425
15426         * dlfcn/modstatic5.c: New file.
15427         * dlfcn/tststatic5.c: New file.
15428         * dlfcn/Makefile (tests): Add tststatic5.
15429         (tests-static): Likewise.
15430         (modules-names): Add modstatic5.
15431         (tststatic5-ENV): New variable.
15432         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
15433
15434         [BZ #15022]
15435         * elf/dl-support.c (_dl_main_map): New variable.
15436         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
15437         (_dl_nns, _dl_load_adds): Set to 1.
15438         (_dl_initial_searchlist): Refer to _dl_main_map.
15439         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
15440         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15441         call to _dl_get_origin.
15442         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15443         around call_map.
15444         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15445         * dlfcn/modstatic3.c: New file.
15446         * dlfcn/tststatic3.c: New file.
15447         * dlfcn/tststatic4.c: New file.
15448         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15449         (tests-static): Likewise.
15450         (modules-names): Add modstatic3.
15451         (tststatic3-ENV, tststatic4-ENV): New variables.
15452         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15453         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15454
15455 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15456
15457         * configure.in (CC): Require GCC version 4.4 or later.
15458         * configure: Regenerated.
15459         * manual/install.texi (Tools for Compilation): Update GCC version
15460         requirement.
15461         * INSTALL: Regenerated.
15462
15463 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15464
15465         [BZ #15674]
15466         * string/test-memcmp.c (check2): New.
15467         (main): Call check2.
15468
15469         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15470
15471 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15472
15473         [BZ #15022]
15474         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15475         over to...
15476         (dl_open_worker) [!SHARED]: ... here.
15477
15478 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15479
15480         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15481
15482 2013-06-25  Richard Henderson  <rth@redhat.com>
15483
15484         * locale/programs/locarchive.c: Include <libc-internal.h>
15485
15486 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15487
15488         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15489         trailing whitespace removed.
15490
15491 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15492
15493         [BZ #10283]
15494         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15495         * locale/programs/locarchive.c: Include libc-mmap.h.
15496         (prepare_address_space): Take two new outputs (the mmap base and len).
15497         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15498         values.
15499         (create_archive): Declare new mmap base and len values for
15500         prepare_address_space, and store the result in ah.
15501         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15502         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15503         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15504         Declare new mmap base and len values for
15505         prepare_address_space, and store the result in new_ah.
15506         (open_archive): Declare new mmap base and len values for
15507         prepare_address_space, and store the result in ah.
15508         (close_archive): If ah->mmap_base is not NULL, use that and
15509         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15510         * sysdeps/generic/libc-mmap.h: New file.
15511
15512 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15513
15514         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15515         (ALIGN_UP): Likewise.
15516         (PTR_ALIGN_DOWN): Likewise.
15517         (PTR_ALIGN_UP): Likewise.
15518
15519 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15520
15521         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15522         entry mapped to PPC_PLATFORM_POWER8.
15523         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15524         POWER8.
15525         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15526         (_dl_string_platform): Add case for exporting platform position for
15527         POWER8.
15528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15529         search path to sysdeps/powerpc/powerpc32/power8 directory.
15530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15531         search path to sysdeps/powerpc/powerpc64/power8 directory.
15532         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15533         power7 directories.
15534         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15535         power7 directories.
15536
15537 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15538
15539         * INSTALL: Regenerate.
15540
15541         * nscd/connections.c (nscd_init): Fix comment.
15542
15543 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15544
15545         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15546
15547         [BZ #15667]
15548         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15549         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15550
15551 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15552
15553         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15554         DL_DST_REQ_STATIC.
15555         (DL_DST_REQ_STATIC): Remove macro.
15556
15557 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15558
15559         [BZ #7006]
15560         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15561         with a shift of 0 bits.
15562
15563 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15564
15565         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15566         $(tststatic-ENV).
15567
15568 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15569
15570         [BZ #15655]
15571         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15572
15573 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15574
15575         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15576         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15577         accepts -fno-tree-loop-distribute-patterns.
15578         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15579         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15580         recursive call.
15581         * string/memset.c (memset): Likewise.
15582         * string/test-memmove.c (simple_memmove): Disable loop transformation
15583         to library calls.
15584         * string/test-memset.c (simple_memset): Likewise.
15585         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15586         * benchtests/bench-memset.c (simple_memset): Likewise.
15587         * configure: Regenerated.
15588
15589 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15590
15591         * math/test-misc.c (main): Ignore fesetround failure when failures
15592         of subsequent rounding tests would be ignored.
15593
15594         [BZ #15654]
15595         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15596         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15597         * math/fegetenv.c (__fegetenv): Return 0.
15598         * math/fegetexcept.c (fegetexcept): Return 0.
15599         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15600         FE_TONEAREST.
15601         * math/feholdexcpt.c (feholdexcept): Return 0.
15602         * math/fesetenv.c (__fesetenv): Return 0.
15603         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15604         argument FE_TONEAREST.
15605         * math/feupdateenv.c (__feupdateenv): Return 0.
15606         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15607
15608 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15609
15610         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15611         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15612         ($(objpfx)rtld-%.os rules): Use them.
15613
15614 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15615
15616         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15617         fields.
15618
15619 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15620
15621         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15622         length of target pattern, then descending length of dependency pattern.
15623         * configure.in (AWK): Require gawk 3.1.2 or newer.
15624         * manual/install.texi (Tools for Compilation): Say that we do.
15625         * configure: Regenerated.
15626
15627         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15628         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15629         * scripts/sysd-rules.awk: ... this new script.
15630         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15631         than a glob-style pattern.
15632
15633 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15634
15635         * math/test-misc.c (main): Do not treat incorrectly rounded
15636         conversions as failure unless ROUNDING_TESTS passes.
15637
15638 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15639
15640         [BZ #15631]
15641         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15642         restore exception state around main square root computation, then
15643         check for inexactness explicitly.
15644
15645         * math/libm-test.inc (fma_test_data): Add another test.
15646
15647 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15648
15649         * manual/threads.texi (Non-POSIX Extensions): New document
15650         node.  Document pthread_getattr_default_np and
15651         pthread_setattr_default_np.
15652
15653         * Versions.def (libpthread): Add GLIBC_2.18.
15654         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15656         Likewise.
15657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15658         Likewise.
15659         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15660         Likewise.
15661         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15662         Likewise.
15663         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15664         Likewise.
15665         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15666         Likewise.
15667         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15668         Likewise.
15669         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15670         Likewise.
15671         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15672         Likewise.
15673
15674 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15675
15676         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15677         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15678
15679 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15680             H.J. Lu  <hjl.tools@gmail.com>
15681
15682         [BZ #15627]
15683         * sysdeps/x86_64/rtld-memset.c: Remove file.
15684         * sysdeps/x86_64/rtld-memset.S: New file.
15685
15686 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15687
15688         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15689         (test_in_one_mode): Take arguments for whether the rounding mode
15690         is supported for each floating-point type.
15691         (do_test): Pass new arguments to test_in_one_mode using
15692         ROUNDING_TESTS.
15693
15694 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15695
15696         * posix/tst-waitid.c (do_test): Distinguish different instances of
15697         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15698         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15699         before entering the kernel for waitpid.
15700
15701 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15702
15703         * NEWS: Fix note on clock function precision.  Text by Roland
15704         McGrath.
15705
15706 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15707
15708         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15709         it into place only when and if the sanity check passes.
15710
15711 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15712
15713         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15714         output for whether conversion result is exact.  Take argument
15715         indicating whether type is IBM long double.
15716         (round_for_all): Change need_exact field to ibm_ld.
15717         * stdlib/tst-strtod-round.c (struct exactness): New type.
15718         (struct test): Change bool ld_ok field to struct exactness exact.
15719         (TEST): Update all definitions for change to field.
15720         (tests): Regenerate array contents.
15721         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15722         field value.  Check for IBM long double here.
15723         (do_test): Update calls to test_in_one_mode.
15724
15725 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15726
15727         [BZ #12515]
15728         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15729         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15730
15731 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15732
15733         [BZ #15605]
15734         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15735         generated by the compiler on loop optimizations.
15736         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15737         general definitions.
15738
15739 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15740
15741         * math/bug-nextafter.c: Include <math-tests.h>.
15742         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15743         the relevant type.
15744         * math/bug-nexttoward.c: Include <math-tests.h>.
15745         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15746         the relevant type.
15747         * math/test-misc.c: Include <math-tests.h>.
15748         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15749         the relevant type.
15750
15751 2013-06-12  Andreas Jaeger  <aj@suse.de>
15752
15753         * po/ia.po: Update Interlingua translation from translation
15754         project.
15755
15756 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15757
15758         * include/fenv.h: Include stdbool.h.
15759         (struct rm_ctx): New structure.
15760         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15761         Define macro.
15762         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15763         (SET_RESTORE_ROUNDF): Likewise.
15764         (SET_RESTORE_ROUNDL): Likewise.
15765         (SET_RESTORE_ROUND_NOEX): Likewise.
15766         (SET_RESTORE_ROUND_NOEXF): Likewise.
15767         (SET_RESTORE_ROUND_NOEXL): Likewise.
15768         (SET_RESTORE_ROUND_53BIT): Likewise.
15769         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15770         (libc_feresetround_noexf_ctx): Likewise.
15771         (libc_feresetround_noexl_ctx): Likewise.
15772         (libc_feholdsetround_53bit_ctx): Likewise.
15773         (libc_feresetround_53bit_ctx): Likewise.
15774         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15775         (libc_feholdexcept_setround_sse_ctx): New function.
15776         (libc_fesetenv_sse_ctx): Likewise.
15777         (libc_feupdateenv_sse_ctx): Likewise.
15778         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15779         (libc_feholdexcept_setround_387_ctx): Likewise.
15780         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15781         (libc_feholdsetround_387_prec_ctx): Likewise.
15782         (libc_feholdsetround_387_ctx): Likewise.
15783         (libc_feholdsetround_387_53bit_ctx): Likewise.
15784         (libc_feholdsetround_sse_ctx): Likewise.
15785         (libc_feresetround_sse_ctx): Likewise.
15786         (libc_feresetround_387_ctx): Likewise.
15787         (libc_feupdateenv_387_ctx): Likewise.
15788         (libc_feholdexcept_setroundf_ctx): Define macro.
15789         (libc_fesetenvf_ctx): Likewise.
15790         (libc_feupdateenvf_ctx): Likewise.
15791         (libc_feholdsetroundf_ctx): Likewise.
15792         (libc_feresetroundf_ctx): Likewise.
15793         (libc_feholdexcept_setround_ctx): Likewise.
15794         (libc_fesetenv_ctx): Likewise.
15795         (libc_feupdateenv_ctx): Likewise.
15796         (libc_feholdsetround_ctx): Likewise.
15797         (libc_feresetround_ctx): Likewise.
15798         (libc_feholdexcept_setroundl_ctx): Likewise.
15799         (libc_feupdateenvl_ctx): Likewise.
15800         (libc_feholdsetroundl_ctx): Likewise.
15801         (libc_feresetroundl_ctx): Likewise.
15802         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15803         (libc_feresetround_53bit_ctx): Likewise.
15804
15805 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15806
15807         * locale/iso-639.def: Convert to UTF-8.
15808
15809 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15810
15811         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15812         (EXCEPTION_TESTS_double): Likewise.
15813         (EXCEPTION_TESTS_long_double): Likewise.
15814         (EXCEPTION_TESTS): Likewise.
15815         * math/libm-test.inc (test_exceptions): Only test exceptions if
15816         EXCEPTION_TESTS (FLOAT).
15817
15818 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15819
15820         * benchtests/Makefile (string-bench): Add strcpy_chk and
15821         stpcpy_chk.
15822         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15823         * benchtests/bench-stpcpy_chk.c: New file.
15824         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15825         * benchtests/bench-strcpy_chk.c: New file.
15826         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15827         code.
15828         (do_test): Likewise.
15829
15830 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15831
15832         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15833         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15834         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15835         with tabs where appropriate.
15836         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15837         dl-procinfo.h.
15838         [PPC_PLATFORM_PPC440]: Likewise.
15839         [PPC_PLATFORM_PPC464]: Likewise.
15840         [PPC_PLATFORM_PPC476]: Likewise.
15841         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15842         ppc464, and ppc476 platform strings merging from ports/
15843         dl-procinfo.h.
15844
15845 2013-06-11  Andreas Schwab  <schwab@suse.de>
15846
15847         [BZ #14991]
15848         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15849         (from_ucs4_idx): Regenerate.
15850         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15851         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15852         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15853         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15854         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15855         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15856         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15857         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15858         from FROM_LOOP and TO_LOOP specific macros.
15859         (BODY): Handle combining characters.
15860         * iconvdata/BIG5HKSCS.irreversible: Update.
15861         * iconvdata/BIG5HKSCS.precomposed: New file.
15862         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15863         characters.
15864         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15865
15866 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15867
15868         * include/sys/time.h: Fix indentation and add copyright header.
15869
15870         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15871         (do_test): Likewise.
15872         * string/test-memchr.c (do_one_test): Likewise.
15873         (do_test): Likewise.
15874         * string/test-memcmp.c (do_one_test): Likewise.
15875         (do_test): Likewise.
15876         * string/test-memcpy.c (do_one_test): Likewise.
15877         (do_test): Likewise.
15878         * string/test-memmem.c (do_one_test): Likewise.
15879         (do_test): Likewise.
15880         (do_random_tests): Likewise.
15881         * string/test-memmove.c (do_one_test): Likewise.
15882         (do_test): Likewise.
15883         * string/test-memset.c (do_one_test): Likewise.
15884         (do_test): Likewise.
15885         * string/test-rawmemchr.c (do_one_test): Likewise.
15886         (do_test): Likewise.
15887         * string/test-strcasecmp.c (do_one_test): Likewise.
15888         (do_test): Likewise.
15889         * string/test-strcasestr.c (do_one_test): Likewise.
15890         (do_test): Likewise.
15891         * string/test-strcat.c (do_one_test): Likewise.
15892         (do_test): Likewise.
15893         * string/test-strchr.c (do_one_test): Likewise.
15894         (do_test): Likewise.
15895         * string/test-strcmp.c (do_one_test): Likewise.
15896         (do_test): Likewise.
15897         * string/test-strcpy.c (do_one_test): Likewise.
15898         (do_test): Likewise.
15899         * string/test-string.h: Likewise.
15900         (test_init): Likewise.
15901         * string/test-strlen.c (do_one_test): Likewise.
15902         (do_test): Likewise.
15903         * string/test-strncasecmp.c (do_one_test): Likewise.
15904         (do_test): Likewise.
15905         * string/test-strncat.c (do_one_test): Likewise.
15906         (do_test): Likewise.
15907         * string/test-strncmp.c (do_one_test): Likewise.
15908         (do_test_limit): Likewise.
15909         (do_test): Likewise.
15910         * string/test-strncpy.c (do_one_test): Likewise.
15911         (do_test): Likewise.
15912         * string/test-strnlen.c (do_one_test): Likewise.
15913         (do_test): Likewise.
15914         * string/test-strpbrk.c (do_one_test): Likewise.
15915         (do_test): Likewise.
15916         * string/test-strrchr.c (do_one_test): Likewise.
15917         (do_test): Likewise.
15918         * string/test-strspn.c (do_one_test): Likewise.
15919         (do_test): Likewise.
15920         * string/test-strstr.c (do_one_test): Likewise.
15921         (do_test): Likewise.
15922
15923         * benchtests/Makefile (string-bench): Add string benchmarks.
15924         * benchtests/bench-bcopy-ifunc.c: New file.
15925         * benchtests/bench-bcopy.c: New file.
15926         * benchtests/bench-bzero-ifunc.c: New file.
15927         * benchtests/bench-bzero.c: New file.
15928         * benchtests/bench-memccpy-ifunc.c: New file.
15929         * benchtests/bench-memccpy.c: New file.
15930         * benchtests/bench-memchr-ifunc.c: New file.
15931         * benchtests/bench-memchr.c: New file.
15932         * benchtests/bench-memcmp-ifunc.c: New file.
15933         * benchtests/bench-memcmp.c: New file.
15934         * benchtests/bench-memmem-ifunc.c: New file.
15935         * benchtests/bench-memmem.c: New file.
15936         * benchtests/bench-memmove-ifunc.c: New file.
15937         * benchtests/bench-memmove.c: New file.
15938         * benchtests/bench-mempcpy-ifunc.c: New file.
15939         * benchtests/bench-mempcpy.c: New file.
15940         * benchtests/bench-memset-ifunc.c: New file.
15941         * benchtests/bench-memset.c: New file.
15942         * benchtests/bench-rawmemchr-ifunc.c: New file.
15943         * benchtests/bench-rawmemchr.c: New file.
15944         * benchtests/bench-stpcpy-ifunc.c: New file.
15945         * benchtests/bench-stpcpy.c: New file.
15946         * benchtests/bench-stpncpy-ifunc.c: New file.
15947         * benchtests/bench-stpncpy.c: New file.
15948         * benchtests/bench-strcasecmp-ifunc.c: New file.
15949         * benchtests/bench-strcasecmp.c: New file.
15950         * benchtests/bench-strcasestr-ifunc.c: New file.
15951         * benchtests/bench-strcasestr.c: New file.
15952         * benchtests/bench-strcat-ifunc.c: New file.
15953         * benchtests/bench-strcat.c: New file.
15954         * benchtests/bench-strchr-ifunc.c: New file.
15955         * benchtests/bench-strchr.c: New file.
15956         * benchtests/bench-strchrnul-ifunc.c: New file.
15957         * benchtests/bench-strchrnul.c: New file.
15958         * benchtests/bench-strcmp-ifunc.c: New file.
15959         * benchtests/bench-strcmp.c: New file.
15960         * benchtests/bench-strcpy-ifunc.c: New file.
15961         * benchtests/bench-strcpy.c: New file.
15962         * benchtests/bench-strcspn-ifunc.c: New file.
15963         * benchtests/bench-strcspn.c: New file.
15964         * benchtests/bench-strlen-ifunc.c: New file.
15965         * benchtests/bench-strlen.c: New file.
15966         * benchtests/bench-strncasecmp-ifunc.c: New file.
15967         * benchtests/bench-strncasecmp.c: New file.
15968         * benchtests/bench-strncat-ifunc.c: New file.
15969         * benchtests/bench-strncat.c: New file.
15970         * benchtests/bench-strncmp-ifunc.c: New file.
15971         * benchtests/bench-strncmp.c: New file.
15972         * benchtests/bench-strncpy-ifunc.c: New file.
15973         * benchtests/bench-strncpy.c: New file.
15974         * benchtests/bench-strnlen-ifunc.c: New file.
15975         * benchtests/bench-strnlen.c: New file.
15976         * benchtests/bench-strpbrk-ifunc.c: New file.
15977         * benchtests/bench-strpbrk.c: New file.
15978         * benchtests/bench-strrchr-ifunc.c: New file.
15979         * benchtests/bench-strrchr.c: New file.
15980         * benchtests/bench-strspn-ifunc.c: New file.
15981         * benchtests/bench-strspn.c: New file.
15982         * benchtests/bench-strstr-ifunc.c: New file.
15983         * benchtests/bench-strstr.c: New file.
15984
15985         * benchtests/Makefile: Disable parallel execution of targets.
15986         (string-bench): Add memcpy.
15987         (benchset): New variable to store a list of benchmark sets.
15988         (bench-func): Renamed from bench.
15989         (bench-set): New target.
15990         (bench): Depend on bench-func and bench-set.
15991         * benchtests/README: Add section on benchmark sets.
15992         * benchtests/bench-memcpy-ifunc.c: New file.
15993         * benchtests/bench-memcpy.c: New file.
15994         * benchtests/bench-string.h: New file.
15995
15996 2013-06-11  Andreas Schwab  <schwab@suse.de>
15997
15998         [BZ #15577]
15999         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
16000         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
16001         values in the triple.
16002         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
16003         terminator in the group key.
16004
16005 2013-06-11  Andreas Jaeger  <aj@suse.de>
16006
16007         * po/zh_TW.po: Update Chinese (traditional) translation from
16008         translation project.
16009
16010 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16011
16012         * include/time.h (__clock_gettime): Add libc_hidden_proto.
16013         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
16014         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
16015         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16016         (clock_getcpuclockid): Likewise.
16017         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
16018         Add weak_alias and libc_hidden_def.
16019         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
16020         * rt/clock_gettime.c (clock_gettime): Rename to
16021         __clock_gettime.  Add weak_alias and libc_hidden_def.
16022         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
16023         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
16024         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
16025         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
16026         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
16027         Likewise.
16028         * rt/clock_settime.c (clock_settime): Rename to
16029         __clock_settime.  Add weak_alias and libc_hidden_def.
16030         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
16031
16032 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
16033
16034         * mach/err_boot.sub: Remove trailing whitespace.
16035         * mach/err_ipc.sub: Likewise.
16036         * mach/err_mach.sub: Likewise.
16037
16038         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
16039         (ROUNDING_TESTS_double): Likewise.
16040         (ROUNDING_TESTS_long_double): Likewise.
16041         (ROUNDING_TESTS): Likewise.
16042         * math/libm-test.inc: Include <math-tests.h>.
16043         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
16044         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16045         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16046         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16047
16048 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16049
16050         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
16051         of assigning.
16052
16053 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
16054
16055         * sysdeps/gnu/errlist.awk: Do not generate space at end of
16056         otherwise empty TRANS lines.
16057         * sysdeps/gnu/errlist.c: Regenerated.
16058
16059         * catgets/gencat.c (error_print): Use (void) in function
16060         definition.
16061         * crypt/crypt_util.c (__init_des): Likewise.
16062         * crypt/speeds.c (Stop): Likewise.
16063         (main): Likewise.
16064         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16065         * inet/ruserpass.c (token): Likewise.
16066         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16067         * intl/localealias.c (extend_alias_table): Likewise.
16068         * intl/plural-exp.c (init_germanic_plural): Likewise.
16069         * libio/fcloseall.c (__fcloseall): Likewise.
16070         * libio/genops.c (_IO_flush_all): Likewise.
16071         (_IO_flush_all_linebuffered): Likewise.
16072         (_IO_cleanup): Likewise.
16073         (_IO_iter_begin): Likewise.
16074         (_IO_iter_end): Likewise.
16075         (_IO_list_lock): Likewise.
16076         (_IO_list_unlock): Likewise.
16077         (_IO_list_resetlock): Likewise.
16078         * libio/getchar.c (getchar): Likewise.
16079         * libio/getchar_u.c (getchar_unlocked): Likewise.
16080         * libio/getwchar.c (getwchar): Likewise.
16081         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16082         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16083         * login/getpt.c (__getpt): Likewise.
16084         * login/tst-utmp.c (main): Likewise.
16085         * malloc/hooks.c (__malloc_check_init): Likewise.
16086         * malloc/malloc.c (__malloc_stats): Likewise.
16087         * malloc/mtrace.c (tr_break): Likewise.
16088         (mtrace): Likewise.
16089         (muntrace): Likewise.
16090         * misc/fstab.c (endfsent): Likewise.
16091         * misc/getclktck.c (__getclktck): Likewise.
16092         * misc/getdtsz.c (__getdtablesize): Likewise.
16093         * misc/gethostid.c (gethostid): Likewise.
16094         * misc/getpagesize.c (__getpagesize): Likewise.
16095         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16096         (__get_nprocs): Likewise.
16097         (__get_phys_pages): Likewise.
16098         (__get_avphys_pages): Likewise.
16099         * misc/getttyent.c (getttyent): Likewise.
16100         (setttyent): Likewise.
16101         (endttyent): Likewise.
16102         * misc/getusershell.c (getusershell): Likewise.
16103         (endusershell): Likewise.
16104         (setusershell): Likewise.
16105         (initshells): Likewise.
16106         * misc/hsearch.c (__hdestroy): Likewise.
16107         * misc/sync.c (sync): Likewise.
16108         * misc/syslog.c (closelog_internal): Likewise.
16109         (closelog): Likewise.
16110         * misc/ttyslot.c (ttyslot): Likewise.
16111         * misc/vhangup.c (vhangup): Likewise.
16112         * posix/fork.c (__fork): Likewise.
16113         * posix/getegid.c (__getegid): Likewise.
16114         * posix/geteuid.c (__geteuid): Likewise.
16115         * posix/getgid.c (__getgid): Likewise.
16116         * posix/getpid.c (__getpid): Likewise.
16117         * posix/getppid.c (__getppid): Likewise.
16118         * posix/getuid.c (__getuid): Likewise.
16119         * posix/pause.c (pause): Likewise.
16120         * posix/setpgrp.c (setpgrp): Likewise.
16121         * posix/setsid.c (__setsid): Likewise.
16122         * posix/test-vfork.c (noop): Likewise.
16123         * resolv/gethnamaddr.c (_endhtent): Likewise.
16124         (_gethtent): Likewise.
16125         (ht_endhostent): Likewise.
16126         (gethostent): Likewise.
16127         (dns_service): Likewise.
16128         * stdlib/drand48.c (drand48): Likewise.
16129         * stdlib/lrand48.c (lrand48): Likewise.
16130         * stdlib/mrand48.c (mrand48): Likewise.
16131         * stdlib/rand.c (rand): Likewise.
16132         * stdlib/random.c (__random): Likewise.
16133         * stdlib/setenv.c (clearenv): Likewise.
16134         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16135         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16136         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16137         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16138         (__get_nprocs): Likewise.
16139         (__get_phys_pages): Likewise.
16140         (__get_avphys_pages): Likewise.
16141         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16142         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16143         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16144         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16145         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16146         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16147         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16148         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16149         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16150         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16151         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16152         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16153         * sysdeps/posix/clock.c (clock): Likewise.
16154         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16155         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16156         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16157         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16158         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16159         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16160         (__get_nprocs_conf): Likewise.
16161         (__get_phys_pages): Likewise.
16162         (__get_avphys_pages): Likewise.
16163         * time/clock.c (clock): Likewise.
16164         * time/tzset.c (__tzname_max): Likewise.
16165
16166 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16167
16168         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16169         (__bswap_32): Do not use "register".
16170         * crypt/crypt.c (_ufc_doit_r): Likewise.
16171         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16172         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16173         * gmon/gmon.c (__monstartup): Likewise.
16174         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16175         * hurd/hurdmalloc.c (more_memory): Likewise.
16176         (malloc): Likewise.
16177         (free): Likewise.
16178         (realloc): Likewise.
16179         (malloc_fork_prepare): Likewise.
16180         (malloc_fork_parent): Likewise.
16181         (malloc_fork_child): Likewise.
16182         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16183         (_svcauth_des): Likewise.
16184         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16185         * inet/inet_net.c (inet_network): Likewise.
16186         * inet/inet_netof.c (inet_netof): Likewise.
16187         * inet/rcmd.c (__validuser2_sa): Likewise.
16188         * io/fts.c (fts_open): Likewise.
16189         (fts_load): Likewise.
16190         (fts_close): Likewise.
16191         (fts_read): Likewise.
16192         (fts_children): Likewise.
16193         (fts_build): Likewise.
16194         (fts_stat): Likewise.
16195         (fts_sort): Likewise.
16196         (fts_alloc): Likewise.
16197         (fts_lfree): Likewise.
16198         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16199         (_IO_file_xsgetn): Likewise.
16200         (_IO_file_xsgetn_mmap): Likewise.
16201         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16202         (_IO_cookie_write): Likewise.
16203         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16204         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16205         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16206         * malloc/obstack.c (_obstack_begin): Likewise.
16207         (_obstack_begin_1): Likewise.
16208         (_obstack_newchunk): Likewise.
16209         (_obstack_allocated_p): Likewise.
16210         (obstack_free): Likewise.
16211         (_obstack_memory_used): Likewise.
16212         * misc/getttyent.c (getttynam): Likewise.
16213         (getttyent): Likewise.
16214         (skip): Likewise.
16215         (value): Likewise.
16216         * misc/getusershell.c (initshells): Likewise.
16217         * misc/syslog.c (__vsyslog_chk): Likewise.
16218         * misc/ttyslot.c (ttyslot): Likewise.
16219         * nis/nis_hash.c (__nis_hash): Likewise.
16220         * posix/fnmatch_loop.c (FCT): Likewise.
16221         * posix/getconf.c (print_all): Likewise.
16222         (main): Likewise.
16223         * posix/getopt.c (exchange): Likewise.
16224         * posix/glob.c (globfree): Likewise.
16225         (prefix_array): Likewise.
16226         (__glob_pattern_type): Likewise.
16227         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16228         (NS_GET32): Likewise.
16229         (NS_PUT16): Likewise.
16230         (NS_PUT32): Likewise.
16231         * resolv/gethnamaddr.c (getanswer): Likewise.
16232         (gethostbyname2): Likewise.
16233         (gethostbyaddr): Likewise.
16234         (_gethtent): Likewise.
16235         (_gethtbyname2): Likewise.
16236         (_gethtbyaddr): Likewise.
16237         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16238         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16239         * resolv/res_init.c (__res_vinit): Likewise.
16240         (net_mask): Likewise.
16241         * resolv/res_mkquery.c (outchar): Likewise.
16242         (PRINT): Likewise.
16243         * stdio-common/printf_fp.c (outchar): Likewise.
16244         (PRINT): Likewise.
16245         * stdio-common/printf_fphex.c (outchar): Likewise.
16246         (PRINT): Likewise.
16247         * stdio-common/printf_size.c (outchar): Likewise.
16248         (PRINT): Likewise.
16249         * stdio-common/test_rdwr.c (main): Likewise.
16250         * stdio-common/tfformat.c (matches): Likewise.
16251         * stdio-common/vfprintf.c (outchar): Likewise.
16252         (printf_unknown): Likewise.
16253         (buffered_vfprintf): Likewise.
16254         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16255         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16256         (ReadFile): Likewise.
16257         * stdlib/qsort.c (SWAP): Likewise.
16258         (_quicksort): Likewise.
16259         * stdlib/setenv.c (__add_to_environ): Likewise.
16260         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16261         * stdlib/strtol_l.c (__strtol_l): Likewise.
16262         * stdlib/tst-strtod.c (main): Likewise.
16263         * stdlib/tst-strtol.c (main): Likewise.
16264         * stdlib/tst-strtoll.c (main): Likewise.
16265         * string/bits/string2.h (__strcmp_cc): Likewise.
16266         (__strcmp_cg): Likewise.
16267         (__strcspn_c1): Likewise.
16268         (__strcspn_c2): Likewise.
16269         (__strcspn_c3): Likewise.
16270         (__strspn_c1): Likewise.
16271         (__strspn_c2): Likewise.
16272         (__strspn_c3): Likewise.
16273         (__strsep_1c): Likewise.
16274         (__strsep_2c): Likewise.
16275         (__strsep_3c): Likewise.
16276         * string/memccpy.c (__memccpy): Likewise.
16277         * string/stpcpy.c (__stpcpy): Likewise.
16278         * string/strcmp.c (strcmp): Likewise.
16279         * string/strrchr.c (strrchr): Likewise.
16280         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16281         Likewise.
16282         * sysdeps/mach/hurd/getcwd.c
16283         (_hurd_canonicalize_directory_name_internal): Likewise.
16284         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16285         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16286         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16287         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16288         Likewise, in both definitions.
16289         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16290         definitions.
16291         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16292         64] (__bswap_64): Likewise.
16293         * time/test_time.c (main): Likewise.
16294         * time/tzfile.c (__tzfile_read): Likewise.
16295         (__tzfile_compute): Likewise.
16296         * time/tzset.c (__tzset_parse_tz): Likewise.
16297         (tzset_internal): Likewise.
16298         (compute_change): Likewise.
16299         * wcsmbs/wcscat.c (__wcscat): Likewise.
16300         * wcsmbs/wcschr.c (wcschr): Likewise.
16301         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16302         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16303         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16304         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16305         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16306         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16307         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16308         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16309         * wcsmbs/wmemset.c (wmemset): Likewise.
16310
16311 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16312
16313         * scripts/config.guess: Update to version 2013-05-16.
16314         * scripts/config.sub: Update to version 2013-04-24.
16315         * scripts/install-sh: Update to version 2011-11-20.07.
16316         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16317         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16318
16319 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16320
16321         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16322         * elf/sln.c: Likewise.
16323         * hurd/hurd/ioctl.h: Likewise.
16324         * hurd/hurdmalloc.c: Likewise.
16325         * hurd/xattr.c: Likewise.
16326         * include/shlib-compat.h: Likewise.
16327         * inet/ruserpass.c: Likewise.
16328         * libio/iofgets_u.c: Likewise.
16329         * libio/iofgetws_u.c: Likewise.
16330         * locale/programs/ld-identification.c: Likewise.
16331         * locale/programs/ld-time.c: Likewise.
16332         * mach/msg-destroy.c: Likewise.
16333         * nss/nss_files/files-netgrp.c: Likewise.
16334         * resolv/res_data.c: Likewise.
16335         * soft-fp/op-1.h: Likewise.
16336         * soft-fp/op-2.h: Likewise.
16337         * soft-fp/op-4.h: Likewise.
16338         * soft-fp/op-common.h: Likewise.
16339         * stdio-common/printf_fphex.c: Likewise.
16340         * stdlib/strtod_l.c: Likewise.
16341         * sunrpc/rpc/clnt.h: Likewise.
16342         * sysdeps/generic/framestate.c: Likewise.
16343         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16344         * sysdeps/i386/bsd-setjmp.S: Likewise.
16345         * sysdeps/i386/__longjmp.S: Likewise.
16346         * sysdeps/i386/setjmp.S: Likewise.
16347         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16348         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16349         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16350         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16351         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16352         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16353         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16354         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16355         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16356         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16357         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16358         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16359         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16360         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16361         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16362         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16363         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16364         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16365         * sysdeps/ieee754/support.c: Likewise.
16366         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16367         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16368         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16369         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16370         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16371         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16372         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16373         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16374         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16375         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16376         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16377         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16378         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16379         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16380         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16381         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16382         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16384
16385 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16386
16387         * posix/transbug.c: Remove executable mode.
16388
16389 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16390
16391         * crypt/speeds.c: Remove trailing whitespace.
16392         * dlfcn/default.c: Likewise.
16393         * elf/ifuncdep2.c: Likewise.
16394         * elf/ifuncmain1.c: Likewise.
16395         * elf/ifuncmain1vis.c: Likewise.
16396         * elf/testobj.h: Likewise.
16397         * elf/tst-stackguard1.c: Likewise.
16398         * gmon/sys/gmon.h: Likewise.
16399         * hurd/hurdmsg.c: Likewise.
16400         * hurd/new-fd.c: Likewise.
16401         * hurd/ports-get.c: Likewise.
16402         * iconvdata/ibm1008_420.c: Likewise.
16403         * inet/tst-getni1.c: Likewise.
16404         * inet/tst-getni2.c: Likewise.
16405         * libio/ioungetc.c: Likewise.
16406         * libio/wfiledoalloc.c: Likewise.
16407         * manual/libm-err-tab.pl: Likewise.
16408         * math/w_dremf.c: Likewise.
16409         * misc/ftruncate.c: Likewise.
16410         * posix/bug-glob2.c: Likewise.
16411         * posix/tst-pcre.c: Likewise.
16412         * posix/wait4.c: Likewise.
16413         * resolv/README: Likewise.
16414         * resolv/res_debug.h: Likewise.
16415         * resolv/tst-inet_ntop.c: Likewise.
16416         * setjmp/bug269-setjmp.c: Likewise.
16417         * soft-fp/extended.h: Likewise.
16418         * soft-fp/op-1.h: Likewise.
16419         * soft-fp/op-2.h: Likewise.
16420         * soft-fp/op-4.h: Likewise.
16421         * soft-fp/op-8.h: Likewise.
16422         * soft-fp/testit.c: Likewise.
16423         * stdio-common/bug16.c: Likewise.
16424         * stdlib/random.c: Likewise.
16425         * sunrpc/rpcsvc/rquota.x: Likewise.
16426         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
16427         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16428         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16429         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16430         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16431         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16432         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16433         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16434         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16435         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16436         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16437         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16438         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16439         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16440         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16441         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16442         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16443         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16444         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16445         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16446         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16447         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16448         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16449         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16450         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16451         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16452         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16453         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16454         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16455         * sysdeps/ieee754/s_lib_version.c: Likewise.
16456         * sysdeps/mach/hurd/check_fds.c: Likewise.
16457         * sysdeps/mach/hurd/getsockname.c: Likewise.
16458         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16459         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16460         * sysdeps/powerpc/bits/link.h: Likewise.
16461         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16462         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16463         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16464         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16465         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16466         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16467         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16468         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16469         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16470         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16471         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16472         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16473         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16474         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16475         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16476         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16477         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16478         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16479         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16480         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16481         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16482         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16483         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16484         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16485         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16486         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16487         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16488         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16489         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16490         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16491         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16492         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16493         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16494         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16495         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16496         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16497         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16498         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16499         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16500         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16501         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16502         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16503         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16504         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16505         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16506         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16507         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16508         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16509         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16510         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16511         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16512         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16513         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16514         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16515         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16516         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16517         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16518         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16519         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16520         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16521         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16522         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16523         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16524         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16525         * sysdeps/powerpc/sysdep.h: Likewise.
16526         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16527         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16528         * sysdeps/sh/dl-trampoline.S: Likewise.
16529         * sysdeps/sh/memset.S: Likewise.
16530         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16531         * sysdeps/sh/strlen.S: Likewise.
16532         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16533         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16534         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16535         * sysdeps/sparc/sparc32/rem.S: Likewise.
16536         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16537         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16538         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16539         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16540         * sysdeps/sparc/sparc32/urem.S: Likewise.
16541         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16542         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16543         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16544         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16545         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16546         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16547         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16548         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16549         * sysdeps/unix/bsd/times.c: Likewise.
16550         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16551         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16555         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16556         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16557         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16558         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16559         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16560         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16561         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16562         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16563         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16564         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16565         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16566         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16567         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16568         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16569         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16570         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16571         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16572         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16573         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16574         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16575         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16576         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16577         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16578         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16579         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16580         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16581         * sysdeps/x86_64/strcspn.S: Likewise.
16582
16583 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16584
16585         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16586         generated file.  Regenerate properly from gen-translit.pl.
16587         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16588         locale/C-translit.h.
16589
16590 2013-06-05  Andreas Schwab  <schwab@suse.de>
16591
16592         [BZ #15100]
16593         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16594         week as 6 instead of -1.
16595         * time/tst-strptime.c (day_tests): Add test case.
16596
16597 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16598
16599         * sysdeps/generic/math_private.h
16600         (libc_feholdexcept_setround_53bit): Replace with
16601         libc_feholdsetround_53bit.
16602         (libc_feupdateenv_53bit): Replace with
16603         libc_feresetround_53bit.
16604         (SET_RESTORE_ROUND_53BIT): Adjust.
16605
16606 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16607
16608         * string/test-strchrnul.c: Add copyright header.
16609
16610         * posix/tst-getaddrinfo4.c: Increase test timeout.
16611
16612 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16613
16614         [BZ #15536]
16615         * math/libm-test.inc (MAX_EXP): Remove
16616         (MIN_EXP): Define.
16617         (ulp): Use MIN_EXP - MANT_DIG.
16618         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16619
16620 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16621
16622         * po/be.po: Revert last change.
16623         * po/zh_CN.po: Likewise.
16624         * po/header.pot: Likewise.
16625
16626 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16627
16628         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16629         link-libc-deps to empty as target-specific variable.
16630         * Makerules (link-libc-args): New variable.
16631         (libc-for-link): Likewise.
16632         (link-libc-deps): Likewise.
16633         (lib%.so): Depend on $(link-libc-deps).  Link with
16634         $(link-libc-args).
16635         (build-module): Link with $(link-libc-args).
16636         (build-module-asneeded): Likewise.
16637         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16638         list of objects.
16639         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16640         target-specific variable.
16641         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16642         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16643         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16644         libc.
16645         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16646         libc and ld.so.
16647         ($(objpfx)libpcprofile.so): Likewise.
16648         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16649         libc_nonshared.a.
16650         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16651         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16652         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16653         $(link-libc-deps).
16654         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16655         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16656         * login/Makefile ($(objpfx)libutil.so): Likewise.
16657         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16658         * math/Makefile ($(objpfx)libm.so): Likewise.
16659         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16660         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16661         variable instead of depending directly on libc.
16662         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16663         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16664         $(link-libc-deps).
16665         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16666         libc.
16667         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16668         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16669         ($(objpfx)libanl.so): Likewise.
16670         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16671         ld.so.
16672         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16673         $(link-libc-deps).
16674         * sysdeps/i386/fpu/Makefile: Remove file.
16675         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16676         ($(objpfx)libm.so): Remove dependency on ld.so.
16677
16678 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16679
16680         [BZ # 15553]
16681         * nis/yp_xdr.c (XDRMAXNAME): Define.
16682         (XDRMAXRECORD): Define.
16683         (xdr_domainname): Use XDRMAXNAME.
16684         (xdr_mapname): Likewise.
16685         (xdr_peername): Likewise.
16686         (xdr_keydat): Use XDRMAXRECORD.
16687         (xdr_valdat): Likewise.
16688
16689 2013-05-30  Jeff Law  <law@redhat.com>
16690
16691         [BZ #14256]
16692         * manual/errno.texi (ESTALE): Update to account for more than
16693         just NFS file systems.
16694         * sysdeps/gnu/errlist.c: Regenerated.
16695
16696 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16697
16698         [BZ #15465]
16699         * elf/Makefile (tests): Add tst-null-argv.
16700         (modules-names):  Add tst-null-argv-lib.
16701         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16702         (tst-null-argv-ENV): Set environment for tst-null-argv.
16703         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16704         (RTLD_PROGNAME): New macro.
16705         * elf/tst-null-argv.c: New test case.
16706         * elf/tst-null-argv-lib.c: Library for test case.
16707         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16708         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16709         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16710         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16711         * elf/dl-init.c (call_init): Likewise.
16712         (_dl_init): Likewise.
16713         * elf/dl-load.c (print_search_path): Likewise.
16714         (_dl_map_object): Likewise.
16715         * elf/dl-lookup.c (do_lookup_x): Likewise.
16716         (add_dependency): Likewise.
16717         (_dl_lookup_symbol_x): Likewise.
16718         (_dl_debug_bindings): Likewise.
16719         * elf/dl-open.c (_dl_show_scope): Likewise.
16720         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16721         * elf/dl-version.c (match_symbol): Likewise.
16722         (_dl_check_map_versions): Likewise.
16723         * elf/rtld.c (dl_main): Likewise.
16724         (print_unresolved): Use RTLD_PROGNAME.
16725         (print_missing_version): Likewise.
16726         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16727         (elf_machine_rela): Likewise.
16728         * sysdeps/powerpc/powerpc32/dl-machine.c
16729         (__process_machine_rela): Likewise.
16730         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16731         Likewise.
16732         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16733         Likewise.
16734         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16735         Likewise.
16736         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16737         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16738         Likewise.
16739         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16740         Likewise.
16741         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16742
16743 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16744
16745         * po/be.po: Add descriptive title.
16746         * po/zh_CN.po: Likewise.
16747         * po/header.pot: Likewise.
16748
16749 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16750
16751         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16752         error message.
16753         (enlarge_archive): Likewise.
16754
16755 2013-05-28  Ben North  <ben@redfrontdoor.org>
16756
16757         * manual/arith.texi (frexp): It is the magnitude of the return
16758         value which lies in [0.5, 1), not the return value itself.
16759
16760 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16761
16762         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16763
16764 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16765
16766         * stdio-common/bug26.c (main): Correct fscanf template.
16767
16768         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16769         declare _dl_skip_args.
16770
16771         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16772         Don't declare.
16773
16774         * manual/platform.texi: Add missing @end deftypefun.
16775
16776 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16777
16778         [BZ #15529]
16779         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16780         bit of mantissa of 2^16382.
16781         * math/libm-test.inc (hypot_test_data): Add more tests.
16782
16783         * math/libm-test.inc: Add drem and pow10 to list of tested
16784         functions.
16785         (pow10_test): New function.
16786         (drem_test): Likewise.
16787         (drem_test_tonearest): Likewise.
16788         (drem_test_towardzero): Likewise.
16789         (drem_test_downward): Likewise.
16790         (drem_test_upward): Likewise.
16791         (main): Call the new functions.
16792
16793         * math/libm-test.inc (finite_test_data): Remove.
16794         (finite_test): Run tests from isfinite_test_data.
16795         (gamma_test_data): Remove.
16796         (gamma_test): Run tests from lgamma_test_data.
16797         * sysdeps/i386/fpu/libm-test-ulps: Update.
16798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16799
16800 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16801
16802         * manual/platform.texi: Add PowerPC PPR function set documentation.
16803         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16804         implementation.
16805
16806 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16807
16808         * math/libm-test.inc (MAX_EXP): Define.
16809         (ULPDIFF): Define.
16810         (ulp): New function.
16811         (check_float_internal): Use ULPDIFF.
16812         (cpow_test): Disable failing test.
16813         (check_ulp): Test ulp() implemetnation.
16814         (main): Call check_ulp before starting tests.
16815
16816 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16817
16818         * math/gen-libm-test.pl (generate_testfile): Do not handle
16819         START_DATA and END_DATA.
16820         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16821         END_DATA.
16822         (acos_tonearest_test_data): Likewise.
16823         (acos_towardzero_test_data): Likewise.
16824         (acos_downward_test_data): Likewise.
16825         (acos_upward_test_data): Likewise.
16826         (acosh_test_data): Likewise.
16827         (asin_test_data): Likewise.
16828         (asin_tonearest_test_data): Likewise.
16829         (asin_towardzero_test_data): Likewise.
16830         (asin_downward_test_data): Likewise.
16831         (asin_upward_test_data): Likewise.
16832         (asinh_test_data): Likewise.
16833         (atan_test_data): Likewise.
16834         (atanh_test_data): Likewise.
16835         (atan2_test_data): Likewise.
16836         (cabs_test_data): Likewise.
16837         (cacos_test_data): Likewise.
16838         (cacosh_test_data): Likewise.
16839         (carg_test_data): Likewise.
16840         (casin_test_data): Likewise.
16841         (casinh_test_data): Likewise.
16842         (catan_test_data): Likewise.
16843         (catanh_test_data): Likewise.
16844         (cbrt_test_data): Likewise.
16845         (ccos_test_data): Likewise.
16846         (ccosh_test_data): Likewise.
16847         (ceil_test_data): Likewise.
16848         (cexp_test_data): Likewise.
16849         (cimag_test_data): Likewise.
16850         (clog_test_data): Likewise.
16851         (clog10_test_data): Likewise.
16852         (conj_test_data): Likewise.
16853         (copysign_test_data): Likewise.
16854         (cos_test_data): Likewise.
16855         (cos_tonearest_test_data): Likewise.
16856         (cos_towardzero_test_data): Likewise.
16857         (cos_downward_test_data): Likewise.
16858         (cos_upward_test_data): Likewise.
16859         (cosh_test_data): Likewise.
16860         (cosh_tonearest_test_data): Likewise.
16861         (cosh_towardzero_test_data): Likewise.
16862         (cosh_downward_test_data): Likewise.
16863         (cosh_upward_test_data): Likewise.
16864         (cpow_test_data): Likewise.
16865         (cproj_test_data): Likewise.
16866         (creal_test_data): Likewise.
16867         (csin_test_data): Likewise.
16868         (csinh_test_data): Likewise.
16869         (csqrt_test_data): Likewise.
16870         (ctan_test_data): Likewise.
16871         (ctan_tonearest_test_data): Likewise.
16872         (ctan_towardzero_test_data): Likewise.
16873         (ctan_downward_test_data): Likewise.
16874         (ctan_upward_test_data): Likewise.
16875         (ctanh_test_data): Likewise.
16876         (ctanh_tonearest_test_data): Likewise.
16877         (ctanh_towardzero_test_data): Likewise.
16878         (ctanh_downward_test_data): Likewise.
16879         (ctanh_upward_test_data): Likewise.
16880         (erf_test_data): Likewise.
16881         (erfc_test_data): Likewise.
16882         (exp_test_data): Likewise.
16883         (exp_tonearest_test_data): Likewise.
16884         (exp_towardzero_test_data): Likewise.
16885         (exp_downward_test_data): Likewise.
16886         (exp_upward_test_data): Likewise.
16887         (exp10_test_data): Likewise.
16888         (exp2_test_data): Likewise.
16889         (expm1_test_data): Likewise.
16890         (fabs_test_data): Likewise.
16891         (fdim_test_data): Likewise.
16892         (finite_test_data): Likewise.
16893         (floor_test_data): Likewise.
16894         (fma_test_data): Likewise.
16895         (fma_towardzero_test_data): Likewise.
16896         (fma_downward_test_data): Likewise.
16897         (fma_upward_test_data): Likewise.
16898         (fmax_test_data): Likewise.
16899         (fmin_test_data): Likewise.
16900         (fmod_test_data): Likewise.
16901         (fpclassify_test_data): Likewise.
16902         (frexp_test_data): Likewise.
16903         (gamma_test_data): Likewise.
16904         (hypot_test_data): Likewise.
16905         (ilogb_test_data): Likewise.
16906         (isfinite_test_data): Likewise.
16907         (isgreater_test_data): Likewise.
16908         (isgreaterequal_test_data): Likewise.
16909         (isinf_test_data): Likewise.
16910         (isless_test_data): Likewise.
16911         (islessequal_test_data): Likewise.
16912         (islessgreater_test_data): Likewise.
16913         (isnan_test_data): Likewise.
16914         (isnormal_test_data): Likewise.
16915         (issignaling_test_data): Likewise.
16916         (isunordered_test_data): Likewise.
16917         (j0_test_data): Likewise.
16918         (j1_test_data): Likewise.
16919         (jn_test_data): Likewise.
16920         (ldexp_test_data): Likewise.
16921         (lgamma_test_data): Likewise.
16922         (lrint_test_data): Likewise.
16923         (lrint_tonearest_test_data): Likewise.
16924         (lrint_towardzero_test_data): Likewise.
16925         (lrint_downward_test_data): Likewise.
16926         (lrint_upward_test_data): Likewise.
16927         (llrint_test_data): Likewise.
16928         (llrint_tonearest_test_data): Likewise.
16929         (llrint_towardzero_test_data): Likewise.
16930         (llrint_downward_test_data): Likewise.
16931         (llrint_upward_test_data): Likewise.
16932         (log_test_data): Likewise.
16933         (log10_test_data): Likewise.
16934         (log1p_test_data): Likewise.
16935         (log2_test_data): Likewise.
16936         (logb_test_data): Likewise.
16937         (logb_downward_test_data): Likewise.
16938         (lround_test_data): Likewise.
16939         (llround_test_data): Likewise.
16940         (modf_test_data): Likewise.
16941         (nearbyint_test_data): Likewise.
16942         (nextafter_test_data): Likewise.
16943         (nexttoward_test_data): Likewise.
16944         (pow_test_data): Likewise.
16945         (pow_tonearest_test_data): Likewise.
16946         (pow_towardzero_test_data): Likewise.
16947         (pow_downward_test_data): Likewise.
16948         (pow_upward_test_data): Likewise.
16949         (remainder_test_data): Likewise.
16950         (remainder_tonearest_test_data): Likewise.
16951         (remainder_towardzero_test_data): Likewise.
16952         (remainder_downward_test_data): Likewise.
16953         (remainder_upward_test_data): Likewise.
16954         (remquo_test_data): Likewise.
16955         (rint_test_data): Likewise.
16956         (rint_tonearest_test_data): Likewise.
16957         (rint_towardzero_test_data): Likewise.
16958         (rint_downward_test_data): Likewise.
16959         (rint_upward_test_data): Likewise.
16960         (round_test_data): Likewise.
16961         (scalb_test_data): Likewise.
16962         (scalbn_test_data): Likewise.
16963         (scalbln_test_data): Likewise.
16964         (signbit_test_data): Likewise.
16965         (sin_test_data): Likewise.
16966         (sin_tonearest_test_data): Likewise.
16967         (sin_towardzero_test_data): Likewise.
16968         (sin_downward_test_data): Likewise.
16969         (sin_upward_test_data): Likewise.
16970         (sincos_test_data): Likewise.
16971         (sinh_test_data): Likewise.
16972         (sinh_tonearest_test_data): Likewise.
16973         (sinh_towardzero_test_data): Likewise.
16974         (sinh_downward_test_data): Likewise.
16975         (sinh_upward_test_data): Likewise.
16976         (sqrt_test_data): Likewise.
16977         (tan_test_data): Likewise.
16978         (tan_tonearest_test_data): Likewise.
16979         (tan_towardzero_test_data): Likewise.
16980         (tan_downward_test_data): Likewise.
16981         (tan_upward_test_data): Likewise.
16982         (tanh_test_data): Likewise.
16983         (tgamma_test_data): Likewise.
16984         (trunc_test_data): Likewise.
16985         (y0_test_data): Likewise.
16986         (y1_test_data): Likewise.
16987         (yn_test_data): Likewise.
16988         (significand_test_data): Likewise.
16989
16990         * math/gen-libm-test.pl (@functions): Remove variable.
16991         (generate_testfile): Don't handle START and END lines.
16992         * math/libm-test.inc (START): New macro.
16993         (END): Likewise.
16994         (END_COMPLEX): Likewise.
16995         (acos_test): Use END macro without arguments.
16996         (acos_test_tonearest): Likewise.
16997         (acos_test_towardzero): Likewise.
16998         (acos_test_downward): Likewise.
16999         (acos_test_upward): Likewise.
17000         (acosh_test): Likewise.
17001         (asin_test): Likewise.
17002         (asin_test_tonearest): Likewise.
17003         (asin_test_towardzero): Likewise.
17004         (asin_test_downward): Likewise.
17005         (asin_test_upward): Likewise.
17006         (asinh_test): Likewise.
17007         (atan_test): Likewise.
17008         (atanh_test): Likewise.
17009         (atan2_test): Likewise.
17010         (cabs_test): Likewise.
17011         (cacos_test): Use END_COMPLEX macro without arguments.
17012         (cacosh_test): Likewise.
17013         (carg_test): Use END macro without arguments.
17014         (casin_test): Use END_COMPLEX macro without arguments.
17015         (casinh_test): Likewise.
17016         (catan_test): Likewise.
17017         (catanh_test): Likewise.
17018         (cbrt_test): Use END macro without arguments.
17019         (ccos_test): Use END_COMPLEX macro without arguments.
17020         (ccosh_test): Likewise.
17021         (ceil_test): Use END macro without arguments.
17022         (cexp_test): Use END_COMPLEX macro without arguments.
17023         (cimag_test): Use END macro without arguments.
17024         (clog_test): Use END_COMPLEX macro without arguments.
17025         (clog10_test): Likewise.
17026         (conj_test): Likewise.
17027         (copysign_test): Use END macro without arguments.
17028         (cos_test): Likewise.
17029         (cos_test_tonearest): Likewise.
17030         (cos_test_towardzero): Likewise.
17031         (cos_test_downward): Likewise.
17032         (cos_test_upward): Likewise.
17033         (cosh_test): Likewise.
17034         (cosh_test_tonearest): Likewise.
17035         (cosh_test_towardzero): Likewise.
17036         (cosh_test_downward): Likewise.
17037         (cosh_test_upward): Likewise.
17038         (cpow_test): Use END_COMPLEX macro without arguments.
17039         (cproj_test): Likewise.
17040         (creal_test): Use END macro without arguments.
17041         (csin_test): Use END_COMPLEX macro without arguments.
17042         (csinh_test): Likewise.
17043         (csqrt_test): Likewise.
17044         (ctan_test): Likewise.
17045         (ctan_test_tonearest): Likewise.
17046         (ctan_test_towardzero): Likewise.
17047         (ctan_test_downward): Likewise.
17048         (ctan_test_upward): Likewise.
17049         (ctanh_test): Likewise.
17050         (ctanh_test_tonearest): Likewise.
17051         (ctanh_test_towardzero): Likewise.
17052         (ctanh_test_downward): Likewise.
17053         (ctanh_test_upward): Likewise.
17054         (erf_test): Use END macro without arguments.
17055         (erfc_test): Likewise.
17056         (exp_test): Likewise.
17057         (exp_test_tonearest): Likewise.
17058         (exp_test_towardzero): Likewise.
17059         (exp_test_downward): Likewise.
17060         (exp_test_upward): Likewise.
17061         (exp10_test): Likewise.
17062         (exp2_test): Likewise.
17063         (expm1_test): Likewise.
17064         (fabs_test): Likewise.
17065         (fdim_test): Likewise.
17066         (finite_test): Likewise.
17067         (floor_test): Likewise.
17068         (fma_test): Likewise.
17069         (fma_test_towardzero): Likewise.
17070         (fma_test_downward): Likewise.
17071         (fma_test_upward): Likewise.
17072         (fmax_test): Likewise.
17073         (fmin_test): Likewise.
17074         (fmod_test): Likewise.
17075         (fpclassify_test): Likewise.
17076         (frexp_test): Likewise.
17077         (gamma_test): Likewise.
17078         (hypot_test): Likewise.
17079         (ilogb_test): Likewise.
17080         (isfinite_test): Likewise.
17081         (isgreater_test): Likewise.
17082         (isgreaterequal_test): Likewise.
17083         (isinf_test): Likewise.
17084         (isless_test): Likewise.
17085         (islessequal_test): Likewise.
17086         (islessgreater_test): Likewise.
17087         (isnan_test): Likewise.
17088         (isnormal_test): Likewise.
17089         (issignaling_test): Likewise.
17090         (isunordered_test): Likewise.
17091         (j0_test): Likewise.
17092         (j1_test): Likewise.
17093         (jn_test): Likewise.
17094         (ldexp_test): Likewise.
17095         (lgamma_test): Likewise.
17096         (lrint_test): Likewise.
17097         (lrint_test_tonearest): Likewise.
17098         (lrint_test_towardzero): Likewise.
17099         (lrint_test_downward): Likewise.
17100         (lrint_test_upward): Likewise.
17101         (llrint_test): Likewise.
17102         (llrint_test_tonearest): Likewise.
17103         (llrint_test_towardzero): Likewise.
17104         (llrint_test_downward): Likewise.
17105         (llrint_test_upward): Likewise.
17106         (log_test): Likewise.
17107         (log10_test): Likewise.
17108         (log1p_test): Likewise.
17109         (log2_test): Likewise.
17110         (logb_test): Likewise.
17111         (logb_test_downward): Likewise.
17112         (lround_test): Likewise.
17113         (llround_test): Likewise.
17114         (modf_test): Likewise.
17115         (nearbyint_test): Likewise.
17116         (nextafter_test): Likewise.
17117         (nexttoward_test): Likewise.
17118         (pow_test): Likewise.
17119         (pow_test_tonearest): Likewise.
17120         (pow_test_towardzero): Likewise.
17121         (pow_test_downward): Likewise.
17122         (pow_test_upward): Likewise.
17123         (remainder_test): Likewise.
17124         (remainder_test_tonearest): Likewise.
17125         (remainder_test_towardzero): Likewise.
17126         (remainder_test_downward): Likewise.
17127         (remainder_test_upward): Likewise.
17128         (remquo_test): Likewise.
17129         (rint_test): Likewise.
17130         (rint_test_tonearest): Likewise.
17131         (rint_test_towardzero): Likewise.
17132         (rint_test_downward): Likewise.
17133         (rint_test_upward): Likewise.
17134         (round_test): Likewise.
17135         (scalb_test): Likewise.
17136         (scalbn_test): Likewise.
17137         (scalbln_test): Likewise.
17138         (signbit_test): Likewise.
17139         (sin_test): Likewise.
17140         (sin_test_tonearest): Likewise.
17141         (sin_test_towardzero): Likewise.
17142         (sin_test_downward): Likewise.
17143         (sin_test_upward): Likewise.
17144         (sincos_test): Likewise.
17145         (sinh_test): Likewise.
17146         (sinh_test_tonearest): Likewise.
17147         (sinh_test_towardzero): Likewise.
17148         (sinh_test_downward): Likewise.
17149         (sinh_test_upward): Likewise.
17150         (sqrt_test): Likewise.
17151         (tan_test): Likewise.
17152         (tan_test_tonearest): Likewise.
17153         (tan_test_towardzero): Likewise.
17154         (tan_test_downward): Likewise.
17155         (tan_test_upward): Likewise.
17156         (tanh_test): Likewise.
17157         (tgamma_test): Likewise.
17158         (trunc_test): Likewise.
17159         (y0_test): Likewise.
17160         (y1_test): Likewise.
17161         (yn_test): Likewise.
17162         (significand_test): Likewise.
17163
17164 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17165
17166         [BZ #15381]
17167         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17168
17169 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17170
17171         [BZ #14894]
17172         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17173         __ppc_mdoio and __ppc_mdoom.
17174         * manual/platform.texi: Document new functions __ppc_yield,
17175         __ppc_mdoio and __ppc_mdoom.
17176
17177 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17178
17179         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17180         (main): Mention "tls" pseudo-hwcap is legacy.
17181         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17182
17183 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17184
17185         * math/gen-libm-test.pl (parse_args): Output only string of
17186         arguments as text for test name, not full call or descriptions of
17187         tests for extra outputs.
17188         (generate_testfile): Do not pass function name to parse_args.
17189         Generate this_func variable from START.
17190         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17191         field to arg_str.
17192         (struct test_ff_f_data): Likewise.
17193         (test_ff_f_data_nexttoward): Likewise.
17194         (struct test_fi_f_data): Likewise.
17195         (struct test_fl_f_data): Likewise.
17196         (struct test_if_f_data): Likewise.
17197         (struct test_fff_f_data): Likewise.
17198         (struct test_c_f_data): Likewise.
17199         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17200         (struct test_fF_f1_data): Likewise.
17201         (struct test_ffI_f1_data): Likewise.
17202         (struct test_c_c_data): Rename test_name field to arg_str.
17203         (struct test_cc_c_data): Likewise.
17204         (struct test_f_i_data): Likewise.
17205         (struct test_ff_i_data): Likewise.
17206         (struct test_f_l_data): Likewise.
17207         (struct test_f_L_data): Likewise.
17208         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17209         and extra2_name.
17210         (COMMON_TEST_SETUP): New macro.
17211         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17212         (COMMON_TEST_CLEANUP): Likewise.
17213         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17214         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17215         macros.
17216         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17217         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17218         macros.
17219         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17220         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17221         cleanup macros.
17222         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17223         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17224         macros.
17225         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17226         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17227         macros.
17228         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17229         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17230         cleanup macros.
17231         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17232         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17233         cleanup macros.
17234         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17235         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17236         cleanup macros.
17237         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17238         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17239         macros.
17240         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17241         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17242         macros.
17243         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17244         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17245         macros.
17246         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17247         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17248         cleanup macros.
17249         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17250         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17251         cleanup macros.
17252         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17253         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17254         macros.
17255         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17256         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17257         cleanup macros.
17258         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17259         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17260         macros.
17261         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17262         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17263         macros.
17264         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17265         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17266         cleanup macros.
17267         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17268
17269 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17270
17271         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17272         to _sifields.sigfault.
17273         (si_addr_lsb): Define new macro.
17274         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17275         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17276         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17277
17278 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17279
17280         [BZ #15441]
17281         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17282         returns -1.
17283         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17284         null return -1.
17285         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17286         loading the domain.
17287
17288 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17289
17290         * math/gen-libm-test.pl (parse_args): Do not include expected
17291         result in test name.
17292         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17293         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17294         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17295         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17296         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17298
17299 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17300
17301         * benchtests/Makefile: Sort function entries.
17302
17303         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17304         tanh, asinh, acosh, atanh.
17305         * benchtests/acos-inputs: New file.
17306         * benchtests/acosh-inputs: New file.
17307         * benchtests/asin-inputs: New file.
17308         * benchtests/asinh-inputs: New file.
17309         * benchtests/atanh-inputs: New file.
17310         * benchtests/cosh-inputs: New file.
17311         * benchtests/log-inputs: New file.
17312         * benchtests/sinh-inputs: New file.
17313         * benchtests/tanh-inputs: New file.
17314
17315 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17316
17317         [BZ #15339]
17318         * posix/tst-getaddrinfo4.c: New test.
17319         * posix/Makefile (tests): Add it.
17320
17321 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17322
17323         [BZ #15339]
17324         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17325         when no services were used.
17326         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17327         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17328
17329 2013-05-21  Andreas Schwab  <schwab@suse.de>
17330
17331         [BZ #15014]
17332         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17333         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17334         successful.
17335         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17336         redundant variable declarations and reallocation of buffer when
17337         parsing as IPv6 address.  Always set NSS status when called from
17338         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17339         buffer too small.  Correct computation of needed size.
17340         * nss/Makefile (tests): Add test-digits-dots.
17341         * nss/test-digits-dots.c: New test.
17342
17343 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17344
17345         * benchtests/Makefile: Remove instructions for adding
17346         benchmark tests.
17347         * benchtests/README: New file to explain how to execute and
17348         enhance the benchmark tests.
17349
17350 2013-05-21  Andreas Schwab  <schwab@suse.de>
17351
17352         [BZ #15493]
17353         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17354         * setjmp/tst-sigsetjmp.c: New test.
17355
17356 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17357
17358         * sysdeps/x86_64/memset.S (memset): New implementation.
17359         (__bzero): Likewise.
17360         (__memset_tail): New function.
17361
17362 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17363
17364         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17365         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17366         __memcpy_sse2_unaligned ifunc selection.
17367         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17368         Add memcpy-sse2-unaligned.S.
17369         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17370         Add: __memcpy_sse2_unaligned.
17371
17372 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17373
17374         [BZ #15490]
17375         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17376         math_force_eval before restoring floating-point envrionment.
17377         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17378         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17379         Likewise.
17380         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17381         <math_private.h>.
17382         (__nearbyintl): Use math_force_eval before restoring
17383         floating-point environment.
17384         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17385
17386         * math/gen-libm-test.pl (special_functions): Remove.
17387         (parse_args): Don't handle TEST_extra.  Handle functions with no
17388         return value.
17389         * math/libm-test.inc (struct test_sincos_data): Replace with
17390         struct test_fFF_11_data.
17391         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17392         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17393         (sincos_test_data): Change element type to struct
17394         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17395         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17396         RUN_TEST_LOOP_sincos.
17397         * math/README.libm-test: Don't mention special handling of
17398         individual functions.
17399         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
17400         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17401         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17402         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17403         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17405
17406         * math/gen-libm-test.pl (get_variable): Remove function.
17407         (parse_args): Don't show pointer parameters to call in test
17408         names.  Use "extra output N" in test names for extra outputs
17409         rather than naming variables.
17410
17411 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
17412
17413         [BZ #15488]
17414         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
17415         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
17416         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
17417         double tests.
17418         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
17419         disable.
17420         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
17421         check_long_double.
17422
17423         * math/gen-libm-test.pl (@tests): Remove variable.
17424         ($count): Likewise.
17425         (new_test): Remove function.
17426         (show_exceptions): New function.
17427         (special_functions): Use show_exceptions instead of new_test.
17428         (parse_args): Likewise.
17429         (generate_testfile): Pass only function name in generated call to
17430         print_max_error or print_complex_max_error.
17431         (get_ulps): Do not handle complex tests specially.
17432         (output_test): Rename to ...
17433         (get_all_ulps_for_test): ... this.  Return a string rather than
17434         printing to a file.  Require ulps to be present.
17435         (output_ulps): Generate arrays rather than #defines.
17436         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
17437         (struct ulp_data): New type.
17438         (BUILD_COMPLEX_ULP): Remove macro.
17439         (compare_ulp_data): New function.
17440         (find_ulps): Likewise.
17441         (find_test_ulps): Likewise.
17442         (find_function_ulps): Likewise.
17443         (find_complex_function_ulps): Likewise.
17444         (print_max_error): Determine allowed ulps using
17445         find_function_ulps.
17446         (print_complex_max_error): Determine allowed ulps using
17447         find_complex_function_ulps.
17448         (check_float_internal): Determine max ulps using find_test_ulps.
17449         (check_float): Do not take max_ulp parameter.  Update call to
17450         check_float_internal.
17451         (check_complex): Likewise.
17452         (check_int): Do not take max_ulp parameter.
17453         (check_long): Likewise.
17454         (check_bool): Likewise.
17455         (check_longlong): Likewise.
17456         (struct test_f_f_data): Remove max_ulp field.
17457         (struct test_ff_f_data): Likewise.
17458         (struct test_ff_f_data_nexttoward): Likewise.
17459         (struct test_fi_f_data): Likewise.
17460         (struct test_fl_f_data): Likewise.
17461         (struct test_if_f_data): Likewise.
17462         (struct test_fff_f_data): Likewise.
17463         (struct test_c_f_data): Likewise.
17464         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17465         (struct test_fF_f1_data): Likewise.
17466         (struct test_ffI_f1_data): Likewise.
17467         (struct test_c_c_data): Remove max_ulp field.
17468         (struct test_cc_c_data): Likewise.
17469         (struct test_f_i_data): Likewise.
17470         (struct test_ff_i_data): Likewise.
17471         (struct test_f_l_data): Likewise.
17472         (struct test_f_L_data): Likewise.
17473         (struct test_sincos_data): Likewise.
17474         (RUN_TEST_f_f): Do not handle ulps.
17475         (RUN_TEST_LOOP_f_f): Likewise.
17476         (RUN_TEST_2_f): Likewise.
17477         (RUN_TEST_LOOP_2_f): Likewise.
17478         (RUN_TEST_fff_f): Likewise.
17479         (RUN_TEST_LOOP_fff_f): Likewise.
17480         (RUN_TEST_c_f): Likewise.
17481         (RUN_TEST_LOOP_c_f): Likewise.
17482         (RUN_TEST_f_f1): Likewise.
17483         (RUN_TEST_LOOP_f_f1): Likewise.
17484         (RUN_TEST_fF_f1): Likewise.
17485         (RUN_TEST_LOOP_fF_f1): Likewise.
17486         (RUN_TEST_fI_f1): Likewise.
17487         (RUN_TEST_LOOP_fI_f1): Likewise.
17488         (RUN_TEST_ffI_f1): Likewise.
17489         (RUN_TEST_LOOP_ffI_f1): Likewise.
17490         (RUN_TEST_c_c): Likewise.
17491         (RUN_TEST_LOOP_c_c): Likewise.
17492         (RUN_TEST_cc_c): Likewise.
17493         (RUN_TEST_LOOP_cc_c): Likewise.
17494         (RUN_TEST_f_i): Likewise.
17495         (RUN_TEST_LOOP_f_i): Likewise.
17496         (RUN_TEST_f_i_tg): Likewise.
17497         (RUN_TEST_LOOP_f_i_tg): Likewise.
17498         (RUN_TEST_ff_i_tg): Likewise.
17499         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17500         (RUN_TEST_f_b): Likewise.
17501         (RUN_TEST_LOOP_f_b): Likewise.
17502         (RUN_TEST_f_b_tg): Likewise.
17503         (RUN_TEST_LOOP_f_b_tg): Likewise.
17504         (RUN_TEST_f_l): Likewise.
17505         (RUN_TEST_LOOP_f_l): Likewise.
17506         (RUN_TEST_f_L): Likewise.
17507         (RUN_TEST_LOOP_f_L): Likewise.
17508         (RUN_TEST_sincos): Likewise.
17509         (RUN_TEST_LOOP_sincos): Likewise.
17510
17511 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17512
17513         [BZ #15480]
17514         [BZ #15485]
17515         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17516         main case of finite arguments, set rounding mode to FE_TONEAREST
17517         and discard exceptions.
17518         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17519         exceptions.
17520         (remainder_tonearest_test_data): New variable.
17521         (remainder_test_tonearest): New function.
17522         (remainder_towardzero_test_data): New variable.
17523         (remainder_test_towardzero): New function.
17524         (remainder_downward_test_data): New variable.
17525         (remainder_test_downward): New function.
17526         (remainder_upward_test_data): New variable.
17527         (remainder_test_upward): New function.
17528         (main): Call the new test functions.
17529
17530         * math/libm-test.inc (struct test_f_f1_data): Remove field
17531         extra_init.
17532         (struct test_fF_f1_data): Likewise.
17533         (struct test_ffI_f1_data): Likewise.
17534         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17535         based on value of EXTRA_EXPECTED.
17536         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17537         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17538         EXTRA_VAR based on value of EXTRA_EXPECTED.
17539         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17540         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17541         EXTRA_VAR based on value of EXTRA_EXPECTED.
17542         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17543         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17544         EXTRA_VAR based on value of EXTRA_EXPECTED.
17545         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17546         * math/gen-libm-test.pl (parse_args): Don't output initializers
17547         for extra output values.
17548
17549         * math/libm-test.inc (check_int): Expect result to be exactly
17550         equal to expected value and do not handle ulps.
17551         (check_long): Likewise.
17552         (check_longlong): Likewise.
17553
17554         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17555         exceptions.
17556         (cimag_test_data): Likewise.
17557         (conj_test_data): Likewise.
17558         (copysign_test_data): Likewise.
17559         (cproj_test_data): Likewise.
17560         (creal_test_data): Likewise.
17561         (fabs_test_data): Likewise.
17562         (fdim_test_data): Likewise.
17563         (finite_test_data): Likewise.
17564         (floor_test_data): Likewise.
17565         (fmax_test_data): Likewise.
17566         (fmin_test_data): Likewise.
17567         (fmod_test_data): Likewise.
17568         (fpclassify_test_data): Likewise.
17569         (frexp_test_data): Likewise.
17570         (ilogb_test_data): Likewise.
17571         (isfinite_test_data): Likewise.
17572         (isgreater_test_data): Likewise.
17573         (isgreaterequal_test_data): Likewise.
17574         (isinf_test_data): Likewise.
17575         (isless_test_data): Likewise.
17576         (islessequal_test_data): Likewise.
17577         (islessgreater_test_data): Likewise.
17578         (isnan_test_data): Likewise.
17579         (isnormal_test_data): Likewise.
17580         (issignaling_test_data): Likewise.
17581         (isunordered_test_data): Likewise.
17582         (ldexp_test_data): Likewise.
17583         (lrint_test_data): Likewise.
17584         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17585         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17586         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17587         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17588         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17589         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17590         test input.
17591         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17592         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17593         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17594         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17595         that test input.
17596         (lrint_downward_test_data): Test for "inexact" exceptions.
17597         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17598         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17599         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17600         test input.
17601         (lrint_upward_test_data): Test for "inexact" exceptions.
17602         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17603         test input.
17604         (llrint_test_data): Test for "inexact" exceptions.
17605         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17606         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17607         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17608         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17609         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17610         (llrint_downward_test_data): Test for "inexact" exceptions.
17611         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17612         (llrint_upward_test_data): Test for "inexact" exceptions.
17613         (logb_test_data): Likewise.
17614         (logb_downward_test_data): Likewise.
17615         (nextafter_test_data): Likewise.
17616         (nexttoward_test_data): Likewise.
17617         (remainder_test_data): Likewise.
17618         (remquo_test_data): Likewise.
17619         (scalbn_test_data): Likewise.
17620         (scalbln_test_data): Likewise.
17621         (signbit_test_data): Likewise.
17622         (sqrt_test_data): Likewise.
17623         (significand_test_data): Likewise.
17624
17625 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17626
17627         [BZ #15424]
17628         * benchtests/bench-modf.c (struct args): Mark arg0 as
17629         volatile.
17630         * scripts/bench.pl: Mark members of struct args as volatile.
17631
17632 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17633
17634         [BZ # 15497]
17635         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17636         negative infinity on POWER6 or lower.
17637         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17638
17639 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17640
17641         [BZ #15442]
17642         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17643         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17644         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17645         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17646         (_FP_SETQNAN): New macro.
17647         (_FP_SETQNAN_SEMIRAW): Likewise.
17648         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17649         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17650         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17651         (FP_EXTEND): Use _FP_FRAC_SNANP.
17652         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17653         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17654         into account.
17655         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17656         New macro.
17657         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17658         Likewise.
17659
17660 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17661
17662         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17663         with DIVIDE_BY_ZERO_EXCEPTION.
17664         (gamma_test_data): Likewise.
17665         (lgamma_test_data): Likewise.
17666         (log_test_data): Likewise.
17667         (log10_test_data): Likewise.
17668         (log2_test_data): Likewise.
17669         (tgamma_test_data): Likewise.
17670
17671         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17672         (acos_test_tonearest): Likewise.
17673         (acos_test_towardzero): Likewise.
17674         (acos_test_downward): Likewise.
17675         (acos_test_upward): Likewise.
17676         (acosh_test): Likewise.
17677         (asin_test): Likewise.
17678         (asin_test_tonearest): Likewise.
17679         (asin_test_towardzero): Likewise.
17680         (asin_test_downward): Likewise.
17681         (asin_test_upward): Likewise.
17682         (asinh_test): Likewise.
17683         (atan_test): Likewise.
17684         (atanh_test): Likewise.
17685         (atan2_test): Likewise.
17686         (cabs_test): Likewise.
17687         (cacos_test): Likewise.
17688         (cacosh_test): Likewise.
17689         (casin_test): Likewise.
17690         (casinh_test): Likewise.
17691         (catan_test): Likewise.
17692         (catanh_test): Likewise.
17693         (cbrt_test): Likewise.
17694         (ccos_test): Likewise.
17695         (ccosh_test): Likewise.
17696         (cexp_test): Likewise.
17697         (clog_test): Likewise.
17698         (clog10_test): Likewise.
17699         (cos_test): Likewise.
17700         (cos_test_tonearest): Likewise.
17701         (cos_test_towardzero): Likewise.
17702         (cos_test_downward): Likewise.
17703         (cos_test_upward): Likewise.
17704         (cosh_test): Likewise.
17705         (cosh_test_tonearest): Likewise.
17706         (cosh_test_towardzero): Likewise.
17707         (cosh_test_downward): Likewise.
17708         (cosh_test_upward): Likewise.
17709         (cpow_test): Likewise.
17710         (csin_test): Likewise.
17711         (csinh_test): Likewise.
17712         (csqrt_test): Likewise.
17713         (ctan_test): Likewise.
17714         (ctan_test_tonearest): Likewise.
17715         (ctan_test_towardzero): Likewise.
17716         (ctan_test_downward): Likewise.
17717         (ctan_test_upward): Likewise.
17718         (ctanh_test): Likewise.
17719         (ctanh_test_tonearest): Likewise.
17720         (ctanh_test_towardzero): Likewise.
17721         (ctanh_test_downward): Likewise.
17722         (ctanh_test_upward): Likewise.
17723         (erf_test): Likewise.
17724         (erfc_test): Likewise.
17725         (exp_test): Likewise.
17726         (exp_test_tonearest): Likewise.
17727         (exp_test_towardzero): Likewise.
17728         (exp_test_downward): Likewise.
17729         (exp_test_upward): Likewise.
17730         (exp10_test): Likewise.
17731         (exp2_test): Likewise.
17732         (expm1_test): Likewise.
17733         (fmod_test): Likewise.
17734         (gamma_test): Likewise.
17735         (hypot_test): Likewise.
17736         (j0_test): Likewise.
17737         (j1_test): Likewise.
17738         (jn_test): Likewise.
17739         (lgamma_test): Likewise.
17740         (log_test): Likewise.
17741         (log10_test): Likewise.
17742         (log1p_test): Likewise.
17743         (log2_test): Likewise.
17744         (logb_test_downward): Likewise.
17745         (pow_test): Likewise.
17746         (pow_test_tonearest): Likewise.
17747         (pow_test_towardzero): Likewise.
17748         (pow_test_downward): Likewise.
17749         (pow_test_upward): Likewise.
17750         (remainder_test): Likewise.
17751         (remquo_test): Likewise.
17752         (sin_test): Likewise.
17753         (sin_test_tonearest): Likewise.
17754         (sin_test_towardzero): Likewise.
17755         (sin_test_downward): Likewise.
17756         (sin_test_upward): Likewise.
17757         (sincos_test): Likewise.
17758         (sinh_test): Likewise.
17759         (sinh_test_tonearest): Likewise.
17760         (sinh_test_towardzero): Likewise.
17761         (sinh_test_downward): Likewise.
17762         (sinh_test_upward): Likewise.
17763         (sqrt_test): Likewise.
17764         (tan_test): Likewise.
17765         (tan_test_tonearest): Likewise.
17766         (tan_test_towardzero): Likewise.
17767         (tan_test_downward): Likewise.
17768         (tan_test_upward): Likewise.
17769         (tanh_test): Likewise.
17770         (tgamma_test): Likewise.
17771         (y0_test): Likewise.
17772         (y1_test): Likewise.
17773         (yn_test): Likewise.
17774
17775         * math/gen-libm-test.pl (adjust_arg): Remove function.
17776         (special_function): Remove argument $in_func.  Only handle
17777         generating output for tables of tests, not inside functions.
17778         (parse_args): Likewise.
17779         (generate_testfile): Remove variable $in_func.  Update call to
17780         parse_args.
17781         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17782         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17783         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17784         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17785         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17786         (MAX_VALUE_INIT): Rename macro to max_value.
17787         (MIN_VALUE_INIT): Rename macro to min_value.
17788         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17789         (plus_zero): Remove variable.
17790         (minus_zero): Likewise.
17791         (plus_infty): Likewise.
17792         (minus_infty): Likewise.
17793         (qnan_value): Likewise.
17794         (max_value): Likewise.
17795         (min_value): Likewise.
17796         (min_subnorm_value): Likewise.
17797
17798 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17799
17800         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17801         uint64_t or uint32_t usage.
17802         * crypt/sha256-block.c: Likewise.
17803         * crypt/sha256-crypt.c: Likewise.
17804         * crypt/sha256.c: Likewise.
17805         * crypt/sha512-block.c: Likewise.
17806         * crypt/sha512-crypt.c: Likewise.
17807         * crypt/sha512.c: Likewise.
17808         * debug/backtrace-tst.c: Likewise.
17809         * debug/pcprofiledump.c: Likewise.
17810         * elf/cache.c: Likewise.
17811         * elf/dl-cache.c: Likewise.
17812         * elf/dl-misc.c: Likewise.
17813         * elf/dl-profile.c: Likewise.
17814         * elf/dl-support.c: Likewise.
17815         * elf/ldconfig.c: Likewise.
17816         * elf/sprof.c: Likewise.
17817         * iconv/dummy-repertoire.c: Likewise.
17818         * iconv/iconv_charmap.c: Likewise.
17819         * iconv/skeleton.c: Likewise.
17820         * iconvdata/8bit-generic.c: Likewise.
17821         * iconvdata/cp737.h: Likewise.
17822         * iconvdata/cp775.h: Likewise.
17823         * iconvdata/ibm1008.h: Likewise.
17824         * iconvdata/ibm1025.h: Likewise.
17825         * iconvdata/ibm1046.h: Likewise.
17826         * iconvdata/ibm1097.h: Likewise.
17827         * iconvdata/ibm1112.h: Likewise.
17828         * iconvdata/ibm1122.h: Likewise.
17829         * iconvdata/ibm1123.h: Likewise.
17830         * iconvdata/ibm1124.h: Likewise.
17831         * iconvdata/ibm1129.h: Likewise.
17832         * iconvdata/ibm1130.h: Likewise.
17833         * iconvdata/ibm1132.h: Likewise.
17834         * iconvdata/ibm1133.h: Likewise.
17835         * iconvdata/ibm1137.h: Likewise.
17836         * iconvdata/ibm1140.h: Likewise.
17837         * iconvdata/ibm1141.h: Likewise.
17838         * iconvdata/ibm1142.h: Likewise.
17839         * iconvdata/ibm1143.h: Likewise.
17840         * iconvdata/ibm1144.h: Likewise.
17841         * iconvdata/ibm1145.h: Likewise.
17842         * iconvdata/ibm1146.h: Likewise.
17843         * iconvdata/ibm1147.h: Likewise.
17844         * iconvdata/ibm1148.h: Likewise.
17845         * iconvdata/ibm1149.h: Likewise.
17846         * iconvdata/ibm1153.h: Likewise.
17847         * iconvdata/ibm1154.h: Likewise.
17848         * iconvdata/ibm1155.h: Likewise.
17849         * iconvdata/ibm1156.h: Likewise.
17850         * iconvdata/ibm1157.h: Likewise.
17851         * iconvdata/ibm1158.h: Likewise.
17852         * iconvdata/ibm1160.h: Likewise.
17853         * iconvdata/ibm1161.h: Likewise.
17854         * iconvdata/ibm1162.h: Likewise.
17855         * iconvdata/ibm1163.h: Likewise.
17856         * iconvdata/ibm1164.h: Likewise.
17857         * iconvdata/ibm1166.h: Likewise.
17858         * iconvdata/ibm1167.h: Likewise.
17859         * iconvdata/ibm12712.h: Likewise.
17860         * iconvdata/ibm1390.h: Likewise.
17861         * iconvdata/ibm1399.h: Likewise.
17862         * iconvdata/ibm16804.h: Likewise.
17863         * iconvdata/ibm4517.h: Likewise.
17864         * iconvdata/ibm4899.h: Likewise.
17865         * iconvdata/ibm4909.h: Likewise.
17866         * iconvdata/ibm4971.h: Likewise.
17867         * iconvdata/ibm5347.h: Likewise.
17868         * iconvdata/ibm803.h: Likewise.
17869         * iconvdata/ibm856.h: Likewise.
17870         * iconvdata/ibm901.h: Likewise.
17871         * iconvdata/ibm902.h: Likewise.
17872         * iconvdata/ibm9030.h: Likewise.
17873         * iconvdata/ibm9066.h: Likewise.
17874         * iconvdata/ibm921.h: Likewise.
17875         * iconvdata/ibm922.h: Likewise.
17876         * iconvdata/ibm9448.h: Likewise.
17877         * iconvdata/isiri-3342.h: Likewise.
17878         * iconvdata/jis0201.h: Likewise.
17879         * include/link.h: Likewise.
17880         * include/netdb.h: Likewise.
17881         * inet/check_native.c: Likewise.
17882         * inet/check_pf.c: Likewise.
17883         * inet/getipv4sourcefilter.c: Likewise.
17884         * inet/getnameinfo.c: Likewise.
17885         * inet/getsourcefilter.c: Likewise.
17886         * inet/htonl.c: Likewise.
17887         * inet/setipv4sourcefilter.c: Likewise.
17888         * inet/setsourcefilter.c: Likewise.
17889         * inet/test-inet6_opt.c: Likewise.
17890         * inet/tst-network.c: Likewise.
17891         * locale/C-collate.c: Likewise.
17892         * locale/C-ctype.c: Likewise.
17893         * locale/C-time.c: Likewise.
17894         * locale/C-translit.h: Likewise.
17895         * locale/loadarchive.c: Likewise.
17896         * locale/programs/3level.h: Likewise.
17897         * locale/programs/charmap.c: Likewise.
17898         * locale/programs/charmap.h: Likewise.
17899         * locale/programs/ld-address.c: Likewise.
17900         * locale/programs/ld-collate.c: Likewise.
17901         * locale/programs/ld-ctype.c: Likewise.
17902         * locale/programs/ld-identification.c: Likewise.
17903         * locale/programs/ld-measurement.c: Likewise.
17904         * locale/programs/ld-messages.c: Likewise.
17905         * locale/programs/ld-monetary.c: Likewise.
17906         * locale/programs/ld-name.c: Likewise.
17907         * locale/programs/ld-numeric.c: Likewise.
17908         * locale/programs/ld-paper.c: Likewise.
17909         * locale/programs/ld-telephone.c: Likewise.
17910         * locale/programs/ld-time.c: Likewise.
17911         * locale/programs/linereader.c: Likewise.
17912         * locale/programs/locale.c: Likewise.
17913         * locale/programs/locarchive.c: Likewise.
17914         * locale/programs/locfile.h: Likewise.
17915         * locale/programs/repertoire.c: Likewise.
17916         * locale/programs/simple-hash.c: Likewise.
17917         * locale/programs/simple-hash.h: Likewise.
17918         * malloc/memusage.c: Likewise.
17919         * malloc/memusagestat.c: Likewise.
17920         * nis/nis_defaults.c: Likewise.
17921         * nis/nis_hash.c: Likewise.
17922         * nis/nis_print.c: Likewise.
17923         * nis/nis_xdr.c: Likewise.
17924         * nscd/connections.c: Likewise.
17925         * nscd/hstcache.c: Likewise.
17926         * nscd/nscd_gethst_r.c: Likewise.
17927         * nscd/nscd_getserv_r.c: Likewise.
17928         * nscd/nscd_helper.c: Likewise.
17929         * nscd/servicescache.c: Likewise.
17930         * nss/makedb.c: Likewise.
17931         * nss/nss_db/db-XXX.c: Likewise.
17932         * nss/nss_db/db-initgroups.c: Likewise.
17933         * nss/nss_db/db-netgrp.c: Likewise.
17934         * nss/nss_files/files-network.c: Likewise.
17935         * nss/nss_files/files-parse.c: Likewise.
17936         * posix/bug-regex5.c: Likewise.
17937         * posix/fnmatch_loop.c: Likewise.
17938         * posix/regcomp.c: Likewise.
17939         * posix/regexec.c: Likewise.
17940         * posix/tst-rfc3484-2.c: Likewise.
17941         * posix/tst-rfc3484-3.c: Likewise.
17942         * posix/tst-rfc3484.c: Likewise.
17943         * resolv/nss_dns/dns-canon.c: Likewise.
17944         * resolv/nss_dns/dns-network.c: Likewise.
17945         * resolv/res_init.c: Likewise.
17946         * resolv/res_mkquery.c: Likewise.
17947         * resolv/tst-aton.c: Likewise.
17948         * stdlib/cxa_atexit.c: Likewise.
17949         * stdlib/cxa_finalize.c: Likewise.
17950         * stdlib/gen-fpioconst.c: Likewise.
17951         * stdlib/strtol_l.c: Likewise.
17952         * string/tst-endian.c: Likewise.
17953         * sunrpc/auth_des.c: Likewise.
17954         * sunrpc/clnt_udp.c: Likewise.
17955         * sunrpc/rtime.c: Likewise.
17956         * sunrpc/svcauth_des.c: Likewise.
17957         * sunrpc/xdr.c: Likewise.
17958         * sunrpc/xdr_intXX_t.c: Likewise.
17959         * sunrpc/xdr_rec.c: Likewise.
17960         * sysdeps/generic/ldconfig.h: Likewise.
17961         * sysdeps/generic/ldsodefs.h: Likewise.
17962         * sysdeps/generic/memusage.h: Likewise.
17963         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17964         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17965         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17966         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17967         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17968         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17969         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17970         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17971         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17972         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17973         * sysdeps/posix/getaddrinfo.c: Likewise.
17974         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17975         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17976         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17977         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17978         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17979         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17980         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17981         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17982         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17983         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17984         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17985         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17986         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17987         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17988         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17989         * sysdeps/x86_64/dl-tls.h: Likewise.
17990         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17991         * time/alt_digit.c: Likewise.
17992         * time/era.c: Likewise.
17993         * wcsmbs/tst-c16c32-1.c: Likewise.
17994
17995 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17996
17997         * math/libm-test.inc (struct test_sincos_data): New type.
17998         (RUN_TEST_LOOP_sincos): New macro.
17999         (sincos_test_data): New variable.
18000         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
18001
18002 2013-05-16  Richard Henderson  <rth@redhat.com>
18003
18004         * math/atest-exp2.c (LIMB64): New macro.
18005         (CONSTSZ): New macro.
18006         (mp_exp1, mp_exp_m1, mp_log2): New variables.
18007         (hexdig): Move ...
18008         (print_mpn_fp): ... to function scope.
18009         (read_mpn_hex): Remove.
18010         (get_log2): Remove.
18011         (exp2_mpn): Use mp_log2.
18012         (main): Use mp_exp1.
18013
18014 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18015
18016         * math/libm-test.inc: Remove comment about not testing "inexact"
18017         exceptions.
18018         (INEXACT_EXCEPTION): New macro.
18019         (NO_INEXACT_EXCEPTION): Likewise.
18020         (INVALID_EXCEPTION_OK): Update value.
18021         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18022         (OVERFLOW_EXCEPTION_OK): Likewise.
18023         (UNDERFLOW_EXCEPTION_OK): Likewise.
18024         (IGNORE_ZERO_INF_SIGN): Likewise.
18025         (ERRNO_UNCHANGED): Likewise.
18026         (ERRNO_EDOM): Likewise.
18027         (ERRNO_ERANGE): Likewise.
18028         (test_exceptions): Handle testing "inexact" exceptions.
18029         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
18030         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
18031         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
18032         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
18033         INEXACT_EXCEPTION.
18034         (rint_towardzero_test_data): Likewise.
18035         (rint_downward_test_data): Likewise.
18036         (rint_upward_test_data): Likewise.
18037
18038         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
18039         with OVERFLOW_EXCEPTION.
18040         (exp10_test_data): Likewise.
18041         (exp2_test_data): Likewise.
18042         (expm1_test_data): Likewise.
18043         (lgamma_test_data): Likewise.
18044         (pow_test_data): Likewise.
18045         (tgamma_test_data): Likewise.
18046         (yn_test_data): Remove duplicate test of overflow.
18047
18048         * math/libm-test.inc (struct test_cc_c_data): New type.
18049         (RUN_TEST_LOOP_cc_c): New macro.
18050         (cpow_test_data): New variable.
18051         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
18052
18053         * math/libm-test.inc (struct test_f_L_data): New type.
18054         (RUN_TEST_LOOP_f_L): New macro.
18055         (llrint_test_data): New variable.
18056         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18057         (llrint_tonearest_test_data): New variable.
18058         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18059         (llrint_towardzero_test_data): New variable.
18060         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18061         (llrint_downward_test_data): New variable.
18062         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18063         (llrint_upward_test_data): New variable.
18064         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18065         (llround_test_data): New variable.
18066         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18067
18068 2013-05-13  Peter Collingbourne  <pcc@google.com>
18069
18070         * math/atest-exp2.c (get_log2): Remove const attribute.
18071
18072 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18073
18074         * math/libm-test.inc (struct test_f_l_data): New type.
18075         (RUN_TEST_LOOP_f_l): New macro.
18076         (lrint_test_data): New variable.
18077         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18078         (lrint_tonearest_test_data): New variable.
18079         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18080         (lrint_towardzero_test_data): New variable.
18081         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18082         (lrint_downward_test_data): New variable.
18083         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18084         (lrint_upward_test_data): New variable.
18085         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18086         (lround_test_data): New variable.
18087         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18088
18089 2013-05-15  Peter Collingbourne  <pcc@google.com>
18090
18091         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18092         (EXTRACT_WORDS64) Use where appropriate.
18093         (INSERT_WORDS64) Likewise.
18094
18095         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18096         constraints with x constraints.
18097         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18098
18099         * malloc/obstack.c (_obstack_compat): Add initializer.
18100
18101 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18102
18103         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18104         si_trapno and add si_addr_lsb to _sifields.sigfault.
18105         (si_trapno): Remove macro.
18106         (si_addr_lsb): Define new macro.
18107         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18108
18109 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18110
18111         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18112         instead of TEST_f_l.
18113         (llrint_test_tonearest): Likewise.
18114         (llrint_test_towardzero): Likewise.
18115         (llrint_test_downward): Likewise.
18116         (llrint_test_upward): Likewise.
18117         (llround_test): Likewise.
18118
18119         * math/libm-test.inc (struct test_f_i_data): Add comment.
18120         (RUN_TEST_LOOP_f_b): New macro.
18121         (RUN_TEST_LOOP_f_b_tg): Likewise.
18122         (finite_test_data): New variable.
18123         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18124         (isfinite_test_data): New variable.
18125         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18126         (isinf_test_data): New variable.
18127         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18128         (isnan_test_data): New variable.
18129         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18130         (isnormal_test_data): New variable.
18131         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18132         (issignaling_test_data): New variable.
18133         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18134         (signbit_test_data): New variable.
18135         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18136
18137         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18138         with INVALID_EXCEPTION.
18139         (acosh_test_data): Likewise.
18140         (asin_test_data): Likewise.
18141         (atanh_test_data): Likewise.
18142         (fmod_test_data): Likewise.
18143         (log_test_data): Likewise.
18144         (log10_test_data): Likewise.
18145         (log2_test_data): Likewise.
18146         (pow_test_data): Likewise.
18147         (sqrt_test_data): Likewise.
18148         (y0_test_data): Likewise.
18149         (y1_test_data): Likewise.
18150         (yn_test_data): Likewise.
18151
18152         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18153         function contents.
18154
18155         * math/libm-test.inc (struct test_ff_i_data): New type.
18156         (RUN_TEST_LOOP_ff_i_tg): New macro.
18157         (isgreater_test_data): New variable.
18158         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18159         (isgreaterequal_test_data): New variable.
18160         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18161         (isless_test_data): New variable.
18162         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18163         (islessequal_test_data): New variable.
18164         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18165         (islessgreater_test_data): New variable.
18166         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18167         (isunordered_test_data): New variable.
18168         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18169
18170 2013-05-14  David S. Miller  <davem@davemloft.net>
18171
18172         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18173
18174 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18175
18176         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18177
18178         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18179         extra_test to int.
18180         (struct test_f_i_data): Change type of max_ulp to int.
18181
18182         * math/libm-test.inc (test_ffI_f1_data): New type.
18183         (RUN_TEST_LOOP_ffI_f1): New macro.
18184         (remquo_test_data): New variable.
18185         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18186
18187         * setjmp/tst-setjmp-fp.c: New file.
18188         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18189         (link-libm): New variable.
18190         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18191
18192         * math/libm-test.inc (struct test_f_i_data): New type.
18193         (RUN_TEST_LOOP_f_i): New macro.
18194         (RUN_TEST_LOOP_f_i_tg): Likewise.
18195         (fpclassify_test_data): New variable.
18196         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18197         (ilogb_test_data): New variable.
18198         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18199
18200         * math/libm-test.inc (scalbln_test): Correct function name in END
18201         call.
18202
18203         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18204         (RUN_TEST_LOOP_fI_f1): New macro.
18205         (frexp_test_data): New variable.
18206         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18207
18208         * math/libm-test.inc (struct test_fF_f1_data): New type.
18209         (RUN_TEST_LOOP_fF_f1): New macro.
18210         (modf_test_data): New variable.
18211         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18212
18213         * math/libm-test.inc (struct test_f_f1_data): New type.
18214         (RUN_TEST_LOOP_f_f1): New macro.
18215         (gamma_test_data): New variable.
18216         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18217         (lgamma_test_data): New variable.
18218         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18219
18220 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18221
18222         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18223         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18224         (main): Comment "tls" pseudo-hwcap.
18225
18226 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18227
18228         * math/libm-test.inc (struct test_fl_f_data): New type.
18229         (RUN_TEST_LOOP_fl_f): New variable.
18230         (scalbln_test_data): New variable.
18231         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18232
18233         * math/libm-test.inc (struct test_fi_f_data): New type.
18234         (RUN_TEST_LOOP_fi_f): New macro.
18235         (ldexp_test_data): New variable.
18236         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18237         (scalbn_test_data): New variable.
18238         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18239
18240         * math/libm-test.inc (struct test_c_f_data): New type.
18241         (RUN_TEST_LOOP_c_f): New macro.
18242         (cabs_test_data): New variable.
18243         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18244         (carg_test_data): New variable.
18245         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18246         (cimag_test_data): New variable.
18247         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18248         (creal_test_data): New variable.
18249         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18250
18251         * math/libm-test.inc (struct test_if_f_data): New type.
18252         (RUN_TEST_LOOP_if_f): New macro.
18253         (jn_test_data): New variable.
18254         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18255         (yn_test_data): New variable.
18256         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18257
18258         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18259
18260 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18261
18262         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18263         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18264
18265 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18266
18267         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18268         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18269         (bench-deps): Add bench-timing.h.
18270         * benchtests-bench-skeleton.c: Include bench-timing.h.
18271         (main): Use TIMING_* macros instead of clock_gettime.
18272         * benchtests/bench-timing.h: New file.
18273
18274         [BZ #14582]
18275         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18276         Renamed from _LIB_VERSION.
18277         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18278
18279 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18280
18281         * math/libm-test.inc (struct test_fff_f_data): New type.
18282         (RUN_TEST_LOOP_fff_f): New macro.
18283         (fma_test_data): New variable.
18284         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18285         (fma_towardzero_test_data): New variable.
18286         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18287         (fma_downward_test_data): New variable.
18288         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18289         (fma_upward_test_data): New variable.
18290         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18291
18292         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18293         (struct test_c_c_data): New type.
18294         (RUN_TEST_LOOP_c_c): New macro.
18295         (cacos_test_data): New variable.
18296         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18297         (cacosh_test_data): New variable.
18298         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18299         (casin_test_data): New variable.
18300         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18301         (casinh_test_data): New variable.
18302         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18303         (catan_test_data): New variable.
18304         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18305         (catanh_test_data): New variable.
18306         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18307         (ccos_test_data): New variable.
18308         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18309         (ccosh_test_data): New variable.
18310         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18311         (cexp_test_data): New variable.
18312         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18313         (clog_test_data): New variable.
18314         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18315         (clog10_test_data): New variable.
18316         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18317         (conj_test_data): New variable.
18318         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18319         (cproj_test_data): New variable.
18320         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18321         (csin_test_data): New variable.
18322         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18323         (csinh_test_data): New variable.
18324         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18325         (csqrt_test_data): New variable.
18326         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18327         (ctan_test_data): New variable.
18328         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18329         (ctan_tonearest_test_data): New variable.
18330         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18331         (ctan_towardzero_test_data): New variable.
18332         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18333         (ctan_downward_test_data): New variable.
18334         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18335         (ctan_upward_test_data): New variable.
18336         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18337         (ctanh_test_data): New variable.
18338         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18339         (ctanh_tonearest_test_data): New variable.
18340         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18341         (ctanh_towardzero_test_data): New variable.
18342         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18343         (ctanh_downward_test_data): New variable.
18344         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18345         (ctanh_upward_test_data): New variable.
18346         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18347         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18348         of BUILD_COMPLEX.
18349
18350         * math/libm-test.inc (struct test_ff_f_data): New type.
18351         (struct test_ff_f_data_nexttoward): Likewise.
18352         (RUN_TEST_LOOP_2_f): New macro.
18353         (RUN_TEST_LOOP_ff_f): Likewise.
18354         (atan2_test_data): New variable.
18355         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18356         (copysign_test_data): New variable.
18357         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18358         (fdim_test_data): New variable.
18359         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18360         (fmax_test_data): New variable.
18361         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18362         (fmin_test_data): New variable.
18363         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18364         (fmod_test_data): New variable.
18365         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18366         (hypot_test_data): New variable.
18367         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18368         (nextafter_test_data): New variable.
18369         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18370         (nexttoward_test_data): New variable.
18371         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18372         (pow_test_data): New variable.
18373         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18374         (pow_tonearest_test_data): New variable.
18375         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18376         (pow_towardzero_test_data): New variable.
18377         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18378         (pow_downward_test_data): New variable.
18379         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18380         (pow_upward_test_data): New variable.
18381         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18382         (remainder_test_data): New variable.
18383         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18384         (scalb_test_data): New variable.
18385         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18386         * sysdeps/i386/fpu/libm-test-ulps: Update.
18387
18388 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18389
18390         * math/libm-test.inc (fma_test): Use max_value instead of local
18391         variable fltmax.
18392         (nextafter_test): Likewise.
18393
18394         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18395         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18396         (acos_downward_test_data): New variable.
18397         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18398         (acos_upward_test_data): New variable.
18399         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18400         (acosh_test_data): New variable.
18401         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
18402         (asin_test_data): New variable.
18403         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
18404         (asin_tonearest_test_data): New variable.
18405         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18406         (asin_towardzero_test_data): New variable.
18407         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18408         (asin_downward_test_data): New variable.
18409         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18410         (asin_upward_test_data): New variable.
18411         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18412         (asinh_test_data): New variable.
18413         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
18414         (atan_test_data): New variable.
18415         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
18416         (atanh_test_data): New variable.
18417         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
18418         (cbrt_test_data): New variable.
18419         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
18420         (ceil_test_data): New variable.
18421         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
18422         (cos_test_data): New variable.
18423         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
18424         (cos_tonearest_test_data): New variable.
18425         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18426         (cos_towardzero_test_data): New variable.
18427         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18428         (cos_downward_test_data): New variable.
18429         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18430         (cos_upward_test_data): New variable.
18431         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18432         (cosh_test_data): New variable.
18433         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
18434         (cosh_tonearest_test_data): New variable.
18435         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18436         (cosh_towardzero_test_data): New variable.
18437         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18438         (cosh_downward_test_data): New variable.
18439         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18440         (cosh_upward_test_data): New variable.
18441         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18442         (erf_test_data): New variable.
18443         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18444         (erfc_test_data): New variable.
18445         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18446         (exp_test_data): New variable.
18447         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18448         (exp_tonearest_test_data): New variable.
18449         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18450         (exp_towardzero_test_data): New variable.
18451         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18452         (exp_downward_test_data): New variable.
18453         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18454         (exp_upward_test_data): New variable.
18455         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18456         (exp10_test_data): New variable.
18457         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18458         (exp2_test_data): New variable.
18459         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18460         (expm1_test_data): New variable.
18461         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18462         (fabs_test_data): New variable.
18463         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18464         (floor_test_data): New variable.
18465         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18466         (j0_test_data): New variable.
18467         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18468         (j1_test_data): New variable.
18469         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18470         (log_test_data): New variable.
18471         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18472         (log10_test_data): New variable.
18473         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18474         (log1p_test_data): New variable.
18475         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18476         (log2_test_data): New variable.
18477         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18478         (logb_test_data): New variable.
18479         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18480         (logb_downward_test_data): New variable.
18481         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18482         (nearbyint_test_data): New variable.
18483         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18484         (rint_test_data): New variable.
18485         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18486         (rint_tonearest_test_data): New variable.
18487         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18488         (rint_towardzero_test_data): New variable.
18489         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18490         (rint_downward_test_data): New variable.
18491         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18492         (rint_upward_test_data): New variable.
18493         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18494         (round_test_data): New variable.
18495         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18496         (sin_test_data): New variable.
18497         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18498         (sin_tonearest_test_data): New variable.
18499         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18500         (sin_towardzero_test_data): New variable.
18501         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18502         (sin_downward_test_data): New variable.
18503         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18504         (sin_upward_test_data): New variable.
18505         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18506         (sinh_test_data): New variable.
18507         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18508         (sinh_tonearest_test_data): New variable.
18509         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18510         (sinh_towardzero_test_data): New variable.
18511         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18512         (sinh_downward_test_data): New variable.
18513         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18514         (sinh_upward_test_data): New variable.
18515         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18516         (sqrt_test_data): New variable.
18517         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18518         (tan_test_data): New variable.
18519         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18520         (tan_tonearest_test_data): New variable.
18521         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18522         (tan_towardzero_test_data): New variable.
18523         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18524         (tan_downward_test_data): New variable.
18525         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18526         (tan_upward_test_data): New variable.
18527         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18528         (tanh_test_data): New variable.
18529         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18530         (tgamma_test_data): New variable.
18531         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18532         (trunc_test_data): New variable.
18533         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18534         (y0_test_data): New variable.
18535         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18536         (y1_test_data): New variable.
18537         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18538         (significand_test_data): New variable.
18539         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18540
18541 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18542
18543         [BZ #12387]
18544         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18545
18546 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18547
18548         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18549
18550 2013-05-10  Andreas Jaeger  <aj@suse.de>
18551
18552         [BZ #15448]
18553         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18554         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18555
18556 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18557
18558         * math/gen-libm-test.pl (adjust_arg): New function.
18559         (special_functions): Handle generating output in both functions
18560         and arrays.
18561         (parse_args): Likewise.
18562         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18563         $in_func argument to parse_args.
18564         * math/libm-test.inc (struct test_f_f_data): New type.
18565         (IF_ROUND_INIT_): New macro.
18566         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18567         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18568         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18569         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18570         (ROUND_RESTORE_): Likewise.
18571         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18572         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18573         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18574         (ROUND_RESTORE_FE_UPWARD): Likewise.
18575         (RUN_TEST_LOOP_f_f): New macro.
18576         (acos_test_data): New variable.
18577         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18578         (acos_tonearest_test_data): New variable.
18579         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18580
18581 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18582
18583         * benchtests/bench-skeleton.c (startup): Fix coding style.
18584
18585 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18586
18587         [BZ #6809]
18588         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18589         negative infinity argument.
18590         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18591         negative infinity argument.
18592         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18593         negative infinity argument.
18594         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18595         domain errors.
18596
18597 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18598
18599         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18600         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18601         * iconv/iconv_prog.c (main): Likewise.
18602         * locale/programs/charmap-dir.c (charmap_readdir)
18603         (fopen_uncompressed): Likewise.
18604         * locale/programs/locfile.c (siblings_uncached)
18605         (write_locale_data): Use lstat64 instead of lstat.
18606         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18607         stat.
18608
18609 2013-05-10  Andreas Jaeger  <aj@suse.de>
18610
18611         [BZ #15395]
18612         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18613         localization.
18614         Include <locale.h>.
18615
18616 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18617
18618         * elf/dl-close.c (_dl_close_worker): Add comments.
18619
18620 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18621
18622         [BZ #15359]
18623         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18624         high part of pi/2.
18625         (__ieee754_rem_pio2l): Update comments.
18626
18627         [BZ #15429]
18628         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18629         high part of pi/2.
18630         (__ieee754_rem_pio2l): Update comments.
18631
18632         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18633         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18634
18635         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18636         M_PI_4l.
18637
18638         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18639         (M_PI_34_LOG10El): Likewise.
18640         (M_PI2_LOG10El): Likewise.
18641         (M_PI4_LOG10El): Likewise.
18642         (M_PI_LOG10El): Likewise.
18643
18644 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18645
18646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18647
18648 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18649
18650         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18651         (MINUS_ZERO_INIT): Likewise.
18652         (PLUS_INFTY_INIT): Likewise.
18653         (MINUS_INFTY_INIT): Likewise.
18654         (QNAN_VALUE_INIT): Likewise.
18655         (MAX_VALUE_INIT): Likewise.
18656         (MIN_VALUE_INIT): Likewise.
18657         (MIN_SUBNORM_VALUE_INIT): Likewise.
18658         (plus_zero): Initialize with PLUS_ZERO_INIT.
18659         (minus_zero): Initialize with MINUS_ZERO_INIT.
18660         (plus_infty): Initialize with PLUS_INFTY_INIT.
18661         (minus_infty): Initialize with MINUS_INFTY_INIT.
18662         (qnan_value): Initialize with QNAN_VALUE_INIT.
18663         (max_value): Initialize with MAX_VALUE_INIT.
18664         (min_value): Initialize with MIN_VALUE_INIT.
18665         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18666
18667         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18668         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18669         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18670         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18671
18672         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18673         (RUN_TEST_2_f): Likewise.
18674         (RUN_TEST_ff_f): Likewise.
18675         (RUN_TEST_fi_f): Likewise.
18676         (RUN_TEST_fl_f): Likewise.
18677         (RUN_TEST_fff_f): Likewise.
18678         (RUN_TEST_c_f): Likewise.
18679         (RUN_TEST_f_f1): Likewise.
18680         (RUN_TEST_fF_f1): Likewise.
18681         (RUN_TEST_fI_f1): Likewise.
18682         (RUN_TEST_ffI_f1): Likewise.
18683         (RUN_TEST_c_c): Likewise.
18684         (RUN_TEST_cc_c): Likewise.
18685         (RUN_TEST_f_i): Likewise.
18686         (RUN_TEST_f_i_tg): Likewise.
18687         (RUN_TEST_ff_i_tg): Likewise.
18688         (RUN_TEST_f_b): Likewise.
18689         (RUN_TEST_f_b_tg): Likewise.
18690         (RUN_TEST_f_l): Likewise.
18691         (RUN_TEST_f_L): Likewise.
18692         (RUN_TEST_sincos): Likewise.
18693         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18694         whether to show exceptions.  Do not include ");\n" in return
18695         value.
18696         (special_functions): Output call to RUN_TEST_sincos instead of
18697         check_float calls.  Update calls to new_test.
18698         (parse_args): Output call to single RUN_TEST_* macro instead of
18699         check_* calls and other assignments.  Update calls to new_test.
18700
18701         [BZ #2546]
18702         [BZ #2560]
18703         [BZ #5159]
18704         [BZ #15426]
18705         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18706         input to result for tgamma overflow.
18707         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18708         (gamma_coeff): New variable.
18709         (NCOEFF): New macro.
18710         (gamma_positive): New function.
18711         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18712         underflow here.  Use gamma_positive instead of exp (lgamma) for
18713         other arguments.
18714         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18715         (gamma_coeff): New variable.
18716         (NCOEFF): New macro.
18717         (gammaf_positive): New function.
18718         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18719         underflow here.  Use gamma_positive instead of exp (lgamma) for
18720         other arguments.
18721         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18722         (gamma_coeff): New variable.
18723         (NCOEFF): New macro.
18724         (gammal_positive): New function.
18725         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18726         underflow here.  Use gamma_positive instead of exp (lgamma) for
18727         other arguments.
18728         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18729         (gamma_coeff): New variable.
18730         (NCOEFF): New macro.
18731         (gammal_positive): New function.
18732         (__ieee754_gammal_r): Handle positive infinity, overflow and
18733         underflow here.  Handle NaN the same as positive infinity.  Remove
18734         check x < 0xffffffff for negative integers.  Use gamma_positive
18735         instead of exp (lgamma) for other arguments.
18736         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18737         (gamma_coeff): New variable.
18738         (NCOEFF): New macro.
18739         (gammal_positive): New function.
18740         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18741         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18742         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18743         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18744         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18745         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18746         * sysdeps/generic/math_private.h (__gamma_productf): New
18747         prototype.
18748         (__gamma_product): Likewise.
18749         (__gamma_productl): Likewise.
18750         * math/Makefile (libm-calls): Add gamma_product.
18751         * math/libm-test.inc (tgamma_test): Add more tests.
18752         * sysdeps/i386/fpu/libm-test-ulps: Update.
18753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18754
18755 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18756
18757         * benchtests/bench-skeleton.c (main): Preheat CPU.
18758
18759 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18760
18761         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18762
18763 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18764
18765         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18766         and _dl_skip_args_internal.
18767
18768 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18769
18770         * manual/message.texi (Message Translation): Talk about users.
18771         Message to key mapping impacts design.
18772
18773 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18774
18775         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18776
18777         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18778
18779         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18780         * sysdeps/wordsize-64/glob64.c: ... here.
18781
18782         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18783         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18784         New macros.
18785
18786         * debug/getlogin_r_chk.c: Moved to ...
18787         * login/getlogin_r_chk.c: ... here.
18788         * debug/Makefile (routines): Move getlogin_r_chk to ...
18789         * login/Makefile (routines): ... here.
18790         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18791         * login/Versions (libc: GLIBC_2.4): ... here.
18792
18793         * io/poll.c (__poll): Renamed from poll.
18794         Add libc_hidden_def.
18795         (poll): Define as weak alias.
18796
18797         * debug/ptsname_r_chk.c: Moved to ...
18798         * login/ptsname_r_chk.c: ... here.
18799         * debug/Makefile (routines): Move ptsname_r_chk to ...
18800         * login/Makefile (routines): ... here.
18801         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18802         * login/Versions (libc: GLIBC_2.4): ... here.
18803
18804         * posix/getlogin.c: Moved to ...
18805         * login/getlogin.c: ... here.
18806         * posix/getlogin_r.c: Moved to ...
18807         * login/getlogin_r.c: ... here.
18808         * posix/getlogin_r.c: Moved to ...
18809         * login/getlogin_r.c: ... here.
18810         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18811         * login/Makefile (routines): ... here.
18812         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18813         * login/Versions (libc: GLIBC_2.0): ... here.
18814
18815         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18816         (setrlimit): Define as weak alias.
18817
18818         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18819         Call __ names for open, ftruncate, and close.
18820         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18821         (truncate): Define as weak alias.
18822
18823 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18824
18825         * math/gen-libm-test.pl (parse_args): Initialize x before each
18826         test of frexp, modf and remquo.
18827
18828         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18829         test signgam value.
18830
18831 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18832
18833         [BZ #15418]
18834         [BZ #15419]
18835         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18836         internal tests.
18837         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18838
18839 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18840
18841         * elf/dl-writev.h: New file.
18842         * elf/dl-misc.c: Include it.
18843         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18844         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18845
18846 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18847
18848         * math/libm-test.inc (noXFails): Remove variable.
18849         (noXPasses): Likewise.
18850         (BUILD_COMPLEX_INT): Remove macro.
18851         (print_screen): Remove xfail argument.
18852         (print_screen_max_error): Likewise.
18853         (update_stats): Likewise.
18854         (print_max_error): Likewise.  Update calls to other affected
18855         functions.
18856         (print_complex_max_error): Likewise.
18857         (test_single_exception): Update calls to print_screen.
18858         (test_single_errno): Likewise.
18859         (check_float_internal): Remove xfail argument.  Update calls to
18860         other affected functions.
18861         (check_float): Likewise.
18862         (check_complex): Likewise.
18863         (check_int): Likewise.
18864         (check_long): Likewise.
18865         (check_bool): Likewise.
18866         (check_longlong): Likewise.
18867         (main): Don't print noXFails and noXPasses.
18868         * math/gen-libm-test.pl (top level): Don't mention expected
18869         failure handling in comment.
18870         (new_test): Don't handle expected failures.
18871         (parse_args): Don't mention expected failure handling in comment.
18872         (generate_testfile): Don't handle expected failures.
18873         (parse_ulps): Likewise.
18874         (print_ulps_file): Likewise.
18875         (get_failure): Remove function.
18876         (output_test): Don't handle expected failures.
18877         * make/README.libm-test: Don't mention expected failure handling.
18878
18879         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18880         (minus_zero): Likewise.
18881         (plus_infty): Likewise.
18882         (minus_infty): Likewise.
18883         (qnan_value): Likewise.
18884         (max_value): Likewise.
18885         (min_value): Likewise.
18886         (min_subnorm_value): Likewise.
18887         (initialize): Do not initialize those variables dynamically.
18888
18889 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18890
18891         * io/open.c (__open_2): Moved to ...
18892         * io/open_2.c: ... this new file.
18893         * io/open64.c (__open64_2): Moved to ...
18894         * io/open64_2.c: ... this new file.
18895         * io/openat.c (__openat_2): Moved to ...
18896         * io/openat_2.c: ... this new file.
18897         * io/openat64.c (__openat64_2): Moved to ...
18898         * io/openat64_2.c: ... this new file.
18899         * io/Makefile (routines): Add them.
18900         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18901         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18902         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18903         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18904         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18905         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18906         (__openat64): Add hidden_ver.
18907         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18908         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18909
18910         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18911         Separately conditionalize setting of GLRO(dl_sysinfo) so
18912         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18913         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18914
18915 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18916
18917         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18918         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18919         definition.
18920         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18921         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18922         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18923         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18924         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18925
18926 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18927
18928         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18929         test signgam value.
18930
18931         * math/libm-test.inc (hypot_test): Do not use
18932         IGNORE_ZERO_INF_SIGN.
18933
18934 2013-05-03  Andreas Jaeger  <aj@suse.de>
18935
18936         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18937         Linux 3.9.
18938         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18939         (PF_MAX): Adjust for VSOCK change.
18940
18941 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18942
18943         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18944
18945 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18946
18947         [BZ #15264]
18948         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18949         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18950         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18951
18952 2013-05-02  David S. Miller  <davem@davemloft.net>
18953
18954         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18955
18956 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18957
18958         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18959
18960 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18961
18962         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18963
18964 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18965
18966         [BZ #14952]
18967         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18968         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18969         Use __attribute__ ((__gnu_inline__)).
18970         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18971         Don't use __attribute__ ((__gnu_inline__)).
18972
18973 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18974
18975         [BZ #15423]
18976         * math/s_catan.c (__catan): Handle small real or imaginary part of
18977         input specially to avoid spurious underflow.
18978         * math/s_catanf.c (__catanf): Likewise.
18979         * math/s_catanh.c (__catanh): Likewise.
18980         * math/s_catanhf.c (__catanhf): Likewise.
18981         * math/s_catanhl.c (__catanhl): Likewise.
18982         * math/s_catanl.c (__catanl): Likewise.
18983         * math/libm-test.inc (catan_test): Add more tests.
18984         (catanh_test): Likewise.
18985         * sysdeps/i386/fpu/libm-test-ulps: Update.
18986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18987
18988 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18989
18990         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18991
18992 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18993
18994         [BZ #15416]
18995         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18996         accurately for denominator in atan2.
18997         * math/s_catanf.c (__catanf): Likewise.
18998         * math/s_catanh.c (__catanh): Likewise.
18999         * math/s_catanhf.c (__catanhf): Likewise.
19000         * math/s_catanhl.c (__catanhl): Likewise.
19001         * math/s_catanl.c (__catanl): Likewise.
19002         * math/libm-test.inc (catan_test): Add more tests.
19003         (catanh_test): Likewise.
19004         * sysdeps/i386/fpu/libm-test-ulps: Update.
19005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19006
19007 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
19008
19009         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
19010
19011         * benchtests/Makefile (bench): Remove slow benchmarks.
19012         * benchtests/atan-inputs: Add slow benchmark inputs.
19013         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
19014         (BENCH_FUNC): Accept variant offset.
19015         (VARIANT): Define.
19016         * benchtests/bench-skeleton.c (main): Run benchmark for each
19017         variant.
19018         * benchtests/cos-inputs: Add slow benchmark inputs.
19019         * benchtests/exp-inputs: Likewise.
19020         * benchtests/pow-inputs: Likewise.
19021         * benchtests/sin-inputs: Likewise.
19022         * benchtests/slowatan-inputs: Remove.
19023         * benchtests/slowatan.c: Remove.
19024         * benchtests/slowcos-inputs: Remove.
19025         * benchtests/slowcos.c: Remove.
19026         * benchtests/slowexp-inputs: Remove.
19027         * benchtests/slowexp.c: Remove.
19028         * benchtests/slowpow-inputs: Remove.
19029         * benchtests/slowpow.c: Remove.
19030         * benchtests/slowsin-inputs: Remove.
19031         * benchtests/slowsin.c: Remove.
19032         * benchtests/slowtan-inputs: Remove.
19033         * benchtests/slowtan.c: Remove.
19034         * benchtests/tan-inputs: Add slow benchmark inputs.
19035         * scripts/bench.pl: Parse comments and directives.
19036
19037         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
19038         in CPPFLAGS.
19039         ($(objpfx)bench-%.c): Remove *-ITER.
19040         * benchtests/bench-modf.c: Remove definition of ITER.
19041         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
19042         (main): Loop for DURATION seconds instead of fixed number of
19043         iterations.
19044         * scripts/bench.pl: Don't expect iterations in parameters.
19045
19046 2013-04-29  Roland McGrath  <roland@hack.frob.com>
19047
19048         * io/fchdir.c (__fchdir): Renamed from fchdir.
19049         (fchdir): Define as weak alias.
19050
19051 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19052
19053         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
19054         (ERRNO_EDOM): Likewise.
19055         (ERRNO_ERANGE): Likewise.
19056         (noErrnoTests): New variable.
19057         (init_max_error): Set errno to 0.
19058         (test_single_errno): New function.
19059         (test_errno): Likewise.
19060         (check_float_internal): Call test_errno.  Set errno to 0.
19061         (check_complex): Refer to errno tests in comment.
19062         (check_int): Call test_errno.  Set errno to 0.
19063         (check_long): Likewise.
19064         (check_bool): Likewise.
19065         (check_longlong): Likewise.
19066         (cos_test): Use ERRNO_* flags for errno tests instead of
19067         check_int.
19068         (expm1_test): Likewise.
19069         (fmod_test): Likewise.
19070         (ilogb_test): Likewise.
19071         (lgamma_test): Likewise.
19072         (pow_test): Likewise.
19073         (remainder_test): Likewise.
19074         (sin_test): Likewise.
19075         (tan_test): Likewise.
19076         (yn_test): Likewise.
19077         (initialize): Set errno to 0.
19078         (main): Print number of errno tests.
19079         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19080
19081 2013-04-29  Andreas Jaeger  <aj@suse.de>
19082
19083         [BZ #15084]
19084         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19085         and RES_USEVC.
19086
19087         [BZ #15085]
19088         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19089         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19090         unimplemented.
19091
19092         [BZ #15380]
19093         * stdlib/random.c (__initstate): Return NULL if
19094         __initstate fails.
19095
19096         [BZ #15086]
19097         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19098         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19099         RES_SNGLKUPREOP.
19100
19101 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19102
19103         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19104
19105 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19106
19107         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19108         of individual tests.
19109         (casin_test): Likewise.
19110         (casinh_test): Likewise.
19111
19112 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19113
19114         [BZ #15409]
19115         * math/s_catan.c (__catan): Handle arguments with large real or
19116         imaginary part separately without squaring.
19117         * math/s_catanf.c (__catanf): Likewise.
19118         * math/s_catanh.c (__catanh): Likewise.
19119         * math/s_catanhf.c (__catanhf): Likewise.
19120         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19121         and redefine.
19122         (__catanhl): Handle arguments with large real or imaginary part
19123         separately without squaring.
19124         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19125         and redefine.
19126         (__catanl): Handle arguments with large real or imaginary part
19127         separately without squaring.
19128         * math/libm-test.inc (catan_test): Add more tests.
19129         (catanh_test): Likewise.
19130         * sysdeps/i386/fpu/libm-test-ulps: Update.
19131         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19132
19133 2013-04-27  Andreas Jaeger  <aj@suse.de>
19134
19135         [BZ #15007]
19136         * stdlib/stdlib.h: Update guards for qecvt.
19137         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19138         <stdlib.h>.
19139
19140 2013-04-27  Allan McRae  <allan@archlinux.org>
19141
19142         * sysdeps/i386/fpu/libm-test-ulps: Update.
19143
19144 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19145
19146         [BZ #15406]
19147         * math/s_catan.c: Include <float.h>.
19148         (__catan): Ensure underflow exception occurs for underflowed
19149         result.
19150         * math/s_catanf.c: Include <float.h>.
19151         (__catanf): Ensure underflow exception occurs for underflowed
19152         result.
19153         * math/s_catanh.c: Include <float.h>.
19154         (__catanh): Ensure underflow exception occurs for underflowed
19155         result.
19156         * math/s_catanhf.c: Include <float.h>.
19157         (__catanhf): Ensure underflow exception occurs for underflowed
19158         result.
19159         * math/s_catanhl.c: Include <float.h>.
19160         (__catanhl): Ensure underflow exception occurs for underflowed
19161         result.
19162         * math/s_catanl.c: Include <float.h>.
19163         (__catanl): Ensure underflow exception occurs for underflowed
19164         result.
19165         * math/libm-test.inc (catan_test): Add more tests.
19166         (catanh_test): Likewise.
19167
19168         [BZ #15405]
19169         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19170         underflowed result.
19171         * math/s_ccoshf.c (__ccoshf): Likewise.
19172         * math/s_ccoshl.c (__ccoshl): Likewise.
19173         * math/s_csin.c (__csin): Likewise.
19174         * math/s_csinf.c (__csinf): Likewise.
19175         * math/s_csinh.c (__csinh): Likewise.
19176         * math/s_csinhf.c (__csinhf): Likewise.
19177         * math/s_csinhl.c (__csinhl): Likewise.
19178         * math/s_csinl.c (__csinl): Likewise.
19179         * math/libm-test.inc (ccos_test): Add more tests.
19180         (ccosh_test): Likewise.
19181         (csin_test): Likewise.
19182         (csinh_test): Likewise.
19183
19184 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19185
19186         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19187         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19188         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19189         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19190         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19191         powerpc/power5+/fpu folders.
19192         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19193
19194
19195 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19196
19197         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19198
19199 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19200
19201         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19202         additions to variable.
19203         [$(config-machine) = x86_64] (modules-names): Likewise.
19204         ($(objpfx)tst-audit3): Remove dependency.
19205         ($(objpfx)tst-audit3.out): Likewise.
19206         ($(objpfx)tst-audit4): Likewise.
19207         ($(objpfx)tst-audit4.out): Likewise.
19208         ($(objpfx)tst-audit5): Likewise.
19209         ($(objpfx)tst-audit5.out): Likewise.
19210         ($(objpfx)tst-audit6): Likewise.
19211         ($(objpfx)tst-audit6.out): Likewise.
19212         ($(objpfx)tst-audit7): Likewise.
19213         ($(objpfx)tst-audit7.out): Likewise.
19214         (tst-audit3-ENV): Remove variable.
19215         (tst-audit4-ENV): Likewise.
19216         (tst-audit5-ENV): Likewise.
19217         (tst-audit6-ENV): Likewise.
19218         (tst-audit7-ENV): Likewise.
19219         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19220         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19221         addition to variable.
19222         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19223         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19224         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19225         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19226         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19227         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19228         tst-audit3, tst-audit4 and tst-audit5.
19229         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19230         tst-audit6 and tst-audit7.
19231         [$(subdir) = elf] (modules-names): Add audit modules for those
19232         tests.
19233         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19234         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19235         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19236         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19237         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19238         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19239         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19240         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19241         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19242         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19243         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19244         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19245         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19246         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19247         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19248         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19249         Likewise.
19250         [$(subdir) = elf && $(config-cflags-avx) = yes]
19251         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19252         [$(subdir) = elf && $(config-cflags-avx) = yes]
19253         (CFLAGS-tst-auditmod4a.c): Likewise.
19254         [$(subdir) = elf && $(config-cflags-avx) = yes]
19255         (CFLAGS-tst-auditmod4b.c): Likewise.
19256         [$(subdir) = elf && $(config-cflags-avx) = yes]
19257         (CFLAGS-tst-auditmod6b.c): Likewise.
19258         [$(subdir) = elf && $(config-cflags-avx) = yes]
19259         (CFLAGS-tst-auditmod6c.c): Likewise.
19260         [$(subdir) = elf && $(config-cflags-avx) = yes]
19261         (CFLAGS-tst-auditmod7b.c): Likewise.
19262         * elf/tst-audit3.c: Move to ...
19263         * sysdeps/x86_64/tst-audit3.c: ... here.
19264         * elf/tst-audit4.c: Move to ...
19265         * sysdeps/x86_64/tst-audit4.c: ... here.
19266         * elf/tst-audit5.c: Move to ...
19267         * sysdeps/x86_64/tst-audit5.c: ... here.
19268         * elf/tst-audit6.c: Move to ...
19269         * sysdeps/x86_64/tst-audit6.c: ... here.
19270         * elf/tst-audit7.c: Move to ...
19271         * sysdeps/x86_64/tst-audit7.c: ... here.
19272         * elf/tst-auditmod3a.c: Move to ...
19273         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19274         * elf/tst-auditmod3b.c: Move to ...
19275         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19276         * elf/tst-auditmod4a.c: Move to ...
19277         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19278         * elf/tst-auditmod4b.c: Move to ...
19279         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19280         * elf/tst-auditmod5a.c: Move to ...
19281         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19282         * elf/tst-auditmod5b.c: Move to ...
19283         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19284         * elf/tst-auditmod6a.c: Move to ...
19285         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19286         * elf/tst-auditmod6b.c: Move to ...
19287         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19288         * elf/tst-auditmod6c.c: Move to ...
19289         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19290         * elf/tst-auditmod7a.c: Move to ...
19291         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19292         * elf/tst-auditmod7b.c: Move to ...
19293         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19294
19295 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19296
19297         [BZ #15366]
19298         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19299         define unconditionally.
19300         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19301         define unconditionally.
19302         (INT8_C, INT16_C, etc.): Likewise.
19303
19304 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19305
19306         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19307         __ehdr_start with hidden visibility.
19308
19309         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19310
19311 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19312
19313         * math/libm-test.inc (cos_test): Use accurate hex constants.
19314         (sincost_test): Likewise.
19315
19316 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19317
19318         * math/libm-test.inc (catan_test): Add more tests.
19319         (catanh_test): Likewise.
19320
19321         * math/s_catanf.c (__catanf): Use suffixed floating-point
19322         constants.
19323         * math/s_catanhf.c (__catanhf): Likewise.
19324         * math/s_catanhl.c (__catanhl): Likewise.
19325         * math/s_catanl.c (__catanl): Likewise.
19326
19327         [BZ #15394]
19328         * math/s_catan.c (__catan): Calculate imaginary part of result
19329         with log1p not log unless computing log of number close to 0.
19330         * math/s_catanf.c (__catanf): Likewise.
19331         * math/s_catanl.c (__catanl): Likewise.
19332         * math/s_catanh.c (__catanh): Calculate real part of result with
19333         log1p not log unless computing log of number close to 0.
19334         * math/s_catanhf.c (__catanhf): Likewise.
19335         * math/s_catanhl.c (__catanhl): Likewise.
19336         * math/libm-test.inc (catan_test): Add more tests.
19337         (catanh_test): Likewise.
19338         * sysdeps/i386/fpu/libm-test-ulps: Update.
19339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19340
19341 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19342
19343         * benchtests/Makefile: Mention files in which fast and slow
19344         paths of math functions are implemented.
19345
19346 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19347
19348         * sysdeps/posix/timespec_get.c: New file.
19349
19350 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19351
19352         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19353         POWER.
19354         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19355         for POWER.
19356         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19357         powerpc/power5/fpu folders.
19358         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19359         * benchtests/Makefile: Add modf testcase.
19360         * benchtests/bench-modf.c: New file: Benchmark test for mo
19361
19362 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19363
19364         [BZ #14888]
19365         * time/Makefile (tests): Add tst-strptime-whitespace.
19366         * time/strptime_l.c (get_number): Use ISSPACE.
19367         (__strptime_internal): Likewise.
19368         * time/tst-strptime-whitespace.c: New test case.
19369
19370 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19371
19372         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19373         member.
19374         (_nss_files_init): Set it here.
19375
19376 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19377
19378         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19379         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19380         unsigned.
19381
19382 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19383
19384         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19385
19386 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19387
19388         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19389         size just once.
19390
19391 2013-04-21  David S. Miller  <davem@davemloft.net>
19392
19393         * po/ru.po: Update Russion translation from translation project.
19394
19395 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19396
19397         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19398         and setfsgid.
19399
19400 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
19401
19402         * configure.in: Remove i386 configure warning. Remove i386 case.
19403         * configure: Regenerate.
19404         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
19405         Add example to error message.
19406         * sysdeps/i386/configure: Regenerate.
19407
19408 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19409
19410         * benchtests/Makefile (bench): Add cos, tan, slowcos and
19411         slowtan.
19412         * benchtests/cos-inputs: New file.
19413         * benchtests/slowcos-inputs: New file.
19414         * benchtests/slowcos.c: New file.
19415         * benchtests/slowtan-inputs: New file.
19416         * benchtests/slowtan.c: New file.
19417         * benchtests/tan-inputs: New file.
19418
19419 2013-04-16  Roland McGrath  <roland@hack.frob.com>
19420
19421         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
19422         considered kosher.
19423
19424 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
19425
19426         * benchtests/Makefile: Include cppflags-iterator.mk to add
19427         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
19428
19429         * Makefile.in (bench-clean): New target.
19430         * benchtests/Makefile (bench-clean): Likewise.
19431
19432 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
19433
19434         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
19435
19436 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19437
19438         * stdio-common/tstdiomisc.c: Fix coding-style violation.
19439
19440 2013-04-15  Andreas Schwab  <schwab@suse.de>
19441
19442         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19443         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19444         * nscd/pwdcache.c (cache_addpw): Likewise.
19445         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19446         more than recsize.
19447
19448 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19449
19450         * benchtests/Makefile (bench): Write all output to
19451         bench-out.tmp together.
19452
19453 2013-04-15  Andreas Schwab  <schwab@suse.de>
19454
19455         * nscd/nscd.c (main): Don't fork again after closing files.
19456
19457 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19458
19459         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19460
19461         * benchtests/Rules (bench-deps): Collect dependencies into a
19462         single variable.  Add Makefile to dependencies.
19463         ($(objpfx)bench-%.c): Depend on bench-deps.
19464
19465 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19466             Xavier Roche  <roche+kml2@exalead.com>
19467
19468         [BZ #15361]
19469         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19470         just that it's a file descriptor.
19471         * manual/llio.texi (Synchronizing AIO Operations): Update description
19472         for EBADF error from aio_fsync.
19473
19474 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19475
19476         * Rules (bench): Move target definition...
19477         * benchtests/Makefile: ... here.
19478
19479 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19480
19481         * math/libm-test.inc (cos_test): Fix PI/2 test.
19482         (sincos_test): Likewise.
19483         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19484         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19485
19486 2013-04-11  Andreas Schwab  <schwab@suse.de>
19487
19488         [BZ #13988]
19489         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19490         accept exponent character only when digits were seen.
19491         * stdio-common/Makefile (tests): Add bug26.
19492         * stdio-common/bug26.c: New file.
19493
19494         [BZ #14293]
19495         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19496         non-freeable.
19497
19498 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19499
19500         * Makeconfig (rtld-prefix): Define built linker prefix.
19501         * Rules (run-bench): Use it.
19502         * math/Makefile (run-regen-ulps): Likewise.
19503
19504         * Rules (bench): Remove eval.
19505
19506 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19507             Roland McGrath  <roland@hack.frob.com>
19508             Ondrej Bilka  <neleai@seznam.cz>
19509
19510         [BZ #15346]
19511         * time/getdate.c: Include ctype.h and alloca.h.
19512         (__getdate_r): Trim leading and trailing spaces of input.
19513         * time/tst-getdate.c (tests): Add tests with leading and
19514         trailing spaces.
19515
19516 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19517
19518         [BZ #14280]
19519         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19520         when computing value.
19521
19522 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19523
19524         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19525         Use testrun.sh to run libm tests.
19526
19527         [BZ #15309]
19528         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19529
19530 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19531
19532         [BZ #15264]
19533         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19534
19535 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19536
19537         * Makefile.in (regen-ulps): New target.
19538         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19539         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19540         [ifneq (no,$(PERL)] (regen-ulps): New target.
19541         [ifeq (no,$(PERL)] (regen-ulps): New target.
19542         * math/libm-test.inc (ulps_file_name): Define.
19543         (output_dir): New variable.
19544         (options): Add "output-dir" option.
19545         (parse_opt): Handle 'o' case.
19546         (main): If output_dir is non-NULL use it as a prefix
19547         otherwise use "".
19548         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19549
19550 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19551
19552         [BZ #10060, #10062]
19553         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19554         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19555         fail configure if __sync_val_compare_and_swap is not inlined.
19556         * sysdeps/i386/configure: Regenerate.
19557         * configure.in: Build for i686 when configured for i386.
19558         * configure: Regenerate.
19559         * README: Remove i386 reference.
19560
19561 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19562
19563         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19564         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19565
19566 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19567
19568         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19569         (lmsnanval): New variables.
19570         (F): Add conversion tests.
19571         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19572         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19573
19574         * stdio-common/tstdiomisc.c (F): Properly collect individual
19575         tests' results.
19576
19577         [BZ #14686, #15336]
19578         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19579         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19580         Instead, use input NaN values or generate a qNaN by arithmetic
19581         operation.  Also fix bugs to comply with the standard.
19582         * math/libm-test.inc (remainder_test): Add more tests.
19583
19584         [BZ #15335, #15342]
19585         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19586         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19587         input NaN values or generate a qNaN by arithmetic operation.
19588
19589         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19590         unreachable code.
19591
19592         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19593         definitions.
19594
19595 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19596
19597         [BZ #14478]
19598         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19599         underflowed result.
19600         * math/s_cexpf.c (__cexpf): Likewise.
19601         * math/s_cexpl.c (__cexpl): Likewise.
19602         * math/libm-test.inc (cexp_test): Add more tests.
19603
19604 2013-04-03  Andreas Schwab  <schwab@suse.de>
19605
19606         [BZ #15330]
19607         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19608         order arrays from heap if bigger than alloca cutoff.
19609
19610 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19611
19612         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19613         (SNAN_TESTS_double): Refer to GCC PR56831.
19614         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19615         GCC PR56828.
19616
19617 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19618
19619         * Rules (bench): Move bench.out after the run is complete.
19620
19621         * Rules (bench): Echo currently running benchmark.
19622
19623         * benchtests/Makefile (bench): Add atan and slowatan.
19624         * benchtests/atan-inputs: New file.
19625         * benchtests/slowatan-inputs: New file.
19626         * benchtests/slowatan.c: New file.
19627
19628         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19629         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19630         its value.
19631
19632         [BZ #15305]
19633         * sysdeps/unix/sysv/linux/kernel-features.h
19634         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19635         __ASSUME_XFS_RESTRICTED_CHOWN.
19636         * sysdeps/unix/sysv/linux/pathconf.c
19637         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19638         Save and restore errno.
19639
19640 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19641
19642         [BZ #15327]
19643         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19644         arguments using __kernel_casinh.
19645         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19646         arguments using __kernel_casinhf.
19647         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19648         arguments using __kernel_casinhl.
19649         * math/libm-test.inc (cacosh_test): Add more tests.
19650         * sysdeps/i386/fpu/libm-test-ulps: Update.
19651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19652
19653 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19654
19655         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19656         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19657
19658         * bench/Makefile (bench): Add sin and slowsin.
19659         * benchtests/sin-inputs: New file.
19660         * benchtests/slowsin-inputs: New file.
19661         * benchtests/slowsin.c: New file.
19662
19663         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19664         (bench): Add slowexp and slowpow.
19665         (exp-ITER): Increase iterations.
19666         (pow-ITER): Likewise.
19667         * benchtests/exp-inputs: Change input.
19668         * benchtests/pow-inputs: Likewise.
19669         * benchtests/slowexp-inputs: New file.
19670         * benchtests/slowexp.c: New file.
19671         * benchtests/slowpow-inputs: New file.
19672         * benchtests/slowpow.c: New file.
19673
19674 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19675
19676         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19677         instructions.
19678         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19679         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19680         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19681         * benchtests/Makefile: Add rint benchtest.
19682         * benchtests/rint-inputs: Input for rint benchtest.
19683
19684 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19685
19686         * Versions.def (libm): Add GLIBC_2.18.
19687         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19688         hidden libm prototypes.
19689         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19690         * math/Makefile (libm-calls): Add s_issignaling.
19691         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19692         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19693         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19694         declaration.
19695         * math/math.h [__USE_GNU] (issignaling): New macro.
19696         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19697         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19698         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19699         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19700         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19701         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19702         * manual/arith.texi (issignaling): New section.
19703         * manual/libm-err-tab.pl (@all_functions): Update comment.
19704         * math/gen-libm-test.pl (parse_args): Apply special handling for
19705         issignaling.
19706         * math/libm-test.inc (print_float, issignaling_test): New
19707         functions.
19708         (check_float_internal): Add issignaling checks.
19709         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19710         default definition.
19711         * sysdeps/powerpc/math-tests.h: New file.
19712         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19713         tests.
19714         * math/test-snan.c (TEST_FUNC): Likewise.
19715
19716 2013-03-30  David S. Miller  <davem@davemloft.net>
19717
19718         * po/de.po: Update from translation team.
19719
19720 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19721
19722         [BZ #10357]
19723         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19724         imaginary part less than 1.0 and real part less than 0.5
19725         specially.
19726         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19727         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19728         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19729         (cacos_test): Add more tests.
19730         (casin_test): Likewise.
19731         (casinh_test): Likewise.
19732         * sysdeps/i386/fpu/libm-test-ulps: Update.
19733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19734
19735 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19736
19737         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19738         ONE with its value.
19739
19740         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19741         (__pow_mp): Replace ONE and MONE with their values.
19742         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19743         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19744         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19745         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19746         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19747         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19748
19749         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19750
19751         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19752         (__pow_mp): Replace ZERO and MZERO with their values.
19753         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19754         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19755         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19756         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19757         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19758         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19759         (__sqr): Likewise.
19760
19761         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19762
19763         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19764
19765 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19766
19767         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19768         Declare with __attribute__ ((weak)).
19769         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19770         Call __call_tls_dtors only if it's not NULL.
19771
19772 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19773
19774         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19775         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19776         magic __ehdr_start linker symbol if it's defined.
19777         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19778         them up here if it was already done.
19779
19780         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19781         (_dl_aux_init): Use const in cast when setting it.
19782         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19783         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19784         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19785
19786         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19787         Declare them here.
19788         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19789         * csu/libc-tls.c: Nor here.
19790         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19791
19792         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19793         (__libc_message): Never call vsyslog.
19794
19795 2013-03-28  Alan Modra  <amodra@gmail.com>
19796
19797         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19798         Define as empty.
19799         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19800         Likewise.
19801
19802 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19803
19804         [BZ #15214]
19805         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19806         underflow.
19807         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19808
19809 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19810
19811         [BZ #15304]
19812         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19813         Don't add gid passed as argument.
19814
19815         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19816
19817 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19818
19819         [BZ #15307]
19820         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19821         imaginary part between 1.0 and 1.5 and real part less than 0.5
19822         specially.
19823         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19824         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19825         * math/libm-test.inc (cacos_test): Add more tests.
19826         (casin_test): Likewise.
19827         (casinh_test): Likewise.
19828         * sysdeps/i386/fpu/libm-test-ulps: Update.
19829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19830
19831 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19832
19833         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19834         constants.
19835         (norm): Likewise.
19836         (denorm): Likewise.
19837         (__dbl_mp): Likewise.
19838         (add_magnitudes): Likewise.
19839         (sub_magnitudes): Likewise.
19840         (__add): Likewise.
19841         (__sub): Likewise.
19842         (__mul): Likewise.
19843         (__sqr): Likewise.
19844         (__inv): Likewise.
19845         (__dvd): Likewise.
19846
19847         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19848         commented code.
19849         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19850         (__dubcos): Likewise.
19851         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19852         (__ieee754_acos): Likewise.
19853         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19854         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19855         (__exp1): Likewise.
19856         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19857         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19858         (log1): Likewise.
19859         (my_log2): Likewise.
19860         (checkint): Likewise.
19861         * sysdeps/ieee754/dbl-64/e_remainder.c
19862         (__ieee754_remainder): Likewise.
19863         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19864         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19865         (bsloww): Likewise.
19866         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19867
19868         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19869         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19870         MANTISSA_STORE_T to store computations on mantissa.  Use
19871         macros for rounding and division.
19872         (denorm): Likewise.
19873         (__dbl_mp): Likewise.
19874         (add_magnitudes): Likewise.
19875         (sub_magnitudes): Likewise.
19876         (__mul): Likewise.
19877         (__sqr): Likewise.
19878         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19879         powers of two in terms of TWOPOW macro.
19880         (mp_no): Make type of mantissa as MANTISSA_T.
19881         [!RADIXI]: Define RADIXI.
19882         [!TWO52]: Define TWO52.
19883         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19884
19885 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19886
19887         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19888         llroundl symbol when building for PPC32.
19889
19890 2013-03-24  Mark H Weaver  <mhw@netris.org>
19891
19892         * manual/arith.texi (Normalization Functions): Fix prototypes for
19893         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19894
19895 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19896
19897         [BZ #13889]
19898         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19899         high value to check if expl overflow.
19900         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19901         to check for underflow and overflow.
19902         * math/libm-test.inc: Add exp test.
19903
19904 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19905
19906         [BZ #11120]
19907         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19908         with NOT_IN_libc.
19909
19910 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19911
19912         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19913         symbol.
19914
19915 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19916
19917         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19918         wrap blocks consisting of several statements.
19919
19920         * sysdeps/generic/math-tests.h: New file.
19921         * sysdeps/i386/fpu/math-tests.h: Likewise.
19922         * math/test-snan.c: Include it.
19923         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19924
19925 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19926
19927         [BZ #15285]
19928         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19929         (__ieee754_j0l): Do not improve calculations using cos of twice
19930         input for inputs above LDBL_MAX / 2.0L.
19931         (__ieee754_y0l): Likewise.
19932         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19933         (__ieee754_j1l): Do not improve calculations using cos of twice
19934         input for inputs above LDBL_MAX / 2.0L.
19935         (__ieee754_y1l): Likewise.
19936         * math/libm-test.inc (j0_test): Add another test.
19937         (j1_test): Likewise.
19938         (y0_test): Likewise.
19939         (y1_test): Likewise.
19940         * sysdeps/i386/fpu/libm-test-ulps: Update.
19941
19942 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19943
19944         * Rules ($(objpfx)bench-%.c): Include code from a C source
19945         file.
19946
19947 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19948
19949         [BZ #15287]
19950         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19951         imaginary part 1.0 and real part less than 0.5 specially.
19952         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19953         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19954         * math/libm-test.inc (cacos_test): Add more tests.
19955         (casin_test): Likewise.
19956         (casinh_test): Likewise.
19957         * sysdeps/i386/fpu/libm-test-ulps: Update.
19958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19959
19960 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19961
19962         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19963         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19964
19965 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19966
19967         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19968         * config.make.in (config-cflags-sse4): Remove variable.
19969         (config-cflags-avx): Likewise.
19970         (config-cflags-sse2avx): Likewise.
19971         (config-cflags-novzeroupper): Likewise.
19972         (config-asflags-i686): Likewise.
19973         (have-mfma4): Likewise.
19974         (have-as-vis3): Likewise.
19975         (MIG): Likewise.
19976         * configure.in (MIG): Do not AC_SUBST.
19977         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19978         (libc_cv_cc_sse4): Do not AC_SUBST.
19979         (libc_cv_cc_avx): Likewise.
19980         (libc_cv_cc_sse2avx): Likewise.
19981         (libc_cv_cc_novzeroupper): Likewise.
19982         (libc_cv_cc_fma4): Likewise.
19983         (libc_cv_as_i686): Likewise.
19984         (libc_cv_sparc_as_vis3): Likewise.
19985         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19986         LIBC_CONFIG_VAR.
19987         (config-asflags-i686): Likewise.
19988         (config-cflags-avx): Likewise.
19989         (config-cflags-sse2avx): Likewise.
19990         (have-mfma4): Likewise.
19991         (config-cflags-novzeroupper): Likewise.
19992         * sysdeps/mach/configure.in (MIG): Likewise.
19993         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19994         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19995         LIBC_CONFIG_VAR.
19996         (config-cflags-avx): Likewise.
19997         (config-cflags-sse2avx): Likewise.
19998         (have-mfma4): Likewise.
19999         (config-cflags-novzeroupper): Likewise.
20000         * configure: Regenerated.
20001         * sysdeps/i386/configure: Likewise.
20002         * sysdeps/mach/configure: Likewise.
20003         * sysdeps/sparc/configure: Likewise.
20004         * sysdeps/x86_64/configure: Likewise.
20005
20006 2013-03-20  Roland McGrath  <roland@hack.frob.com>
20007
20008         [BZ #14812]
20009         * locale/programs/localedef.c (options): Put N_ translation marker
20010         on argument names, not just descriptions.
20011
20012 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
20013
20014         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
20015
20016 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
20017
20018         [BZ #14176]
20019         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
20020
20021 2013-03-19  Roland McGrath  <roland@hack.frob.com>
20022
20023         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
20024         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
20025         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
20026         [!BEFORE_ABORT] (before_abort): New function.
20027         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
20028         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
20029         (writev_for_fatal): New function.
20030         (WRITEV_FOR_FATAL): New macro; call that.
20031         (backtrace_and_maps): New function.
20032         (BEFORE_ABORT): New macro; call that.
20033         (struct str_list): Type removed.
20034         (__libc_message, __libc_fatal): Functions removed.
20035         Include <sysdeps/posix/libc_fatal.c> instead.
20036
20037 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
20038
20039         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
20040         constants.
20041         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
20042         double constants.
20043
20044 2013-03-19  Andreas Schwab  <schwab@suse.de>
20045
20046         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
20047         * sysdeps/gnu/configure: Regenerate.
20048
20049         * configure.in: Substitute libc_cv_rtlddir.
20050         * configure: Regenerate.
20051         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
20052         * Makeconfig (rtlddir, inst_rtlddir): New variables.
20053         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
20054         * elf/Makefile (install-others, CFLAGS-interp.c)
20055         (ldso_install, common-ldd-rewrite): Likewise.
20056         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20057         $(inst_slibdir)/$(rtld-installed-name).
20058         * scripts/rellns-sh: Add -p option.
20059         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20060         for source.
20061
20062 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20063
20064         * manual/nptl.texi: Renamed to ...
20065         * manual/threads.texi: ... this.
20066         * manual/Makefile (chapters): Update.
20067
20068 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20069
20070         [BZ #14812]
20071         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20072         on argument names, not just descriptions.
20073         * malloc/memusagestat.c (options): Likewise.
20074         * nss/getent.c (options): Likewise.
20075
20076 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20077
20078         [BZ #14812]
20079         * iconv/iconv_prog.c (options): Put N_ translation marker
20080         on argument names, not just descriptions.
20081         * iconv/iconvconfig.c (options): Likewise.
20082
20083 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20084
20085         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20086         implementation which is faster on all x86_64 architectures.
20087         Tested on AMD, Intel Nehalem, SNB, IVB.
20088         * sysdeps/x86_64/strnlen.S: Likewise.
20089
20090         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20091         Remove all multiarch strlen and strnlen versions.
20092         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20093         Remove strlen and strnlen related parts.
20094
20095         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20096         Inline strlen part.
20097         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20098
20099         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20100         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20101         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20102         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20103         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20104         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20105
20106 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20107
20108         * manual/memory.texi (Malloc Tunable Parameters):
20109         Sort parameters alphabetically. Add comments for missing entries.
20110
20111 2013-03-17  David S. Miller  <davem@davemloft.net>
20112
20113         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20114
20115 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20116
20117         [BZ #15283]
20118         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20119         for arguments at most half maximum finite value.
20120         * math/libm-test.inc (j0_test): Add more tests.
20121         (j1_test): Likewise.
20122         (y0_test): Likewise.
20123         (y1_test): Likewise.
20124         * sysdeps/i386/fpu/libm-test-ulps: Update.
20125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20126
20127         [BZ #14155]
20128         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20129         1 / x and functions P and Q for arguments above 0x1p256L.
20130         (__ieee754_y0l): Likewise.
20131         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20132         (__ieee754_y1l): Likewise.
20133         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20134         (j1_test): Likewise.
20135         (y0_test): Likewise.
20136         (y1_test): Likewise.
20137
20138 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20139
20140         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20141         variable.
20142
20143 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20144
20145         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20146         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20147         zero since it's initialized to EXEC_PAGESIZE.
20148
20149         * sysdeps/unix/sysv/linux/ldsodefs.h
20150         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20151         * sysdeps/generic/ldsodefs.h: ... here.
20152
20153 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20154
20155         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20156
20157         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20158         math/test-snan.c.
20159         * math/test-snan.c: Renamed from
20160         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20161         * math/Makefile (tests): Add test-snan.
20162         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20163         test-powerpc-snan.
20164
20165         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20166         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20167         functions.
20168         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20169         __builtin_nan family of functions.
20170         * math/libm-test.inc (initialize): Initialize qnan_value with
20171         __builtin_nan family of functions.
20172         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20173         Remove variables.
20174         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20175         Remove functions.
20176         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20177         storage class.  Initialize qNaN_var and sNaN_var with
20178         __builtin_nan and __builtin_nans families of functions,
20179         respectively.
20180
20181         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20182         (sqrt_test): Remove duplicate test with qNaN input.
20183         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20184         (round_test, signbit_test, significand_test): Note missing +/-Inf
20185         as well as qNaN tests.
20186
20187         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20188         qNaN_var.  Fix a few strings, too.
20189         * math/libm-test.inc (nan_value): Rename to qnan_value.
20190         * math/gen-libm-test.pl (%beautify): Adjust to that.
20191         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20192         * math/test-misc.c (main): Likewise.
20193         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20194         to __qnan_bytes, and __qnan_union, respectively.
20195         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20196         Likewise.
20197         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20198         and lqnanval, respectively.
20199         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20200         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20201         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20202         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20203
20204         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20205         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20206         doubles.
20207
20208         * math/test-misc.c (main): Fix copy'n'pastos.
20209         * misc/tst-efgcvt.c (special): Likewise.
20210
20211         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20212         Remove declarations.
20213
20214 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20215
20216         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20217         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20218         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20219         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20220
20221 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20222
20223         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20224         macro to return vdso values correctly in IFUNC implementations.
20225         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20226         Optimization by using IFUNC.
20227
20228 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20229             Richard Henderson  <rth@redhat.com>
20230             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20231
20232         * Makefile.in (bench): New target.
20233         * NEWS: Mention the benchmark framework.
20234         * Rules (bench): Likewise.
20235         (binaries-bench): Generate binaries for functions to
20236         benchmark.
20237         * benchtests/Makefile: New makefile for benchmark tests.
20238         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20239         programs.
20240         * benchtests/exp-inputs: New input file for EXP function.
20241         * benchtests/pow-inputs: New input file for POW function.
20242         * scripts/bench.pl: New script to generate source files for
20243         benchmark programs.
20244
20245 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20246
20247         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20248         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20249         computations on mantissa.  Use macros for rounding and
20250         division.
20251         (denorm): Likewise.
20252         (__dbl_mp): Likewise.
20253         (add_magnitudes): Likewise.
20254         (sub_magnitudes): Likewise.
20255         (__mul): Likewise.
20256         (__sqr): Likewise.
20257         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20258         powers of two in terms of TWOPOW macro.
20259         (mp_no): Make type of mantissa as MANTISSA_T.
20260         [!RADIXI]: Define RADIXI.
20261         [!TWO52]: Define TWO52.
20262         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20263
20264         * manual/nptl.texi (cindex): Modify threads to pthreads.
20265
20266 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20267
20268         * sysdeps/x86_64/preconfigure: Regenerated.
20269
20270 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20271
20272         [BZ #14155]
20273         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20274         0x1p28 and above.
20275         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20276         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20277         0x1p28 and above.
20278         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20279         * math/libm-test.inc (j0_test): Do not allow one spurious
20280         underflow exception.
20281         (y1_test): Likewise.
20282
20283 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20284
20285         * manual/Makefile (chapters): Add nptl.
20286         * manual/debug.texi (Debugging Support): Add link to Threads
20287         chapter.
20288         * manual/nptl.texi: New file.
20289
20290         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20291
20292 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20293
20294         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20295         for non-NULL pointer before the memory validity test. Pointed
20296         out by Holger Brunck <holger.brunck@keymile.com>.
20297
20298 2013-03-13  Andreas Schwab  <schwab@suse.de>
20299
20300         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20301         instead of .os.
20302
20303 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20304
20305         * timezone/zic.c: Update from tzcode 2013b.
20306
20307 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20308
20309         * manual/install.texi (Configuring and compiling):
20310         Mention i686 and i586.
20311         * INSTALL: Regenerate.
20312
20313 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20314
20315         * sysdeps/init_array/elf-init.c: New file.
20316         * csu/elf-init.c
20317         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20318         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20319
20320         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20321         __gmon_start__ as global, but as static with a .preinit_array pointer.
20322         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20323         * sysdeps/init_array/crti.S: New file, empty except for comments.
20324         * sysdeps/init_array/crtn.S: Likewise.
20325
20326 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20327
20328         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20329         definining bcopy.
20330         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20331         Remove Prefer_SSE_for_memop.
20332         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20333         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20334         HAS_PREFER_SSE_FOR_MEMOP.
20335         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20336         memset-x86-64.
20337         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20338         Remove bzero, memset ifunc support.
20339         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20340         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20341         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20342         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20343
20344 2013-03-11  Andreas Schwab  <schwab@suse.de>
20345
20346         [BZ #15234]
20347         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20348         by SHLIB_COMPAT.
20349         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20350         (GLIBC_2.16): Remove pthread_atfork.
20351
20352 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20353
20354         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20355         (ptestcases.h): Likewise.
20356
20357 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20358
20359         * Makeconfig ($(common-objpfx)config.status): Depend on
20360         sysdeps/*/preconfigure{,.in} too.
20361
20362 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20363
20364         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20365         (__free_hook): Use void * instead of __malloc_ptr_t.
20366         (__malloc_hook): Likewise.
20367         (__realloc_hook): Likewise.
20368         (__memalign_hook): Likewise.
20369         (__after_morecore_hook): Likewise.
20370         * malloc/arena.c (save_malloc_hook): Likewise.
20371         (save_free_hook): Likewise.
20372         * malloc/hooks.c (malloc_hook_ini): Likewise.
20373         (realloc_hook_ini): Likewise.
20374         (memalign_hook_ini): Likewise.
20375         * malloc/malloc.c (malloc_hook_ini): Likewise.
20376         (realloc_hook_ini): Likewise.
20377         (memalign_hook_ini): Likewise.
20378         (__free_hook): Likewise.
20379         (__malloc_hook): Likewise.
20380         (__realloc_hook): Likewise.
20381         (__memalign_hook): Likewise.
20382         (__libc_malloc): Likewise.
20383         (__libc_free): Likewise.
20384         (__libc_realloc): Likewise.
20385         (__libc_memalign): Likewise.
20386         (__libc_valloc): Likewise.
20387         (__libc_pvalloc): Likewise.
20388         (__libc_calloc): Likewise.
20389         (__posix_memalign): Likewise.
20390         * malloc/morecore.c (__sbrk): Likewise.
20391         (__default_morecore): Likewise.
20392
20393         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20394
20395         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20396         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20397         __malloc_ptrdiff_t.
20398
20399         * malloc/malloc.h (__malloc_size_t): Remove macro.
20400         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
20401         __malloc_size_t.
20402         (old_memalign_hook): Likewise.
20403         (old_realloc_hook): Likewise.
20404         (struct hdr): Likewise.
20405         (flood): Likewise.
20406         (mallochook): Likewise.
20407         (memalignhook): Likewise.
20408         (reallochook): Likewise.
20409         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
20410         (tr_old_realloc_hook): Likewise.
20411         (tr_old_memalign_hook): Likewise.
20412         (tr_mallochook): Likewise.
20413         (tr_reallochook): Likewise.
20414         (tr_memalignhook): Likewise.
20415
20416 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20417
20418         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
20419         default_ldbl_pack and using as default implementation.
20420         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
20421         implementation.
20422         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
20423         redundant definition.
20424         (ldbl_insert_mantissa): Likewise.
20425         (ldbl_canonicalize): Likewise.
20426         (ldbl_nearbyint): Likewise.
20427         (ldbl_pack): Rename to ldbl_pack_ppc.
20428         (ldbl_unpack): Rename to ldbl_unpack_ppc.
20429         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
20430         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
20431
20432 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20433
20434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
20435         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
20436         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
20437         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
20438         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
20439         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
20440         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20441         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20442
20443 2013-03-07  Andreas Jaeger  <aj@suse.de>
20444
20445         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20446         bits/mman-linux.h.
20447
20448 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20449
20450         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20451         Include mpa.h and declare __MPEXP.
20452         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20453         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20454         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20455         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20456         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20457         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20458         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20459
20460         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20461         (__slowpow): Use long double EXPL and LOGL functions to
20462         compute POW.
20463         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20464         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20465         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20466         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20467         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20468         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20469
20470         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20471         intermediate variable to calculate exponent.
20472         (__sqr): Likewise.
20473         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20474         Likewise.
20475         (__sqr): Likewise.
20476
20477         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20478         [!NO__SQR]: Define __sqr.
20479         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20480         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20481         sysdeps/ieee754/dbl-64/mpa.c.
20482         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20483
20484         [BZ #12723]
20485         * posix/Makefile (tests): Add tst-pathconf.
20486         * posix/tst-pathconf.c: New test case.
20487         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20488         _PC_PIPE_BUF.
20489         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20490
20491 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20492
20493         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20494
20495 2013-03-06  Andreas Jaeger  <aj@suse.de>
20496
20497         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20498         definition via __MAP_ANONYMOUS.
20499
20500         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20501         it's not part of Linux headers.
20502
20503         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20504         (MAP_HUGE_MASK): Define.
20505
20506         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20507         Define.
20508         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20509         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20510         Define.
20511         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20512         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20513         Define.
20514         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20515         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20516         Define.
20517         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20518
20519         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20520         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20521         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20522         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20523         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20524         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20525
20526         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20527         Handle f2fs.
20528
20529         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20530         Handle f2fs and efivarfs.
20531
20532         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20533         f2fs.
20534
20535         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20536         (EFIVARFS_MAGIC): Add.
20537         (F2FS_LINK_MAX): Add.
20538
20539 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20540
20541         * stdio-common/vfprintf.c: Replace __builtin_expect with
20542         __glibc_unlikely.
20543
20544 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20545
20546         [BZ #13550]
20547         * sysdeps/generic/bp-sym.h: Remove file.
20548         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20549         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20550         <bp-sym.h> and <bp-asm.h>.
20551         (__longjmp): Don't use BP_SYM.
20552         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20553         and <bp-asm.h>.
20554         (memcpy): Don't use BP_SYM.
20555         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20556         <bp-sym.h> and <bp-asm.h>.
20557         (memcpy): Don't use BP_SYM.
20558         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20559         <bp-asm.h>.
20560         (memcpy): Don't use BP_SYM.
20561         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20562         <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/memcmp.S: Don't include
20570         <bp-sym.h> and <bp-asm.h>.
20571         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20572         pointers.
20573         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20574         <bp-sym.h> and <bp-asm.h>.
20575         (memcpy): Don't use BP_SYM.
20576         * sysdeps/powerpc/powerpc64/power4/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/power4/strncmp.S: Don't include
20585         <bp-sym.h> and <bp-asm.h>.
20586         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20587         pointers.
20588         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20589         <bp-sym.h> and <bp-asm.h>.
20590         (memcpy): Don't use BP_SYM.
20591         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20592         <bp-sym.h> and <bp-asm.h>.
20593         (memset): Don't use BP_SYM.
20594         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20595         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20596         (__bzero): Don't use BP_SYM.
20597         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20598         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20599         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20600         <bp-sym.h> and <bp-asm.h>.
20601         (__memchr): Don't use BP_SYM.
20602         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20603         <bp-sym.h> and <bp-asm.h>.
20604         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20605         pointers.
20606         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20607         <bp-sym.h> and <bp-asm.h>.
20608         (memcpy): Don't use BP_SYM.
20609         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20610         <bp-sym.h> and <bp-asm.h>.
20611         (__mempcpy): Don't use BP_SYM.
20612         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20613         <bp-sym.h> and <bp-asm.h>.
20614         (__memrchr): Don't use BP_SYM.
20615         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20616         <bp-sym.h> and <bp-asm.h>.
20617         (memset): Don't use BP_SYM.
20618         (__bzero): Likewise.
20619         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20620         <bp-sym.h> and <bp-asm.h>.
20621         (__rawmemchr): Don't use BP_SYM.
20622         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20623         <bp-sym.h> and <bp-asm.h>.
20624         (__STRCMP): Don't use BP_SYM.
20625         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20626         <bp-sym.h> and <bp-asm.h>.
20627         (strchr): Don't use BP_SYM.
20628         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20629         <bp-sym.h> and <bp-asm.h>.
20630         (__strchrnul): Don't use BP_SYM.
20631         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20632         <bp-sym.h> and <bp-asm.h>.
20633         (strlen): Don't use BP_SYM.
20634         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20635         <bp-sym.h> and <bp-asm.h>.
20636         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20637         pointers.
20638         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20639         <bp-sym.h> and <bp-asm.h>.
20640         (__strnlen): Don't use BP_SYM.
20641         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20642         <bp-sym.h> and <bp-asm.h>.
20643         (__GI__setjmp): Don't use BP_SYM.
20644         (_setjmp): Likewise.
20645         (__sigsetjmp): Likewise.
20646         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20647         (L(start_addresses)): Don't use BP_SYM.
20648         (_start): Likewise.
20649         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20650         <bp-asm.h>.
20651         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20652         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20653         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20654         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20655         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20656         <bp-asm.h>.
20657         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20658         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20659         about bounded pointers.
20660         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20661         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20662         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20663         <bp-asm.h>.
20664         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20665         about bounded pointers.  Remove GKM FIXME comments.
20666         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20667         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20668         <bp-asm.h>.
20669         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20670         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20671         Remove GKM FIXME comments.
20672         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20673         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20674         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20675         <bp-asm.h>.
20676         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20677         about bounded pointers.  Remove GKM FIXME comment.
20678         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20679         and <bp-asm.h>.
20680         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20681         pointers.
20682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20683         <bp-sym.h> and <bp-asm.h>.
20684         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20686         <bp-sym.h> and <bp-asm.h>.
20687         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20688         comment.
20689
20690 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20691
20692         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20693         call free(NULL).
20694
20695 2013-03-05  David S. Miller  <davem@davemloft.net>
20696
20697         * po/es.po: Update from translation team.
20698
20699 2013-03-05  Andreas Jaeger  <aj@suse.de>
20700
20701         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20702         <bits/mman-linux.h>.
20703         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20704         is fine.
20705         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20706         <bits/mman-linux.h> to end of file.
20707         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20708         is fine.
20709         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20710         <bits/mman-linux.h> to end of file.
20711         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20712         is fine.
20713         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20714         <bits/mman-linux.h> to end of file.
20715
20716         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20717         (MCL_CURRENT, MCL_FUTURE): Define here.
20718
20719 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20720
20721         [BZ #15232]
20722         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20723         attribute_hidden.
20724         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20725
20726 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20727
20728         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20729         fourth parameter needed for rt_sigprocmask syscall.
20730         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20731         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20732         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20733         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20734         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20735         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20736
20737 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20738
20739         [BZ #13550]
20740         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20741         comment about bounded pointers.
20742         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20743         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20744
20745 2013-03-04  Andreas Jaeger  <aj@suse.de>
20746
20747         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20748         common definitions.
20749
20750         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20751         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20752         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20753         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20754         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20755         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20756
20757 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20758
20759         [BZ #15055]
20760         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20761         __ieee754_sqrl instead of __sqrl.
20762
20763 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20764
20765         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20766         * sysdeps/powerpc/fpu_control.h: ... here.
20767         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20768         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20769         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20770         * sysdeps/powerpc/bits/mathinline.h: ... here.
20771
20772 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20773
20774         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20775         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20776         to just [NEED_DL_SYSINFO_DSO].
20777         * elf/dl-support.c: Likewise.
20778         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20779         * elf/rtld.c (dl_main): Likewise.
20780         * elf/setup-vdso.h (setup_vdso): Likewise.
20781         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20782         * sysdeps/unix/sysv/linux/dl-sysdep.c
20783         (_dl_discover_osversion): Likewise.
20784
20785 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20786
20787         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20788         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20789
20790 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20791
20792         * NEWS: Mention libm performance improvements and non-x86 PI
20793         futex support.
20794
20795         * csu/libc-start.c (__pthread_initialize_minimal): Change
20796         function arguments.
20797         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20798
20799 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20800
20801         [BZ #13550]
20802         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20803         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20804         <bp-sym.h> and <bp-asm.h>.
20805         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20806         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20807         and <bp-asm.h>.
20808         (memcpy): Don't use BP_SYM.
20809         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20810         <bp-asm.h>.
20811         (__mpn_add_n): Don't use BP_SYM.
20812         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20813         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20814         and <bp-asm.h>.
20815         (__mpn_addmul_1): Don't use BP_SYM.
20816         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20817         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20818         <bp-sym.h>.
20819         (_setjmp): Don't use BP_SYM.
20820         (__novmx_setjmp): Likewise.
20821         (__GI__setjmp): Likewise.
20822         (__vmx_setjmp): Likewise.
20823         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20824         <bp-sym.h>.
20825         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20826         (__bzero): Don't use BP_SYM.
20827         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20828         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20829         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20830         <bp-sym.h> and <bp-asm.h>.
20831         (memcpy): Don't use BP_SYM.
20832         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20833         <bp-sym.h> and <bp-asm.h>.
20834         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20835         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20836         <bp-sym.h> and <bp-asm.h>.
20837         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20838         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20839         <bp-asm.h>.
20840         (__mpn_lshift): Don't use BP_SYM.
20841         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20842         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20843         <bp-asm.h>.
20844         (memset): Don't use BP_SYM.
20845         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20846         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20847         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20848         <bp-asm.h>.
20849         (__mpn_mul_1): Don't use BP_SYM.
20850         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20851         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20852         <bp-sym.h> and <bp-asm.h>.
20853         (memcmp): Don't use BP_SYM.
20854         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20855         <bp-sym.h> and <bp-asm.h>.
20856         (memcpy): Don't use BP_SYM.
20857         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20858         <bp-sym.h> and <bp-asm.h>.
20859         (memset): Don't use BP_SYM.
20860         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20861         <bp-sym.h> and <bp-asm.h>.
20862         (strncmp): Don't use BP_SYM.
20863         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20864         <bp-sym.h> and <bp-asm.h>.
20865         (memcpy): Don't use BP_SYM.
20866         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20867         <bp-sym.h> and <bp-asm.h>.
20868         (memset): Don't use BP_SYM.
20869         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20870         <bp-sym.h> and <bp-asm.h>.
20871         (__memchr): Don't use BP_SYM.
20872         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20873         <bp-sym.h> and <bp-asm.h>.
20874         (memcmp): Don't use BP_SYM.
20875         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20876         <bp-sym.h> and <bp-asm.h>.
20877         (memcpy): Don't use BP_SYM.
20878         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20879         <bp-sym.h> and <bp-asm.h>.
20880         (__mempcpy): Don't use BP_SYM.
20881         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20882         <bp-sym.h> and <bp-asm.h>.
20883         (__memrchr): Don't use BP_SYM.
20884         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20885         <bp-sym.h> and <bp-asm.h>.
20886         (memset): Don't use BP_SYM.
20887         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20888         <bp-sym.h> and <bp-asm.h>.
20889         (__rawmemchr): Don't use BP_SYM.
20890         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20891         <bp-sym.h> and <bp-asm.h>.
20892         (__STRCMP): Don't use BP_SYM.
20893         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20894         <bp-sym.h> and <bp-asm.h>.
20895         (strchr): Don't use BP_SYM.
20896         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20897         <bp-sym.h> and <bp-asm.h>.
20898         (__strchrnul): Don't use BP_SYM.
20899         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20900         <bp-sym.h> and <bp-asm.h>.
20901         (strlen): Don't use BP_SYM.
20902         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20903         <bp-sym.h> and <bp-asm.h>.
20904         (strncmp): Don't use BP_SYM.
20905         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20906         <bp-sym.h> and <bp-asm.h>.
20907         (__strnlen): Don't use BP_SYM.
20908         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20909         <bp-asm.h>.
20910         (__mpn_rshift): Don't use BP_SYM.
20911         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20912         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20913         <bp-sym.h> and <bp-asm.h>.
20914         (__sigsetjmp): Don't use BP_SYM.
20915         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20916         (L(start_addresses)): Don't use BP_SYM.
20917         (_start): Likewise.
20918         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20919         <bp-asm.h>.
20920         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20921         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20922         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20923         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20924         <bp-asm.h>.
20925         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20926         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20927         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20928         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20929         <bp-asm.h>.
20930         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20931         comments.
20932         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20933         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20934         <bp-asm.h>.
20935         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20936         FIXME comments.
20937         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20938         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20939         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20940         <bp-asm.h>.
20941         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20942         comment.
20943         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20944         and <bp-asm.h>.
20945         (strncmp): Don't use BP_SYM,
20946         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20947         <bp-asm.h>.
20948         (__mpn_sub_n): Don't use BP_SYM.
20949         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20950         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20951         and <bp-asm.h>.
20952         (__mpn_submul_1): Don't use BP_SYM.
20953         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20955         <bp-sym.h> and <bp-asm.h>.
20956         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20958         <bp-sym.h> and <bp-asm.h>.
20959         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20960         comment.
20961
20962 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20963
20964         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20965         Use ZK to minimize writes to Z.
20966         (sub_magnitudes): Simplify code a bit.
20967         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20968         Use ZK to minimize writes to Z.
20969         (sub_magnitudes): Simplify code a bit.
20970
20971 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20972
20973         * csu/gmon-start.c: Add special exception to license text.
20974
20975 2013-02-27  Richard Henderson  <rth@redhat.com>
20976
20977         * scripts/config.guess: Update from config.git.
20978         * scripts/config.sub: Likewise.
20979
20980 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20981
20982         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20983
20984         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20985
20986         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20987
20988         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20989
20990         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20991
20992 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20993
20994         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20995         [$(build-shared = yes].
20996
20997 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20998
20999         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
21000         (__mul): Reduce iterations for calculating mantissa.
21001
21002         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
21003         MPTWO.
21004         (__mpranred): Likewise.
21005
21006         [BZ #15160]
21007         * malloc/memusagestat.c (main): Draw graphs for heap and stack
21008         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
21009
21010 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
21013         Define __attribute__.
21014
21015 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21016
21017         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
21018         unused.
21019         * posix/regex_internal.h (__attribute): Remove.
21020         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
21021         (re_string_context_at): Likewise.
21022         (bitset_not): Use __attribute__ and mark function as possibly
21023         unused.
21024         (bitset_merge): Likewise.
21025         (bitset_mask): Likewise.
21026         (re_string_char_size_at): Likewise.
21027         (re_string_wchar_at): Likewise.
21028         (re_string_elem_size_at): Likewise.
21029
21030 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
21031
21032         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
21033         code.
21034         (cc32): Likewise.
21035
21036         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
21037         (__acr): Likewise.
21038         (__cpy): Likewise.
21039         (norm): Likewise.
21040         (denorm): Likewise.
21041         (__dbl_mp): Likewise.
21042         (add_magnitudes): Likewise.
21043         (sub_magnitudes): Likewise.
21044         (__mul): Likewise.
21045         (__inv): Likewise.
21046
21047         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
21048         style.
21049
21050         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
21051         style.
21052
21053         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
21054         code.
21055
21056         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21057         up changes with default code.
21058         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21059         Likewise.
21060
21061 2013-02-24  Allan McRae  <allan@archlinux.org>
21062
21063         * manual/socket.texi (The Internet Namespace): Order menu items
21064         to match that in the file.
21065
21066         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21067         node listing of the info page menu.
21068
21069 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21070
21071         [BZ #13550]
21072         * sysdeps/i386/bp-asm.h: Remove file.
21073         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21074         (PARMS): Do not use macros from bp-asm.h.
21075         (S1): Likewise.
21076         (S2): Likewise.
21077         (SIZE): Likewise.
21078         (__mpn_add_n): Do not use BP_SYM
21079         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21080         "bp-asm.h".
21081         (PARMS): Do not use macros from bp-asm.h.
21082         (S1): Likewise.
21083         (SIZE): Likewise.
21084         (__mpn_addmul_1): Do not use BP_SYM
21085         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21086         "bp-asm.h".
21087         (PARMS): Do not use macros from bp-asm.h.
21088         (SIGMSK): Likewise.
21089         (_setjmp): Likewise.  Do not use BP_SYM.
21090         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21091         "bp-asm.h".
21092         (PARMS): Do not use macros from bp-asm.h.
21093         (SIGMSK): Likewise.
21094         (setjmp): Likewise.  Do not use BP_SYM.
21095         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21096         "bp-asm.h".
21097         (PARMS): Do not use macros from bp-asm.h.
21098         (__frexp): Do not use BP_SYM.
21099         (frexp): Likewise.
21100         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21101         "bp-asm.h".
21102         (PARMS): Do not use macros from bp-asm.h.
21103         (__frexpf): Do not use BP_SYM.
21104         (frexpf): Likewise.
21105         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21106         "bp-asm.h".
21107         (PARMS): Do not use macros from bp-asm.h.
21108         (__frexpl): Do not use BP_SYM.
21109         (frexpl): Likewise.
21110         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21111         "bp-asm.h".
21112         (PARMS): Do not use macros from bp-asm.h.
21113         (__remquo): Do not use BP_SYM.
21114         (remquo): Likewise.
21115         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21116         "bp-asm.h".
21117         (PARMS): Do not use macros from bp-asm.h.
21118         (__remquof): Do not use BP_SYM.
21119         (remquof): Likewise.
21120         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21121         "bp-asm.h".
21122         (PARMS): Do not use macros from bp-asm.h.
21123         (__remquol): Do not use BP_SYM.
21124         (remquol): Likewise.
21125         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21126         "bp-asm.h".
21127         (PARMS): Do not use macros from bp-asm.h.
21128         (DEST): Likewise.
21129         (SRC): Likewise.
21130         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21131         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21132         "bp-asm.h".
21133         (PARMS): Do not use macros from bp-asm.h.
21134         (strlen): Do not use BP_SYM.
21135         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21136         "bp-asm.h".
21137         (PARMS): Do not use macros from bp-asm.h.
21138         (S1): Likewise.
21139         (S2): Likewise.
21140         (SIZE): Likewise.
21141         (__mpn_add_n): Do not use BP_SYM.
21142         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21143         "bp-asm.h".
21144         (PARMS): Do not use macros from bp-asm.h.
21145         (S1): Likewise.
21146         (SIZE): Likewise.
21147         (__mpn_addmul_1): Do not use BP_SYM.
21148         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21149         weak_alias.
21150         (bzero): Likewise.
21151         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21152         "bp-asm.h".
21153         (PARMS): Do not use macros from bp-asm.h.
21154         (S): Likewise.
21155         (SIZE): Likewise.
21156         (__mpn_lshift): Do not use BP_SYM.
21157         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
21158         "bp-asm.h".
21159         (PARMS): Do not use macros from bp-asm.h.
21160         (DEST): Likewise.
21161         (SRC): Likewise.
21162         (LEN): Likewise.
21163         (memcpy): Likewise.  Do not use BP_SYM.
21164         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21165         libc_hidden_def and weak_alias.
21166         (mempcpy): Do not use BP_SYM in weak_alias.
21167         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21168         "bp-asm.h".
21169         (PARMS): Do not use macros from bp-asm.h.
21170         (DEST): Likewise.
21171         (LEN): Likewise.
21172         [!BZERO_P] (CHR): Likewise.
21173         (memset): Likewise.  Do not use BP_SYM.
21174         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21175         "bp-asm.h".
21176         (PARMS): Do not use macros from bp-asm.h.
21177         (S1): Likewise.
21178         (SIZE): Likewise.
21179         (__mpn_mul_1): Do not use BP_SYM.
21180         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21181         "bp-asm.h".
21182         (PARMS): Do not use macros from bp-asm.h.
21183         (S): Likewise.
21184         (SIZE): Likewise.
21185         (__mpn_rshift): Do not use BP_SYM.
21186         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21187         "bp-asm.h".
21188         (PARMS): Do not use macros from bp-asm.h.
21189         (STR): Likewise.
21190         (CHR): Likewise.
21191         (strchr): Likewise.  Do not use BP_SYM.
21192         (index): Do not use BP_SYM in weak_alias.
21193         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21194         "bp-asm.h".
21195         (PARMS): Do not use macros from bp-asm.h.
21196         (DEST): Likewise.
21197         (SRC): Likewise.
21198         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21199         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21200         "bp-asm.h".
21201         (PARMS): Do not use macros from bp-asm.h.
21202         (strlen): Do not use BP_SYM.
21203         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21204         "bp-asm.h".
21205         (PARMS): Do not use macros from bp-asm.h.
21206         (S1): Likewise.
21207         (S2): Likewise.
21208         (SIZE): Likewise.
21209         (__mpn_sub_n): Do not use BP_SYM.
21210         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21211         "bp-asm.h".
21212         (PARMS): Do not use macros from bp-asm.h.
21213         (S1): Likewise.
21214         (SIZE): Likewise.
21215         (__mpn_submul_1): Do not use BP_SYM.
21216         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21217         "bp-asm.h".
21218         (PARMS): Do not use macros from bp-asm.h.
21219         (S1): Likewise.
21220         (S2): Likewise.
21221         (SIZE): Likewise.
21222         (__mpn_add_n): Do not use BP_SYM.
21223         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21224         weak_alias.
21225         (bzero): Likewise.
21226         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21227         "bp-asm.h".
21228         (PARMS): Do not use macros from bp-asm.h.
21229         (BLK2): Likewise.
21230         (LEN): Likewise.
21231         (memcmp): Do not use BP_SYM.
21232         (bcmp): Do not use BP_SYM in weak_alias.
21233         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
21234         "bp-asm.h".
21235         (PARMS): Do not use macros from bp-asm.h.
21236         (DEST): Likewise.
21237         (SRC): Likewise.
21238         (LEN): Likewise.
21239         (memcpy): Likewise.  Do not use BP_SYM.
21240         * sysdeps/i386/i686/memmove.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         (SRC): Likewise.
21245         (LEN): Likewise.
21246         (memmove): Likewise.  Do not use BP_SYM.
21247         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
21248         "bp-asm.h".
21249         (PARMS): Do not use macros from bp-asm.h.
21250         (DEST): Likewise.
21251         (SRC): Likewise.
21252         (LEN): Likewise.
21253         (__mempcpy): Likewise.  Do not use BP_SYM.
21254         (mempcpy): Do not use BP_SYM in weak_alias.
21255         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21256         "bp-asm.h".
21257         (PARMS): Do not use macros from bp-asm.h.
21258         (DEST): Likewise.
21259         (LEN): Likewise.
21260         [!BZERO_P] (CHR): Likewise.
21261         (memset): Likewise.  Do not use BP_SYM.
21262         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21263         "bp-asm.h".
21264         (PARMS): Do not use macros from bp-asm.h.
21265         (STR2): Likewise.
21266         (strcmp): Do not use BP_SYM.
21267         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21268         "bp-asm.h".
21269         (PARMS): Do not use macros from bp-asm.h.
21270         (STR): Likewise.
21271         (DELIM): Likewise.
21272         [USE_AS_STRTOK_R] (SAVE): Likewise.
21273         (FUNCTION): Likewise.  Do not use BP_SYM.
21274         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21275         aliases.
21276         (strtok_r): Likewise.
21277         (__GI___strtok_r): Likewise.
21278         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21279         (PARMS): Do not use macros from bp-asm.h.
21280         (S): Likewise.
21281         (SIZE): Likewise.
21282         (__mpn_lshift): Do not use BP_SYM.
21283         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21284         (PARMS): Do not use macros from bp-asm.h.
21285         (STR): Likewise.
21286         (CHR): Likewise.
21287         (__memchr): Do not use BP_SYM.
21288         (memchr): Do not use BP_SYM in weak_alias.
21289         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21290         (PARMS): Do not use macros from bp-asm.h.
21291         (BLK2): Likewise.
21292         (LEN): Likewise.
21293         (memcmp): Do not use BP_SYM.
21294         (bcmp): Do not use BP_SYM in weak_alias.
21295         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21296         (PARMS): Do not use macros from bp-asm.h.
21297         (S1): Likewise.
21298         (SIZE): Likewise.
21299         (__mpn_mul_1): Do not use BP_SYM.
21300         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21301         "bp-asm.h".
21302         (PARMS): Do not use macros from bp-asm.h.
21303         (STR): Likewise.
21304         (CHR): Likewise.
21305         (__rawmemchr): Do not use BP_SYM.
21306         (rawmemchr): Do not use BP_SYM in weak_alias.
21307         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21308         (PARMS): Do not use macros from bp-asm.h.
21309         (S): Likewise.
21310         (SIZE): Likewise.
21311         (__mpn_rshift): Do not use BP_SYM.
21312         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21313         (PARMS): Do not use macros from bp-asm.h.
21314         (SIGMSK): Likewise.
21315         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21316         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21317         (_start): Do not use BP_SYM.
21318         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21319         (PARMS): Do not use macros from bp-asm.h.
21320         (DEST): Likewise.
21321         (SRC): Likewise.
21322         (__stpcpy): Likewise.  Do not use BP_SYM.
21323         (stpcpy): Do not use BP_SYM in weak_alias.
21324         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21325         "bp-asm.h".
21326         (PARMS): Do not use macros from bp-asm.h.
21327         (DEST): Likewise.
21328         (SRC): Likewise.
21329         (LEN): Likewise.
21330         (__stpncpy): Likewise.  Do not use BP_SYM.
21331         (stpncpy): Do not use BP_SYM in weak_alias.
21332         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21333         (PARMS): Do not use macros from bp-asm.h.
21334         (STR): Likewise.
21335         (CHR): Likewise.
21336         (strchr): Likewise.  Do not use BP_SYM.
21337         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21338         "bp-asm.h".
21339         (PARMS): Do not use macros from bp-asm.h.
21340         (STR): Likewise.
21341         (CHR): Likewise.
21342         (__strchrnul): Likewise.  Do not use BP_SYM.
21343         (strchrnul): Do not use BP_SYM in weak_alias.
21344         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21345         "bp-asm.h".
21346         (PARMS): Do not use macros from bp-asm.h.
21347         (STOP): Likewise.
21348         (strcspn): Do not use BP_SYM.
21349         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21350         "bp-asm.h".
21351         (PARMS): Do not use macros from bp-asm.h.
21352         (STR): Likewise.
21353         (STOP): Likewise.
21354         (strpbrk): Likewise.  Do not use BP_SYM.
21355         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21356         "bp-asm.h".
21357         (PARMS): Do not use macros from bp-asm.h.
21358         (STR): Likewise.
21359         (CHR): Likewise.
21360         (strrchr): Likewise.  Do not use BP_SYM.
21361         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21362         (PARMS): Do not use macros from bp-asm.h.
21363         (SKIP): Likewise.
21364         (strspn): Do not use BP_SYM.
21365         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21366         (PARMS): Do not use macros from bp-asm.h.
21367         (STR): Likewise.
21368         (DELIM): Likewise.
21369         (SAVE): Likewise.
21370         (FUNCTION): Likewise.  Do not use BP_SYM.
21371         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21372         aliases.
21373         (strtok_r): Likewise.
21374         (__GI___strtok_r): Likewise.
21375         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21376         (PARMS): Do not use macros from bp-asm.h.
21377         (S1): Likewise.
21378         (S2): Likewise.
21379         (SIZE): Likewise.
21380         (__mpn_sub_n): Do not use BP_SYM.
21381         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21382         "bp-asm.h".
21383         (PARMS): Do not use macros from bp-asm.h.
21384         (S1): Likewise.
21385         (SIZE): Likewise.
21386         (__mpn_submul_1): Do not use BP_SYM.
21387         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21388         <bp-sym.h>.
21389         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21390         and <bp-asm.h>.
21391         (PARMS): Do not use macros from bp-asm.h.
21392         (FLAGS): Likewise.
21393         (PTID): Likewise.
21394         (TLS): Likewise.
21395         (CTID): Likewise.
21396         (__clone): Do not use BP_SYM.
21397         (clone): Do not use BP_SYM in weak_alias.
21398         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
21399         and <bp-asm.h>.
21400         (PARMS): Do not use macros from bp-asm.h.
21401         (LEN): Likewise.
21402         (__mmap64): Do not use BP_SYM.
21403         (mmap64): Do not use BP_SYM in weak_alias.
21404         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
21405         <bp-sym.h> and <bp-asm.h>.
21406         (PARMS): Do not use macros from bp-asm.h.
21407         (__posix_fadvise64_l64): Do not use BP_SYM.
21408         * sysdeps/unix/sysv/linux/i386/semtimedop.S
21409         (PARMS): Do not use macros from bp-asm.h.
21410         (NSOPS): Likewise.
21411         (semtimedop): Do not use BP_SYM.
21412         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
21413         and <bp-asm.h>.
21414
21415 2013-02-21  Allan McRae  <allan@archlinux.org>
21416
21417         * manual/message.texi (Charset conversion in gettext):
21418         Move @end statement to beginning of line.
21419
21420 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21421
21422         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
21423         static.
21424         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21425         Likewise.
21426
21427         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
21428         (denorm): Likewise.
21429         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
21430         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
21431
21432 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21433
21434         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
21435         tail-call to the resolved function if pltexit isn't needed.
21436
21437 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21438
21439         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
21440         or Y being zero as being unlikely.
21441         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21442         Likewise.
21443
21444 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21445
21446         * manual/nss.texi (System Databases and Name Service Switch):
21447         Remove frobnicate @pxref.
21448
21449 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21450
21451         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21452         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21453
21454 2013-02-20  Petr Machata  <pmachata@redhat.com>
21455
21456         * elf/elf.h (R_ARM_TARGET1): New macro.
21457         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21458         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21459         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21460         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21461         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21462         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21463         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21464         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21465         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21466         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21467         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21468         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21469         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21470         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21471         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21472         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21473         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21474         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21475         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21476         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21477         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21478         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21479         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21480         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21481         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21482         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21483         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21484         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21485         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21486         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21487         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21488         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21489         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21490         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21491         (R_ARM_THM_GOT_BREL12): Likewise.
21492         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21493         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21494         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21495         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21496         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21497         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21498         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21499         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21500         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21501
21502 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21503
21504         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21505         __attribute_used__ to __attribute__ ((unused)).
21506
21507 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21508
21509         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21510         powerpc mpa.c.
21511         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21512         comment formatting.
21513         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21514
21515 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21516
21517         [BZ #13550]
21518         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21519         Remove macro.
21520         (ENTER): Remove both macro definitions.
21521         (LEAVE): Likewise.
21522         (CHECK_BOUNDS_LOW): Likewise.
21523         (CHECK_BOUNDS_HIGH): Likewise.
21524         (CHECK_BOUNDS_BOTH): Likewise.
21525         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21526         (RETURN_BOUNDED_POINTER): Likewise.
21527         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21528         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21529         (POP_ERRNO_LOCATION_RETURN): Likewise.
21530         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21531         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21532         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21533         macros.
21534         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21535         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21536         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21537         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21538         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21539         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21540         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21541         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21542         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21543         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21544         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21545         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21546         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21547         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21548         removed macros.
21549         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21550         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21551         macros.
21552         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21553         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21554         * sysdeps/i386/i586/memset.S (memset): Likewise.
21555         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21556         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21557         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21558         macros.
21559         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21560         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21561         Change uses of L(2) to L(out).
21562         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21563         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21564         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21565         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21566         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21567         removed macros.
21568         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21569         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21570         macros.
21571         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21572         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21573         (RETURN): Do not use macro LEAVE.
21574         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21575         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21576         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21577         * sysdeps/i386/i686/memset.S (memset): Likewise.
21578         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21579         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21580         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21581         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21582         Likewise.
21583         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21584         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21585         L(1_2) and L(1_3) into L(1).
21586         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21587         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21588         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21589         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21590         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21591         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21592         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21593         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21594         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21595         macros.
21596         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21597         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21598         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21599         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21600         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21601         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21602         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21603         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21604         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21605         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21606         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21607         * sysdeps/i386/strspn.S (strspn): Likewise.
21608         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21609         conditional code.
21610         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21611         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21612         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21613         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21614         L(1_3) into L(1_1).
21615         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21616         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21617         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21618         macros.
21619         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21620
21621 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21622
21623         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21624         macro.
21625
21626 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21627
21628         * math/atest-exp.c (exp_mpn): Remove ROUND.
21629         * math/atest-exp2.c (exp_mpn): Likewise.
21630         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21631
21632         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21633         * stdlib/tst-tls-atexit-lib.c: Likewise.
21634         * stdlib/tst-tls-atexit.c: Likewise.
21635
21636 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21637
21638         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21639         and __attribute_alloc_size__.
21640
21641 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21642
21643         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21644         __attribute_alloc_size__.
21645         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21646         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21647
21648 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21649
21650         * include/programs/xmalloc.h: New file.
21651         * catgets/gencat.c: Include it.
21652         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21653         * elf/pldd.c: Likewise.
21654         * iconv/iconv_charmap.c: Likewise.
21655         * iconv/iconvconfig.c: Likewise.
21656         * iconv/strtab.c: Likewise.
21657         * locale/programs/locale.c: Likewise.
21658         * locale/programs/localedef.h: Likewise.
21659         * locale/programs/simple-hash.c: Likewise.
21660         * nscd/nscd.h: Likewise.
21661         * nss/makedb.c: Likewise.
21662         * sysdeps/generic/ldconfig.h: Likewise.
21663
21664 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21665
21666         * Versions.def: Add GLIBC_2.18.
21667         * include/link.h (struct link_map): New member l_tls_dtor_count.
21668         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21669         (__call_tls_dtors): Likewise.
21670         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21671         __cxa_thread_atexit_impl.
21672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21673         Likewise.
21674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21675         Likewise.
21676         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21677         Likewise.
21678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21679         Likewise.
21680         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21681         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21682         Likewise.
21683         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21684         Likewise.
21685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21686         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21687         Likewise.
21688         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21689         (tests): Add test case tst-tls-atexit.
21690         (modules-names): Add shared library for tst-tls-atexit.
21691         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21692         (GLIBC_PRIVATE): Add __call_tls_dtors.
21693         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21694         for libstdc++.
21695         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21696         * stdlib/tst-tls-atexit.c: New test case.
21697         * stdlib/tst-tls-atexit-lib.c: New test case.
21698
21699         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21700
21701         * elf/Versions (ld): Add _dl_find_dso_for_object.
21702         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21703         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21704         (dl_open_worker): Use _dl_find_dso_for_object.
21705         * elf/dl-sym.c (do_sym): Likewise.
21706         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21707
21708 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21709
21710         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21711         Syntactic changes only.
21712         (_dl_runtime_profile): Do a tail-call to the resolved function.
21713
21714 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21715
21716         [BZ #13550]
21717         * sysdeps/x86_64/bp-asm.h: Remove file.
21718         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21719         <bp-sym.h> and <bp-asm.h>.
21720         (__clone): Do not use BP_SYM.
21721         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21722         <bp-sym.h> and <bp-asm.h>.
21723         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21724         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21725         "bp-asm.h".
21726         (_setjmp): Do not use BP_SYM.
21727         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21728         "bp-asm.h".
21729         (setjmp): Do not use BP_SYM.
21730         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21731         libc_hidden_def.
21732         (mempcpy): Do not use BP_SYM in weak_alias.
21733         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21734         "bp-asm.h".
21735         (strchr): Do not use BP_SYM.
21736         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21737         "bp-asm.h".
21738         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21739         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21740         (_start): Do not use BP_SYM.
21741         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21742         "bp-asm.h".
21743         (strcat): Do not use BP_SYM.
21744         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21745         "bp-asm.h".
21746         (STRCMP): Do not use BP_SYM.
21747         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21748         "bp-asm.h".
21749         (STRCPY): Do not use BP_SYM.
21750         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21751         "bp-asm.h".
21752         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21753         "bp-asm.h".
21754         (FUNCTION): Do not use BP_SYM.
21755         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21756         weak_alias.
21757         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21758
21759 2013-02-17  Andreas Jaeger  <aj@suse.de>
21760
21761         * time/Versions: Sort entries.
21762         * string/Versions: Likewise.
21763         * resolv/Versions: Likewise.
21764         * posix/Versions: Likewise.
21765         * iconv/Versions: Likewise.
21766         * elf/Versions: Likewise.
21767         * wcsmbs/Versions: Likewise.
21768
21769 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21770
21771         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21772         loop termination condition.
21773
21774         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21775         variable to calculate EZ.
21776         (__sqr): Likewise.
21777
21778         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21779         the lower precision input.
21780
21781 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21782
21783         [BZ #13550]
21784         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21785         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21786         (run-via-rtld-prefix): Do not handle %-bp tests.
21787         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21788         (all-object-suffixes): Remove .ob.
21789         (bppfx): Remove variable.
21790         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21791         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21792         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21793         [$(build-bounded) = yes] (libtype.ob): Likewise.
21794         * Makerules (elide-routines.ob): Remove variable.
21795         (do-tests-clean): Do not handle *-bp.out.
21796         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21797         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21798         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21799         (tests): Do not include $(tests-bp.out).
21800         (xtests): Do not include $(xtests-bp.out).
21801         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21802         [$(build-bounded) = yes] ($(addprefix
21803         $(objpfx),$(binaries-bounded))): Remove rule.
21804         ($(objpfx)%-bp.out): Remove rule.
21805         * config.make.in (build-bounded): Remove variable.
21806         * crypt/Makefile [$(build-bounded) = yes]
21807         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21808         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21809         append to variable.
21810         [$(build-bounded) = yes] (install-lib): Likewise.
21811         [$(build-bounded) = yes] (generated): Likewise.
21812         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21813         Remove rule.
21814         * intl/Makefile [$(build-bounded) = yes]
21815         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21816         * math/Makefile [$(build-bounded) = yes]
21817         ($(tests:%=$(objpfx)%-bp): Likewise.
21818         * misc/Makefile [$(build-bounded) = yes]
21819         ($(objpfx)tst-tsearch-bp): Likewise.
21820         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21821         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21822         Remove dependency.
21823         * string/Makefile (o-objects.ob): Remove variable.
21824         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21825         (CFLAGS-.ob): Remove variable.
21826         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21827         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21828         both definitions of variable.
21829         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21830         (ASFLAGS-.ob): Remove variable.
21831
21832 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21833
21834         [BZ #13550]
21835         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21836         Remove __BOUNDED_POINTERS__ from condition.
21837         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21838         * string/bits/string2.h [!__NO_STRING_INLINES &&
21839         !__BOUNDED_POINTERS__]: Likewise.
21840         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21841         Likewise.
21842         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21843         Remove conditional code.
21844         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21845         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21846         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21847         condition.
21848
21849         [BZ #13550]
21850         * csu/libc-start.c: Do not include <bp-sym.h>.
21851         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21852         * elf/dl-open.c: Do not include <bp-sym.h>.
21853         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21854         * math/fegetenv.c: Do not include <bp-sym.h>.
21855         (fegetenv): Do not use BP_SYM in versioned symbols.
21856         * nptl/sysdeps/pthread/bits/libc-lockP.h
21857         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21858         <bp-sym.h>.
21859         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21860         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21861         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21862         (__pthread_mutex_destroy): Likewise.
21863         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21864         (__pthread_mutex_lock): Likewise.
21865         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21866         (__pthread_mutex_trylock): Likewise.
21867         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21868         (__pthread_mutex_unlock): Likewise.
21869         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21870         (__pthread_mutexattr_init): Likewise.
21871         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21872         (__pthread_mutexattr_destroy): Likewise.
21873         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21874         (__pthread_mutexattr_settype): Likewise.
21875         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21876         (__pthread_rwlock_init): Likewise.
21877         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21878         (__pthread_rwlock_destroy): Likewise.
21879         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21880         (__pthread_rwlock_rdlock): Likewise.
21881         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21882         (__pthread_rwlock_tryrdlock): Likewise.
21883         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21884         (__pthread_rwlock_wrlock): Likewise.
21885         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21886         (__pthread_rwlock_trywrlock): Likewise.
21887         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21888         (__pthread_rwlock_unlock): Likewise.
21889         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21890         (__pthread_key_create): Likewise.
21891         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21892         (__pthread_setspecific): Likewise.
21893         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21894         (__pthread_getspecific): Likewise.
21895         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21896         Likewise.
21897         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21898         (_pthread_cleanup_push_defer): Likewise.
21899         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21900         (_pthread_cleanup_pop_restore): Likewise.
21901         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21902         (pthread_setcancelstate): Likewise.
21903         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21904         <bp-sym.h>.
21905         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21906         (memchr): Do not use BP_SYM in weak_alias.
21907         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21908         (fegetenv): Do not use BP_SYM in versioned symbols.
21909         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21910         (fesetenv): Do not use BP_SYM in versioned symbols.
21911         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21912         (feupdateenv): Do not use BP_SYM in versioned symbols.
21913         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21914         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21915         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21916         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21917         (open64): Do not use BP_SYM in weak_alias.
21918         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21919         (fegetenv): Do not use BP_SYM in versioned symbols.
21920         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21921         (fesetenv): Do not use BP_SYM in versioned symbols.
21922         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21923         (feupdateenv): Do not use BP_SYM in versioned symbols.
21924         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21925         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21926         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21927         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21928         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21929         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21930         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21931         <bp-sym.h>.
21932         (__libc_start_main): Do not use BP_SYM.
21933
21934 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21935
21936         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21937         redundant return line.
21938         (norm): Likewise.
21939         (denorm): Likewise.
21940         (dbl_mp): Likewise.
21941         (sub_magnitudes): Likewise.
21942         (__add): Likewise.
21943         (__sub): Likewise.
21944         (__mul): Likewise.
21945         (__inv): Likewise.
21946         (__dvd): Likewise.
21947         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21948         (norm): Likewise.
21949         (denorm): Likewise.
21950         (dbl_mp): Likewise.
21951         (sub_magnitudes): Likewise.
21952         (__add): Likewise.
21953         (__sub): Likewise.
21954         (__mul): Likewise.
21955         (__inv): Likewise.
21956         (__dvd): Likewise.
21957
21958         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21959         instead of __mul.
21960         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21961         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21962         (cc32): Likewise.
21963
21964         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21965         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21966         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21967         of __mul for squares.
21968         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21969         function
21970         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21971         Likewise.
21972         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21973         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21974
21975 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21976
21977         [BZ #13550]
21978         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21979         code.
21980         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21981         prototype or function definition.  Rename ubp_* variables and
21982         parameters.  Remove argv definitions conditional on
21983         [__BOUNDED_POINTERS__].
21984         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21985         * elf/dl-runtime.c (_dl_fixup): Likewise.
21986         * include/set-hooks.h (RUN_HOOK): Likewise.
21987         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21988         definition.
21989         * string/strcpy.c (strcpy): Do not use __unbounded.
21990         * sysdeps/generic/frame.h (struct layout): Likewise.
21991         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21992         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21993         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21994         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21995         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21996         (__backtrace): Likewise.
21997         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21998         use __ptrvalue.
21999         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
22000         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
22001         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22002         Likewise.
22003         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
22004         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
22005         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
22006         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22007         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
22008         Do not use __unbounded.
22009         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
22010         Rename __unboundedrlimits parameter to rlimits in prototype.
22011         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
22012         Do not use __unbounded.
22013         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
22014         not use __ptrvalue.
22015         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22016         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
22017         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22018         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
22019         __ptrvalue or __unbounded.
22020         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
22021         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
22022         use __unbounded.
22023         (__new_msgctl): Do not use __ptrvalue.
22024         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
22025         __unbounded.
22026         (__libc_msgrcv): Do not use __ptrvalue.
22027         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
22028         startup_info): Do not use __unbounded.
22029         (__libc_start_main): Likewise.  Rename ubp_* variables and
22030         parameters.  Remove argv definitions conditional on
22031         [__BOUNDED_POINTERS__].
22032         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
22033         __ptrvalue.
22034         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
22035         use __unbounded.
22036         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
22037         or __ptrvalue.
22038         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
22039         use __unbounded.
22040         (__new_shmctl): Do not use __ptrvalue.
22041         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22042         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22043         Likewise.
22044         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22045         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
22046         (__libc_sigaction): Likewise.
22047         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
22048         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
22049         Likewise.
22050         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22051
22052 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
22053
22054         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
22055
22056         * string/mempcpy.c: Implement by calling memcpy.
22057
22058 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22059
22060         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22061
22062         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22063         evaluation.
22064
22065         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22066         values in the mantissa.
22067
22068         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22069         minimize writes to Z.
22070         (sub_magnitudes): Simplify code a bit.
22071
22072 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22073
22074         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22075         from the message.  The linker prefixes all warnings with that already.
22076
22077 2013-02-12  Andreas Schwab  <schwab@suse.de>
22078
22079         [BZ #15078]
22080         * posix/regexec.c (extend_buffers): Add parameter min_len.
22081         (check_matching): Pass minimum needed length.
22082         (clean_state_log_if_needed): Likewise.
22083         (get_subexp): Likewise.
22084         * posix/Makefile (tests): Add bug-regex34.
22085         (bug-regex34-ENV): Define.
22086         * posix/bug-regex34.c: New file.
22087
22088         [BZ #11561]
22089         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22090         elements compare against the byte sequence of it, not its name.
22091         * posix/Makefile (tests): Add bug-regex35.
22092         (bug-regex35-ENV): Define.
22093         * posix/bug-regex35.c: New file.
22094
22095 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22096
22097         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22098         comment.
22099         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22100         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22101         (CHECK_EOL): Add undef.
22102
22103 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22104
22105         * bits/stdlib-bsearch.h: New file.
22106         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22107         * stdlib/stdlib.h: Likewise.
22108
22109 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22110
22111         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22112         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22113         declaration.
22114         * manual/search.texi (Array Search Function): Add missing const in
22115         lfind prototype.
22116         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22117         declaration to use rlim_t.
22118         (Basic Scheduling Functions): Remove erroneous const from
22119         sched_getparam prototype.  Remove erroneous * from
22120         sched_get_priority_max and sched_get_priority_min prototypes.
22121         (Resource Usage): Fix summary @comment on vtimes to refer to
22122         sys/vtimes.h rather than vtimes.h.
22123         Add missing *s in vtimes prototype.
22124         (Limits on Resources): Fix ulimit prototype to return long int.
22125         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22126         prototypes to use long int rather than double.
22127         (BSD Random): Fix initstate and setstate to use char *, not void *.
22128         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22129         prototype to make second argument 'struct aiocb64 *const[]'.
22130         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22131         (Status of AIO Operations): Remove erroneous const in aio_return and
22132         aio_return64 prototypes.
22133         (Synchronizing I/O): Fix sync prototype to return void.
22134         * manual/startup.texi (Suboptions): Remove an erroneous const in
22135         getsubopt prototype.
22136         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22137         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22138         use size_t rather than int.
22139         (Scanning All Users): Likewise for getpwent_r.
22140         (Setting Groups): Add missing const to setgroups prototype.
22141         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22142         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22143         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22144         'const void *' rather than 'const char *'.
22145         (Host Address Functions): Likewise for inet_ntop.
22146         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22147         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22148         ssize_t for return value.
22149         (Sending Data): Likewise for send, sendto, sendmsg.
22150         (Socket Option Functions): Add a missing const in setsockopt prototype.
22151         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22152         use wchar_t for the argument.
22153         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22154         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22155         take no arguments.
22156         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22157         double/float/long double for second argument.
22158         Fix return types of significand, significandf, significandl.
22159         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22160         argument in fchmod prototype.
22161         (File Owner): Use uid_t and gid_t in fchown prototype.
22162         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22163         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22164         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22165         use 'const struct dirent **' as argument types to CMP function pointer
22166         argument.
22167         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22168         (File Times): Fix summary magic @comment for struct utimbuf and utime
22169         to refer to utime.h, not time.h.
22170         * manual/string.texi (Argz Functions): Add missing const in
22171         argz_extract and argz_next prototypes.
22172         (Finding Tokens in a String): Likewise for basename.
22173         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22174         (Copying and Concatenation): Fix typo in wmemmove prototype.
22175         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22176         (Signal Stack): Remove erroneous const in sigstack prototype.
22177         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22178         prototype.
22179         (Simple Calendar Time): Likewise for stime.
22180         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22181         prototype.
22182         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22183         say sys/sysctl.h instead.
22184         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22185         and vsyslog prototypes.
22186
22187 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22188
22189         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22190         Remove.
22191
22192 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22193
22194         * misc/sys/mman.h: Fix typo in mremap comment.
22195
22196 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22197
22198         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22199         the '\0' terminator.
22200
22201 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22202
22203         [BZ #13550]
22204         * debug/segfault.c: Don't include <bp-checks.h>.
22205         * sysdeps/generic/bp-checks.h: Remove file.
22206         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22207         (__GETDENTS): Don't use CHECK_N.
22208         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22209         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22210         (__getgroups): Don't use CHECK_N.
22211         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22212         (setgroups): Don't use CHECK_N.
22213         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22214         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22215         (__libc_msgrcv): Don't use CHECK_N.
22216         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22217         (__libc_msgsnd): Don't use CHECK_N.
22218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22219         <bp-checks.h>.
22220         (__libc_pread): Don't use CHECK_N.
22221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22222         include <bp-checks.h>.
22223         (__libc_pread64): Don't use CHECK_N.
22224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22225         include <bp-checks.h>.
22226         (__libc_pwrite): Don't use CHECK_N.
22227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22228         include <bp-checks.h>.
22229         (__libc_pwrite64): Don't use CHECK_N.
22230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22231         <bp-checks.h>.
22232         (__libc_pread): Don't use CHECK_N.
22233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22234         include <bp-checks.h>.
22235         (__libc_pread64): Don't use CHECK_N.
22236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22237         include <bp-checks.h>.
22238         (__libc_pwrite): Don't use CHECK_N.
22239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22240         include <bp-checks.h>.
22241         (__libc_pwrite64): Don't use CHECK_N.
22242         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22243         (do_pread): Don't use CHECK_N.
22244         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22245         (do_pread64): Don't use CHECK_N.
22246         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22247         (do_pwrite): Don't use CHECK_N.
22248         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22249         (do_pwrite64): Don't use CHECK_N.
22250         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22251         (__libc_readv): Don't use CHECK_N.
22252         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22253         (semop): Don't use CHECK_N.
22254         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22255         <bp-checks.h>.
22256         (semtimedop): Don't use CHECK_N.
22257         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22258         (__libc_pread): Don't use CHECK_N.
22259         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22260         <bp-checks.h>.
22261         (__libc_pread64): Don't use CHECK_N.
22262         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22263         <bp-checks.h>.
22264         (__libc_pwrite): Don't use CHECK_N.
22265         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22266         <bp-checks.h>.
22267         (__libc_pwrite64): Don't use CHECK_N.
22268         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22269         <bp-checks.h>.
22270         (__libc_msgrcv): Don't use CHECK_N.
22271         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22272         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22273         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22274         (__libc_writev): Don't use CHECK_N.
22275
22276 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22277
22278         * string/strcpy.c: Removed unused variable.
22279
22280         * Makeconfig (+sysdep-includes): Define with := rather than =.
22281         Use an existing include/ subdir of each sysdeps dir before it.
22282
22283 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22284
22285         * nscd/connection.c (register_traced_file): Comment function.
22286         [HAVE_INOTIFY] (union __inev): Define.
22287         [HAVE_INOTIFY] (inotify_check_files): New function.
22288         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22289         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22290         clear_db_cache.
22291         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22292
22293 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22294
22295         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22296         loaded if not already and that a failure is permanent.
22297
22298 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22299
22300         [BZ #15006]
22301         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22302         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22303
22304 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22305
22306         [BZ #13550]
22307         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22308         (CHECK_1_NULL_OK): Likewise.
22309         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22310         (__fxstat): Do not use CHECK_1.
22311         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22312         <bp-checks.h>.
22313         (___fxstat64): Do not use CHECK_1.
22314         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22315         <bp-checks.h>.
22316         (__fxstatat): Do not use CHECK_1.
22317         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22318         <bp-checks.h>.
22319         (__fxstatat64): Do not use CHECK_1.
22320         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22321         <bp-checks.h>.
22322         (__fxstat): Do not use CHECK_1.
22323         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22324         <bp-checks.h>.
22325         (__fxstatat): Do not use CHECK_1.
22326         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22327         <bp-checks.h>.
22328         (__getresgid): Do not use CHECK_1.
22329         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22330         <bp-checks.h>.
22331         (__getresuid): Do not use CHECK_1.
22332         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22333         <bp-checks.h>.
22334         (__lxstat): Do not use CHECK_1.
22335         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22336         <bp-checks.h>.
22337         (__old_msgctl): Do not use CHECK_1.
22338         (__new_msgctl): Likewise.
22339         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22340         <bp-checks.h>.
22341         (__new_setrlimit): Do not use CHECK_1.
22342         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22343         <bp-checks.h>.
22344         (__old_shmctl): Do not use CHECK_1.
22345         (__new_shmctl): Likewise.
22346         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22347         <bp-checks.h>.
22348         (__xstat): Do not use CHECK_1.
22349         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22350         (__lxstat): Do not use CHECK_1.
22351         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22352         <bp-checks.h>.
22353         (___lxstat64): Do not use CHECK_1.
22354         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22355         (__old_msgctl): Do not use CHECK_1.
22356         (__new_msgctl): Likewise.
22357         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22358         <bp-checks.h>.
22359         (__gettimeofday): Do not use CHECK_1.
22360         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22361         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22362         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22363         <bp-checks.h>.
22364         (__gettimeofday): Do not use CHECK_1.
22365         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22366         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22367         (__new_shmctl): Do not use CHECK_1.
22368         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22369         <bp-checks.h>.
22370         (do_sigtimedwait): Do not use CHECK_1.
22371         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22372         <bp-checks.h>.
22373         (do_sigwaitinfo): Do not use CHECK_1.
22374         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22375         <bp-checks.h>.
22376         (msgctl): Do not use CHECK_1.
22377         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22378         <bp-checks.h>.
22379         (shmctl): Do not use CHECK_1.
22380         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22381         (ustat): Do not use CHECK_1.
22382         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22383         <bp-checks.h>.
22384         (__fxstat): Do not use CHECK_1.
22385         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22386         <bp-checks.h>.
22387         (__fxstatat): Do not use CHECK_1.
22388         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22389         <bp-checks.h>.
22390         (__lxstat): Do not use CHECK_1.
22391         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22392         <bp-checks.h>.
22393         (__xstat): Do not use CHECK_1.
22394         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22395         (__xstat): Do not use CHECK_1.
22396         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22397         (___xstat64): Do not use CHECK_1.
22398
22399         [BZ #13550]
22400         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
22401         definitions.
22402         (CHECK_BOUNDS_HIGH): Likewise.
22403         * string/strcpy.c: Do not include <bp-checks.h>.
22404         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
22405
22406 2013-02-07  Roland McGrath  <roland@hack.frob.com>
22407
22408         * nscd/nscd-client.h (__nscd_drop_map_ref):
22409         Add __attribute__ ((unused)).
22410         * nis/nss-nisplus.h (niserr2nss): Likewise.
22411
22412         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
22413         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
22414
22415         * csu/libc-tls.c (init_static_tls, init_slotinfo):
22416         Remove inline keyword.
22417         * include/rounding-mode.h (round_away): Likewise.
22418         * libio/wfileops.c (adjust_wide_data): Likewise.
22419         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
22420         (__m128i_strloadu_tolower): Likewise.
22421         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
22422         (__m128i_strloadu_tolower): Likewise.
22423         * time/mktime.c (ydhms_diff): Likewise.
22424         * locale/elem-hash.h (elem_hash): Likewise.
22425         * locale/setlocale.c (setdata): Likewise.
22426         * posix/regex_internal.h (re_string_char_size_at): Likewise.
22427         (re_string_wchar_at): Likewise.
22428         (bitset_not, bitset_merge, bitset_mask): Likewise.
22429         [!(__GNUC__ > 3)] (inline): Remove macro.
22430         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
22431         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
22432         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22433         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22434         * string/memcmp.c (memcmp_bytes): Likewise.
22435         * locale/programs/locarchive.c (compute_hashval): Likewise.
22436         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
22437         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
22438         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
22439         * nss/getent.c (print_rpc, print_protocols): Likewise.
22440         (print_passwd, print_group, print_aliases): Likewise.
22441         * nis/nss-nisplus.h (niserr2nss): Likewise.
22442         * nscd/connections.c (restart_p): Likewise.
22443         Change return type to bool.
22444
22445 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22446
22447         * Makeconfig (all-Depend-files): Add existing
22448         $(sorted-subdirs:=/Depend) files.
22449         (all-subdirs): Remove nss.
22450         * sysdeps/unix/inet/Subdirs: Add it here instead.
22451         * hesiod/Depend: New file.
22452
22453         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22454         instead of calling alloca.
22455
22456         * io/lseek.c (__lseek): Rename to __libc_lseek.
22457         Define __lseek as an alias.
22458
22459         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22460
22461 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22462
22463         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22464         else clause and remove check for non-standard endianness.
22465
22466 2013-02-04  David S. Miller  <davem@davemloft.net>
22467
22468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22469
22470 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22471
22472         [BZ #13550]
22473         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22474         (__ubp_memchr): Remove prototype.
22475         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22476         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22477         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22478         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22479         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22480         Remove alias.
22481         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22482         (__ubp_memchr): Likewise.
22483         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22484         (__ubp_memchr): Likewise.
22485         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22486         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22487         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22488         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22489         CHECK_STRING.
22490         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22491         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22492         (__getcwd): Do not use CHECK_STRING.
22493         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22494         <bp-checks.h>.
22495         (__real_chown): Do not use CHECK_STRING.
22496         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22497         <bp-checks.h>.
22498         (fchownat): Do not use CHECK_STRING.
22499         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22500         CHECK_STRING.
22501         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22502         <bp-checks.h>.
22503         (__lchown): Do not use CHECK_STRING.
22504         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22505         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22506         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22507         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22509         include <bp-checks.h>.
22510         (truncate64): Do not use CHECK_STRING.
22511         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22512         <bp-checks.h>.
22513         (__real_chown): Do not use CHECK_STRING.
22514         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22515         <bp-checks.h>.
22516         (__lchown): Do not use CHECK_STRING.
22517         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22518         <bp-checks.h>.
22519         (__chown): Do not use CHECK_STRING.
22520         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22521         <bp-checks.h>.
22522         (truncate64): Do not use CHECK_STRING.
22523         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22524         Likewise.
22525         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22526         (__xmknod): Do not use CHECK_STRING.
22527         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22528         <bp-checks.h>.
22529         (__xmknodat): Do not use CHECK_STRING.
22530         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22531         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22532
22533 2013-02-04  Andreas Schwab  <schwab@suse.de>
22534
22535         [BZ #14142]
22536         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22537         * include/netdb.h: Likewise for h_errno.
22538         * elf/tst-stackguard1.c: Include <tls.h>.
22539
22540 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22541
22542         * elf/link.h (struct link_map): Extend the l_addr comment.
22543         * include/link.h (struct link_map): Likewise.
22544
22545 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22546
22547         [BZ #13550]
22548         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22549         (BOUNDED_1): Remove macro.
22550         * debug/backtrace.c: Don't include <bp-checks.h>.
22551         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22552         (__backtrace): Likewise.
22553         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22554         <bp-checks.h>.
22555         (__backtrace): Don't use BOUNDED_1.
22556         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22557         <bp-checks.h>.
22558         (__backtrace): Don't use BOUNDED_1.
22559         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22560         (__backtrace): Don't use BOUNDED_1.
22561         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22562         (shmat): Don't use BOUNDED_N.
22563
22564 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22565
22566         [BZ #13550]
22567         * sysdeps/generic/bp-start.h: Remove file.
22568         * csu/libc-start.c: Don't include <bp-start.h>.
22569         (LIBC_START_MAIN): Set up __environ directly instead of using
22570         INIT_ARGV_and_ENVIRON.
22571         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22572         <bp-start.h>.
22573
22574         [BZ #13550]
22575         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22576         definitions.
22577         (CHECK_FCNTL): Likewise.
22578         (CHECK_N_PAGES): Likewise.
22579
22580         [BZ #13550]
22581         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22582         definitions.
22583         (CHECK_SIGSET_NULL_OK): Likewise.
22584         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22585         <bp-checks.h>.
22586         (sigpending): Don't use CHECK_SIGSET.
22587         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22588         <bp-checks.h>.
22589         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22590         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22591         <bp-checks.h>.
22592         (do_sigsuspend): Don't use CHECK_SIGSET.
22593         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22594         use CHECK_SIGSET.
22595         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22596         (do_sigwait): Don't use CHECK_SIGSET.
22597         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22598         use CHECK_SIGSET.
22599         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22600         include <bp-checks.h>.
22601         (sigpending): Don't use CHECK_SIGSET.
22602         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22603         include <bp-checks.h>.
22604         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22605         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22606         <bp-checks.h>.
22607         (sigpending): Don't use CHECK_SIGSET.
22608         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22609         <bp-checks.h>.
22610         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22611
22612         [BZ #13550]
22613         * sysdeps/generic/bp-semctl.h: Remove file.
22614         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
22615         <bp-checks.h> and <bp-semctl.h>.
22616         (__old_semctl): Don't use CHECK_SEMCTL.
22617         (__new_semctl): Likewise.
22618         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
22619         and <bp-semctl.h>.
22620         (__old_semctl): Don't use CHECK_SEMCTL.
22621         (__new_semctl): Likewise.
22622         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22623         <bp-checks.h> and <bp-semctl.h>.
22624         (__old_semctl): Don't use CHECK_SEMCTL.
22625         (__new_semctl): Likewise.
22626         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22627         <bp-checks.h> and <bp-semctl.h>.
22628         (semctl): Don't use CHECK_SEMCTL.
22629
22630         [BZ #13550]
22631         * Makerules (elide-bp-thunks): Remove variable.
22632         (elide-routines.oS): Don't use $(elide-bp-thunks).
22633         (elide-routines.os): Likewise.
22634         (elide-routines.o): Likewise.
22635         (elide-routines.op): Likewise.
22636         (elide-routines.og): Likewise.
22637         (objects): Don't use $(bp-thunks).
22638         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22639         include.
22640         (common-generated): Do not add s-proto-bp.d.
22641         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22642         (int): Likewise.
22643         (typ): Likewise.
22644         Do not generate makefile rules for bounded-pointer thunks.
22645         * sysdeps/generic/bp-thunks.h: Remove file.
22646         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22647         * sysdeps/unix/s-proto-bp.S: Likewise.
22648
22649         [BZ #15062]
22650         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22651         parts of result separately when argument is not close to line from
22652         -i to i and one part of argument is small.
22653         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22654         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22655         * math/libm-test.inc (cacos_test): Add more tests.
22656         (casin_test): Likewise.
22657         (casinh_test): Likewise.
22658         * sysdeps/i386/fpu/libm-test-ulps: Update.
22659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22660
22661 2013-01-31  David S. Miller  <davem@davemloft.net>
22662
22663         * po/de.po: Update from translation team.
22664
22665 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22666
22667         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22668
22669 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22670
22671         * configure.in (_AC_PROG_CC_C89): New definition.
22672         * configure: Regenerate.
22673
22674         * configure.in (AC_PROG_CPP): New definition.
22675         * configure: Regenerate.
22676
22677 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22678
22679         * debug/tst-backtrace.h: New file.
22680         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22681         (ret): Remove variable.
22682         (x): Likewise.
22683         (FAIL): Remove macro.
22684         (NO_INLINE): Likewise.
22685         (fn1): Use match function instead of strstr.
22686         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22687         (ret): Remove variable.
22688         (x): Likewise.
22689         (FAIL): Remove macro.
22690         (NO_INLINE): Likewise.
22691         (fn): Use match function instead of strstr.
22692         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22693         (ret): Remove variable.
22694         (x): Likewise.
22695         (FAIL): Remove macro.
22696         (NO_INLINE): Likewise.
22697         (handle_signal): Use match function instead of strstr.
22698         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22699         (ret): Remove variable.
22700         (x): Likewise.
22701         (FAIL): Remove macro.
22702         (NO_INLINE): Likewise.
22703         (handle_signal): Use match function instead of strstr.
22704
22705 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22706
22707         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22708
22709 2013-01-23  David S. Miller  <davem@davemloft.net>
22710
22711         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22712         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22713         argument of CAS if possible.
22714         * sysdeps/sparc/sparc64/bits/atomic.h
22715         (__arch_compare_and_exchange_val_32_acq): Likewise.
22716         (__arch_compare_and_exchange_val_64_acq): Likewise.
22717
22718 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22719
22720         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22721         * sysdeps/posix/ulimit.c: ... this.
22722         Include <limits.h>.
22723         * sysdeps/unix/bsd/ulimit.c: Remove file.
22724
22725 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22726
22727         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22728         (LDFLAGS-tst-array5): Likewise.
22729
22730 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22731
22732         [BZ #15036]
22733         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22734         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22735         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22736         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22737
22738 2013-01-21  David S. Miller  <davem@davemloft.net>
22739
22740         * sysdeps/sparc/backtrace.c: New file.
22741         * sysdeps/sparc/sparc32/backtrace.h: New file.
22742         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22743         * sysdeps/sparc/sparc64/backtrace.h: New file.
22744         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22745         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22746         -funwind-tables.
22747
22748 2013-01-21  Andreas Schwab  <schwab@suse.de>
22749
22750         [BZ #15020]
22751         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22752         closed its stdout.
22753
22754 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22755
22756         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22757         "mpa2.h".
22758         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22759
22760 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22761             Mark Mitchell  <mark@codesourcery.com>
22762             Tom de Vries  <tom@codesourcery.com>
22763             Paul Pluzhnikov  <ppluzhnikov@google.com>
22764
22765         * debug/tst-backtrace2.c: New file.
22766         * debug/tst-backtrace3.c: Likewise.
22767         * debug/tst-backtrace4.c: Likewise.
22768         * debug/tst-backtrace5.c: Likewise.
22769         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22770         (CFLAGS-tst-backtrace3.c): Likewise.
22771         (CFLAGS-tst-backtrace4.c): Likewise.
22772         (CFLAGS-tst-backtrace5.c): Likewise.
22773         (LDFLAGS-tst-backtrace2): Likewise.
22774         (LDFLAGS-tst-backtrace3): Likewise.
22775         (LDFLAGS-tst-backtrace4): Likewise.
22776         (LDFLAGS-tst-backtrace5): Likewise.
22777         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22778         tst-backtrace4 and tst-backtrace5.
22779
22780 2013-01-18  Anton Blanchard  <anton@samba.org>
22781             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22782
22783         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22784         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22785         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22786         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22788         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22789         "+r" and remove output regs list as redundant.  Add explicit inline
22790         asm to specify register of return val to work around compiler codegen
22791         bug.  Remove (int) cast on return value.  Add return type parameter to
22792         use in macro so that this macro does not truncate return value for
22793         64-bit values.
22794         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22795         pass to INTERNAL_VSYSCALL_NCS.
22796         (INLINE_VSYSCALL): Add 'long int' as return type to
22797         INTERNAL_VSYSCALL_NCS macro invocation.
22798         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22799         INTERNAL_VSYSCALL_NCS macro invocation.
22800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22801
22802 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22803
22804         [BZ #14496]
22805         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22806         Fix application of SIMD FP exception mask.
22807
22808         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22809         mp_no from a power of two.
22810         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22811         __mpexp_twomm1.  Use __pow_mp.
22812
22813         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22814         multiplication.
22815
22816 2013-01-17  David S. Miller  <davem@davemloft.net>
22817
22818         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22819
22820 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22821
22822         [BZ #15023]
22823         * include/complex.h: Condition contents on [!_COMPLEX_H].
22824         (__kernel_casinhf): New prototype.
22825         (__kernel_casinh): Likewise.
22826         (__kernel_casinhl): Likewise.
22827         * math/Makefile (libm_calls): Add k_casinh.
22828         * math/k_casinh.c: New file.
22829         * math/k_casinhf.c: Likewise.
22830         * math/k_casinhl.c: Likewise.
22831         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22832         finite nonzero arguments.
22833         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22834         finite nonzero arguments.
22835         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22836         finite nonzero arguments.
22837         * math/s_casinh.c: Do not include <float.h>.
22838         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22839         * math/s_casinhf.c: Do not include <float.h>.
22840         (__casinhf): Move code for finite nonzero arguments to
22841         k_casinhf.c.
22842         * math/s_casinhl.c: Do not include <float.h>.
22843         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22844         redefine.
22845         (__casinhl): Move code for finite nonzero arguments to
22846         k_casinhl.c.
22847         * math/libm-test.inc (cacos_test): Add more tests.
22848         * sysdeps/i386/fpu/libm-test-ulps: Update.
22849         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22850
22851 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22852
22853         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22854         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22855         [!HAVE_MREMAP]: Remove [defined linux] case.
22856         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22857
22858 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22859
22860         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22861
22862 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22863
22864         * elf/elf.h (R_386_SIZE32): New relocation.
22865         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22866         R_386_SIZE32.
22867         (elf_machine_rela): Likewise.
22868         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22869         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22870
22871 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22872
22873         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22874         (FP_FAST_FMA): Do not define.
22875         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22876         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22877         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22878         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22879         !_SOFT_FLOAT]: Likewise.
22880         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22881         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22882         value.
22883         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22884         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22885         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22886         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22887         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22888         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22889         file.
22890
22891 2013-01-16  Andreas Schwab  <schwab@suse.de>
22892
22893         [BZ #14327]
22894         * include/stdlib.h (__mktemp): Add declaration.
22895         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22896         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22897
22898 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22899
22900         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22901         definitions.
22902         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22903         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22904         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22905         definitions here.
22906         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22907         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22908         definitions.
22909         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22910         and ONE.
22911         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22912         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22913         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22914         definitions.
22915         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22916         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22917         definitions.
22918         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22919
22920         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22921
22922 2013-01-15  David S. Miller  <davem@davemloft.net>
22923
22924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22925         trunc{,f} to libm-sysdep_routes.
22926         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22928         file.
22929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22931         file.
22932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22933         file.
22934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22936         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22937         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22938         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22939         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22940         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22941         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22942
22943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22944         nearbyint{,f} to libm-sysdep_routes.
22945         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22947         New file.
22948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22949         file.
22950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22951         New file.
22952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22953         file.
22954         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22955         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22956         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22957         file.
22958         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22959         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22960         file.
22961         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22962         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22963         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22964
22965         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22966         libc_feholdexcept and libc_fesetenv.
22967
22968 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22969
22970         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22971
22972 2013-01-14  David S. Miller  <davem@davemloft.net>
22973
22974         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22975         (SPARC_ASM_VIS2_IFUNC): Likewise.
22976         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22978         use of 'siam' instruction.
22979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22980         Likewise.
22981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22982         Likewise.
22983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22984         Likewise.
22985         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22986         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22987         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22988         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22990         file.
22991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22992         file.
22993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22994         file.
22995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22996         file.
22997         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22998         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22999         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
23000         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
23001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
23002         new VIS2 routines.
23003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23006         Likewise.
23007         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23008         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23009         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23010         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
23012         routines to libm-sysdep_routines.
23013         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23014
23015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23016         fdim/fdimf to libm-sysdep_routines.
23017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
23018         file.
23019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
23020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
23021         file.
23022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
23023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
23024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
23025         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
23026         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
23027         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
23028         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
23029
23030 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
23031
23032         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
23033         to optimize copies.
23034
23035         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
23036         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23037         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23038
23039         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
23040         local variable MPTWO.
23041         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
23042         Likewise.
23043
23044 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23045
23046         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
23047         GLOB_NOESCAPE.
23048
23049 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23050
23051         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
23052
23053 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23054
23055         * manual/pattern.texi (glob_t): Document gl_flags.
23056         (glob64_t): Likewise.
23057
23058 2013-01-11  David S. Miller  <davem@davemloft.net>
23059
23060         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23061         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23062         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23063         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23064         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23065         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23066         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23067         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23068         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23069         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23070         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23071         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23072         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23073
23074         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23075         sparc V9 rather than using V8 code.
23076         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23077         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23078
23079         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23080         Move to...
23081         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23082         Here.
23083
23084 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23085
23086         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23087         not in the main loop.
23088         * configure: Regenerated.
23089
23090 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23091
23092         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23093         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23094         to just #else.
23095         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23096         [!__GLIBC_HAVE_LONG_LONG] case.
23097         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23098         condition to just #else.
23099         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23100         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23101         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23102         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23103         unconditional.
23104         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23105         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23106         #elif condition to just #else.
23107         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23108         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23109         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23110         #elif condition to just #else.
23111
23112 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23113
23114         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23115         (EF_MIPS_ARCH_64): Fix value.
23116         (EF_MIPS_ARCH_32R2): New.
23117         (EF_MIPS_ARCH_64R2): New.
23118
23119 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23120
23121         * Makeconfig (+link-pie-before-libc): New.
23122         (+link-pie-after-libc): Likewise.
23123         (+link-pie-tests): Likewise.
23124         (+link-pie): Rewritten.
23125         (link-before-libc): Remove $(config-LDFLAGS).
23126         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23127         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23128         (config-LDFLAGS): Renamed to ...
23129         (rtld-LDFLAGS): This.
23130         (rtld-tests-LDFLAGS): New macro.
23131         (link-libc-rpath-link): Likewise.
23132         (link-libc-tests-rpath-link): Likewise.
23133         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23134         (link-libc): Prepand $(link-libc-rpath-link).
23135         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23136         (test-program-prefix): New macro.
23137         (test-via-rtld-prefix): Likewise.
23138         (test-program-cmd): Likewise.
23139         (host-test-program-cmd): Likewise.
23140         * Makefile ($(common-objpfx)testrun.sh): Replace
23141         $(run-program-prefix) with $(test-program-prefix).
23142         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23143         $(rtld-LDFLAGS).
23144         ($(common-objpfx)shlib.lds): Likewise.
23145         (build-module-helper): Likewise.
23146         ($(common-objpfx)format.lds): Likewise.
23147         * Rules (binaries-pie-tests): New.
23148         (binaries-pie-notests): Likewise.
23149         (binaries-pie): Rewritten.
23150         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23151         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23152         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23153         (make-test-out): Replace $(host-built-program-cmd) with
23154         $(host-test-program-cmd).
23155         * config.make.in (build-hardcoded-path-in-tests): New variable.
23156         * configure.in (--enable-hardcoded-path-in-tests): New configure
23157         option.
23158         (hardcoded_path_in_tests): New AC_SUBST.
23159         * configure: Regenerated.
23160         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23161         $(built-program-cmd) with $(test-program-cmd).
23162         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23163         (test_program_cmd): This.
23164         * elf/Makefile ($(objpfx)order.out): Run test with
23165         $(test-program-prefix).
23166         ($(objpfx)order2.out): Likewise.
23167         ($(objpfx)tst-initorder.out): Likewise.
23168         ($(objpfx)tst-initorder2.out): Likewise.
23169         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23170         $(test-program-cmd).
23171         ($(objpfx)tst-array1-static.out): Likewise.
23172         ($(objpfx)tst-array2.out): Likewise.
23173         ($(objpfx)tst-array3.out): Likewise.
23174         ($(objpfx)tst-array4.out): Likewise.
23175         ($(objpfx)tst-array5.out): Likewise.
23176         ($(objpfx)tst-array5-static.out): Likewise.
23177         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23178         $(test-program-cmd).
23179         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23180         $(run-program-prefix) with $(test-program-prefix).
23181         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23182         (test_program_prefix): This.
23183         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23184         $(run-program-prefix) with $(test-program-prefix).
23185         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23186         (test_program_prefix): This.
23187         * iconvdata/tst-tables.sh: Likewise.
23188         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23189         $(run-program-prefix) with $(test-program-prefix).
23190         ($(objpfx)tst-translit.out): Likewise.
23191         ($(objpfx)tst-gettext2.out): Likewise.
23192         ($(objpfx)tst-gettext4.out): Likewise.
23193         ($(objpfx)tst-gettext6.out): Likewise.
23194         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23195         (test_program_prefix): This.
23196         * intl/tst-gettext2.sh: Likewise.
23197         * intl/tst-gettext4.sh  Likewise.
23198         * intl/tst-gettext6.sh: Likewise.
23199         * intl/tst-translit.sh: Likewise.
23200         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23201         with $(test-program-cmd).
23202         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23203         $(run-program-prefix) with $(test-program-prefix).
23204         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23205         (test_program_prefix): This.
23206         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23207         $(run-program-prefix) with $(test-program-prefix).
23208         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23209         (test_program_prefix): This.
23210         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23211         * posix/Makefile ($(objpfx)globtest.out): Replace
23212         $(run-via-rtld-prefix) and $(test-wrapper) with
23213         $(test-program-prefix) and $(test-via-rtld-prefix).
23214         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23215         $(test-program-prefix).
23216         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23217         $(host-test-program-cmd).
23218         (tst-spawn-ARGS): Likewise.
23219         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23220         $(test-program-prefix).
23221         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23222         (test_via_rtld_prefix): This.
23223         (test_wrapper): Renamed to ...
23224         (test_program_prefix): This.
23225         (run_program_prefix): Replaced by test_program_prefix.
23226         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23227         (test_program_prefix): This.
23228         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23229         with $(host-test-program-cmd).
23230         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23231         $(run-program-prefix) with $(test-program-prefix).
23232         ($(objpfx)tst-printf.out): Likewise.
23233         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23234         $(test-program-cmd).
23235         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23236         (test_program_prefix): This.
23237         * stdio-common/tst-unbputc.sh: Likewise.
23238         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23239         $(run-program-prefix) with $(test-program-prefix).
23240         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23241         (test_program_prefix): This.
23242         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23243         $(built-program-cmd) with $(test-program-cmd).
23244
23245 2013-01-11  Andreas Jaeger  <aj@suse.de>
23246
23247         [BZ #15003]
23248         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23249         value. Sync with Linux 3.7.
23250
23251 2013-01-10  David S. Miller  <davem@davemloft.net>
23252
23253         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23254         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23255         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23256
23257 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23258
23259         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23260         never set.
23261         * configure: Regenerated.
23262
23263 2013-01-10  David S. Miller  <davem@davemloft.net>
23264
23265         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23266         sparc V9 rather than using V8 code.
23267         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23268         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23269
23270 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23271
23272         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23273         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23274         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23275         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23276         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23277         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23278         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23279         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23280         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23281         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23282         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23283         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23284         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23285         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23286         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23287         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23288         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23289         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23290         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23291         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23292         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23293         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23294         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23295         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23296         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23297         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23298         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23299
23300 2013-01-10  David S. Miller  <davem@davemloft.net>
23301
23302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23303
23304 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23305
23306         * posix/Makefile (tests-static): New variable.
23307         (tests): Add $(tests-static).
23308         (tst-exec-static-ARGS): New variable.
23309         (tst-spawn-static-ARGS): Likewise.
23310         * posix/tst-exec-static.c: New file.
23311         * posix/tst-spawn-static.c: Likewise.
23312         * posix/tst-exec.c: Support run directly.
23313         * posix/tst-spawn.c: Likewise.
23314
23315 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23316
23317         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23318         long.
23319         * math/bits/mathcalls.h (llrint): Likewise.
23320         (llround): Likewise.
23321         * stdlib/stdlib.h (struct drand48_data): Likewise.
23322         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23323         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23324         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23325         Likewise.
23326         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23327         Likewise.
23328         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23329         (elf_greg_t): Likewise.
23330         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23331         (__jmp_buf): Likewise.
23332         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23333         definitions.
23334         (llrint): Likewise, for all definitions.
23335         (llrintl): Likewise.
23336
23337         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23338         Remove [__GNUC__] condition.
23339         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23340         condition to just [__USE_ISOC99].
23341         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23342
23343 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23344
23345         [BZ #14200]
23346         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23347         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23348         defined.
23349         (_POSIX_V6_ILP32_OFF32): Likewise.
23350         (_XBS5_ILP32_OFF32): Likewise.
23351         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23352         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23353
23354 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23355
23356         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23357
23358         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23359         doubles __mpexp_twomm1.  Adjust usage.
23360         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23361         Remove.
23362
23363 2013-01-10  Andreas Schwab  <schwab@suse.de>
23364
23365         [BZ #14964]
23366         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23367         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23368
23369 2013-01-09  David S. Miller  <davem@davemloft.net>
23370
23371         [BZ #15003]
23372         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23373         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23374         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23375         (TCP_FASTOPEN): Define.
23376         (tcp_repair_opt): New structure.
23377         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23378         enum values.
23379         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23380         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23381         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23382         (tcp_cookie_transactions): New structure.
23383
23384 2013-01-09  Anton Blanchard  <anton@samba.org>
23385
23386         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23387         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23388         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23389         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23390
23391 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23392
23393         * include/features.h (__USE_ANSI): Remove.
23394
23395 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23396
23397         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23398
23399         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
23400
23401 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
23402
23403         * sysdeps/s390/fpu/libm-test-ulps: Update.
23404
23405         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23406
23407         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
23408         (__acr): Likewise.
23409         (__cpy): Likewise.
23410         (norm): Likewise.
23411         (denorm): Likewise.
23412         (__mp_dbl): Likewise.
23413         (__dbl_mp): Likewise.
23414         (add_magnitudes): Likewise.
23415         (sub_magnitudes): Likewise.
23416         (__add): Likewise.
23417         (__sub): Likewise.
23418         (__mul): Likewise.
23419         (__inv): Likewise.
23420         (__dvd): Likewise.
23421         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
23422         (__acr): Likewise.
23423         (__cpy): Likewise.
23424         (norm): Likewise.
23425         (denorm): Likewise.
23426         (__mp_dbl): Likewise.
23427         (__dbl_mp): Likewise.
23428         (add_magnitudes): Likewise.
23429         (sub_magnitudes): Likewise.
23430         (__add): Likewise.
23431         (__sub): Likewise.
23432         (__mul): Likewise.
23433         (__inv): Likewise.
23434         (__dvd): Likewise.
23435         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
23436         (__acr): Likewise.
23437         (__cpy): Likewise.
23438         (norm): Likewise.
23439         (denorm): Likewise.
23440         (__mp_dbl): Likewise.
23441         (__dbl_mp): Likewise.
23442         (add_magnitudes): Likewise.
23443         (sub_magnitudes): Likewise.
23444         (__add): Likewise.
23445         (__sub): Likewise.
23446         (__mul): Likewise.
23447         (__inv): Likewise.
23448         (__dvd): Likewise.
23449
23450 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23451
23452         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23453         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23454         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23455         2 && __USE_EXTERN_INLINES]: Likewise.
23456
23457 2013-01-08  Andreas Jaeger  <aj@suse.de>
23458
23459         [BZ# 14985]
23460         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23461         Remove.
23462         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23463         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23464
23465 2013-01-07  Anton Blanchard  <anton@samba.org>
23466
23467         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23468         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23469         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23470         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23471         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23472         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23473         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23474         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23475         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23476         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23477         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23478         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23479         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23480         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23481         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23482         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23483         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23484         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23485         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23486         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23487         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23488         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23489         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23490         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23491         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23492         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23493         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23494         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23495         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23496         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23497         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23498         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23499         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23500         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23501         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23502         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23503         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23504         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23505         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23506         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23507         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23508         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23509         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23510
23511 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23512
23513         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23514         (__MALLOC_PMT): Likewise.
23515         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23516         [__GNUC__], only on [_LIBC].
23517         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23518         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23519         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23520         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23521         forward declaration.
23522         (realloc_hook_ini): Likewise.
23523         (memalign_hook_ini): Likewise.
23524         (__libc_memalign): Do not use __MALLOC_PMT in variable
23525         declaration.
23526         (__libc_valloc): Likewise.
23527         (__libc_pvalloc): Likewise.
23528         (__libc_calloc): Likewise.
23529         (__posix_memalign): Likewise.
23530
23531         [BZ #14996]
23532         * math/s_casinh.c: Include <float.h>.
23533         (__casinh): Do not do computation with squaring and square root
23534         for large arguments.
23535         * math/s_casinhf.c: Include <float.h>.
23536         (__casinhf): Do not do computation with squaring and square root
23537         for large arguments.
23538         * math/s_casinhl.c: Include <float.h>.
23539         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23540         (__casinhl): Do not do computation with squaring and square root
23541         for large arguments.
23542         * math/libm-test.inc (casin_test): Add more tests.
23543         (casinh_test): Likewise.
23544         * sysdeps/i386/fpu/libm-test-ulps: Update.
23545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23546
23547 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23548
23549         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23550         (__x86_64_raw_data_cache_size): Likewise.
23551         (__x86_64_data_cache_size_half): Likewise.
23552         (__x86_64_raw_data_cache_size_half): Likewise.
23553         (__x86_64_shared_cache_size): Likewise.
23554         (__x86_64_raw_shared_cache_size): Likewise.
23555         (__x86_64_shared_cache_size_half): Likewise.
23556         (__x86_64_raw_shared_cache_size_half): Likewise.
23557         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23558         to ...
23559         (__x86_data_cache_size): This.
23560         (__x86_64_raw_data_cache_size): Renamed to ...
23561         (__x86_raw_data_cache_size): This.
23562         (__x86_64_data_cache_size_half): Renamed to ...
23563         (__x86_data_cache_size_half): This.
23564         (__x86_64_raw_data_cache_size_half): Renamed to ...
23565         (__x86_raw_data_cache_size_half): This.
23566         (__x86_64_shared_cache_size): Renamed to ...
23567         (__x86_shared_cache_size): This.
23568         (__x86_64_raw_shared_cache_size): Renamed to ...
23569         (__x86_raw_shared_cache_size): This.
23570         (__x86_64_shared_cache_size_half): Renamed to ...
23571         (__x86_shared_cache_size_half): This.
23572         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23573         (__x86_raw_shared_cache_size_half): This.
23574         * sysdeps/x86_64/memcpy.S: Updated.
23575         * sysdeps/x86_64/memset.S: Likewise.
23576         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23577         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23578         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23579
23580 2013-01-04  David S. Miller  <davem@davemloft.net>
23581
23582         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23583
23584 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23585
23586         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23587         1 to avoid redefinition warning.
23588         (__USE_GNU): Don't define.
23589         (init_signaling_nan): Protoize.
23590
23591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23592
23593 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23594
23595         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23596         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23597         (__cpymn): Likewise.
23598         (norm): Remove commented code.
23599         (denorm): Likewise.
23600         (__mp_dbl): Likewise.
23601         (__inv): Likewise.
23602         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23603         (__cpymn): Likewise.
23604         (norm): Remove commented code.
23605         (denorm): Likewise.
23606         (__mp_dbl): Likewise.
23607         (__inv): Likewise.
23608
23609         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23610         mp_no value for 1.0 and 2.0.
23611         (norm): Use RADIXI instead of radixi.d.
23612         (denorm): Likewise.
23613         (__mul): Use 0.0 instead of zero.d.
23614         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23615         mp_no value for 1.0 and 2.0.
23616         (norm): Use RADIXI instead of radixi.d.
23617         (denorm): Likewise.
23618         (__mul): Use 0.0 instead of zero.d.
23619
23620 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23621
23622         [BZ #14994]
23623         * math/s_casinh.c (__casinh): Reduce finite argument to first
23624         quadrant then set signs of results at the end.
23625         * math/s_casinhf.c (__casinhf): Likewise.
23626         * math/s_casinhl.c (__casinhl): Likewise.
23627         * math/libm-test.inc (casin_test): Add more tests.
23628         (casinh_test): Likewise.
23629         * sysdeps/i386/fpu/libm-test-ulps: Update.
23630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23631
23632 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23633
23634         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23635
23636         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23637
23638         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23639         declarations.
23640         (denorm): Likewise.
23641         (__mp_dbl): Likewise.
23642         (__inv): Likewise.
23643
23644         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23645         and adjust the header comment.
23646
23647         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23648         variable name from declaration.
23649
23650 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23651
23652         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23653         Initialize COMMON_CPUID_INDEX_7 element.
23654         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23655         (CPUID_RTM): Likewise.
23656         (HAS_RTM): Likewise.
23657         (COMMON_CPUID_INDEX_7): New enum.
23658
23659 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23660
23661         [BZ #14981]
23662         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23663         size is zero, record memory as freed.
23664
23665 2013-01-03  Andreas Jaeger  <aj@suse.de>
23666
23667         * po/ia.po: Add new Interlingua translation.
23668
23669 2012-01-03  Allan McRae  <allan@archlinux.org>
23670
23671         * locale/programs/localedef.c: Fix description of '--posix' flag.
23672
23673 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23674
23675         * NEWS: Update dates in second copyright notice.
23676         * README: Update copyright dates in example.
23677         * manual/libc.texinfo: Update copyright dates.
23678         * scripts/test-installation.pl: Update copyright date in --version
23679         output.
23680
23681         * hurd/ctty-input.c: Fix copyright notice formatting.
23682         * hurd/ctty-output.c: Likewise.
23683         * hurd/dtable.c: Likewise.
23684         * hurd/hurd-raise.c: Likewise.
23685         * hurd/hurdprio.c: Likewise.
23686         * hurd/msgportdemux.c: Likewise.
23687         * misc/sys/file.h: Likewise.
23688         * misc/sys/ioctl.h: Likewise.
23689         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23690         * sysdeps/mach/hurd/chdir.c: Likewise.
23691         * sysdeps/mach/hurd/fchdir.c: Likewise.
23692         * sysdeps/mach/hurd/rename.c: Likewise.
23693         * sysdeps/mach/hurd/rmdir.c: Likewise.
23694         * sysdeps/mach/hurd/seekdir.c: Likewise.
23695         * sysdeps/mach/hurd/setsid.c: Likewise.
23696         * sysdeps/posix/wait3.c: Likewise.
23697
23698         * All files with FSF copyright notices: Update copyright dates
23699         using scripts/update-copyrights.
23700         * intl/plural.c: Regenerated.
23701         * locale/programs/charmap-kw.h: Likewise.
23702         * locale/programs/locfile-kw.h: Likewise.
23703
23704 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23705
23706         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23707         four values.
23708
23709         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23710         calculation loop and add branch prediction.
23711
23712         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23713         check access beyond bounds of m1np.
23714
23715         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23716         MPTWO.
23717         (__inv): Remove local variable MPTWO to use the global
23718         constant.
23719         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23720         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23721         variable MPTWO.
23722         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23723         MP3HALFS static const.
23724
23725 2013-01-01  David S. Miller  <davem@davemloft.net>
23726
23727         * po/ca.po: Update from translation team.
23728
23729 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23730
23731         * scripts/update-copyrights: New file.
23732         * Makeconfig: Reformat copyright notice.
23733         * ctype/ctype.h: Likewise.
23734         * debug/swprintf_chk.c: Likewise.
23735         * elf/dl-cache.c: Likewise.
23736         * elf/dl-debug.c: Likewise.
23737         * elf/dl-object.c: Likewise.
23738         * grp/initgroups.c: Likewise.
23739         * hurd/Makefile: Likewise.
23740         * hurd/hurd/signal.h: Likewise.
23741         * hurd/hurdfault.c: Likewise.
23742         * hurd/hurdioctl.c: Likewise.
23743         * hurd/hurdlookup.c: Likewise.
23744         * hurd/intr-msg.c: Likewise.
23745         * iconv/gconv_open.c: Likewise.
23746         * libio/swprintf.c: Likewise.
23747         * locale/lc-ctype.c: Likewise.
23748         * locale/nl_langinfo.c: Likewise.
23749         * mach/Machrules: Likewise.
23750         * mach/Makefile: Likewise.
23751         * malloc/obstack.h: Likewise.
23752         * manual/Makefile: Likewise.
23753         * manual/tsort.awk: Likewise.
23754         * misc/bits/stab.def: Likewise.
23755         * nis/nis_print_group_entry.c: Likewise.
23756         * nis/nis_table.c: Likewise.
23757         * nis/nss_compat/compat-pwd.c: Likewise.
23758         * nis/nss_compat/compat-spwd.c: Likewise.
23759         * po/Makefile: Likewise.
23760         * posix/fnmatch.c: Likewise.
23761         * posix/regex.h: Likewise.
23762         * resolv/Makefile: Likewise.
23763         * resolv/nss_dns/dns-network.c: Likewise.
23764         * resolv/res_hconf.c: Likewise.
23765         * scripts/gen-sorted.awk: Likewise.
23766         * soft-fp/soft-fp.h: Likewise.
23767         * stdio-common/printf.h: Likewise.
23768         * stdlib/monetary.h: Likewise.
23769         * stdlib/random.c: Likewise.
23770         * stdlib/random_r.c: Likewise.
23771         * sysdeps/generic/Makefile: Likewise.
23772         * sysdeps/gnu/Makefile: Likewise.
23773         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23774         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23775         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23776         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23777         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23778         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23779         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23780         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23781         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23782         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23783         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23784         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23785         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23786         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23787         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23788         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23789         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23790         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23791         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23792         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23793         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23794         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23795         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23796         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23797         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23798         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23799         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23800         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23801         * sysdeps/mach/hurd/errnos.awk: Likewise.
23802         * sysdeps/mach/hurd/fork.c: Likewise.
23803         * sysdeps/mach/hurd/getcwd.c: Likewise.
23804         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23805         * sysdeps/mach/hurd/mmap.c: Likewise.
23806         * sysdeps/mach/hurd/utimes.c: Likewise.
23807         * sysdeps/mach/hurd/xmknod.c: Likewise.
23808         * sysdeps/posix/profil.c: Likewise.
23809         * sysdeps/posix/readdir_r.c: Likewise.
23810         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23811         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23812         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23813         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23814         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23815         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23816         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23817         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23818         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23819         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23820         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23821         * sysdeps/pthread/lio_listio.c: Likewise.
23822         * sysdeps/sparc/dl-procinfo.h: Likewise.
23823         * sysdeps/unix/i386/sysdep.S: Likewise.
23824         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23825         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23826         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23827         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23829         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23830         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23831         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23832         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23833         * sysdeps/wordsize-32/divdi3.c: Likewise.
23834         * time/sys/time.h: Likewise.
23835         * wcsmbs/Makefile: Likewise.
23836
23837 2013-01-01  David S. Miller  <davem@davemloft.net>
23838
23839         * po/fr.po: Update from translation team.
23840
23841         * catgets/gencat.c: Update copyright year.
23842         * csu/version.c: Likewise.
23843         * debug/catchsegv.sh: Likewise.
23844         * debug/pcprofiledump.c: Likewise.
23845         * debug/xtrace.sh: Likewise.
23846         * elf/ldconfig.c: Likewise.
23847         * elf/ldd.bash.in: Likewise.
23848         * elf/pldd.c: Likewise.
23849         * elf/sotruss.ksh: Likewise.
23850         * elf/sprof.c: Likewise.
23851         * iconv/iconv_prog.c: Likewise.
23852         * iconv/iconvconfig.c: Likewise.
23853         * locale/programs/locale.c: Likewise.
23854         * locale/programs/localedef.c: Likewise.
23855         * login/programs/pt_chown.c: Likewise.
23856         * malloc/memusage.sh: Likewise.
23857         * malloc/memusagestat.c: Likewise.
23858         * malloc/mtrace.pl: Likewise.
23859         * nscd/nscd.c: Likewise.
23860         * nss/getent.c: Likewise.
23861         * nss/makedb.c: Likewise.
23862         * posix/getconf.c: Likewise.
23863
23864 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23865
23866         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23867         numbers.
23868
23869 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23870
23871         * math/bits/mathcalls.h (modf): Use __nonnull.
23872
23873 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23874
23875         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23876         (split): Use macro CN instead of the bare value.
23877         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23878         could be used.
23879         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23880         instead of the bare value.
23881         (power1): Likewise.
23882
23883 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23884
23885         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23886         __ATAN_TWOM.
23887         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23888
23889         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23890         their values.
23891         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23892         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23893         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23894         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23895
23896 2012-12-28  Andreas Jaeger  <aj@suse.de>
23897
23898         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23899         values are from Linux 3.7.
23900
23901         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23902         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23903
23904 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23905
23906         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23907         TRUE case.
23908
23909         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23910         (norm): Likewise.
23911         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23912         variables with preprocessor constants.
23913         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23914         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23915         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23916
23917 2012-12-27  Bruno Haible  <bruno@clisp.org>
23918
23919         [BZ #14317]
23920         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23921         only if needed.
23922
23923 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23924
23925         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23926         and use variable directly.
23927         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23928
23929         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23930         MPONE.
23931         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23932         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23933         variable MPONE.
23934         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23935         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23936         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23937         include directive.  Remove local variable MPONE.
23938         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23939         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23940         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23941
23942 2012-12-25  David S. Miller  <davem@davemloft.net>
23943
23944         * version.h (RELEASE): Set to "development".
23945         (VERSION): Set to "2.17.90".
23946         * NEWS: Add 2.18 section.
23947
23948 2012-12-21  David S. Miller  <davem@davemloft.net>
23949
23950         * po/hr.po: Update from translation team.
23951
23952 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23953
23954         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23955
23956 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23957
23958         * NEWS:  Mention new memcpy for MIPS.
23959
23960 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23961
23962         * manual/contrib.texi (Contributors): Spelling correction.
23963
23964 2012-12-15  David S. Miller  <davem@davemloft.net>
23965
23966         * po/ru.po: Update from translation team.
23967
23968 2012-12-13  David S. Miller  <davem@davemloft.net>
23969
23970         * NEWS: Mention IFUNC testsuite enhancements.
23971
23972         * po/pl.po: Update from translation team.
23973         * po/bg.po: Likewise.
23974
23975         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23976         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23977
23978 2012-12-11  David S. Miller  <davem@davemloft.net>
23979
23980         * po/sv.po: Update from translation team.
23981
23982         * po/vi.po: Update from translation team.
23983
23984         * po/cs.po: Update from translation team.
23985
23986         * po/de.po: Update from translation team.
23987         * po/eo.po: Likewise.
23988         * po/nl.po: Likewise.
23989
23990 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23991
23992         [BZ #14246]
23993         * manual/argp.texi (Argp Helper Functions): Move node to follow
23994         Argp Parsing State.
23995
23996         [BZ #14872]
23997         * manual/conf.texi (Limits on File System Capacity): Mention if
23998         terminating null is included in the max size.
23999
24000 2012-12-10  Andreas Jaeger  <aj@suse.de>
24001
24002         * po/cs.po: Update from translation team.
24003
24004 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
24005
24006         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
24007         void pointer and cast to uintptr_t.
24008         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
24009         path.
24010         * sysdeps/s390/s390-64/memcpy.S: Likewise.
24011         * sysdeps/s390/s390-64/memset.S: Likewise.
24012
24013 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
24014
24015         [BZ #14833]
24016         * menual/message.texi (Message Translation): Fix typos.
24017         (Helper programs for gettext): Likewise.
24018
24019 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
24020
24021         [BZ #14898]
24022         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
24023         Change to -1.
24024
24025 2012-12-07  David S. Miller  <davem@davemloft.net>
24026
24027         * po/libc.pot: Update.
24028
24029 2012-12-07  Richard Henderson  <rth@redhat.com>
24030
24031         [BZ #10114]
24032         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
24033         normal/normal case to before the switch.
24034         (_FP_DIV): Likewise.
24035
24036 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
24037             Mike Frysinger  <vapier@gentoo.org>
24038
24039         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
24040         check for __NR_fadvise64_64.
24041
24042 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
24043
24044         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
24045         0, not just to plain "0" as a statement.
24046         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
24047         with cw.
24048
24049 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
24050
24051         * NEWS: Use sourceware.org in Bugzilla URL.
24052
24053 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
24054
24055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24056         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24057
24058         * stdio-common/tst-put-error.c (do_test): Add newline to the
24059         padded test to ensure flush.
24060
24061 2012-12-05  Jeff Law  <law@redhat.com>
24062
24063         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24064
24065 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24066
24067         * README: Don't refer to ports add-on as distributed separately.
24068         Mention AArch64 in list of systems supported in the ports add-on.
24069
24070         * LICENSES: Add more non-FSF copyright and license notices.
24071
24072         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24073         ((unused)).
24074
24075         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24076
24077         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24078         10000 as width of padded output.
24079
24080 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24081
24082         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24083
24084         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24085         variable LX with __attribute__ ((unused)).
24086         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24087         Likewise.
24088         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24089         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24090         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24091         with __attribute__ ((unused)).
24092
24093 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24094
24095         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24096
24097 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24098
24099         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24100         (CFLAGS-nldbl-acos.c): New variable.
24101         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24102         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24103         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24104         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24105         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24106         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24107         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24108         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24109         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24110         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24111         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24112         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24113         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24114         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24115         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24116         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24117         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24118         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24119         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24120         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24121         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24122         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24123         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24124         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24125         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24126         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24127         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24128         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24129         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24130         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24131         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24132         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24133         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24134         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24135         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24136         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24137         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24138         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24139         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24140         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24141         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24142         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24143         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24144         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24145         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24146         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24147         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24148         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24149         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24150         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24151         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24152         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24153         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24154         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24155         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24156         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24157         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24158         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24159         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24160         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24161         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24162         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24163         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24164         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24165         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24166         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24167         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24168         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24169         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24170         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24171         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24172         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24173         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24174         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24175         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24176         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24177         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24178         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24179         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24180         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24181         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24182         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24183         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24184         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24185         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24186         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24187         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24188         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24189         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24190         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24191         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24192         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24193         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24194         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24195         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24196         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24197         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24198
24199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24200         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24201
24202         [BZ #14914]
24203         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24204         whole low double instead of just low 47 bits when splitting values
24205         into two parts.
24206
24207 2012-12-03  Allan McRae  <allan@archlinux.org>
24208
24209         * manual/stdio.texi (Predefined Printf Handlers): Remove
24210         @hsep and @vsep usage.
24211
24212 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24213
24214         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24215         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24216
24217 2012-12-03  Jeff Law  <law@redhat.com>
24218
24219         * time/sys/time.h (settimeofday): Do not mark TV argument
24220         as __nonnull.
24221
24222 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24223
24224         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24225         when currently writing and seek to current position when not.
24226         * libio/Makefile (tests): Remove bug-fclose1.
24227         * libio/bug-fclose1.c: Delete.
24228
24229 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24230
24231         * manual/arith.texi (feenableexcept): Fix typo.
24232         (fedisableexcept): Likewise.
24233
24234 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24235
24236         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24237         second, differently-typed declaration, rather than a cast.
24238
24239 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24240
24241         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24242         * include/rpc/svc.h: ... here.
24243
24244 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24245
24246         [BZ #13013]
24247         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24248         depending n and resplen2 to catch cases where answer
24249         equals answerp2.
24250
24251 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24252
24253         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24254         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24255
24256 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24257
24258         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24259
24260 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24261
24262         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24263
24264 2012-11-28  Jeff Law  <law@redhat.com>
24265
24266         [BZ #13761]
24267         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24268         dataset_temporary.  Track alloca usage into alloca_used.
24269         If dataset is large allocate and release it via malloc/free.
24270
24271 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24272
24273         [BZ #14197]
24274         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24275
24276 2012-11-28  David S. Miller  <davem@davemloft.net>
24277
24278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24279
24280 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24281
24282         [BZ #14803]
24283         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24284         of pi/2 rounded to nearest to 64 bits.
24285         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24286         nearest to 64 bits.
24287         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24288         bits.
24289
24290 2012-11-28  Jeff Law <law@redhat.com>
24291             Martin Osvald <mosvald@redhat.com>
24292
24293         [BZ #14889]
24294         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24295         * sunrpc/svc.c: Include time.h.
24296         (__svc_accept_failed): New function.
24297         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24298         any reason other than EINTR, call __svc_accept_failed.
24299         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24300         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24301
24302 2012-11-28  Andreas Schwab  <schwab@suse.de>
24303
24304         * scripts/abilist.awk: Also handle indirect functions in .opd
24305         section.
24306
24307 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24308
24309         [BZ #13881]
24310         * sysdeps/x86/fpu/powl_helper.c: New file.
24311         * sysdeps/x86/fpu/Makefile: Likewise.
24312         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24313         (p3): New object.
24314         (__ieee754_powl): Use __powl_helper for finite arguments except
24315         integer exponents below 8.
24316         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24317         (p3): New object.
24318         (__ieee754_powl): Use __powl_helper for finite arguments except
24319         integer exponents below 8.
24320         * math/libm-test.inc (pow_test): Add more tests and enable some
24321         previously disabled tests.
24322         * sysdeps/i386/fpu/libm-test-ulps: Update.
24323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24324
24325 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24326             Carlos O'Donell  <carlos_odonell@mentor.com>
24327
24328         * nss/makedb.c (is_prime): Assert that input is odd and greater
24329         than 4.  Note that fact in a comment too.
24330         (next_prime): Add 4 to input.
24331
24332 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24333
24334         [BZ #11741]
24335         * libio/Makefile (tests): Add test case tst-fwrite-error.
24336         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24337         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24338         * libio/tst-fwrite-error.c: New test case.
24339
24340 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24341
24342         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24343         before casting to void *.
24344         * include/libc-internal.h (__pointer_type): New macro.
24345         (__integer_if_pointer_type_sub): Likewise.
24346         (__integer_if_pointer_type): Likewise.
24347         (cast_to_integer): Likewise.
24348         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24349         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24350         before casting to atomic64_t.
24351         (atomic_exchange_acq): Likewise.
24352         (__arch_exchange_and_add_body): Likewise.
24353         (__arch_add_body): Likewise.
24354         (atomic_add_negative): Likewise.
24355         (atomic_add_zero): Likewise.
24356
24357 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24358
24359         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24360         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24361         (add_fdes): Likewise.
24362         (linear_search_fdes): Likewise.
24363         (binary_search_unencoded_fdes): Likewise.
24364
24365 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24366
24367         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24368
24369 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24370
24371         * configure.in: Autodetect C++ header directories.
24372         * configure: Regenerated.
24373
24374 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24375
24376         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24377
24378 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24379
24380         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24381
24382 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24383
24384         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24385         LDBL_MANT_DIG == 106]: Disable some tests.
24386         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24387         Likewise.
24388         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24389         Likewise.
24390
24391         [BZ #14871]
24392         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24393         input for small inputs.  Return +/- pi/2 for large inputs.
24394         * math/libm-test.inc (atan_test): Add more tests.
24395
24396         * sysdeps/generic/unwind-dw2-fde-glibc.c
24397         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24398         __attribute__ ((unused)).
24399
24400         [BZ #14645]
24401         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
24402         x * y if x and y are nonzero and z is zero.
24403
24404         [BZ #14811]
24405         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
24406         nonzero exponents with absolute value below 0x1p-117 to +/-
24407         0x1p-117.
24408
24409         [BZ #14869]
24410         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
24411         up arguments below 2**-450, not just those below 2**-500.
24412         * math/libm-test.inc (hypot_test): Add another test.
24413
24414         [BZ #14868]
24415         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24416         Return a+b for ratio over 2**120, not 2**60.
24417         * math/libm-test.inc (hypot_test): Add another test.
24418
24419         * math/libm-test.inc (clog_test): Use
24420         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
24421         (clog10_test): Likewise.
24422
24423         [BZ #6778]
24424         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
24425
24426 2012-11-22  Andreas Schwab  <schwab@suse.de>
24427
24428         * sysdeps/i386/fpu/libm-test-ulps: Update.
24429
24430 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
24431
24432         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
24433         printf output with newline.
24434
24435 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
24436
24437         [BZ #14865]
24438         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
24439         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
24440         -z nodlopen, -z initfirst and -z execstack support.
24441         * configure: Regenerated.
24442
24443         * elf/elf.h (DF_1_NODIRECT): New macro.
24444         (DF_1_IGNMULDEF): Likewise.
24445         (DF_1_NOKSYMS): Likewise.
24446         (DF_1_NOHDR): Likewise.
24447         (DF_1_EDITED): Likewise.
24448         (DF_1_NORELOC): Likewise.
24449         (DF_1_SYMINTPOSE): Likewise.
24450         (DF_1_GLOBAUDIT): Likewise.
24451         (DF_1_SINGLETON): Likewise.
24452         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24453         DT_1_SUPPORTED_MASK bits.
24454         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24455
24456 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24457
24458         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24459
24460 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24461
24462         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24463         macro.
24464
24465         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24466         (sendmmsg): Move declarations...
24467         * socket/sys/socket.h: ... here.
24468         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24469         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24470         include it from...
24471         * socket/recvmmsg.c: ... this new file.
24472         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24473         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24474         definition of __sendmmsg hidden.
24475         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24476         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24477         Move ENOSYS stub into and include it from...
24478         * socket/sendmmsg.c: ... this new file.
24479         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24480         (sysdep_routines): Move recvmmsg and sendmmsg...
24481         * socket/Makefile (routines): ... here.
24482         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24483         (GLIBC_PRIVATE): Add __sendmmsg.
24484         * include/sys/socket.h (__sendmmsg): Add declarations.
24485         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24486         sendmmsg.
24487
24488 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24489
24490         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24491         variable I1 with __attribute__ ((unused)).
24492         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24493
24494 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24495
24496         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24497         DUMMY variables with __attribute__ ((unused)).
24498
24499         * bits/byteswap.h: Include <bits/types.h>.
24500         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24501
24502 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24503
24504         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24505         string_t.  Do not manually set errno.
24506         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24507         length with __strnlen.  Make sure to both set errno and return it on
24508         failure.
24509
24510 2012-11-19  David S. Miller  <davem@davemloft.net>
24511
24512         With help from Joseph Myers.
24513         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24514         very large arguments properly.
24515         * math/libm-test.inc (atan_test): New tests.
24516         (atan2_test): New tests.
24517         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24518         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24519
24520 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24521
24522         [BZ #14856]
24523         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24524         Define to 3.
24525
24526         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24527         [POSIX] (EADDRNOTAVAIL): Likewise.
24528         [POSIX] (EAFNOSUPPORT): Likewise.
24529         [POSIX] (EALREADY): Likewise.
24530         [POSIX] (ECONNABORTED): Likewise.
24531         [POSIX] (ECONNREFUSED): Likewise.
24532         [POSIX] (ECONNRESET): Likewise.
24533         [POSIX] (EDESTADDRREQ): Likewise.
24534         [POSIX] (EDQUOT): Likewise.
24535         [POSIX] (EHOSTUNREACH): Likewise.
24536         [POSIX] (EIDRM): Likewise.
24537         [POSIX] (EISCONN): Likewise.
24538         [POSIX] (ELOOP): Likewise.
24539         [POSIX] (EMULTIHOP): Likewise.
24540         [POSIX] (ENETDOWN): Likewise.
24541         [POSIX] (ENETUNREACH): Likewise.
24542         [POSIX] (ENOBUFS): Likewise.
24543         [POSIX] (ENODATA): Likewise.
24544         [POSIX] (ENOLINK): Likewise.
24545         [POSIX] (ENOMSG): Likewise.
24546         [POSIX] (ENOPROTOOPT): Likewise.
24547         [POSIX] (ENOSR): Likewise.
24548         [POSIX] (ENOSTR): Likewise.
24549         [POSIX] (ENOTCONN): Likewise.
24550         [POSIX] (ENOTSOCK): Likewise.
24551         [POSIX] (EOPNOTSUPP): Likewise.
24552         [POSIX] (EOVERFLOW): Likewise.
24553         [POSIX] (EPROTO): Likewise.
24554         [POSIX] (EPROTONOSUPPORT): Likewise.
24555         [POSIX] (EPROTOTYPE): Likewise.
24556         [POSIX] (ESTALE): Likewise.
24557         [POSIX] (ETIME): Likewise.
24558         [POSIX] (ETXTBSY): Likewise.
24559         [POSIX] (EWOULDBLOCK): Likewise.
24560         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24561         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24562         [POSIX] (SEEK_CUR): Likewise.
24563         [POSIX] (SEEK_END): Likewise.
24564         [POSIX || UNIX98] (mode_t): Do not require.
24565         [POSIX] (off_t): Likewise.
24566         [POSIX] (pid_t): Likewise.
24567         [POSIX] (sys/stat.h): Do not allow header.
24568         [POSIX] (unistd.h): Likewise.
24569         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24570         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24571         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24572         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24573         require.
24574         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24575         sigevent): Specify elements.
24576         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24577         entry.
24578         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24579         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24580
24581         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24582         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24583         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24584         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24585         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24586         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24587         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24588         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24589         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24590         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24591         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24592         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24593         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24594         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24595         Likewise.
24596         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24597         Likewise.
24598         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24599         Likewise.
24600         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24601         Likewise.
24602         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24603         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24604         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24605         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24606         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24607         Specify lower bound on value.
24608         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24609         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24610         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24611         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24612         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24613         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24614         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24615         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24616         value.
24617         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24618         as optional.
24619         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24620         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24621         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24622         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24623         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24624         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24625         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24626         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24627         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24628         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24629         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24630         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24631         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24632         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24633         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24634         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24635         entry.
24636         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24637         optional.
24638         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24639         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24640         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24641         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24642         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24643         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24644         Likewise.
24645         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24646         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24647         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24648         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24649         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24650         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24651         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24652         as optional.
24653         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24654         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24655         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24656         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24657         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24658         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24659         specify as optional.
24660         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24661         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24662         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24663         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24664         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24665         [XPG3] (NL_LANGMAX): Likewise.
24666         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24667         [POSIX || XPG3] (NL_NMAX): Likewise.
24668         [POSIX || XPG3] (NL_SETMAX): Likewise.
24669         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24670         [XPG3] (NZERO): Likewise.
24671         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24672         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24673         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24674         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24675         (REG_ERANGE): Expect.
24676         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24677         optional-constant.
24678         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24679         Use (void) in prototype.
24680         [POSIX] (*_t): Allow.
24681         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24682         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24683         (WRDE_BADVAL): Expect.
24684
24685         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24686         expect.
24687         [XPG3 || XPG4] (O_RSYNC): Likewise.
24688         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24689         Likewise.
24690         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24691         [XPG3 || XPG4] (sigqueue): Likewise.
24692         [XPG3 || XPG4] (sigtimedwait): Likewise.
24693         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24694         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24695         [XPG3 || XPG4] (vsnprintf): Likewise.
24696         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24697         Likewise.
24698         [XPG3 || XPG4] (blksize_t): Likewise.
24699         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24700         Likewise.
24701         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24702         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24703         [XPG3 || XPG4] (struct itimerspec): Likewise.
24704         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24705         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24706         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24707         [XPG3 || XPG4] (clockid_t): Likewise.
24708         [XPG3 || XPG4] (timer_t): Likewise.
24709         [XPG3 || XPG4] (clock_getres): Likewise.
24710         [XPG3 || XPG4] (clock_gettime): Likewise.
24711         [XPG3 || XPG4] (clock_settime): Likewise.
24712         [XPG3 || XPG4] (nanosleep): Likewise.
24713         [XPG3 || XPG4] (timer_create): Likewise.
24714         [XPG3 || XPG4] (timer_delete): Likewise.
24715         [XPG3 || XPG4] (timer_gettime): Likewise.
24716         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24717         [XPG3 || XPG4] (timer_settime): Likewise.
24718         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24719         [XPG3 || XPG4] (getlogin_r): Likewise.
24720         [XPG3 || XPG4] (pread): Likewise.
24721         [XPG3 || XPG4] (pthread_atfork): Likewise.
24722         [XPG3 || XPG4] (pwrite): Likewise.
24723
24724         [BZ #14835]
24725         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24726         <bits/siginfo.h>.
24727
24728 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24729
24730         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24731         finalizing MALLSTREAM.
24732
24733         * sysdeps/mach/hurd/syncfs.c: New file.
24734
24735 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24736
24737         [BZ #14719]
24738         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24739         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24740         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24741         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24742         (_nss_dns_gethostbyname4_r): Likewise.
24743         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24744         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24745
24746 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24747
24748         [BZ #13763]
24749         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24750
24751 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24752
24753         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24754         * elf/cache.c (print_entry): Print ",AArch64" for
24755         FLAG_AARCH64_LIB64
24756
24757         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24758         * elf/cache.c (print_entry): Print ",hard-float" for
24759         FLAG_ARM_LIBHF.
24760
24761 2012-11-18  David S. Miller  <davem@davemloft.net>
24762
24763         With help from Joseph Myers.
24764         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24765         cutoff to 2**-13.
24766         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24767         cutoff to 2**-25.
24768         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24769         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24770         small.
24771         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24772         * math/libm-test.inc (y0_test): New tests.
24773         (y1_test): New tests.
24774         * sysdeps/i386/fpu/libm-test-ulps: Update.
24775         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24776         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24777
24778 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24779
24780         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24781         64-bit targets.
24782         * configure: Regenerated.
24783
24784 2012-11-17  David S. Miller  <davem@davemloft.net>
24785
24786         [BZ #14811]
24787         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24788         nonzero exponents with absolute value below 0x1p-128 to +/-
24789         0x1p-128.
24790
24791 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24792
24793         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24794
24795         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24796
24797         * posix/getconf-speclist.c: New file.
24798         * posix/posix-envs.def: Likewise.
24799         * posix/confstr.c (START_ENV_GROUP): New macro.
24800         (END_ENV_GROUP): Likewise.
24801         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24802         (KNOWN_PRESENT_ENV_STRING): Likewise.
24803         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24804         (UNKNOWN_ENVIRONMENT): Likewise.
24805         (confstr): Include posix-envs.def instead of handling
24806         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24807         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24808         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24809         (END_ENV_GROUP): Likewise.
24810         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24811         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24812         (UNKNOWN_ENVIRONMENT): Likewise.
24813         (__sysconf): Include posix-envs.def instead of handling associated
24814         cases directly here.
24815         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24816         preprocessing getconf-speclist.c rather than running getconf or
24817         generating empty file.
24818
24819 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24820
24821         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24822
24823 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24824
24825         [BZ #14672]
24826         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24827
24828 2012-11-16  David S. Miller  <davem@davemloft.net>
24829
24830         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24831         smaller than LDBL_EPSILON/2.0L, just return xm1.
24832
24833 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24834
24835         * elf/tst-array1.c (init): Set constructor priority to 1000.
24836         (fini): Set destructor priority to 1000.
24837         * elf/tst-array2dep.c: Likewise.
24838
24839 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24840
24841         [BZ #11741]
24842         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24843         (_IO_new_file_xsputn): Also return EOF if none of the input
24844         data was written when overflow failed.
24845         * libio/iopadn.c (_IO_padn): Likewise.
24846         * libio/iowpadn.c (_IO_wpadn): Likewise.
24847         * stdio-common/tst-put-error.c: Add copyright notice.
24848         (do_test): Add case for printing padded string.
24849         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24850         _IO_padn returned error.
24851         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24852         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24853         return EOF.
24854
24855 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24856
24857         * libio/libioP.h: Add comment note that the references to C++
24858         bits are now obsolete.
24859
24860 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24861
24862         * math/libm-test.inc (check_complex): Use asprintf.
24863
24864 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24865
24866         * debug/pcprofiledump.c (print_version): Update copyright year.
24867         * malloc/memusagestat.c (print_version): Likewise.
24868
24869 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24870
24871         [BZ #14831]
24872         * elf/Makefile (tests): Add tst-audit8.
24873         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24874         ($(objpfx)tst-audit8.out): New target.
24875         (tst-audit8-ENV): New variable.
24876         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24877         audit if l_reloc_result is NULL.
24878         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24879         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24880         * elf/tst-audit8.c: New file.
24881
24882 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24883
24884         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24885         * misc/Makefile (CFLAGS-select.c): Define.
24886         * posix/Makefile (CFLAGS-pause.c): Define.
24887
24888 2012-11-13  David S. Miller  <davem@davemloft.net>
24889
24890         * crypt/Makefile: Move test targets after toplevel Rules
24891         inclusion.  Grab any necessary sysdep routines when linking.
24892         * crypt/md5.c (md5_process_block): Remove define, we will always
24893         name it __md5_process_block.
24894         (md5_finish_ctx): Update md5_process_block call.
24895         (md5_stream): Likewise.
24896         (md5_process_bytes): Likewise.
24897         (md5_process_block): Rename to __md5_process_block and move to ...
24898         * crypt/md5-block.c: ... here.
24899         * crypt/sha256.c (sha256_process_block): Move to ...
24900         * crypt/sha256-block.c: ... here.
24901         * crypt/sha512.c (sha512_process_block): Move to ...
24902         * crypt/sha512-block.c: ... here.
24903         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24904         path.
24905         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24906         * sysdeps/sparc/sparc64/multiarch/Makefile
24907         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24908         crypt subdir.
24909         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24910         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24911         multiarch changes.
24912         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24913         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24914         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24915         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24916         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24917         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24918         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24919         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24920         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24921         file.
24922         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24923         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24924         file.
24925         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24926
24927 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24928
24929         * timezone/tzselect.ksh: Update from tzcode git revision
24930         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24931         * timezone/zdump.c: Likewise.
24932         * timezone/zic.c: Likewise.
24933         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24934         in TZVERSION setting, not $(PKGVERSION).
24935         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24936         REPORT_BUGS_TO settings.
24937
24938         [BZ #14838]
24939         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24940         macro.
24941
24942 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24943
24944         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24945         detection to immediately after _FP_ROUND().
24946         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24947         bits are 0.
24948
24949 2012-11-11  David S. Miller  <davem@davemloft.net>
24950
24951         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24952         inttypes.h
24953         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24954         __close rather than their public counterparts.
24955
24956 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24957
24958         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24959         file.
24960         [UNIX98] (sem_timedwait): Do not expect.
24961         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24962         [XPG4 || UNIX98] (sockatmark): Do not expect.
24963         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24964         (clock_getcpuclockid): Do not expect.
24965         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24966         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24967         Do not expect.
24968         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24969         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24970         [UNIX98] (vwscanf): Likewise.
24971         [UNIX98] (vswscanf): Likewise.
24972
24973 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24974
24975         * timezone/version.h: Remove file.
24976         * timezone/README: Do not refer to version.h.
24977         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24978         $(objpfx)version.h.
24979         ($(objpfx)zdump.o): Likewise.
24980         ($(objpfx)version.h): New target.
24981
24982         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24983         2012i.
24984         * timezone/README: Don't mention modification to tzselect.ksh.
24985         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24986         work on unmodified tzselect.ksh.  Substitute version numbers in
24987         tzselect.ksh.
24988
24989         * Makefile (format-me): Remove.
24990         (INSTALL): Adjust indentation.  Use commands directly instead of
24991         using $(format-me).
24992
24993         * aclocal.m4 (ACX_PKGVERSION): New macro.
24994         (ACX_BUGURL): Likewise.
24995         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24996         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24997         (REPORT_BUGS_TO): Likewise.
24998         * configure: Regenerated.
24999         * config.h.in (PKGVERSION): New macro.
25000         (REPORT_BUGS_TO): Likewise.
25001         * config.make.in (PKGVERSION): New variable.
25002         (PKGVERSION_TEXI): Likewise.
25003         (REPORT_BUGS_TO): Likewise.
25004         (REPORT_BUGS_TEXI): Likewise.
25005         * Makefile (format-me): Use -I$(common-objpfx)manual.
25006         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
25007         ($(common-objpfx)manual/%): New target.
25008         (manual/%): Remove target.
25009         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
25010         (print_version): Use PKGVERSION.
25011         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
25012         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
25013         and REPORT_BUGS_TO.
25014         ($(objpfx)xtrace): Likewise.
25015         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
25016         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
25017         (print_version): Use PKGVERSION.
25018         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
25019         (do_version): Use PKGVERSION.
25020         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
25021         REPORT_BUGS_TO.
25022         (common-ldd-rewrite): Likewise.
25023         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
25024         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
25025         (print_version): Use PKGVERSION.
25026         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
25027         * elf/pldd.c (argp_program_bug_address): Remove variable.
25028         (more_help): New function.
25029         (argp): Use more_help.
25030         (print_version): Use PKGVERSION.
25031         * elf/sln.c (main): Use PKGVERSION.
25032         (usage): Use REPORT_BUGS_TO.
25033         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
25034         (top level): Use PKGVERSION.
25035         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
25036         (print_version): Use PKGVERSION.
25037         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
25038         (print_version): Use PKGVERSION.
25039         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
25040         (print_version): Use PKGVERSION.
25041         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
25042         (print_version): Use PKGVERSION.
25043         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
25044         (print_version): Use PKGVERSION.
25045         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
25046         (print_version): Use PKGVERSION.
25047         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
25048         and BUGURL.
25049         ($(objpfx)memusage): Likewise.
25050         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
25051         (do_version): Use PKGVERSION.
25052         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
25053         (print_version): Use PKGVERSION.
25054         * malloc/mtrace.pl ($PACKAGE): Remove variable.
25055         ($PKGVERSION): New variable.
25056         ($REPORT_BUGS_TO): Likewise.
25057         (usage): Use $REPORT_BUGS_TO.
25058         (top level): Use $PKGVERSION.
25059         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25060         ($(objpfx)pkgvers.texi): New rule.
25061         ($(objpfx)stamp-pkgvers): Likewise.
25062         * manual/install.texi: Include pkgvers.texi.
25063         (--with-pkgversion): Document new configure option.
25064         (--with-bugurl): Likewise.
25065         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25066         than necessarily for this particular distribution.  Use
25067         REPORT_BUGS_TO for where to report bugs.
25068         * INSTALL: Regenerated.
25069         * manual/libc.texinfo: Include pkgvers.texi.
25070         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25071         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25072         (print_version): Use PKGVERSION.
25073         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25074         (print_version): Use PKGVERSION.
25075         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25076         (print_version): Use PKGVERSION.
25077         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25078         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25079         macro.
25080         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25081         (print_version): Use PKGVERSION.
25082         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25083         (print_version): Use PKGVERSION.
25084         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25085         and PKGVERSION.
25086
25087         * timezone/checktab.awk: Update from tzcode 2012i.
25088         * timezone/ialloc.c: Likewise.
25089         * timezone/private.h: Likewise.
25090         * timezone/scheck.c: Likewise.
25091         * timezone/tzfile.h: Likewise.
25092         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25093         (TZVERSION): Hardcode tzcode version number.
25094         * timezone/zdump.c: Update from tzcode 2012i.
25095         * timezone/zic.c: Likewise.
25096         * timezone/version.h: New file.
25097         * timezone/README: Describe version.h.  Update upstream location.
25098
25099         [BZ #14824]
25100         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25101         (mktemp): Enable declaration.
25102         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25103         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25104         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25105         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25106         Likewise.
25107         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25108         Likewise.
25109         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25110         Likewise.
25111         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25112         Likewise.
25113         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25114         Likewise.
25115         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25116         Likewise.
25117
25118         [BZ #14821]
25119         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25120         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25121         for copies of such integer values.
25122         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25123         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25124
25125 2012-11-09  Andreas Jaeger  <aj@suse.de>
25126
25127         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25128         definitions and declarations that are provided by
25129         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25130
25131 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25132
25133         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25134         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25135         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25136         definition.
25137
25138 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25139
25140         * elf/elf.h: Update comment before AArch64 relocations.
25141
25142 2012-11-07  David S. Miller  <davem@davemloft.net>
25143
25144         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25145         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25146         (__start_context): Declare.
25147         (__makecontext_ret): Delete.
25148         (__makecontext): Hook up __start_context instead of
25149         __makecontext_ret.
25150         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25151         (sysdep_routines): Add __start_context when in stdlib.
25152
25153 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25154
25155         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25156         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25157         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25158         hardcoded "nm".
25159         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25160         (READELF): New variable.  Use it instead of hardcoded "readelf".
25161
25162 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25163
25164         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25165         * sysdeps/x86/Makefile: Here.
25166         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25167         * sysdeps/x86/tst-xmmymm.sh: This.
25168
25169 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25170
25171         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25172         expectations.
25173         [UNIX98] (pthread_barrier_t): Do not expect.
25174         [UNIX98] (pthread_barrierattr_t): Likewise.
25175         [UNIX98] (pthread_spinlock_t): Likewise.
25176         [UNIX98] (pthread_barrier_destroy): Likewise.
25177         [UNIX98] (pthread_barrier_init): Likewise.
25178         [UNIX98] (pthread_barrier_wait): Likewise.
25179         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25180         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25181         [UNIX98] (pthread_barrierattr_init): Likewise.
25182         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25183         [UNIX98] (pthread_getcpuclockid): Likewise.
25184         [UNIX98] (pthread_mutex_timedlock): Likewise.
25185         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25186         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25187         [UNIX98] (pthread_sigmask): Likewise.
25188         [UNIX98] (pthread_spin_destroy): Likewise.
25189         [UNIX98] (pthread_spin_init): Likewise.
25190         [UNIX98] (pthread_spin_lock): Likewise.
25191         [UNIX98] (pthread_spin_trylock): Likewise.
25192         [UNIX98] (pthread_spin_unlock): Likewise.
25193         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25194         Do not expect.
25195         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25196         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25197         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25198         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25199         [XPG3 || XPG4] (pthread_key_t): Likewise.
25200         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25201         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25202         [XPG3 || XPG4] (pthread_once_t): Likewise.
25203         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25204         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25205         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25206         [XPG3 || XPG4] (pthread_t): Likewise.
25207
25208         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25209         not expect.
25210         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25211
25212         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25213         Change function return type to int.
25214
25215         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25216         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25217         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25218         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25219         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25220         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25221         [!POSIX] (posix_madvise): Likewise.
25222         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25223         && !UNIX98].
25224         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25225         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25226         (mode_t): Likewise.
25227         (posix_mem_offset): Likewise.
25228         (posix_typed_mem_get_info): Likewise.
25229         (posix_typed_mem_open): Likewise.
25230
25231         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25232         Change condition to [XOPEN2K8].
25233
25234         * conform/conformtest.pl: Preprocess allow-header data with -x c
25235         instead of from stdin.
25236         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25237         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25238         [C99-based standards] (cerfc): Likewise.
25239         [C99-based standards] (cexp2): Likewise.
25240         [C99-based standards] (cexpm1): Likewise.
25241         [C99-based standards] (clog10): Likewise.
25242         [C99-based standards] (clog1p): Likewise.
25243         [C99-based standards] (clog2): Likewise.
25244         [C99-based standards] (clgamma): Likewise.
25245         [C99-based standards] (ctgamma): Likewise.
25246         [C99-based standards] (cerff): Likewise.
25247         [C99-based standards] (cerfcf): Likewise.
25248         [C99-based standards] (cexp2f): Likewise.
25249         [C99-based standards] (cexpm1f): Likewise.
25250         [C99-based standards] (clog10f): Likewise.
25251         [C99-based standards] (clog1pf): Likewise.
25252         [C99-based standards] (clog2f): Likewise.
25253         [C99-based standards] (clgammaf): Likewise.
25254         [C99-based standards] (ctgammaf): Likewise.
25255         [C99-based standards] (cerfl): Likewise.
25256         [C99-based standards] (cerfcl): Likewise.
25257         [C99-based standards] (cexp2l): Likewise.
25258         [C99-based standards] (cexpm1l): Likewise.
25259         [C99-based standards] (clog10l): Likewise.
25260         [C99-based standards] (clog1pl): Likewise.
25261         [C99-based standards] (clog2l): Likewise.
25262         [C99-based standards] (clgammal): Likewise.
25263         [C99-based standards] (ctgammal): Likewise.
25264         * conform/data/inttypes.h-data [C99-based standards]: Include
25265         stdint.h-data.  Remove all expectations for stdint.h contents.
25266         [C99-based standards] (PRI*): Do not allow.
25267         [C99-based standards] (SCN*): Likewise.
25268         [C99-based standards] (*_t): Likewise.
25269         [C99-based-standards] (PRId8): Expect macro.
25270         [C99-based-standards] (PRIi8): Likewise.
25271         [C99-based-standards] (PRIo8): Likewise.
25272         [C99-based-standards] (PRIu8): Likewise.
25273         [C99-based-standards] (PRIx8): Likewise.
25274         [C99-based-standards] (PRIX8): Likewise.
25275         [C99-based-standards] (SCNd8): Likewise.
25276         [C99-based-standards] (SCNi8): Likewise.
25277         [C99-based-standards] (SCNo8): Likewise.
25278         [C99-based-standards] (SCNu8): Likewise.
25279         [C99-based-standards] (SCNx8): Likewise.
25280         [C99-based-standards] (PRIdLEAST8): Likewise.
25281         [C99-based-standards] (PRIiLEAST8): Likewise.
25282         [C99-based-standards] (PRIoLEAST8): Likewise.
25283         [C99-based-standards] (PRIuLEAST8): Likewise.
25284         [C99-based-standards] (PRIxLEAST8): Likewise.
25285         [C99-based-standards] (PRIXLEAST8): Likewise.
25286         [C99-based-standards] (SCNdLEAST8): Likewise.
25287         [C99-based-standards] (SCNiLEAST8): Likewise.
25288         [C99-based-standards] (SCNoLEAST8): Likewise.
25289         [C99-based-standards] (SCNuLEAST8): Likewise.
25290         [C99-based-standards] (SCNxLEAST8): Likewise.
25291         [C99-based-standards] (PRIdFAST8): Likewise.
25292         [C99-based-standards] (PRIiFAST8): Likewise.
25293         [C99-based-standards] (PRIoFAST8): Likewise.
25294         [C99-based-standards] (PRIuFAST8): Likewise.
25295         [C99-based-standards] (PRIxFAST8): Likewise.
25296         [C99-based-standards] (PRIXFAST8): Likewise.
25297         [C99-based-standards] (SCNdFAST8): Likewise.
25298         [C99-based-standards] (SCNiFAST8): Likewise.
25299         [C99-based-standards] (SCNoFAST8): Likewise.
25300         [C99-based-standards] (SCNuFAST8): Likewise.
25301         [C99-based-standards] (SCNxFAST8): Likewise.
25302         [C99-based-standards] (PRId16): Likewise.
25303         [C99-based-standards] (PRIi16): Likewise.
25304         [C99-based-standards] (PRIo16): Likewise.
25305         [C99-based-standards] (PRIu16): Likewise.
25306         [C99-based-standards] (PRIx16): Likewise.
25307         [C99-based-standards] (PRIX16): Likewise.
25308         [C99-based-standards] (SCNd16): Likewise.
25309         [C99-based-standards] (SCNi16): Likewise.
25310         [C99-based-standards] (SCNo16): Likewise.
25311         [C99-based-standards] (SCNu16): Likewise.
25312         [C99-based-standards] (SCNx16): Likewise.
25313         [C99-based-standards] (PRIdLEAST16): Likewise.
25314         [C99-based-standards] (PRIiLEAST16): Likewise.
25315         [C99-based-standards] (PRIoLEAST16): Likewise.
25316         [C99-based-standards] (PRIuLEAST16): Likewise.
25317         [C99-based-standards] (PRIxLEAST16): Likewise.
25318         [C99-based-standards] (PRIXLEAST16): Likewise.
25319         [C99-based-standards] (SCNdLEAST16): Likewise.
25320         [C99-based-standards] (SCNiLEAST16): Likewise.
25321         [C99-based-standards] (SCNoLEAST16): Likewise.
25322         [C99-based-standards] (SCNuLEAST16): Likewise.
25323         [C99-based-standards] (SCNxLEAST16): Likewise.
25324         [C99-based-standards] (PRIdFAST16): Likewise.
25325         [C99-based-standards] (PRIiFAST16): Likewise.
25326         [C99-based-standards] (PRIoFAST16): Likewise.
25327         [C99-based-standards] (PRIuFAST16): Likewise.
25328         [C99-based-standards] (PRIxFAST16): Likewise.
25329         [C99-based-standards] (PRIXFAST16): Likewise.
25330         [C99-based-standards] (SCNdFAST16): Likewise.
25331         [C99-based-standards] (SCNiFAST16): Likewise.
25332         [C99-based-standards] (SCNoFAST16): Likewise.
25333         [C99-based-standards] (SCNuFAST16): Likewise.
25334         [C99-based-standards] (SCNxFAST16): Likewise.
25335         [C99-based-standards] (PRId32): Likewise.
25336         [C99-based-standards] (PRIi32): Likewise.
25337         [C99-based-standards] (PRIo32): Likewise.
25338         [C99-based-standards] (PRIu32): Likewise.
25339         [C99-based-standards] (PRIx32): Likewise.
25340         [C99-based-standards] (PRIX32): Likewise.
25341         [C99-based-standards] (SCNd32): Likewise.
25342         [C99-based-standards] (SCNi32): Likewise.
25343         [C99-based-standards] (SCNo32): Likewise.
25344         [C99-based-standards] (SCNu32): Likewise.
25345         [C99-based-standards] (SCNx32): Likewise.
25346         [C99-based-standards] (PRIdLEAST32): Likewise.
25347         [C99-based-standards] (PRIiLEAST32): Likewise.
25348         [C99-based-standards] (PRIoLEAST32): Likewise.
25349         [C99-based-standards] (PRIuLEAST32): Likewise.
25350         [C99-based-standards] (PRIxLEAST32): Likewise.
25351         [C99-based-standards] (PRIXLEAST32): Likewise.
25352         [C99-based-standards] (SCNdLEAST32): Likewise.
25353         [C99-based-standards] (SCNiLEAST32): Likewise.
25354         [C99-based-standards] (SCNoLEAST32): Likewise.
25355         [C99-based-standards] (SCNuLEAST32): Likewise.
25356         [C99-based-standards] (SCNxLEAST32): Likewise.
25357         [C99-based-standards] (PRIdFAST32): Likewise.
25358         [C99-based-standards] (PRIiFAST32): Likewise.
25359         [C99-based-standards] (PRIoFAST32): Likewise.
25360         [C99-based-standards] (PRIuFAST32): Likewise.
25361         [C99-based-standards] (PRIxFAST32): Likewise.
25362         [C99-based-standards] (PRIXFAST32): Likewise.
25363         [C99-based-standards] (SCNdFAST32): Likewise.
25364         [C99-based-standards] (SCNiFAST32): Likewise.
25365         [C99-based-standards] (SCNoFAST32): Likewise.
25366         [C99-based-standards] (SCNuFAST32): Likewise.
25367         [C99-based-standards] (SCNxFAST32): Likewise.
25368         [C99-based-standards] (PRId64): Likewise.
25369         [C99-based-standards] (PRIi64): Likewise.
25370         [C99-based-standards] (PRIo64): Likewise.
25371         [C99-based-standards] (PRIu64): Likewise.
25372         [C99-based-standards] (PRIx64): Likewise.
25373         [C99-based-standards] (PRIX64): Likewise.
25374         [C99-based-standards] (SCNd64): Likewise.
25375         [C99-based-standards] (SCNi64): Likewise.
25376         [C99-based-standards] (SCNo64): Likewise.
25377         [C99-based-standards] (SCNu64): Likewise.
25378         [C99-based-standards] (SCNx64): Likewise.
25379         [C99-based-standards] (PRIdLEAST64): Likewise.
25380         [C99-based-standards] (PRIiLEAST64): Likewise.
25381         [C99-based-standards] (PRIoLEAST64): Likewise.
25382         [C99-based-standards] (PRIuLEAST64): Likewise.
25383         [C99-based-standards] (PRIxLEAST64): Likewise.
25384         [C99-based-standards] (PRIXLEAST64): Likewise.
25385         [C99-based-standards] (SCNdLEAST64): Likewise.
25386         [C99-based-standards] (SCNiLEAST64): Likewise.
25387         [C99-based-standards] (SCNoLEAST64): Likewise.
25388         [C99-based-standards] (SCNuLEAST64): Likewise.
25389         [C99-based-standards] (SCNxLEAST64): Likewise.
25390         [C99-based-standards] (PRIdFAST64): Likewise.
25391         [C99-based-standards] (PRIiFAST64): Likewise.
25392         [C99-based-standards] (PRIoFAST64): Likewise.
25393         [C99-based-standards] (PRIuFAST64): Likewise.
25394         [C99-based-standards] (PRIxFAST64): Likewise.
25395         [C99-based-standards] (PRIXFAST64): Likewise.
25396         [C99-based-standards] (SCNdFAST64): Likewise.
25397         [C99-based-standards] (SCNiFAST64): Likewise.
25398         [C99-based-standards] (SCNoFAST64): Likewise.
25399         [C99-based-standards] (SCNuFAST64): Likewise.
25400         [C99-based-standards] (SCNxFAST64): Likewise.
25401         [C99-based-standards] (PRIdMAX): Likewise.
25402         [C99-based-standards] (PRIiMAX): Likewise.
25403         [C99-based-standards] (PRIoMAX): Likewise.
25404         [C99-based-standards] (PRIuMAX): Likewise.
25405         [C99-based-standards] (PRIxMAX): Likewise.
25406         [C99-based-standards] (PRIXMAX): Likewise.
25407         [C99-based-standards] (SCNdMAX): Likewise.
25408         [C99-based-standards] (SCNiMAX): Likewise.
25409         [C99-based-standards] (SCNoMAX): Likewise.
25410         [C99-based-standards] (SCNuMAX): Likewise.
25411         [C99-based-standards] (SCNxMAX): Likewise.
25412         [C99-based-standards] (PRIdPTR): Likewise.
25413         [C99-based-standards] (PRIiPTR): Likewise.
25414         [C99-based-standards] (PRIoPTR): Likewise.
25415         [C99-based-standards] (PRIuPTR): Likewise.
25416         [C99-based-standards] (PRIxPTR): Likewise.
25417         [C99-based-standards] (PRIXPTR): Likewise.
25418         [C99-based-standards] (SCNdPTR): Likewise.
25419         [C99-based-standards] (SCNiPTR): Likewise.
25420         [C99-based-standards] (SCNoPTR): Likewise.
25421         [C99-based-standards] (SCNuPTR): Likewise.
25422         [C99-based-standards] (SCNxPTR): Likewise.
25423         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
25424         allow.
25425         * conform/data/stdint.h-data: Update comments to clarify
25426         requirements.
25427         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
25428         type.
25429         [C99-based standards] (INT8_MAX): Likewise.
25430         [C99-based standards] (INT16_MIN): Likewise.
25431         [C99-based standards] (INT16_MAX): Likewise.
25432         [C99-based standards] (INT32_MIN): Likewise.
25433         [C99-based standards] (INT32_MAX): Likewise.
25434         [C99-based standards] (INT64_MIN): Likewise.
25435         [C99-based standards] (INT64_MAX): Likewise.
25436         [C99-based standards] (UINT8_MAX): Likewise.
25437         [C99-based standards] (UINT16_MAX): Likewise.
25438         [C99-based standards] (UINT32_MAX): Likewise.
25439         [C99-based standards] (UINT64_MAX): Likewise.
25440         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25441         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25442         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25443         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25444         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25445         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25446         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25447         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25448         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25449         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25450         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25451         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25452         [C99-based standards] (INT_FAST8_MIN): Likewise.
25453         [C99-based standards] (INT_FAST8_MAX): Likewise.
25454         [C99-based standards] (INT_FAST16_MIN): Likewise.
25455         [C99-based standards] (INT_FAST16_MAX): Likewise.
25456         [C99-based standards] (INT_FAST32_MIN): Likewise.
25457         [C99-based standards] (INT_FAST32_MAX): Likewise.
25458         [C99-based standards] (INT_FAST64_MIN): Likewise.
25459         [C99-based standards] (INT_FAST64_MAX): Likewise.
25460         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25461         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25462         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25463         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25464         [C99-based standards] (INTPTR_MIN): Likewise.
25465         [C99-based standards] (INTPTR_MAX): Likewise.
25466         [C99-based standards] (UINTPTR_MAX): Likewise.
25467         [C99-based standards] (INTMAX_MIN): Likewise.
25468         [C99-based standards] (INTMAX_MAX): Likewise.
25469         [C99-based standards] (UINTMAX_MAX): Likewise.
25470         [C99-based standards] (PTRDIFF_MIN): Likewise.
25471         [C99-based standards] (PTRDIFF_MAX): Likewise.
25472         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25473         [C99-based standards] (SIZE_MAX): Likewise.
25474         [C99-based standards] (WCHAR_MAX): Likewise.
25475         [C99-based standards] (WINT_MAX): Likewise.
25476         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25477         constraint on value.
25478         [C99-based standards] (WCHAR_MIN): Likewise.
25479         [C99-based standards] (WINT_MIN): Likewise.
25480         [C99-based standards] (*_t): Allow.
25481         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25482         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25483         Include math.h-data and complex.h-data.  Remove all expectations
25484         of math.h and complex.h contents.
25485         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25486         at end of line.
25487         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25488         (struct tm): Expect tag.
25489         [C99-based-standards] (wcstof): Expect function.
25490         [C99-based-standards] (wcstold): Likewise.
25491         [C99-based-standards] (wcstoll): Likewise.
25492         [C99-based-standards] (wcstoull): Likewise.
25493         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25494         macro-int-constant.  Specify type.
25495         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25496         constraint on value.
25497         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25498         Specify type.
25499         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25500         Specify value.
25501         [ISO C standards]: Do not allow headers.
25502         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25503         wcs[abcdefghijklmnopqrstuvwxyz]*.
25504         [ISO C standards] (*_t): Do not allow.
25505         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25506         Expect function.
25507         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25508         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25509         Specify type.
25510         [ISO C standards]: Do not allow headers.
25511         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25512         is[abcdefghijklmnopqrstuvwxyz]*.
25513         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25514         to[abcdefghijklmnopqrstuvwxyz]*.
25515         [ISO C standards] (*_t): Do not allow.
25516         * conform/data/stdalign.h-data: New file.
25517         * conform/data/stdbool.h-data: Likewise.
25518         * conform/data/stdnoreturn.h-data: Likewise.
25519
25520 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25521
25522         [BZ #14815]
25523         * manual/filesys.texi (Directory Entries): Typo fix.
25524         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25525
25526 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25527
25528         * elf/elf.h (EM_AARCH64): New macro.
25529         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25530         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25531         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25532         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25533         (R_AARCH64_TLSDESC): Likewise.
25534         (NT_ARM_TLS): Likewise.
25535         (NT_ARM_HW_BREAK): Likewise.
25536         (NT_ARM_HW_WATCH): Likewise.
25537
25538 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25539
25540         [BZ #14811]
25541         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25542         (__ieee754_powl): Saturate nonzero exponents with absolute value
25543         below 0x1p-79 to +/- 0x1p-79.
25544         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25545         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25546         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25547         nonzero exponents with absolute value below 0x1p-32 to +/-
25548         0x1p-32.
25549         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25550         (__ieee754_powl): Saturate nonzero exponents with absolute value
25551         below 0x1p-79 to +/- 0x1p-79.
25552         * math/libm-test.inc (pow_test): Add more tests.
25553
25554 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25555
25556         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25557         _dl_s390_cap_flags with kernel. Increase string length.
25558         (_dl_s390_platforms): Add z196 and zEC12.
25559
25560 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25561
25562         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25563         Change XOPEN21K to XOPEN2K.
25564
25565 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25566
25567         * string/memmove.c: Use memcpy when possible.
25568
25569 2012-11-06  Andreas Jaeger  <aj@suse.de>
25570
25571         * po/eo.po: Update from translation team.
25572
25573 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25574
25575         [BZ #14793]
25576         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25577         exponent and small x and y exponents, scale x or y up.  Increase
25578         by 2 the exponent used in scaling up.
25579         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25580         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25581         * math/libm-test.inc (fma_test): Add more tests.
25582         (fma_test_towardzero): Likewise.
25583         (fma_test_downward): Likewise.
25584         (fma_test_upward): Likewise.
25585
25586 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25587
25588         [BZ #14805]
25589         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25590         fenv_t *.
25591
25592         [BZ #14801]
25593         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25594         namespace for names of struct fields.
25595         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25596         fenv_t fields.
25597         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25598         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25599
25600 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25601
25602         [BZ #3665]
25603         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25604
25605 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25606
25607         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25608         PTR_DEMANGLE.
25609
25610         [BZ #5246]
25611         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25612         PTR_DEMANGLE.
25613
25614 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25615
25616         [BZ #14797]
25617         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25618         definitely overflow as x * y not x * y + z.
25619         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25620         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25621         * math/libm-test.inc (fma_test): Add more tests.
25622         (fma_test_towardzero): Likewise.
25623         (fma_test_downward): Likewise.
25624         (fma_test_upward): Likewise.
25625
25626 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25627
25628         [BZ #157]
25629
25630         * include/stub-tag.h: Remove file.
25631         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25632         '#include' of it.
25633         * manual/maint.texi (Porting): Don't reference it.
25634         * Makerules ($(objpfx)stubs): Likewise.
25635         * dirent/closedir.c: Don't include <stub-tag.h>.
25636         * dirent/dirfd.c: Likewise.
25637         * dirent/fdopendir.c: Likewise.
25638         * dirent/getdents.c: Likewise.
25639         * dirent/getdents64.c: Likewise.
25640         * dirent/opendir.c: Likewise.
25641         * dirent/readdir.c: Likewise.
25642         * dirent/readdir64.c: Likewise.
25643         * dirent/readdir64_r.c: Likewise.
25644         * dirent/readdir_r.c: Likewise.
25645         * dirent/rewinddir.c: Likewise.
25646         * dirent/seekdir.c: Likewise.
25647         * dirent/telldir.c: Likewise.
25648         * gmon/profil.c: Likewise.
25649         * grp/setgroups.c: Likewise.
25650         * inet/if_index.c: Likewise.
25651         * io/access.c: Likewise.
25652         * io/chdir.c: Likewise.
25653         * io/chmod.c: Likewise.
25654         * io/chown.c: Likewise.
25655         * io/close.c: Likewise.
25656         * io/dup.c: Likewise.
25657         * io/dup2.c: Likewise.
25658         * io/dup3.c: Likewise.
25659         * io/euidaccess.c: Likewise.
25660         * io/faccessat.c: Likewise.
25661         * io/fchdir.c: Likewise.
25662         * io/fchmod.c: Likewise.
25663         * io/fchmodat.c: Likewise.
25664         * io/fchown.c: Likewise.
25665         * io/fchownat.c: Likewise.
25666         * io/fcntl.c: Likewise.
25667         * io/flock.c: Likewise.
25668         * io/fstatfs.c: Likewise.
25669         * io/fstatfs64.c: Likewise.
25670         * io/fstatvfs.c: Likewise.
25671         * io/fstatvfs64.c: Likewise.
25672         * io/futimens.c: Likewise.
25673         * io/fxstat.c: Likewise.
25674         * io/fxstat64.c: Likewise.
25675         * io/fxstatat.c: Likewise.
25676         * io/fxstatat64.c: Likewise.
25677         * io/getcwd.c: Likewise.
25678         * io/isatty.c: Likewise.
25679         * io/lchmod.c: Likewise.
25680         * io/lchown.c: Likewise.
25681         * io/link.c: Likewise.
25682         * io/linkat.c: Likewise.
25683         * io/lseek.c: Likewise.
25684         * io/lseek64.c: Likewise.
25685         * io/lxstat64.c: Likewise.
25686         * io/mkdir.c: Likewise.
25687         * io/mkdirat.c: Likewise.
25688         * io/mkfifo.c: Likewise.
25689         * io/mkfifoat.c: Likewise.
25690         * io/open.c: Likewise.
25691         * io/open64.c: Likewise.
25692         * io/openat.c: Likewise.
25693         * io/openat64.c: Likewise.
25694         * io/pipe.c: Likewise.
25695         * io/pipe2.c: Likewise.
25696         * io/poll.c: Likewise.
25697         * io/posix_fadvise.c: Likewise.
25698         * io/posix_fadvise64.c: Likewise.
25699         * io/posix_fallocate.c: Likewise.
25700         * io/posix_fallocate64.c: Likewise.
25701         * io/read.c: Likewise.
25702         * io/readlink.c: Likewise.
25703         * io/readlinkat.c: Likewise.
25704         * io/rmdir.c: Likewise.
25705         * io/sendfile.c: Likewise.
25706         * io/sendfile64.c: Likewise.
25707         * io/statfs.c: Likewise.
25708         * io/statfs64.c: Likewise.
25709         * io/statvfs.c: Likewise.
25710         * io/statvfs64.c: Likewise.
25711         * io/symlink.c: Likewise.
25712         * io/symlinkat.c: Likewise.
25713         * io/ttyname.c: Likewise.
25714         * io/ttyname_r.c: Likewise.
25715         * io/umask.c: Likewise.
25716         * io/unlink.c: Likewise.
25717         * io/unlinkat.c: Likewise.
25718         * io/utime.c: Likewise.
25719         * io/utimensat.c: Likewise.
25720         * io/write.c: Likewise.
25721         * io/xmknod.c: Likewise.
25722         * io/xmknodat.c: Likewise.
25723         * io/xstat.c: Likewise.
25724         * io/xstat64.c: Likewise.
25725         * login/getpt.c: Likewise.
25726         * login/grantpt.c: Likewise.
25727         * login/unlockpt.c: Likewise.
25728         * math/e_acoshl.c: Likewise.
25729         * math/e_acosl.c: Likewise.
25730         * math/e_asinl.c: Likewise.
25731         * math/e_atan2l.c: Likewise.
25732         * math/e_atanhl.c: Likewise.
25733         * math/e_coshl.c: Likewise.
25734         * math/e_expl.c: Likewise.
25735         * math/e_fmodl.c: Likewise.
25736         * math/e_gammal_r.c: Likewise.
25737         * math/e_hypotl.c: Likewise.
25738         * math/e_j0l.c: Likewise.
25739         * math/e_j1l.c: Likewise.
25740         * math/e_jnl.c: Likewise.
25741         * math/e_lgammal_r.c: Likewise.
25742         * math/e_log10l.c: Likewise.
25743         * math/e_log2l.c: Likewise.
25744         * math/e_logl.c: Likewise.
25745         * math/e_powl.c: Likewise.
25746         * math/e_rem_pio2l.c: Likewise.
25747         * math/e_sinhl.c: Likewise.
25748         * math/e_sqrtl.c: Likewise.
25749         * math/fclrexcpt.c: Likewise.
25750         * math/fedisblxcpt.c: Likewise.
25751         * math/feenablxcpt.c: Likewise.
25752         * math/fegetenv.c: Likewise.
25753         * math/fegetexcept.c: Likewise.
25754         * math/fegetround.c: Likewise.
25755         * math/feholdexcpt.c: Likewise.
25756         * math/fesetenv.c: Likewise.
25757         * math/fesetround.c: Likewise.
25758         * math/feupdateenv.c: Likewise.
25759         * math/fgetexcptflg.c: Likewise.
25760         * math/fraiseexcpt.c: Likewise.
25761         * math/fsetexcptflg.c: Likewise.
25762         * math/ftestexcept.c: Likewise.
25763         * math/k_cosl.c: Likewise.
25764         * math/k_rem_pio2l.c: Likewise.
25765         * math/k_sinl.c: Likewise.
25766         * math/k_tanl.c: Likewise.
25767         * math/s_asinhl.c: Likewise.
25768         * math/s_atanl.c: Likewise.
25769         * math/s_cbrtl.c: Likewise.
25770         * math/s_erfl.c: Likewise.
25771         * math/s_expm1l.c: Likewise.
25772         * math/s_log1pl.c: Likewise.
25773         * math/s_tanhl.c: Likewise.
25774         * misc/acct.c: Likewise.
25775         * misc/brk.c: Likewise.
25776         * misc/chflags.c: Likewise.
25777         * misc/chroot.c: Likewise.
25778         * misc/fchflags.c: Likewise.
25779         * misc/fgetxattr.c: Likewise.
25780         * misc/flistxattr.c: Likewise.
25781         * misc/fremovexattr.c: Likewise.
25782         * misc/fsetxattr.c: Likewise.
25783         * misc/fsync.c: Likewise.
25784         * misc/ftruncate.c: Likewise.
25785         * misc/futimes.c: Likewise.
25786         * misc/futimesat.c: Likewise.
25787         * misc/getdomain.c: Likewise.
25788         * misc/getdtsz.c: Likewise.
25789         * misc/gethostid.c: Likewise.
25790         * misc/gethostname.c: Likewise.
25791         * misc/getloadavg.c: Likewise.
25792         * misc/getpagesize.c: Likewise.
25793         * misc/getsysstats.c: Likewise.
25794         * misc/getxattr.c: Likewise.
25795         * misc/gtty.c: Likewise.
25796         * misc/ioctl.c: Likewise.
25797         * misc/lgetxattr.c: Likewise.
25798         * misc/listxattr.c: Likewise.
25799         * misc/llistxattr.c: Likewise.
25800         * misc/lremovexattr.c: Likewise.
25801         * misc/lsetxattr.c: Likewise.
25802         * misc/lutimes.c: Likewise.
25803         * misc/madvise.c: Likewise.
25804         * misc/mincore.c: Likewise.
25805         * misc/mlock.c: Likewise.
25806         * misc/mlockall.c: Likewise.
25807         * misc/mmap.c: Likewise.
25808         * misc/mprotect.c: Likewise.
25809         * misc/msync.c: Likewise.
25810         * misc/munlock.c: Likewise.
25811         * misc/munlockall.c: Likewise.
25812         * misc/munmap.c: Likewise.
25813         * misc/preadv.c: Likewise.
25814         * misc/preadv64.c: Likewise.
25815         * misc/ptrace.c: Likewise.
25816         * misc/pwritev.c: Likewise.
25817         * misc/pwritev64.c: Likewise.
25818         * misc/readv.c: Likewise.
25819         * misc/reboot.c: Likewise.
25820         * misc/remap_file_pages.c: Likewise.
25821         * misc/removexattr.c: Likewise.
25822         * misc/revoke.c: Likewise.
25823         * misc/select.c: Likewise.
25824         * misc/setdomain.c: Likewise.
25825         * misc/setegid.c: Likewise.
25826         * misc/seteuid.c: Likewise.
25827         * misc/sethostid.c: Likewise.
25828         * misc/sethostname.c: Likewise.
25829         * misc/setregid.c: Likewise.
25830         * misc/setreuid.c: Likewise.
25831         * misc/setxattr.c: Likewise.
25832         * misc/sstk.c: Likewise.
25833         * misc/stty.c: Likewise.
25834         * misc/swapoff.c: Likewise.
25835         * misc/swapon.c: Likewise.
25836         * misc/sync.c: Likewise.
25837         * misc/syncfs.c: Likewise.
25838         * misc/syscall.c: Likewise.
25839         * misc/truncate.c: Likewise.
25840         * misc/ualarm.c: Likewise.
25841         * misc/usleep.c: Likewise.
25842         * misc/ustat.c: Likewise.
25843         * misc/utimes.c: Likewise.
25844         * misc/vhangup.c: Likewise.
25845         * misc/writev.c: Likewise.
25846         * posix/_exit.c: Likewise.
25847         * posix/alarm.c: Likewise.
25848         * posix/execve.c: Likewise.
25849         * posix/fexecve.c: Likewise.
25850         * posix/fork.c: Likewise.
25851         * posix/fpathconf.c: Likewise.
25852         * posix/getaddrinfo.c: Likewise.
25853         * posix/getegid.c: Likewise.
25854         * posix/geteuid.c: Likewise.
25855         * posix/getgid.c: Likewise.
25856         * posix/getgroups.c: Likewise.
25857         * posix/getlogin.c: Likewise.
25858         * posix/getlogin_r.c: Likewise.
25859         * posix/getpgid.c: Likewise.
25860         * posix/getpid.c: Likewise.
25861         * posix/getppid.c: Likewise.
25862         * posix/getresgid.c: Likewise.
25863         * posix/getresuid.c: Likewise.
25864         * posix/getsid.c: Likewise.
25865         * posix/getuid.c: Likewise.
25866         * posix/glob64.c: Likewise.
25867         * posix/nanosleep.c: Likewise.
25868         * posix/pathconf.c: Likewise.
25869         * posix/pause.c: Likewise.
25870         * posix/posix_madvise.c: Likewise.
25871         * posix/pread.c: Likewise.
25872         * posix/pread64.c: Likewise.
25873         * posix/pwrite.c: Likewise.
25874         * posix/pwrite64.c: Likewise.
25875         * posix/sched_getaffinity.c: Likewise.
25876         * posix/sched_getp.c: Likewise.
25877         * posix/sched_gets.c: Likewise.
25878         * posix/sched_primax.c: Likewise.
25879         * posix/sched_primin.c: Likewise.
25880         * posix/sched_rr_gi.c: Likewise.
25881         * posix/sched_setaffinity.c: Likewise.
25882         * posix/sched_setp.c: Likewise.
25883         * posix/sched_sets.c: Likewise.
25884         * posix/sched_yield.c: Likewise.
25885         * posix/setgid.c: Likewise.
25886         * posix/setlogin.c: Likewise.
25887         * posix/setpgid.c: Likewise.
25888         * posix/setresgid.c: Likewise.
25889         * posix/setresuid.c: Likewise.
25890         * posix/setsid.c: Likewise.
25891         * posix/setuid.c: Likewise.
25892         * posix/sleep.c: Likewise.
25893         * posix/spawni.c: Likewise.
25894         * posix/sysconf.c: Likewise.
25895         * posix/times.c: Likewise.
25896         * posix/wait.c: Likewise.
25897         * posix/wait3.c: Likewise.
25898         * posix/wait4.c: Likewise.
25899         * posix/waitpid.c: Likewise.
25900         * resolv/gai_sigqueue.c: Likewise.
25901         * resource/getpriority.c: Likewise.
25902         * resource/getrlimit.c: Likewise.
25903         * resource/getrusage.c: Likewise.
25904         * resource/nice.c: Likewise.
25905         * resource/setpriority.c: Likewise.
25906         * resource/setrlimit.c: Likewise.
25907         * resource/ulimit.c: Likewise.
25908         * rt/aio_cancel.c: Likewise.
25909         * rt/aio_fsync.c: Likewise.
25910         * rt/aio_read.c: Likewise.
25911         * rt/aio_sigqueue.c: Likewise.
25912         * rt/aio_suspend.c: Likewise.
25913         * rt/aio_write.c: Likewise.
25914         * rt/clock_getres.c: Likewise.
25915         * rt/clock_gettime.c: Likewise.
25916         * rt/clock_nanosleep.c: Likewise.
25917         * rt/clock_settime.c: Likewise.
25918         * rt/lio_listio.c: Likewise.
25919         * rt/mq_close.c: Likewise.
25920         * rt/mq_getattr.c: Likewise.
25921         * rt/mq_notify.c: Likewise.
25922         * rt/mq_open.c: Likewise.
25923         * rt/mq_receive.c: Likewise.
25924         * rt/mq_send.c: Likewise.
25925         * rt/mq_setattr.c: Likewise.
25926         * rt/mq_timedreceive.c: Likewise.
25927         * rt/mq_timedsend.c: Likewise.
25928         * rt/mq_unlink.c: Likewise.
25929         * rt/shm_open.c: Likewise.
25930         * rt/shm_unlink.c: Likewise.
25931         * rt/timer_create.c: Likewise.
25932         * rt/timer_delete.c: Likewise.
25933         * rt/timer_getoverr.c: Likewise.
25934         * rt/timer_gettime.c: Likewise.
25935         * rt/timer_settime.c: Likewise.
25936         * setjmp/__longjmp.c: Likewise.
25937         * setjmp/setjmp.c: Likewise.
25938         * signal/kill.c: Likewise.
25939         * signal/killpg.c: Likewise.
25940         * signal/raise.c: Likewise.
25941         * signal/sigaction.c: Likewise.
25942         * signal/sigaltstack.c: Likewise.
25943         * signal/sigblock.c: Likewise.
25944         * signal/sigignore.c: Likewise.
25945         * signal/sigintr.c: Likewise.
25946         * signal/signal.c: Likewise.
25947         * signal/sigpause.c: Likewise.
25948         * signal/sigpending.c: Likewise.
25949         * signal/sigqueue.c: Likewise.
25950         * signal/sigreturn.c: Likewise.
25951         * signal/sigset.c: Likewise.
25952         * signal/sigsetmask.c: Likewise.
25953         * signal/sigstack.c: Likewise.
25954         * signal/sigsuspend.c: Likewise.
25955         * signal/sigtimedwait.c: Likewise.
25956         * signal/sigvec.c: Likewise.
25957         * signal/sigwait.c: Likewise.
25958         * signal/sigwaitinfo.c: Likewise.
25959         * signal/sysv_signal.c: Likewise.
25960         * socket/accept.c: Likewise.
25961         * socket/accept4.c: Likewise.
25962         * socket/bind.c: Likewise.
25963         * socket/connect.c: Likewise.
25964         * socket/getpeername.c: Likewise.
25965         * socket/getsockname.c: Likewise.
25966         * socket/getsockopt.c: Likewise.
25967         * socket/isfdtype.c: Likewise.
25968         * socket/listen.c: Likewise.
25969         * socket/recv.c: Likewise.
25970         * socket/recvfrom.c: Likewise.
25971         * socket/recvmsg.c: Likewise.
25972         * socket/send.c: Likewise.
25973         * socket/sendmsg.c: Likewise.
25974         * socket/sendto.c: Likewise.
25975         * socket/setsockopt.c: Likewise.
25976         * socket/shutdown.c: Likewise.
25977         * socket/sockatmark.c: Likewise.
25978         * socket/socket.c: Likewise.
25979         * socket/socketpair.c: Likewise.
25980         * stdio-common/ctermid.c: Likewise.
25981         * stdio-common/cuserid.c: Likewise.
25982         * stdio-common/remove.c: Likewise.
25983         * stdio-common/rename.c: Likewise.
25984         * stdio-common/renameat.c: Likewise.
25985         * stdio-common/tempname.c: Likewise.
25986         * stdlib/getcontext.c: Likewise.
25987         * stdlib/makecontext.c: Likewise.
25988         * stdlib/setcontext.c: Likewise.
25989         * stdlib/swapcontext.c: Likewise.
25990         * stdlib/system.c: Likewise.
25991         * streams/fattach.c: Likewise.
25992         * streams/fdetach.c: Likewise.
25993         * streams/getmsg.c: Likewise.
25994         * streams/getpmsg.c: Likewise.
25995         * streams/putmsg.c: Likewise.
25996         * streams/putpmsg.c: Likewise.
25997         * sysdeps/unix/bsd/getpt.c: Likewise.
25998         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25999         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
26000         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
26001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26002         Likewise.
26003         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
26004         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26005         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
26006         * sysvipc/msgctl.c: Likewise.
26007         * sysvipc/msgget.c: Likewise.
26008         * sysvipc/msgrcv.c: Likewise.
26009         * sysvipc/msgsnd.c: Likewise.
26010         * sysvipc/semctl.c: Likewise.
26011         * sysvipc/semget.c: Likewise.
26012         * sysvipc/semop.c: Likewise.
26013         * sysvipc/semtimedop.c: Likewise.
26014         * sysvipc/shmat.c: Likewise.
26015         * sysvipc/shmctl.c: Likewise.
26016         * sysvipc/shmdt.c: Likewise.
26017         * sysvipc/shmget.c: Likewise.
26018         * termios/tcdrain.c: Likewise.
26019         * termios/tcflow.c: Likewise.
26020         * termios/tcflush.c: Likewise.
26021         * termios/tcgetattr.c: Likewise.
26022         * termios/tcgetpgrp.c: Likewise.
26023         * termios/tcsendbrk.c: Likewise.
26024         * termios/tcsetattr.c: Likewise.
26025         * termios/tcsetpgrp.c: Likewise.
26026         * time/adjtime.c: Likewise.
26027         * time/clock.c: Likewise.
26028         * time/getitimer.c: Likewise.
26029         * time/gettimeofday.c: Likewise.
26030         * time/setitimer.c: Likewise.
26031         * time/settimeofday.c: Likewise.
26032         * time/stime.c: Likewise.
26033         * time/time.c: Likewise.
26034
26035 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
26036
26037         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
26038         /usr/old/bin.
26039
26040         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
26041         instead of spaces.
26042         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
26043
26044 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
26045
26046         [BZ #14796]
26047         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
26048         FE_TONEAREST before applying Dekker multiplication and Knuth
26049         addition.  Clear inexact exceptions and check for exact zero
26050         results afterwards.
26051         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26052         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26053         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26054         * math/libm-test.inc (fma_test): Add more tests.
26055         (fma_test_towardzero): Likewise.
26056         (fma_test_downward): Likewise.
26057         (fma_test_upward): Likewise.
26058         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26059         function.
26060         (libc_fesetround): New macro.
26061         (libc_fesetroundf): Likewise.
26062         (libc_fesetroundl): Likewise.
26063         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26064         function.
26065         (libc_fesetround_387): Likewise.
26066         (libc_fesetroundf): New macro.
26067         (libc_fesetround): Likewise.
26068         (libc_fesetroundl): Likewise.
26069         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26070         function.
26071         (libc_fesetroundf): New macro.
26072         (libc_fesetround): Likewise.
26073         (libc_fesetroundl): Likewise.
26074         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26075         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26076         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26077         libm_hidden_ver.
26078         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26079         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26080         libm_hidden_def.
26081         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26082         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26083         libm_hidden_ver.
26084         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26085         libm_hidden_def.
26086
26087         [BZ #3439]
26088         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26089         integer constant usable in #if and use that to give value to enum
26090         constant.
26091         (FE_DIVBYZERO): Likewise.
26092         (FE_UNDERFLOW): Likewise.
26093         (FE_OVERFLOW): Likewise.
26094         (FE_INVALID): Likewise.
26095         (FE_INVALID_SNAN): Likewise.
26096         (FE_INVALID_ISI): Likewise.
26097         (FE_INVALID_IDI): Likewise.
26098         (FE_INVALID_ZDZ): Likewise.
26099         (FE_INVALID_IMZ): Likewise.
26100         (FE_INVALID_COMPARE): Likewise.
26101         (FE_INVALID_SOFTWARE): Likewise.
26102         (FE_INVALID_SQRT): Likewise.
26103         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26104         (FE_TONEAREST): Likewise.
26105         (FE_TOWARDZERO): Likewise.
26106         (FE_UPWARD): Likewise.
26107         (FE_DOWNWARD): Likewise.
26108         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26109         (FE_DIVBYZERO): Likewise.
26110         (FE_OVERFLOW): Likewise.
26111         (FE_UNDERFLOW): Likewise.
26112         (FE_INEXACT): Likewise.
26113         (FE_TONEAREST): Likewise.
26114         (FE_DOWNWARD): Likewise.
26115         (FE_UPWARD): Likewise.
26116         (FE_TOWARDZERO): Likewise.
26117         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26118         (FE_UNDERFLOW): Likewise.
26119         (FE_OVERFLOW): Likewise.
26120         (FE_DIVBYZERO): Likewise.
26121         (FE_INVALID): Likewise.
26122         (FE_TONEAREST): Likewise.
26123         (FE_TOWARDZERO): Likewise.
26124         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26125         (FE_OVERFLOW): Likewise.
26126         (FE_UNDERFLOW): Likewise.
26127         (FE_DIVBYZERO): Likewise.
26128         (FE_INEXACT): Likewise.
26129         (FE_TONEAREST): Likewise.
26130         (FE_TOWARDZERO): Likewise.
26131         (FE_UPWARD): Likewise.
26132         (FE_DOWNWARD): Likewise.
26133         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26134         (FE_DIVBYZERO): Likewise.
26135         (FE_OVERFLOW): Likewise.
26136         (FE_UNDERFLOW): Likewise.
26137         (FE_INEXACT): Likewise.
26138         (FE_TONEAREST): Likewise.
26139         (FE_DOWNWARD): Likewise.
26140         (FE_UPWARD): Likewise.
26141         (FE_TOWARDZERO): Likewise.
26142
26143 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26144
26145         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26146
26147 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26148
26149         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26150         commands.  Quote $PWD.
26151         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26152         -x" by "export".
26153         (remove_newlines): Remove.
26154
26155 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26156
26157         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26158         * stdlib/stdlib.h (atof): Moved to ...
26159         * include/bits/stdlib-float.h: Here.  New file.
26160         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26161         * stdlib/bits/stdlib-float.h: New file.
26162         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26163         -mno-sse -mno-mmx.
26164         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26165         <xmmintrin.h>.
26166
26167 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26168
26169         * conform/conformtest.pl (@headers): Add fenv.h.
26170         * conform/data/fenv.h-data: New file.
26171         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26172         include of <math/fenv.h>.
26173
26174         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26175         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26176         && !UNIX98].  Enables tests for XOPEN2K8.
26177         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26178         POSIX2008]: Likewise.
26179
26180         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26181         (struct rusage): Do not expect type or its members.
26182
26183         [BZ #3439]
26184         * math/math.h (FP_NAN): Define macro to integer constant usable in
26185         #if and use that to give value to enum constant.
26186         (FP_INFINITE): Likewise.
26187         (FP_ZERO): Likewise.
26188         (FP_SUBNORMAL): Likewise.
26189         (FP_NORMAL): Likewise.
26190
26191 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26192
26193         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26194         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26195         arguments.
26196
26197 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26198
26199         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26200         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26201         autoconf-time if not.
26202         * configure.in: Remove AC_PREREQ.
26203
26204 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26205
26206         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26207         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26208         of the internal implementation.
26209
26210 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26211
26212         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26213         except include of <misc/sys/syslog.h>.
26214
26215 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26216
26217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26218         function returns with a NULL context exit with zero.
26219
26220 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26221
26222         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26223
26224 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26225
26226         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26227         (run_program_cmd): This.
26228         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26229         (tst_langinfo): New variable.  Use it.
26230
26231 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26232
26233         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26234         floating point opcodes.
26235
26236 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26237
26238         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26239         variable.
26240
26241         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26242
26243         * sysdeps/mach/hurd/powerpc: Remove directory.
26244         * sysdeps/mach/powerpc: Likewise.
26245
26246 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26247
26248         * scripts/check-local-headers.sh: Ignore c++ headers.
26249
26250 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26251
26252         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26253         __libc_cleanup_region_start argument.
26254
26255 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26256
26257         [BZ #14784]
26258         [BZ #14785]
26259         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26260         x * y using scaling, not as x * y + z.
26261         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26262         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26263         * math/libm-test.inc (fma_test): Add more tests.
26264         (fma_test_towardzero): Likewise.
26265         (fma_test_downward): Likewise.
26266         (fma_test_upward): Likewise.
26267
26268 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26269
26270         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26271
26272 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26273
26274         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26275         New variable.
26276
26277 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26278
26279         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26280
26281 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26282
26283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26284         Fix sort order.
26285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26286         Likewise.
26287
26288 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26289
26290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26291         Fix the order of the list for glibc 2.17.
26292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26293         Likewise.
26294
26295 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26296
26297         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26298
26299 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26300
26301         [BZ #14610]
26302         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26303         for low part of x being zero before using __atanl (y).
26304         * math/libm-test.inc (atan2_test): Add another test.
26305
26306         * manual/install.texi (Configuring and compiling): Document
26307         general use of test-wrapper and test-wrapper-env.
26308         * INSTALL: Regenerated.
26309
26310         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26311         (__fma): Do not extract and scale down low bits on after-rounding
26312         systems when result rounded to normal precision would have normal
26313         exponent.
26314         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26315         (__fmal): Do not extract and scale down low bits on after-rounding
26316         systems when result rounded to normal precision would have normal
26317         exponent.
26318         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26319         (__fmal): Do not extract and scale down low bits on after-rounding
26320         systems when result rounded to normal precision would have normal
26321         exponent.
26322         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26323         macro.
26324         (fma_test): Add more tests.
26325         (fma_test_towardzero): Likewise.
26326         (fma_test_downward): Likewise.
26327         (fma_test_upward): Likewise.
26328
26329 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26330
26331         * sysdeps/i386/tininess.h: Renamed to ...
26332         * sysdeps/x86/tininess.h: This.
26333         * sysdeps/x86_64/tininess.h: Removed.
26334
26335 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26336
26337         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26338         input.  Use $(build-program-cmd).
26339         ($(objpfx)tst-array1-static.out): Likewise.
26340         ($(objpfx)tst-array2.out): Likewise.
26341         ($(objpfx)tst-array3.out): Likewise.
26342         ($(objpfx)tst-array4.out): Likewise.
26343         ($(objpfx)tst-array5.out): Likewise.
26344         ($(objpfx)tst-array5-static.out): Likewise.
26345
26346 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26347
26348         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26349         if defined.
26350
26351         * nss/nsswitch.h (nss_interface_function): Provide new
26352         macro for use with NSS functions.
26353         * grp/initgroups.c: Use new macro.
26354         * nss/getXXbyYY.c: Likewise.
26355         * nss/getXXbyYY_r.c: Likewise.
26356         * nss/getXXent.c: Likewise.
26357         * nss/getXXent_r.c: Likewise.
26358         * sysdeps/posix/getaddrinfo.c: Likewise.
26359
26360 2012-10-30  Andreas Jaeger  <aj@suse.de>
26361
26362         * po/ru.po: Update Russion translation from translation project.
26363
26364 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26365
26366         [BZ #14152]
26367         [BZ #14783]
26368         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26369         result and shift together with sticky bit instead of replicating
26370         round-to-nearest rounding.
26371         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26372         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26373         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26374         missing underflow exceptions.
26375         (fma_test_towardzero): Add more tests.
26376         (fma_test_downward): Likewise.
26377         (fma_test_upward): Likewise.
26378
26379         [BZ #14047]
26380         * sysdeps/generic/tininess.h: New file.
26381         * sysdeps/i386/tininess.h: Likewise.
26382         * sysdeps/sh/tininess.h: Likewise.
26383         * sysdeps/x86_64/tininess.h: Likewise.
26384         * stdlib/tst-strtod-underflow.c: Likewise.
26385         * stdlib/tst-tininess.c: Likewise.
26386         * stdlib/strtod_l.c: Include <tininess.h>.
26387         (round_and_return): Do not set errno for exact underflow cases.
26388         Force an underflow exception when setting errno for underflow.
26389         Determine underflow based on rounding to normal precision if
26390         TININESS_AFTER_ROUNDING.
26391         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26392         ERANGE for exact underflow cases.
26393         * stdlib/Makefile (tests): Add tst-tininess and
26394         tst-strtod-underflow.
26395         ($(objpfx)tst-tininess): Use $(link-libm).
26396         ($(objpfx)tst-strtod-underflow): Likewise.
26397
26398 2012-10-30  Andreas Jaeger  <aj@suse.de>
26399
26400         [BZ#14767]
26401         * elf/Makefile (tests): Remove conditional for have-initfini-array
26402         since this is now always required and the variable does not exist
26403         anymore.
26404         (tests-static): Likewise.
26405         (modules-names): Likewise.
26406
26407         * po/eo.po: Add Esperanto translation from translation project.
26408
26409         * elf/tst-array1.c (fini_array): Make writeable so that it can be
26410         merged with constructor/destructor.
26411         (init_array): Likewise.
26412         * elf/tst-array2dep.c (fini_array): Likewise.
26413         (init_array): Likewise.
26414
26415 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
26416
26417         * manual/message.texi: Delete @cartouche tags.
26418
26419 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
26420
26421         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
26422         EOPNOTSUPP.
26423         * sysdeps/mach/hurd/fsync.c: Likewise.
26424
26425         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
26426         [_POSIX_REALTIME_SIGNALS]: Change condition to
26427         [_POSIX_REALTIME_SIGNALS > 0].
26428
26429 2012-10-27  Andreas Jaeger  <aj@suse.de>
26430
26431         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
26432         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
26433         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
26434         [__WORDSIZE != 64]: Likewise.
26435
26436 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
26437
26438         *  iconvdata/tst-table.sh: Remove ${SHELL}.
26439         *  iconvdata/tst-tables.sh: Likewise.
26440
26441 2012-10-25  David S. Miller  <davem@davemloft.net>
26442
26443         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26444         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26445         of strtoull.
26446
26447         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26448         ifunc-impl-list.c
26449         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26450         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26451         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26452         file.
26453
26454 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26455
26456         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26457         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26458         __getdirentries.
26459
26460 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26461             Jim Blandy  <jimb@codesourcery.com>
26462
26463         * scripts/cross-test-ssh.sh: New file.
26464         * manual/install.texi (Configuring and compiling): Document use of
26465         cross-test-ssh.sh.
26466         * INSTALL: Regenerated.
26467
26468 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26469
26470         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26471         EOPNOTSUPP.
26472
26473 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26474
26475         * Makeconfig (run-program-prefix): Fix comment.
26476
26477 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26478             Jim Blandy  <jimb@codesourcery.com>
26479
26480         * Makeconfig (test-wrapper): New variable,
26481         (test-wrapper-env): Likewise.
26482         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26483         (run-built-tests): Define to yes.
26484         (run-program-prefix): Use $(test-wrapper).
26485         (built-program-cmd): Likewise.
26486         * Rules (make-test-out): Use $(test-wrapper-env) and
26487         $(host-built-program-cmd).
26488         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26489         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26490         tst-pathopt.sh.
26491         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26492         $(test-wrapper-env) to tst-rtld-load-self.sh.
26493         ($(objpfx)order2.out): Use $(test-wrapper).
26494         ($(objpfx)tst-initorder.out): Likewise.
26495         ($(objpfx)tst-initorder2.out): Likewise.
26496         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26497         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26498         (test_wrapper_env): New variable.  Use it to run ld.so.
26499         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26500         Use it to run ld.so.
26501         (test_wrapper_env): Likewise.
26502         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26503         $(test-wrapper) to run-iconv-test.sh.
26504         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26505         (ICONV): Use $test_wrapper.
26506         * posix/Makefile ($(objpfx)globtest.out): Pass
26507         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26508         globtest.sh, not $(run-program-prefix).
26509         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26510         (test_wrapper): Likewise.
26511         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26512         set together with run_via_rtld_prefix.
26513         (run_program_prefix): Define in terms of test_wrapper and
26514         run_via_rtld_prefix.
26515
26516 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26517
26518         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26519         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26520         Targets removed.
26521
26522         [BZ #14743]
26523         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26524         Declare __clock_getres, __clock_gettime, __clock_settime,
26525         __clock_nanosleep, and __clock_getcpuclockid.
26526         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26527         Remove librt_hidden_def (clock_gettime).
26528         * sysdeps/unix/clock_gettime.c: Likewise.
26529         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26530         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26531         * rt/clock_getres.c: Define __clock_getres as an alias.
26532         * sysdeps/posix/clock_getres.c: Likewise.
26533         * rt/clock_settime.c: Define __clock_settime as an alias.
26534         * sysdeps/unix/clock_settime.c: Likewise.
26535         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26536         * sysdeps/unix/clock_nanosleep.c: Likewise.
26537         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26538         * rt/clock-compat.c: New file.
26539         * rt/Makefile (librt-routines): Add clock-compat and move
26540         $(clock-routines) to ...
26541         (routines): ... here, new variable.
26542         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26543         Don't add get_clockfreq here.
26544         * rt/Versions (libc: GLIBC_2.17): New version set.
26545         Add clock_* symbols here.
26546         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26547         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26548         (GLIBC_2.17): Add clock_* symbols.
26549         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26550         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26551         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26553         Likewise.
26554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26555         Likewise.
26556         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26557         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26558         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26559         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26560         * NEWS: Mention the move.
26561
26562         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26563         Use __open, __read, __close rather than their public counterparts.
26564         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26565         (__get_clockfreq_via_cpuinfo): Likewise.
26566         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26567         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26568
26569         * config.h.in (HAVE_IFUNC): New #undef.
26570         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26571         was successful.
26572         * configure: Regenerated.
26573
26574 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26575
26576         * configure.in: Move READELF check to start of file.
26577         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26578         libc_cv_asm_gnu_indirect_function in the process.
26579         * configure: Regenerated.
26580
26581 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26582
26583         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26584         send the output to /dev/null.
26585         (libc_cv_cc_with_libunwind): Likewise.
26586         (libc_cv_as_noexecstack): Likewise.
26587         * configure: Regenerate.
26588
26589 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26590
26591         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26592
26593         * posix/globtest.sh (TMPDIR): Do not set.
26594         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26595         (testout): Likewise.
26596
26597 2012-10-24  Andreas Jaeger  <aj@suse.de>
26598
26599         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26600         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26601         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26602         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26603         posix_fadvise64, posix_fallocate64.
26604
26605         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26606         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26607         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26608         Likewise.
26609         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26610         Likewise.
26611         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26612
26613         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26614         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26615         <bits/fcntl-linux.h>.
26616         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26617
26618         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26619         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26620         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26621         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26622         [__WORDSIZE != 64]: Likewise.
26623
26624 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26625
26626         * Makeconfig (run-built-tests): New variable.
26627         * Rules [$(cross-compiling) = yes]: Change condition to
26628         [$(run-built-tests) = no].
26629         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26630         to [$(run-built-tests) = yes].
26631         * elf/Makefile [$(cross-compiling) = no]: Likewise
26632         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26633         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26634         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26635         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26636         * io/Makefile [$(cross-compiling) = no]: Likewise.
26637         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26638         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26639         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26640         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26641         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26642         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26643         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26644         * string/Makefile [$(cross-compiling) = no]: Likewise.
26645
26646         * posix/Makefile ($(objpfx)globtest.out): Pass
26647         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26648         $(rtld-installed-name).
26649         * posix/globtest.sh (elf_objpfx): Remove variable.
26650         (rtld_installed_name): Likewise.
26651         (library_path): Likewise.
26652         (run_program_prefix): New variable.  Use for running globtest
26653         binary.
26654
26655 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26656             Joseph Myers  <joseph@codesourcery.com>
26657
26658         * Makeconfig (host-built-program-cmd): New variable.
26659         * elf/Makefile (tst-stackguard1-ARGS): Use
26660         $(host-built-program-cmd).
26661         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26662         (tst-spawn-ARGS): Likewise.
26663         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26664
26665 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26666             Jim Blandy  <jimb@codesourcery.com>
26667
26668         * Makeconfig (run-via-rtld-prefix): New variable.
26669         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26670         (built-program-cmd): Likewise.
26671
26672 2012-10-22  Andreas Jaeger  <aj@suse.de>
26673
26674         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26675         __O_RSYNC if it exists, otherwise to O_SYNC.
26676
26677 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26678             Joseph Myers  <joseph@codesourcery.com>
26679
26680         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26681         /dev/null.
26682         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26683         from /dev/null
26684         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26685         /dev/null.
26686
26687 2012-10-22  Andreas Jaeger  <aj@suse.de>
26688
26689         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26690         Define always.
26691         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26692
26693         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26694         bits/fcntl-linux.h.
26695
26696         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26697         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26698
26699         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26700         to __O_LARGEFILE.
26701         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26702         to __O_LARGEFILE.
26703
26704 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26705             Joseph Myers  <joseph@codesourcery.com>
26706
26707         * config.make.in (NM): New variable.
26708
26709 2012-10-21  Andreas Jaeger  <aj@suse.de>
26710
26711         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26712         definitions and declarations that are provided by
26713         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26714
26715 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26716
26717         [BZ #14683]
26718         * elf/Makefile (tests-static): Add tst-leaks1-static.
26719         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26720         ($(objpfx)tst-leaks1-static): New rule.
26721         ($(objpfx)tst-leaks1-static-mem): Likewise.
26722         (tst-leaks1-static-ENV): New macro.
26723         * elf/dl-open.c (dl_open_worker): Check the main application
26724         only if SHARED is defined.
26725         * elf/tst-leaks1-static.c: New file.
26726
26727 2012-10-20  Andreas Jaeger  <aj@suse.de>
26728
26729         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26730         generic values for Linux.
26731         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26732         and declarations that are provided by <bits/fcntl-linux.h> and
26733         include <bits/fcntl-linux.h>.
26734         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26735         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26736
26737 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26738
26739         * io/fcntl.h: Move include of <bits/types.h> to the top and
26740         include it unconditionally.
26741
26742 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26743
26744         * wcsmbs/Makefile (tests-ifunc): New variable.
26745         (tests): Add $(tests-ifunc).
26746         * wcsmbs/test-wcschr-ifunc.c: New file.
26747         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26748         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26749         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26750         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26751         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26752
26753         * string/Makefile (tests-ifunc): New variable.
26754         (tests): Add $(tests-ifunc).
26755         * string/test-memccpy.c (TEST_NAME): New macro.
26756         * string/test-memchr.c (TEST_NAME): Likewise.
26757         * string/test-memcmp.c (TEST_NAME): Likewise.
26758         * string/test-memcpy.c (TEST_NAME): Likewise.
26759         * string/test-memmem.c (TEST_NAME): Likewise.
26760         * string/test-memmove.c (TEST_NAME): Likewise.
26761         * string/test-memset.c (TEST_NAME): Likewise.
26762         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26763         * string/test-stpcpy.c (TEST_NAME): Likewise.
26764         * string/test-stpncpy.c (TEST_NAME): Likewise.
26765         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26766         * string/test-strcasestr.c (TEST_NAME): Likewise.
26767         * string/test-strcat.c (TEST_NAME): Likewise.
26768         * string/test-strchr.c (TEST_NAME): Likewise.
26769         * string/test-strcmp.c(TEST_NAME): Likewise.
26770         * string/test-strcpy.c (TEST_NAME): Likewise.
26771         * string/test-strcspn.c (TEST_NAME): Likewise.
26772         * string/test-strlen.c (TEST_NAME): Likewise.
26773         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26774         * string/test-strncmp.c (TEST_NAME): Likewise.
26775         * string/test-strncpy.c (TEST_NAME): Likewise.
26776         * string/test-strnlen.c (TEST_NAME): Likewise.
26777         * string/test-strpbrk.c (TEST_NAME): Likewise.
26778         * string/test-strrchr.c (TEST_NAME): Likewise.
26779         * string/test-strspn.c (TEST_NAME): Likewise.
26780         * string/test-strstr.c (TEST_NAME): Likewise.
26781         * string/test-bcopy-ifunc.c: New file.
26782         * string/test-bzero-ifunc.c: Likewise.
26783         * string/test-memccpy-ifunc.c: Likewise.
26784         * string/test-memchr-ifunc.c: Likewise.
26785         * string/test-memcmp-ifunc.c: Likewise.
26786         * string/test-memcpy-ifunc.c: Likewise.
26787         * string/test-memmem-ifunc.c: Likewise.
26788         * string/test-memmove-ifunc.c: Likewise.
26789         * string/test-mempcpy-ifunc.c: Likewise.
26790         * string/test-memset-ifunc.c: Likewise.
26791         * string/test-rawmemchr-ifunc.c: Likewise.
26792         * string/test-stpcpy-ifunc.c: Likewise.
26793         * string/test-stpncpy-ifunc.c: Likewise.
26794         * string/test-strcasecmp-ifunc.c: Likewise.
26795         * string/test-strcasestr-ifunc.c: Likewise.
26796         * string/test-strcat-ifunc.c: Likewise.
26797         * string/test-strchr-ifunc.c: Likewise.
26798         * string/test-strchrnul-ifunc.c: Likewise.
26799         * string/test-strcmp-ifunc.c: Likewise.
26800         * string/test-strcpy-ifunc.c: Likewise.
26801         * string/test-strcspn-ifunc.c: Likewise.
26802         * string/test-strlen-ifunc.c: Likewise.
26803         * string/test-strncasecmp-ifunc.c: Likewise.
26804         * string/test-strncat-ifunc.c: Likewise.
26805         * string/test-strncmp-ifunc.c: Likewise.
26806         * string/test-strncpy-ifunc.c: Likewise.
26807         * string/test-strnlen-ifunc.c: Likewise.
26808         * string/test-strpbrk-ifunc.c: Likewise.
26809         * string/test-strrchr-ifunc.c: Likewise.
26810         * string/test-strspn-ifunc.c: Likewise.
26811         * string/test-strstr-ifunc.c: Likewise.
26812
26813         * debug/Makefile (tests-ifunc): New variable.
26814         (tests): Add $(tests-ifunc).
26815         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26816         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26817         * debug/test-stpcpy_chk-ifunc.c: New file.
26818         * debug/test-strcpy_chk-ifunc.c: Likewise.
26819
26820 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26821
26822         [BZ #13601]
26823         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26824         header is not read in.
26825
26826 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26827
26828         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26829         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26830         directly.  Pass built executable to script as
26831         $(built-program-cmd).
26832         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26833         $testprogram without using LD_LIBRARY_PATH and $ldso.
26834
26835         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26836         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26837         $(rtld-installed-name).
26838         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26839         (rtld_installed_name): Likewise.
26840         (library_path): Likewise.
26841         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26842         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26843         $(run-program-prefix) to tst-tables.sh.
26844         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26845         it to run tst-table-from and tst-table-to.
26846         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26847         Pass it to tst-table.sh.
26848         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26849         $(run-program-prefix) to tst-gettext.sh.
26850         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26851         tst-translit.sh.
26852         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26853         tst-gettext2.sh.
26854         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26855         to run tst-gettext.
26856         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26857         to run tst-gettext2.
26858         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26859         to run tst-translit.
26860         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26861         $(run-program-prefix) to tst-mtrace.sh.
26862         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26863         to run tst-mtrace.
26864         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26865         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26866         $(rtld-installed-name).
26867         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26868         (rtld_installed_name): Likewise.
26869         (run_program_prefix): New variable.  Use it to run wordexp-test.
26870
26871         * Makeconfig (ARCH): Remove all definitions.
26872         (machine): Likewise.
26873         [ARCH]: Remove conditional code.
26874         [!objdir]: Give error.
26875         [!objdir] (objpfx): Remove.
26876         [!objdir] (common-objpfx): Likewise.
26877         [!objdir] (common-objdir): Likewise.
26878         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26879         AC_CONFIG_FILES call.
26880         * configure: Regenerated.
26881
26882         [BZ #13888]
26883         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26884         or TMPDIR.
26885         (testout): Likewise.
26886
26887         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26888         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26889         $(rtld-installed-name).
26890         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26891         (rtld_installed_name): Likwise.
26892         (runit): Remove function.
26893         (run_getconf): New variable,  Use it for running getconf binary.
26894
26895 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26896
26897         [BZ #14716]
26898         * string/test-memmem.c (check_result): New function.
26899         (do_one_test): Use it.
26900         (check1): New function.
26901         (test_main): Use it.
26902
26903 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26904
26905         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26906
26907 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26908
26909         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26910         (_G_LSEEK64): Likewise.
26911         (_G_MMAP64): Likewise.
26912         (_G_FSTAT64): Likewise.
26913         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26914         (_G_LSEEK64): Likewise.
26915         (_G_MMAP64): Likewise.
26916         (_G_FSTAT64): Likewise.
26917         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26918         unconditional.  Call __mmap64 directly.
26919         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26920         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26921         __lseek64 directly.
26922         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26923         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26924         __mmap64 directly.
26925         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26926         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26927         __lseek64 directly.
26928         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26929         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26930         __lseek64 directly.
26931         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26932         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26933         __lseek64 directly.
26934         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26935         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26936         __fxstat64 directly.
26937         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26938         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26939         unconditional.
26940         (freopen64) [!_G_OPEN64]: Remove conditional code.
26941         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26942         unconditional.
26943         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26944         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26945         unconditional.
26946         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26947         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26948         unconditional.
26949         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26950         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26951         unconditional.
26952         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26953         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26954         unconditional.
26955         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26956         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26957         unconditional.
26958         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26959         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26960         unconditional.
26961         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26962
26963 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26964
26965         [BZ #12140]
26966         * manual/memory.texi (Malloc Tunable Parameters): Add note
26967         about free list pointers overwriting some perturb bytes.
26968         Wording suggested by Roland McGrath.
26969
26970 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26971
26972         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26973         (lgamma_test): Likewise.
26974         (tgamma_test): Likewise.
26975
26976 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26977
26978         [BZ #14700]
26979         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26980         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26981
26982 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26983
26984         * NEWS: Mention BZ #14716.
26985         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26986         when removing AVAILABLE1_USES_J macro.
26987
26988 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26989
26990         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26991         (__bswap_64): __uint64_t for unsigned 64-bit int.
26992
26993 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26994
26995         * include/string.h (memmem): Declare libc hidden alias.
26996         * string/memmem.c (memmem): Define libc hidden alias.
26997         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26998         __read, __close instead of open, read, close.
26999
27000 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
27001
27002         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
27003         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
27004         global and hidden.
27005         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
27006         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
27007         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
27008         Likewise.
27009         (__rawmemchr_sse2): Likewise.
27010         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
27011         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
27012         (__strchr_sse2): Likewise.
27013         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
27014         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
27015         (__strcasecmp_sse2): Likewise.
27016         (__strncasecmp_sse2): Likewise.
27017         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
27018         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
27019         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
27020         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
27021         (__strrchr_sse2): Likewise.
27022         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
27023         ifunc-impl-list.c.
27024         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27025         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27026         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27027         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27028         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27029         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27030         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27031         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27032         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
27033         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
27034         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
27035         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
27036         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
27037         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27038         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27039         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27040         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27041         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27042         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
27043         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
27044         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
27045         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
27046         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
27047         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
27048         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
27049         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
27050         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27051         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27052         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27053         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27054
27055         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
27056         global and hidden.
27057         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27058         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27059         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27060         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27061         Likewise.
27062         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27063         Likewise.
27064         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27065         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27066         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27067         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27068         ifunc-impl-list.c.
27069         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27070         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27071         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27072         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27073         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27074         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27075         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27076         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27077         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27078         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27079         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27080         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27081         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27082         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27083         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27084         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27085         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27086         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27087         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27088         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27089         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27090         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27091         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27092         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27093         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27094         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27095         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27096         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27097         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27098         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27099         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27100         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27101         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27102         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27103         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27104         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27105         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27106         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27107         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27108         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27109         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27110
27111         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27112         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27113         * include/ifunc-impl-list.h: New file.
27114         * misc/ifunc-impl-list.c: Likewise.
27115         * misc/Makefile (routines): Add ifunc-impl-list.
27116         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27117         * string/test-string.h: Include <ifunc-impl-list.h>.
27118         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27119         TEST_NAME]: New variables.
27120         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27121         are defined.
27122         (test_init): Call __libc_ifunc_impl_list to initialize
27123         func_list if TEST_IFUNC and TEST_NAME are defined.
27124
27125         * string/Makefile (strop-tests): Add bcopy and bzero.
27126         * string/test-bcopy.c: New file.
27127         * string/test-bzero.c: Likewise.
27128         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27129         defined.
27130         * string/test-memset.c: Support bzero test if TEST_BZERO is
27131         defined.
27132         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27133         __libc_memmove.
27134         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27135         __libc_memset.
27136         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27137         of memset.
27138
27139 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27140
27141         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27142         * configure: Regenerated.
27143
27144         * Makeconfig (+link-static-before-libc): Don't include
27145         $(link-static-libc).
27146
27147         * libio/libio.h (_IO_pos_t): Remove.
27148
27149 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27150
27151         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27152         McGrath.
27153
27154 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27155
27156         * crypt/crypt-entry.c: Include fips-private.h.
27157         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27158         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27159         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27160         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27161
27162 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27163
27164         * crypt/crypt-private.h: Include stdbool.h.
27165         (_ufc_setup_salt_r): Return bool.
27166         * crypt/crypt-entry.c: Include errno.h.
27167         (__crypt_r): Return NULL with EINVAL for bad salt.
27168         * crypt/crypt_util.c (bad_for_salt): New.
27169         (_ufc_setup_salt_r): Check that salt is long enough and within
27170         the specified alphabet.
27171         * crypt/badsalttest.c: New file.
27172         * crypt/Makefile (tests): Add it.
27173         ($(objpfx)badsalttest): New.
27174
27175 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27176
27177         * NEWS: Add entry for BZ #14602.
27178
27179 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27180
27181         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27182         type-generic.
27183         * math/libm-test.inc: Update comment listing what functions and
27184         macros are tested.
27185         (isgreater_test): New function.
27186         (isgreaterequal_test): Likewise.
27187         (isless_test): Likewise.
27188         (islessequal_test): Likewise.
27189         (islessgreater_test): Likewise.
27190         (isunordered_test): Likewise.
27191         (main): Call the new functions.
27192
27193 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27194
27195         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27196         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27197         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27198         * sysdeps/i386/configure: Regenerated.
27199         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27200         * sysdeps/mach/configure: Regenerated.
27201         * sysdeps/mach/hurd/configure: Regenerated.
27202         * sysdeps/powerpc/configure: Regenerated.
27203         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27204         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27205         * sysdeps/s390/s390-32/configure: Regenerated.
27206         * sysdeps/s390/s390-64/configure: Regenerated.
27207         * sysdeps/sh/configure: Regenerated.
27208         * sysdeps/sparc/configure: Regenerated.
27209         * sysdeps/unix/sysv/linux/configure: Regenerated.
27210         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27211         * sysdeps/x86_64/configure: Regenerated.
27212
27213         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27214         defined.  Don't check if MAP is NULL.
27215
27216 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27217
27218         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27219         (_G_stat64): Likewise.
27220         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27221         (_G_stat64): Likewise.
27222         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27223         instead of struct _G_stat64.
27224         * libio/fileops.c (mmap_remap_check): Likewise.
27225         (decide_maybe_mmap): Likewise.
27226         (_IO_new_file_seekoff): Likewise.
27227         (_IO_file_stat): Likewise.
27228         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27229         _G_off64_t.
27230         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27231         instead of struct _G_stat64.
27232         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27233
27234 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27235
27236         [BZ #14602]
27237         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27238         Replace with ...
27239         (CHECK_EOL): New macro.
27240         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27241         CHECK_EOL.
27242         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27243         Replace with CHECK_EOL.
27244         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27245         Replace with CHECK_EOL.
27246
27247 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27248
27249         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27250         type-generic.
27251         * math/libm-test.inc: Update comment listing what functions and
27252         macros are tested.
27253         (finite_test): New function.
27254         (isinf_test): Likewise.
27255         (isnan_test): Likewise.
27256         (fpclassify_test): Test subnormal input.
27257         (isfinite_test): Likewise.
27258         (isnormal_test): Likewise.
27259         (main): Call the new functions.
27260
27261 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27262
27263         [BZ #14660]
27264         * Makerules (%.dynsym): Force C locale when running
27265         $(OBJDUMP) --dynamic-syms.
27266
27267 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27268
27269         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27270         <stdint.h>.
27271
27272 2012-10-06  David S. Miller  <davem@davemloft.net>
27273
27274         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27275         upper 32-bits of the length value in %o2 since we use branch-on-register
27276         tests which consider the entire 64-bit register.
27277
27278 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27279
27280         * string/test-strstr.c (check2): Add a test for page boundary.
27281
27282 2012-10-05  David S. Miller  <davem@davemloft.net>
27283
27284         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27285         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27286         file.
27287         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27288         sysdep_routines.
27289         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27290         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27291         and bzero when HWCAP_SPARC_CRYPTO is present.
27292
27293 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27294
27295         [BZ #14602]
27296         * string/test-strstr.c (check2): New function.
27297         (test_main): Call check2.
27298
27299         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27300         and bug-strchr1.
27301         * string/bug-strcasestr1.c (do_test): Moved to ...
27302         * string/test-strcasestr.c (check1): Here.  New function.
27303         (do_one_test): Break out result checking code into ...
27304         (check_result): This.  New function.
27305         (do_one_test): Call check_result.
27306         (test_main): Call check1.
27307         * string/bug-strchr1.c (do_test): Moved to ...
27308         * string/test-strchr.c (check1): Here.  New function.
27309         (do_one_test): Break out result checking code into ...
27310         (check_result): This.  New function.
27311         (do_one_test): Call check_result.
27312         (test_main): Call check1.
27313         * string/bug-strstr1.c (main): Moved to ...
27314         * string/test-strstr.c (check1): Here.  New function.
27315         (do_one_test): Break out result checking code into ...
27316         (check_result): This.  New function.
27317         (do_one_test): Call check_result.
27318         (test_main): Call check1.
27319         * string/bug-strcasestr1.c: Removed.
27320         * string/bug-strchr1.c: Likewise.
27321         * string/bug-strstr1.c: Likewise.
27322
27323         * elf/Makefile (dl-routines): Add hwcaps.
27324         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27325         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27326         (_dl_important_hwcaps): Moved to ...
27327         * elf/dl-hwcaps.c: Here.  New file.
27328         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27329
27330         [BZ #14557]
27331         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27332         if IS_IN_rtld isn't defined.
27333
27334         * elf/dl-support.c (_dl_sysinfo_map): New.
27335         Include "get-dynamic-info.h" and "setup-vdso.h".
27336         (_dl_non_dynamic_init): Call setup_vdso.
27337         * elf/dynamic-link.h: Don't include <assert.h>.
27338         (elf_get_dynamic_info): Moved to ...
27339         * elf/get-dynamic-info.h: Here.  New file.
27340         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27341         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27342         * elf/setup-vdso.h: Here.  New file.
27343         * elf/rtld.c: Include "setup-vdso.h".
27344         (dl_main): Call setup_vdso.
27345
27346 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27347
27348         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27349         creal in comment listing functions tested.  List finite, isinf,
27350         isnan, isless, islessequal, isgreater, isgreaterequal,
27351         islessgreater, isunordered, lgamma_r and pow10 as functions and
27352         macros not tested.  Mention which functions not tested are aliases
27353         for other functions.  Fix typo.  Note that signs of NaNs are not
27354         tested.
27355
27356         * scripts/config.guess: Update from config.git.
27357         * scripts/config.sub: Likewise.
27358
27359 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27360
27361         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27362         * misc/madvise.c (madvise): Renamed to __madvise.
27363         Make madvise a weak alias.
27364         * include/sys/mman.h: Declare __madvise.
27365         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27366         * sysdeps/unix/syscalls.list
27367         (madvise): Make __madvise the strong name, and madvise a weak alias.
27368         * sysdeps/unix/sysv/linux/syscalls.list
27369         (madvise, mmap): Remove redundant entries.
27370         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27371         * malloc/malloc.c (mtrim): Likewise.
27372         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27373
27374 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27375
27376         * sysdeps/mach/hurd/dl-cache.c: File removed.
27377         * config.h.in (USE_LDCONFIG): New #undef.
27378         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27379         * configure: Regenerated.
27380         * elf/Makefile (dl-routines): Add dl-cache only under
27381         [$(use-ldconfig) = yes].
27382         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27383         cache on [USE_LDCONFIG].
27384         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27385         [USE_LDCONFIG].
27386         * elf/rtld.c (dl_main): Likewise.
27387
27388 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27389
27390         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27391         _SC_LEVEL4_CACHE_LINESIZE.
27392
27393 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27394
27395         * sysdeps/unix/bsd/confstr.h: File removed.
27396
27397 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27398
27399         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
27400         sys/sdt-config.h.
27401
27402 2012-10-02  Roland McGrath  <roland@hack.frob.com>
27403
27404         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
27405         Make 'mapoff' field ElfW(Off) rather than off_t.
27406
27407 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
27408
27409         * nscd/Makefile: Remove nscd-cflags and all its users.
27410         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
27411         (CFLAGS-nonlib): Add compiler flags for nscd modules.
27412
27413         [BZ #10631]
27414         * malloc.c (malloc_printerr): Clarify error message.
27415
27416 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
27417
27418         [BZ #14648]
27419         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27420         Set bit_FMA_Usable if FMA is supported.
27421         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
27422         macro.
27423         (bit_FMA4_Usable): Updated.
27424         (index_FMA_Usable): New macro.
27425         (CPUID_FMA): Likewise
27426         (HAS_FMA): Defined with bit_FMA_Usable.
27427
27428 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27429
27430         * bits/types.h (__swblk_t): Type removed.
27431         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
27432         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
27433         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27434         (__SWBLK_T_TYPE): Likewise.
27435         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27436         (__SWBLK_T_TYPE): Likewise.
27437         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27438         (__SWBLK_T_TYPE): Likewise.
27439         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27440         (__SWBLK_T_TYPE): Likewise.
27441
27442 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27443             Honza Horak <hhorak@redhat.com>
27444
27445         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27446         (xdr_mapname): Use YPMAXMAP as maxsize.
27447         (xdr_peername): Use YPMAXPEER as maxsize.
27448         (xdr_keydat): Use YPAXRECORD as maxsize.
27449         (xdr_valdat): Use YPMAXRECORD as maxsize.
27450
27451 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27452
27453         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27454
27455         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27456         * csu/init-first.c: ... here.
27457         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27458         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27459         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27460         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27461         * sysdeps/i386/init-first.c: File removed.
27462         * sysdeps/sh/init-first.c: File removed.
27463
27464 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27465
27466         [BZ #14645]
27467         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27468         if x * y might underflow to zero and z is zero.
27469         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27470         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27471         * math/libm-test.inc (min_subnorm_value): New variable.
27472         (fma_test): Add more tests.
27473         (fma_test_towardzero): Likewise.
27474         (fma_test_downward): Likewise
27475         (fma_test_upward): Likewise.
27476         (initialize): Set min_subnorm_value.
27477
27478 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27479
27480         [BZ #14638]
27481         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27482         0 + 0.
27483         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27484         mode for addition resulting in exact zero.
27485         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27486         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27487         exact 0 + 0.
27488         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27489         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27490         * math/libm-test.inc (fma_test): Add more tests.
27491         (fma_test_towardzero): New function.
27492         (fma_test_downward): Likewise.
27493         (fma_test_upward): Likewise.
27494         (main): Call the new functions.
27495
27496 2012-09-28  David S. Miller  <davem@davemloft.net>
27497
27498         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27499
27500 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27501
27502         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27503         instead of SIGALRM.
27504
27505         * sysdeps/gnu/_G_config.h: Moved to ...
27506         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27507         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27508         * sysdeps/generic/_G_config.h: ... here.
27509
27510         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27511
27512         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27513
27514         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27515         Conditionalize target on [libnss_test1.so-version].
27516
27517         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27518
27519         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27520         (elfobjdir): Move out of conditionals.
27521
27522         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27523         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27524         (__nss_lookup_function): Conditionalize label remove_from_tree on
27525         [!DO_STATIC_NSS || SHARED], matching its only use.
27526
27527 2012-09-28  David S. Miller  <davem@davemloft.net>
27528
27529         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27530         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27531         file.
27532         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27533         sysdep_routines.
27534         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27535         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27536         when HWCAP_SPARC_CRYPTO is present.
27537
27538 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27539
27540         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27541
27542 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27543
27544         [BZ #6530]
27545         * stdio-common/vfprintf.c (process_string_arg): Revert
27546         2000-07-22 change.
27547
27548 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27549
27550         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27551         for testcase.
27552         * stdio-common/tst-sprintf.c: Include <locale.h>
27553         (main): Test sprintf's handling of incomplete multibyte
27554         characters.
27555
27556 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27557
27558         * elf/dl-runtime.c (VERSYMIDX): Removed.
27559         * elf/dl-version.c (VERSYMIDX): Likewise.
27560         * elf/do-rel.h (VERSYMIDX): Likewise.
27561         (VALIDX): Likewise.
27562         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27563         * elf/rtld.c (VALIDX): Likewise.
27564         (ADDRIDX): Likewise.
27565         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27566         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27567         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27568         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27569         (VALIDX): Likewise.
27570         (ADDRIDX): Likewise.
27571
27572 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27573
27574         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27575
27576 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27577
27578         [BZ #11438]
27579         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27580         to global scope.
27581         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27582         addresses are in the same scope as 192.0.2/24.
27583         * posix/gai.conf: Document new scope table defaults.
27584
27585 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27586
27587         [BZ #5298]
27588         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27589         for ftell.  Compute offsets from write pointers instead.
27590         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27591
27592 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27593
27594         [BZ #14543]
27595         * libio/Makefile (tests): New test case tst-fseek.
27596         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27597         combination works in wide mode.
27598         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27599         state when the external buffer state changes.
27600
27601 2012-09-27  David S. Miller  <davem@davemloft.net>
27602
27603         [BZ #14376]
27604         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27605         pass reloc->r_addend in as the 'high' argument to
27606         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27607
27608         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27609
27610 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27611
27612         * rt/tst-aio2.c: Include <pthread.h>.
27613         * rt/tst-aio3.c: Likewise.
27614
27615 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27616
27617         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27618
27619 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27620
27621         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27622         contents on [SHARED].
27623
27624 2012-09-26  Marek Polacek  <polacek@redhat.com>
27625
27626         [BZ #14530]
27627         [BZ #13741]
27628         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27629         for C++ and GCC <4.3 as well as for non GCC compilers.
27630
27631 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27632
27633         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27634
27635 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27636
27637         * Makefile.in (all, install): Declare with .PHONY.
27638         Reported by Michael Hope <michael.hope@linaro.org>.
27639
27640 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27641
27642         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27643         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27644         system header.
27645         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27646         Likewise.
27647         (sydep_routines): Add the new and the internal functions.
27648         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27649         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27651         (GLIBC_2.17): Add the new function.
27652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27653         (GLIBC_2.17): Likewise.
27654         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27655         (GLIBC_2.17): Likewise.
27656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27657         (GLIBC_2.17): Likewise.
27658         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27659
27660 2012-09-25  Alan Modra  <amodra@gmail.com>
27661
27662         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27663         Add release barrier before setting once_control to say
27664         initialisation is done.  Add hints on lwarx.  Use macro in
27665         place of isync.
27666         (clear_once_control): Add release barrier.
27667
27668 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27669
27670         [BZ #13629]
27671         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27672         specially.
27673         * math/s_clog10.c (__clog10): Likewise.
27674         * math/s_clog10f.c (__clog10f): Likewise.
27675         * math/s_clog10l.c (__clog10l): Likewise.
27676         * math/s_clogf.c (__clogf): Likewise.
27677         * math/s_clogl.c (__clogl): Likewise.
27678         * math/Makefile (libm-calls): Add x2y2m1.
27679         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27680         (__x2y2m1): Likewise.
27681         (__x2y2m1l): Likewise.
27682         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27683         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27684         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27685         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27686         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27687         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27688         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27689         * sysdeps/i386/fpu/libm-test-ulps: Update.
27690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27691
27692         [BZ #14621]
27693         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27694         int as type of variable DEPTH.
27695         (glob): Use size_t instead of int as type of variables NEWCOUNT
27696         and OLD_PATHC.
27697
27698 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27699
27700         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27701         Add s_sincosf-sse2.
27702         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27703         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27704         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27705         macros for using routine as __sincosf_ia32.
27706         Use macro for function declaration and weak_alias.
27707         * sysdeps/i386/fpu/libm-test-ulps: Update.
27708
27709         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27710         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27711
27712         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27713         subnormal argument.
27714         * math/s_cexpf.c (__cexpf): Likewise.
27715         * math/s_csinf.c (__csinf): Likewise.
27716         * math/s_csinhf.c (__csinhf): Likewise.
27717         * math/s_ctanf.c (__ctanf): Likewise.
27718         * math/s_ctanhf.c (__ctanhf): Likewise.
27719         * math/s_ccosh.c (__ccoshf): Likewise.
27720         * math/s_cexp.c (__cexpl): Likewise.
27721         * math/s_csin.c (__csin): Likewise.
27722         * math/s_csinh.c (__csinh): Likewise.
27723         * math/s_ctan.c (__ctan): Likewise.
27724         * math/s_ctanh.c (ctanh): Likewise.
27725         * math/s_ccoshl.c (__ccoshl): Likewise.
27726         * math/s_cexpl.c (__cexpl): Likewise.
27727         * math/s_csinl.c (__csinl): Likewise.
27728         * math/s_csinhl.c (__csinhl): Likewise.
27729         * math/s_ctanl.c (__ctanl): Likewise.
27730         * math/s_ctanhl.c (__ctanhl): Likewise.
27731
27732 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27733
27734         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27735         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27736         (_IO_off_t): Define to __off_t, not _G_off_t.
27737         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27738         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27739         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27740         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27741         type of __dummy and __dummy2 fields.
27742         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27743         (_G_ssize_t): Likewise.
27744         (_G_off_t): Likewise.
27745         (_G_pid_t): Likewise.
27746         (_G_uid_t): Likewise.
27747         (_G_wchar_t): Likewise.
27748         (_G_wint_t): Likewise.
27749         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27750         (_G_ssize_t): Likewise.
27751         (_G_off_t): Likewise.
27752         (_G_pid_t): Likewise.
27753         (_G_uid_t): Likewise.
27754         (_G_wchar_t): Likewise.
27755         (_G_wint_t): Likewise.
27756         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27757         (_G_ssize_t): Likewise.
27758         (_G_off_t): Likewise.
27759         (_G_pid_t): Likewise.
27760         (_G_uid_t): Likewise.
27761         (_G_wchar_t): Likewise.
27762         (_G_wint_t): Likewise.
27763
27764 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27765
27766         * malloc/arena.c: Include malloc-sysdep.h.
27767         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27768         is sufficient to shrink the heap or an unmap is needed.
27769         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27770         new function check_may_shrink_heap.
27771         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27772         new function check_may_shrink_heap.
27773
27774 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27775
27776         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27777         comments.
27778
27779 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27780
27781         * catgets/test-gencat.sh: Add "set -e".
27782         * elf/tst-pathopt.sh: Likewise.
27783         * grp/tst_fgetgrent.sh: Likewise.
27784         * iconvdata/run-iconv-test.sh: Likewise.
27785         * intl/tst-gettext.sh: Likewise.
27786         * intl/tst-gettext2.sh: Likewise.
27787         * intl/tst-gettext4.sh: Likewise.
27788         * intl/tst-gettext6.sh: Likewise.
27789         * intl/tst-translit.sh: Likewise.
27790         * io/ftwtest-sh: Likewise.
27791         * libio/test-freopen.sh: Likewise.
27792         * malloc/tst-mtrace.sh: Likewise.
27793         * posix/globtest.sh: Likewise.
27794         * posix/tst-getconf.sh: Likewise.
27795         * posix/wordexp-tst.sh: Likewise.
27796         * stdio-common/tst-printf.sh: Likewise.
27797         * stdio-common/tst-unbputc.sh: Likewise.
27798         * stdlib/tst-fmtmsg.sh: Likewise.
27799         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27800         * catgets/Makefile: Do not specify -e option when running
27801         testsuite shell scripts.
27802         * elf/Makefile: Likewise.
27803         * grp/Makefile: Likewise.
27804         * iconvdata/Makefile: Likewise.
27805         * intl/Makefile: Likewise.
27806         * io/Makefile: Likewise.
27807         * libio/Makefile: Likewise.
27808         * malloc/Makefile: Likewise.
27809         * posix/Makefile: Likewise.
27810         * stdio-common/Makefile: Likewise.
27811         * stdlib/Makefile: Likewise.
27812         * sysdeps/x86_64/Makefile: Likewise.
27813
27814         * io/ftwtest-sh: Add copyright header.
27815         * posix/globtest.sh: Likewise.
27816         * posix/tst-getconf.sh: Likewise.
27817         * posix/wordexp-tst.sh: Likewise.
27818         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27819
27820 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27821
27822         [BZ #13679]
27823         * Makeconfig (+link): Defined as $(+link-static) if
27824         $(build-shared) isn't yes.
27825         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27826         isn't yes.
27827         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27828
27829         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27830
27831         [BZ #14562]
27832         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27833         new chunk size with MALLOC_ALIGN_MASK.
27834
27835 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27836
27837         [BZ #5044]
27838         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27839         <rounding-mode.h>.
27840         (__printf_fphex): Determine rounding using get_rounding_mode and
27841         round_away.
27842         * stdio-common/tst-printf-round.c (struct hex_test): New
27843         structure.
27844         (hex_tests): New variable.
27845         (test_hex_in_one_mode): New function.
27846         (do_test): Also run tests for hex float output.
27847
27848 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27849
27850         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27851         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27852         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27853         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27854         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27855         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27856         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27857         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27858
27859 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27860
27861         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27862         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27863         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27864         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27865
27866 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27867
27868         [BZ #14579]
27869         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27870         mode only.
27871         * elf/tst-rtld-load-self.sh: New test.
27872         * elf/Makefile: Run it.
27873
27874 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27875
27876         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27877         (tst-writev-ENV): Remove.
27878         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27879
27880 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27881
27882         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27883
27884 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27885
27886         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27887         unconditional.
27888         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27889         Likewise.
27890         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27891         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27892         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27893         Likewise.
27894
27895 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27896
27897         [BZ #14587]
27898         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27899         * config.make.in (have-cpp-asm-debuginfo): Removed.
27900         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27901         * configure: Regenerated.
27902
27903 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27904
27905         [BZ #5044]
27906         * stdio-common/printf_fp.c: Include <stdbool.h> and
27907         <rounding-mode.h>.
27908         (___printf_fp): Determine rounding using get_rounding_mode and
27909         round_away.
27910         * stdio-common/tst-printf-round.c: New file.
27911         * stdio-common/Makefile (tests): Add tst-printf-round.
27912         (link-libm): New variable.
27913         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27914
27915 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27916
27917         [BZ #14576]
27918         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27919         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27920         Likewise.
27921         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27922         Likewise.
27923
27924 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27925
27926         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27927         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27928         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27929         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27930
27931 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27932
27933         [BZ #14518]
27934         * include/rounding-mode.h: New file.
27935         * sysdeps/generic/get-rounding-mode.h: Likewise.
27936         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27937         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27938         (MAX_VALUE): New macro.
27939         (MIN_VALUE): Likewise.
27940         (overflow_value): New function.
27941         (underflow_value): Likewise.
27942         (round_and_return): Use overflow_value and underflow_value to
27943         determine return values in overflow and underflow cases.  Use
27944         round_away to determine rounding depending on rounding mode.
27945         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27946         determine return values in overflow and underflow cases.
27947         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27948         (struct test_results): New structure.
27949         (struct test): Use struct test_results to store expected results
27950         for all rounding modes.
27951         (TEST): Include expected results for all rounding modes.
27952         (test_in_one_mode): New function.
27953         (do_test): Use test_in_one_mode to compute and check results.
27954         Check results for all rounding modes.
27955         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27956         $(link-libm).
27957
27958 2012-12-09  Allan McRae  <allan@archlinux.org>
27959
27960         * sysdeps/i386/fpu/libm-test-ulps: Update
27961
27962 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27963
27964         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27965         (_G_int32_t): Likewise.
27966         (_G_uint16_t): Likewise.
27967         (_G_uint32_t): Likewise.
27968         (_G_HAVE_BOOL): Likewise.
27969         (_G_HAVE_ATEXIT): Likewise.
27970         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27971         (_G_HAVE_IO_FILE_OPEN): Likewise.
27972         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27973         (_G_int32_t): Likewise.
27974         (_G_uint16_t): Likewise.
27975         (_G_uint32_t): Likewise.
27976         (_G_HAVE_BOOL): Likewise.
27977         (_G_HAVE_ATEXIT): Likewise.
27978         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27979         (_G_HAVE_IO_FILE_OPEN): Likewise.
27980         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27981         (_G_int32_t): Likewise.
27982         (_G_uint16_t): Likewise.
27983         (_G_uint32_t): Likewise.
27984         (_G_HAVE_BOOL): Likewise.
27985         (_G_HAVE_ATEXIT): Likewise.
27986         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27987         (_G_HAVE_IO_FILE_OPEN): Likewise.
27988
27989 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27990
27991         * csu/libc-tls.c: Update copyright years.
27992
27993 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27994
27995         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27996         [!_G_USING_THUNKS]: Remove conditional code.
27997         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27998         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27999
28000         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
28001         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
28002         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28003         (_G_VTABLE_LABEL_PREFIX): Likewise.
28004         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28005         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28006         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28007         (_G_VTABLE_LABEL_PREFIX): Likewise.
28008         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28009         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28010         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28011         (_G_VTABLE_LABEL_PREFIX): Likewise.
28012         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28013
28014 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
28015
28016         * libio/Makefile: Include ../Makeconfig before tests.
28017         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
28018         only if $(build-shared) is yes.
28019
28020         * iconv/gconv_db.c: Update copyright years.
28021
28022 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28023
28024         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
28025         unwind info if defined PIC. Fix special cases description.
28026         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
28027
28028         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
28029         DP_HI_MASK entry.
28030         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
28031
28032 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
28033
28034         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
28035
28036         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
28037         is NULL.
28038
28039         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
28040         (LDLIBS-tst-chk4): This.
28041         (LDFLAGS-tst-chk5): Renamed to ...
28042         (LDLIBS-tst-chk5): This.
28043         (LDFLAGS-tst-chk6): Renamed to ...
28044         (LDLIBS-tst-chk6): This.
28045         (LDFLAGS-tst-lfschk4): Renamed to ...
28046         (LDLIBS-tst-lfschk4): This.
28047         (LDFLAGS-tst-lfschk5): Renamed to ...
28048         (LDLIBS-tst-lfschk5): This.
28049         (LDFLAGS-tst-lfschk6): Renamed to ...
28050         (LDLIBS-tst-lfschk6): This.
28051
28052         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
28053         on $(common-objpfx)soversions.mk.
28054
28055 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
28056
28057         [BZ #10014]
28058         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28059         example host name.
28060
28061 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28062
28063         * malloc/arena.c (arena_get_retry): New function that gets
28064         another arena for the caller to try its request on.
28065         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28066         current arena cannot fulfill the request.
28067         (__libc_memalign): Likewise.
28068         (__libc_memalign): Likewise.
28069         (__libc_pvalloc): Likewise.
28070         (__libc_calloc): Likewise.
28071
28072 2012-09-05  John Tobey  <john.tobey@gmail.com>
28073
28074         [BZ #13542]
28075         * manual/arith.texi (Operations on Complex): Fix description
28076         of carg branch cut.
28077
28078 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28079
28080         [BZ #10014]
28081         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28082         host name.
28083
28084         [BZ #10038]
28085         * manual/memory.texi (Memory): Make order of menu items match
28086         order of sections.
28087
28088 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28089
28090         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28091         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28092         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28093
28094 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28095
28096         * csu/libc-tls.c (static_dtv): Renamed to ...
28097         (_dl_static_dtv): This.  Make it global.
28098         (_dl_initial_dtv): Removed.
28099         (__libc_setup_tls): Updated.
28100         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28101         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28102         DL_INITIAL_DTV.
28103
28104 2012-09-06  Petr Machata  <pmachata@redhat.com>
28105
28106         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28107         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28108         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28109         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28110
28111 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28112
28113         [BZ #14545]
28114         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28115         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28116         freeing dtv[-1].
28117
28118 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28119
28120         [BZ #14544]
28121         * Makeconfig (link-static-before-libc): Replace $(+prector)
28122         with $(+prectorT).
28123         (link-static-after-libc): Replace $(+postctor) with
28124         $(+postctorT).
28125         (link-bounded): Replace $(+prector)/$(+postctor) with
28126         $(+prectorT)/$(+postctorT).
28127         (+prectorT): New macro.
28128         (+postctorT): Likewise.
28129
28130 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28131
28132         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28133         (round_str): Handle values above the maximum for IBM long double
28134         as inexact.
28135         * stdlib/tst-strtod-round.c (tests): Regenerated.
28136
28137 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28138
28139         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28140         assembler flag.
28141         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28142         zarch_nohighgprs around the zarch optimized routines.
28143         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28144         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28145         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28146         for zarch.
28147
28148 2012-09-05  David S. Miller  <davem@davemloft.net>
28149
28150         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28151
28152         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28153         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28154         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28155         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28156         entries.
28157
28158 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28159
28160         * malloc/arena.c: Fold copyright years.
28161         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28162
28163 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28164
28165         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28166
28167 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28168
28169         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28170
28171 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28172
28173         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28174         change internal state upon failure.
28175
28176 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28177
28178         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28179         * malloc/memusage.c (mmap): Likewise.
28180         (mmap64, mremap): Likewise.  Adjust name in comment.
28181
28182 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28183
28184         * libio/fileops.c: Fix typos in comments.
28185         * libio/oldfileops.c: Likewise.
28186         * libio/wfileops.c: Likewise.
28187
28188 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28189
28190         [BZ #1349]
28191         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28192         (tst-malloc-usable-ENV): Set environment for test case.
28193         * malloc/hooks.c (malloc_check_get_size): New function to get
28194         requested size.
28195         * malloc/malloc.c (musable): Use malloc_check_get_size.
28196         * malloc/tst-malloc-usable.c: New test case.
28197
28198 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28199
28200         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28201
28202 2012-09-05  Allan McRae  <allan@archlinux.org>
28203
28204         [BZ #13966]
28205         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28206         determine header location.
28207         * configure: Regenerated.
28208
28209 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28210
28211         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28212         float format.
28213         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28214         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28215         format.
28216         (test): Regenerate.
28217
28218 2012-09-04  David S. Miller  <davem@davemloft.net>
28219
28220         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28221         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28222         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28223
28224 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28225
28226         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28227         failures.
28228
28229         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28230
28231 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28232
28233         [BZ #9914]
28234         * libio/iogetdelim.c: Include <limits.h>.
28235         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28236         + len + 1 would overflow.
28237
28238 2012-09-03  Andreas Jaeger  <aj@suse.de>
28239
28240         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28241         * sysdeps/i386/fpu/libm-test-ulps: Update.
28242
28243 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28244
28245         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28246         Add s_sinf-sse2, s_conf-sse2.
28247
28248         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28249         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28250         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28251         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28252
28253         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28254         for using routine as __sinf_ia32.
28255         Use macro for function declaration and weak_alias.
28256         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28257         for using routine as __cosf_ia32.
28258         Use macro for function declaration and weak_alias.
28259
28260         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28261         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28262
28263         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28264         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28265         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28266
28267         * math/libm-test.inc (cos_test): Add more test cases.
28268         (sin_test): Likewise.
28269         (sincos_test): Likewise.
28270
28271 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28272
28273         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28274         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28275         hidden.
28276         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28277
28278 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28279
28280         [BZ #14538]
28281         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28282         first element of the GOT.
28283         (elf_machine_load_address): Return the difference between
28284         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28285
28286 2012-09-01  Allan McRae  <allan@archlinux.org>
28287
28288         [BZ #13412]
28289         * configure.in (AWK): Require gawk version 3.0 or later.
28290         * configure: Regenerated.
28291
28292 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28293
28294         * sysdeps/unix/sysv/linux/kernel-features.h
28295         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28296         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28297         [__NR_clock_getres]: Make code unconditional.
28298         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28299         (clock_getcpuclockid): Remove code left unreachable by removal of
28300         conditionals.
28301         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28302         code unconditional.
28303         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28304         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28305         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28306         Make code unconditional.
28307         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28308         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28309         * sysdeps/unix/sysv/linux/clock_settime.c
28310         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28311         conditional code.
28312         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28313         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28314
28315 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28316
28317         [BZ #14476]
28318         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28319         scripts/test-installation.pl.
28320
28321         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28322         and $ld_so_version if it is set.
28323
28324 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28325
28326         [BZ #14516]
28327         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28328         failure if reading from procfs failed.
28329         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28330
28331 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28332
28333         * sysdeps/unix/sysv/linux/kernel-features.h
28334         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28335         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28336         Remove conditional code.
28337         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28338         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28339         Remove conditional code.
28340         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28341         * sysdeps/unix/sysv/linux/i386/fxstat.c
28342         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28343         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28344         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28345         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28346         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28347         * sysdeps/unix/sysv/linux/i386/lxstat.c
28348         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28349         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28350         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28351         Remove conditional code.
28352         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28353         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28354         Remove conditional code.
28355         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28356         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28357         <kernel-features.h>.
28358         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28359         Remove.
28360         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28361         Remove conditional code.
28362         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28363         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28364         Remove conditional.
28365
28366 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28367
28368         [BZ #5400]
28369         * NEWS: Add fixed bug number.
28370
28371 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28372
28373         [BZ #14519]
28374         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28375         underflowing exponent in case of negative sign.
28376         * stdlib/tst-strtod-round-data: Add more tests.
28377         * stdlib/tst-strtod-round.c (tests): Regenerated.
28378
28379         [BZ #3479]
28380         * stdlib/strtod_l.c (NDIG): Remove.
28381         (HEXNDIG): Likewise.
28382         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28383         smallest representable value.
28384         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28385         lie within an exact representation of 1/2 ulp of the result.
28386         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28387         unconditionally.
28388         (TENS_P9_IDX): Define unconditionally.
28389         (TENS_P9_SIZE): Likewise.
28390         (TENS_P10_IDX): Likewise.
28391         (TENS_P10_SIZE): Likewise.
28392         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28393         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28394         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28395         entries for 10^2^13 and 10^2^14.
28396         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28397         (TENS_P13_IDX): Define.
28398         (TENS_P13_SIZE): Likewise.
28399         (TENS_P14_IDX): Likewise.
28400         (TENS_P14_SIZE): Likewise.
28401         (_fpioconst_pow10): Change array size to
28402         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
28403         unconditional.
28404         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
28405         1024]: Add entries for 10^2^13 and 10^2^14.
28406         [LAST_POW10 > _LAST_POW10]: Remove #error.
28407         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
28408         (_fpioconst_pow10): Change array size to
28409         FPIOCONST_POW10_ARRAY_SIZE.
28410         * stdlib/gen-fpioconst.c: New file.
28411         * stdlib/gen-tst-strtod-round.c: Likewise.
28412         * stdlib/tst-strtod-round-data: Likewise.
28413         * stdlib/tst-strtod-round.c: Likewise.
28414         * stdlib/Makefile (tests): Add tst-strtod-round.
28415
28416         [BZ #14459]
28417         * stdlib/strtod_l.c: Include <stdint.h>.
28418         (NDEBUG): Do not define.
28419         (round_and_return): Change EXPONENT parameter to type intmax_t.
28420         Rearrange calculations to avoid internal overflow possibilities.
28421         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
28422         Rearrange calculations to avoid internal overflow possibilities.
28423         Assert that number fits inside MPNSIZE limbs.
28424         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
28425         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
28426         calculations and add assertions to avoid internal overflow
28427         possibilities.  Add casts to avoid signed/unsigned operations.
28428         * stdlib/tst-strtod-overflow.c: New file.
28429         * stdlib/Makefile (tests): Add tst-strtod-overflow.
28430
28431 2012-08-25  Marek Polacek  <polacek@redhat.com>
28432
28433         * time/time.h: Fix some typos in comments.
28434
28435 2012-08-23  Roland McGrath  <roland@hack.frob.com>
28436
28437         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
28438         * posix/tst-rfc3484-2.c: Likewise.
28439         * posix/tst-rfc3484-3.c: Likewise.
28440
28441 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28442
28443         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28444         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28445
28446 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28447
28448         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28449         #include of fxstatat64.c.
28450
28451 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28452
28453         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28454         * shadow/getspent_r.c: Likewise.
28455         * shadow/getspnam.c: Likewise.
28456         * shadow/getspnam_r.c: Likewise.
28457         * gshadow/getsgent.c: Likewise.
28458         * gshadow/getsgent_r.c: Likewise.
28459         * gshadow/getsgnam.c: Likewise.
28460         * gshadow/getsgnam_r.c: Likewise.
28461         * inet/getnetbyad.c: Likewise.
28462         * inet/getnetbyad_r.c: Likewise.
28463         * inet/getnetbynm.c: Likewise.
28464         * inet/getnetbynm_r.c: Likewise.
28465         * inet/getnetent.c: Likewise.
28466         * inet/getnetent_r.c: Likewise.
28467         * inet/getproto.c: Likewise.
28468         * inet/getproto_r.c: Likewise.
28469         * inet/getprtent.c: Likewise.
28470         * inet/getprtent_r.c: Likewise.
28471         * inet/getprtname.c: Likewise.
28472         * inet/getprtname_r.c: Likewise.
28473         * inet/getrpcbyname.c: Likewise.
28474         * inet/getrpcbyname_r.c: Likewise.
28475         * inet/getrpcbynumber.c: Likewise.
28476         * inet/getrpcbynumber_r.c: Likewise.
28477         * inet/getrpcent.c: Likewise.
28478         * inet/getrpcent_r.c: Likewise.
28479         * inet/getaliasent.c: Likewise.
28480         * inet/getaliasent_r.c: Likewise.
28481         * inet/getaliasname.c: Likewise.
28482         * inet/getaliasname_r.c: Likewise.
28483         * nscd/getgrgid_r.c: Likewise.
28484         * nscd/getgrnam_r.c: Likewise.
28485         * nscd/gethstbyad_r.c: Likewise.
28486         * nscd/gethstbynm3_r.c: Likewise.
28487         * nscd/getpwnam_r.c: Likewise.
28488         * nscd/getpwuid_r.c: Likewise.
28489         * nscd/getsrvbynm_r.c: Likewise.
28490         * nscd/getsrvbypt_r.c: Likewise.
28491         * nscd/gai.c: Likewise.
28492
28493         * configure.in (build_nscd): New substituted variable, set
28494         by --disable-build-nscd and defaults to $use_nscd.
28495         * configure: Regenerated.
28496         * config.make.in (build-nscd): New substituted variable.
28497         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28498         Change conditional to require [$(build-nscd) = yes] as well.
28499         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28500
28501         [BZ# 13696]
28502         * configure.in (use_nscd): New substituted variable, set by
28503         --disable-nscd.  If enabled, define USE_NSCD.
28504         * configure: Regenerated.
28505         * config.h.in: Add USE_NSCD.
28506         * config.make.in (use-nscd): New substituted variable.
28507         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28508         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28509         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28510         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28511         (CFLAGS-getgrnam_r.c): Likewise.
28512         (CFLAGS-initgroups.c): Likewise.
28513         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28514         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28515         Variables removed.
28516         * inet/getnetgrent_r.c
28517         (nscd_setnetgrent): New function, broken out of ...
28518         (setnetgrent): ... here.  Call it.
28519         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28520         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28521         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28522         * nscd/Makefile (routines, aux): Move definitions after include of
28523         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28524         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28525         Conditionalize on [USE_NSCD].
28526         (is_nscd, nscd_init_cb): Likewise.
28527         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28528         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28529         * nss/nss_db/db-init.c: Likewise.
28530         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28531         [USE_NSCD].
28532         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28533         (make_request): Use it.
28534         (cache_valid_p): New function.
28535         (__check_pf): Use it.
28536         * NEWS: Add item for --disable-nscd.
28537
28538 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28539
28540         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28541         to support sed >= 4.2.1-20-ga9bf076.
28542         * configure: Regenerated.
28543
28544 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28545
28546         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28547         Conditionalize whole body on [IREL].
28548
28549 2012-08-22  Jeff Law <law@redhat.com>
28550
28551         [BZ #14505]
28552         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28553         if the family is PF_UNSPEC.
28554
28555 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28556
28557         * Makerules (lib-version): Rename from V.
28558         (install-lib-nosubdir): Change V to lib-version.
28559
28560 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28561
28562         [BZ #14252]
28563         * powerpc32/power6/wcschr.c: New file.
28564         * powerpc32/power6/wcscpy.c: New file.
28565         * powerpc32/power6/wcsrchr.c: New file.
28566         * powerpc64/power6/wcschr.c: New file.
28567         * powerpc64/power6/wcscpy.c: New file.
28568         * powerpc64/power6/wcsrchr.c: New file.
28569
28570 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28571
28572         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28573         (two_way_short_needle): Use it.
28574         * string/strstr.c (AVAILABLE1_USES_J): Define.
28575         * string/strcasestr.c: Likewise.
28576
28577         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28578         array references.
28579         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28580
28581         [BZ #11607]
28582         * NEWS: Add an entry.
28583         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28584         define their defaults.
28585         (two_way_short_needle): Detect end-of-string on-the-fly.
28586         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28587         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28588         * string/bug-strcasestr1.c: New test.
28589         * string/Makefile: Run it.
28590
28591 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28592
28593         [BZ #11607]
28594         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28595         the first character.
28596
28597 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28598
28599         * csu/elf-init.c (__libc_csu_irel): Function removed.
28600         * csu/libc-start.c (apply_irel): New function.
28601         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28602
28603 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28604
28605         * sysdeps/unix/sysv/linux/kernel-features.h
28606         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28607         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28608         <kernel-features.h>.
28609         [__NR_fadvise64_64]: Make code unconditional.
28610         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28611         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28612         !__NR_fadvise64_64)]: Likewise.
28613         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28614         !__NR_fadvise64_64))]: Likewise.
28615         [__NR_fadvise64]: Make code unconditional.
28616         [!__NR_fadvise64]: Remove conditional code.
28617         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28618         <kernel-features.h>.
28619         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28620         unconditional.
28621         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28622         conditional code.
28623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28624         not include <kernel-features.h>.
28625         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28626         unconditional.
28627         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28628         conditional code.
28629         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28630         include <kernel-features.h>.
28631         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28632         unconditional.
28633         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28634         conditional code.
28635
28636 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28637
28638         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28639         slight instruction rearrangements per scrollpipe analysis.
28640         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28641
28642 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28643
28644         * manual/syslog.texi (syslog; vsyslog, closelog):
28645         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28646         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28647
28648         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28649         DSOCAPS to match condition on defining it.
28650
28651 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28652
28653         * sysdeps/unix/sysv/linux/kernel-features.h
28654         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28656         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28657         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28659         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28660         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28662         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28663         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28664
28665         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28666         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28667
28668         * sysdeps/unix/sysv/linux/kernel-features.h
28669         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28670         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28671         unconditional.
28672         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28673         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28674         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28675         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28676         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28677         Make code unconditional.
28678         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28679         (__mmap64) [!__NR_mmap2]: Likewise.
28680         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28681         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28682         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28683         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28684         [__NR_mmap2]: Make code unconditional.
28685         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28686         (__mmap64) [!__NR_mmap2]: Likewise.
28687
28688 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28689
28690         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28691
28692 2012-08-18  Andreas Jaeger  <aj@suse.de>
28693
28694         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28695
28696 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28697
28698         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28699         * include/unistd.h (__have_sock_cloexec): Likewise.
28700         (__have_pipe2): Likewise.
28701         (__have_dup3): Likewise.
28702
28703 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28704
28705         [BZ #9685]
28706         * include/unistd.h (__have_pipe2): Change define into an extern int.
28707         (__have_dup3): Likewise.
28708         * socket/have_sock_cloexec.c: Include fcntl.h.
28709         (__have_pipe2): New variable.
28710         (__have_dup3): Likewise.
28711
28712 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28713
28714         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28715
28716 2012-08-17  Marek Polacek  <polacek@redhat.com>
28717
28718         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28719         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28720
28721 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28722
28723         * configure.in: Add AC_SUBST for sysheaders.
28724         * configure: Regenerated.
28725         * config.make.in (sysheaders): New substituted variable.
28726
28727         * sysdeps/unix/mkfifo.c: Moved ...
28728         * sysdeps/posix/mkfifo.c: ... here.
28729         * sysdeps/unix/mkfifoat.c: Moved ...
28730         * sysdeps/posix/mkfifoat.c: ... here.
28731
28732         * sysdeps/unix/utime.c: Moved ...
28733         * sysdeps/posix/utime.c: ... here.
28734
28735         * sysdeps/unix/time.c: Moved ...
28736         * sysdeps/posix/time.c: ... here.
28737         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28738         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28739
28740         * sysdeps/unix/nice.c: Moved ...
28741         * sysdeps/posix/nice.c: ... here.
28742
28743         * sysdeps/unix/alarm.c: Moved ...
28744         * sysdeps/posix/alarm.c: ... here.
28745
28746         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28747
28748 2012-08-17  Jeff Law <law@redhat.com>
28749
28750         * intl/Makefile (codeset_mo): New variable.
28751         ($(codeset_mo)): New target.
28752         (tst-codeset.out): Depend on that.  Remove explicit rule.
28753         (tst-gettext3.out, tst-gettext5.out): Likewise.
28754         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28755         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28756         * intl/tst-codeset.sh: Remove.
28757         * intl/tst-gettext3.sh: Likewise.
28758         * intl/tst-gettext5.sh: Likewise.
28759
28760 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28761
28762         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28763         * sysdeps/unix/syscalls.list: ... here.
28764
28765         * sysdeps/posix/getaddrinfo.c
28766         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28767         (gaiconf_init, gaiconf_reload): Use them.
28768         [!_STATBUF_ST_NSEC]
28769         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28770         Define using time_t rather than struct timespec.
28771
28772         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28773         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28774         Macros removed.
28775         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28776         [!NO_THREADS].
28777         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28778         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28779         Likewise.
28780
28781         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28782         __libc_cleanup_push argument.
28783
28784         * bits/param.h: New file.
28785         * misc/sys/param.h: New file.
28786         * include/sys/param.h: New file.
28787         * misc/Makefile (headers): Add bits/param.h.
28788         * sysdeps/generic/sys/param.h: File removed.
28789         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28790         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28791         * sysdeps/mach/hurd/bits/param.h: New file.
28792         * sysdeps/mach/hurd/sys/param.h: File removed.
28793
28794         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28795         last change.
28796
28797         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28798         [_IO_MTSAFE_IO].
28799         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28800         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28801         New macros.
28802
28803         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28804         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28805         rather than -D_IO_MTSAFE_IO conditionally.
28806         * stdio-common/Makefile (CPPFLAGS): Likewise.
28807         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28808         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28809         Use $(libio-mtsafe).
28810         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28811         of -D_IO_MTSAFE_IO.
28812         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28813         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28814         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28815         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28816         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28817         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28818         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28819         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28820         (CFLAGS-fread_u_chk.c): Likewise.
28821         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28822         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28823         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28824         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28825         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28826         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28827         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28828         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28829         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28830
28831         * libio/Makefile: Test [$(libc-reentrant) = yes]
28832         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28833
28834         * Makeconfig
28835         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28836         * sysdeps/pthread/configure: File removed.
28837         * sysdeps/pthread/Makeconfig: New file.
28838         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28839         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28840
28841 2012-08-16  Gary Benson  <gbenson@redhat.com>
28842
28843         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28844         unmapping the first object in a namespace.
28845
28846 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28847
28848         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28849         (__internal_setnetgrent): ... this.  Add internal_function to
28850         definition.  Add libc_hidden_def.
28851         (setnetgrent): Update caller.
28852         (internal_endnetgrent): Renamed to ...
28853         (__internal_endnetgrent): ... this.  Add internal_function to
28854         definition.  Add libc_hidden_def.
28855         (endnetgrent): Update caller.
28856         (internal_getnetgrent_r): Renamed to ...
28857         (__internal_getnetgrent_r): ... this.  Add internal_function to
28858         definition.  Add libc_hidden_def.
28859         (__getnetgrent_r): Update caller.
28860         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28861
28862 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28863
28864         * stdlib/longlong.h: Update from GCC.
28865
28866 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28867
28868         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28869         on _QL, which is set by umul_ppmm but never used.
28870         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28871         variables, which are set by GMP macros but never used.
28872         * stdio-common/_itowa.c (_itowa): Likewise.
28873         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28874         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28875
28876 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28877
28878         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28879         struct La_sh_regs is not constant.
28880         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28881         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28882         and struct La_sparc64_regs are not constant.
28883
28884 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28885
28886         * sysdeps/unix/sysv/linux/kernel-features.h
28887         (__ASSUME_POSIX_TIMERS): Remove.
28888         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28889         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28890         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28891         Make code unconditional.
28892         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28893         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28894         Make code unconditional.
28895         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28896         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28897         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28898         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28899         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28900         Make code unconditional.
28901         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28902         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28903         (__libc_missing_posix_timers): Remove.
28904
28905 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28906
28907         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28908         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28909
28910         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28911
28912         * elf/dl-sym.c: Include <stdlib.h>.
28913
28914         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28915         constants, which avoids warnings in 32-bit builds.
28916
28917         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28918         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28919
28920         * misc/lseek.c: File moved to ...
28921         * io/lseek.c: ... here.
28922
28923         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28924
28925         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28926         shifting LEN more than 31 bits at once.
28927
28928 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28929
28930         [BZ #14195]
28931         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28932         segmentation fault for a case of two empty input strings.
28933         * string/test-strncasecmp.c (check1): Renamed to...
28934         (bz12205): ...this.
28935         (bz14195): Add new testcase for two empty input strings and N > 0.
28936         (test_main): Call new testcase, adapt for renamed function.
28937
28938 2012-08-15  Andreas Jaeger  <aj@suse.de>
28939
28940         [BZ #14090]
28941         * crypt/md5test2.c: New test, based on test supplied by Serge
28942         Belyshev <belyshev@depni.sinp.msu.ru>.
28943         * crypt/Makefile (xtests): Add md5test-giant..
28944         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28945
28946 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28947
28948         [BZ #14090]
28949         * crypt/md5.c (md5_process_block): Don't assume the buffer
28950         length is less than 2**32.
28951         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28952         length is less than 2**64.
28953
28954 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28955
28956         * string/str-two-way.h: Include <sys/param.h>.
28957         (MAX): Macro removed.
28958
28959         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28960         Move #define and #undef of memmove to just before and after
28961         including <string.h>.
28962
28963         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28964         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28965         and after including <string.h>.  Move declarations of
28966         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28967         to before #include "string/memmove.c".
28968
28969         * include/dirent.h: Declare __getdirentries.
28970
28971         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28972         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28973
28974 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28975
28976         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28977         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28978         * sysdeps/i386/configure: Regenerated.
28979         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28980         STABS_CURRENT_FILE, and STABS_FUN.
28981         (END): Remove call to STABS_FUN_END.
28982         (STABS_CURRENT_FILE1): Delete.
28983         (STABS_CURRENT_FILE): Likewise.
28984         (STABS_FUN): Likewise.
28985         (STABS_FUN_END): Likewise.
28986         (STABS_FUN2): Likewise.
28987         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28988         * sysdeps/x86_64/configure: Regenerated.
28989
28990 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28991
28992         * elf/dl-open.c: Include <atomic.h>.
28993         * elf/dl-lookup.c: Likewise.
28994
28995 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28996
28997         * sysdeps/unix/sysv/linux/kernel-features.h
28998         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28999         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
29000         unconditionally.
29001         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
29002         unconditionally.
29003         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
29004         condition on __ASSUME_CLONE_THREAD_FLAGS.
29005
29006 2012-08-14  Andreas Jaeger  <aj@suse.de>
29007
29008         * sysdeps/i386/fpu/libm-test-ulps: Update.
29009
29010 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
29011
29012         * include/atomic.h (atomic_exchange_and_add): Split into ...
29013         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
29014         New atomic macros.
29015
29016 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
29017
29018         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29019
29020 2012-08-13  Jeff Law <law@redhat.com>
29021
29022         * manual/stdio.texi (snprintf): Clarify handling of the trailing
29023         null byte in the output string.
29024
29025 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
29026
29027         * sysdeps/unix/sysv/linux/kernel-features.h
29028         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
29029         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
29030         (__ASSUME_ARG_MAX_STACK_BASED): Define.
29031         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
29032         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
29033         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
29034         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
29035
29036 2012-08-09  Jeff Law <law@redhat.com>
29037
29038         [BZ #13939]
29039         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
29040         When avoid_arena is set, don't retry in the that arena.  Pick the
29041         next one, whatever it might be.
29042         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
29043         (arena_lock): Pass in new parameter to arena_get2.
29044         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
29045         arena_get2.
29046         (__libc_malloc): Unify retrying after main arena failure with
29047         __libc_memalign version.
29048         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
29049
29050 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
29051
29052         [BZ #14166]
29053         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
29054         to __redirect_strstr.
29055         (__strstr_sse42): Use typeof __redirect_strstr.
29056         (__strstr_ia32): Likewise.
29057         (__libc_strstr): New prototype.
29058         (strstr): Renamed to ...
29059         (__libc_strstr): This.
29060         (strstr): New strong alias of __libc_strstr.
29061         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29062         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29063         __redirect_time.
29064         Include <time.h>.
29065         (__libc_time): New prototype.
29066         (time_ifunc): Replace time with __libc_time.
29067         (time): New strong alias and hidden definition of __libc_time.
29068         (__GI_time): Remove strong alias.
29069         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29070         Include <stddef.h>.
29071         (memmove): Redefined to __redirect_memmove.
29072         (__memmove_sse2): Use typeof __redirect_memmove.
29073         (__memmove_ssse3): Likewise.
29074         (__memmove_ssse3_back): Likewise.
29075         (__libc_memmove): New prototype.
29076         (memmove): Renamed to ...
29077         (__libc_memmove): This.
29078         (memmove): New strong alias of __libc_memmove.
29079
29080 2012-08-08  Mark Salter  <msalter@redhat.com>
29081
29082         * elf/elf.h
29083         (R_MN10300_TLS_GD): Define.
29084         (R_MN10300_TLS_LD): Likewise.
29085         (R_MN10300_TLS_LDO): Likewise.
29086         (R_MN10300_TLS_GOTIE): Likewise.
29087         (R_MN10300_TLS_IE): Likewise.
29088         (R_MN10300_TLS_LE): Likewise.
29089         (R_MN10300_TLS_DTPMOD): Likewise.
29090         (R_MN10300_TLS_DTPOFF): Likewise.
29091         (R_MN10300_TLS_TPOFF): Likewise.
29092         (R_MN10300_SYM_DIFF): Likewise.
29093         (R_MN10300_ALIGN): Likewise.
29094         (R_MN10300_NUM): Update.
29095
29096 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29097
29098         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29099         Remove.
29100
29101 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29102
29103         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29104
29105         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29106         sysdeps/unix -> sysdeps/posix move.
29107         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29108
29109 2012-08-07      Allan McRae     <allan@archlinux.org>
29110
29111         [BZ #14303]
29112         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29113         (SUNOS_CPP): Likewise.
29114         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29115         not found.
29116         (open_input): Call CPP using execvp.
29117
29118 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29119
29120         * sysdeps/unix/sysv/linux/kernel-features.h
29121         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29122         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29123         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29124         (__ASSUME_WAITID_SYSCALL): Likewise.
29125         * sysdeps/unix/sysv/linux/dl-execstack.c
29126         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29127         code unconditional.
29128         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29129         conditional code.
29130         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29131         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29132         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29133         code.
29134         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29135         unconditional.
29136         [__ASSUME_WAITID_SYSCALL]: Likewise.
29137         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29138
29139 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29140
29141         * sysdeps/unix/closedir.c: Renamed to ...
29142         * sysdeps/posix/closedir.c: ... here.
29143         * sysdeps/unix/dirfd.c: Renamed to ...
29144         * sysdeps/posix/dirfd.c: ... here.
29145         * sysdeps/unix/dirstream.h: Renamed to ...
29146         * sysdeps/posix/dirstream.h: ... here.
29147         * sysdeps/unix/fdopendir.c: Renamed to ...
29148         * sysdeps/posix/fdopendir.c: ... here.
29149         * sysdeps/unix/opendir.c: Renamed to ...
29150         * sysdeps/posix/opendir.c: ... here.
29151         * sysdeps/unix/readdir.c: Renamed to ...
29152         * sysdeps/posix/readdir.c: ... here.
29153         * sysdeps/unix/readdir_r.c: Renamed to ...
29154         * sysdeps/posix/readdir_r.c: ... here.
29155         * sysdeps/unix/rewinddir.c: Renamed to ...
29156         * sysdeps/posix/rewinddir.c: ... here.
29157         * sysdeps/unix/seekdir.c: Renamed to ...
29158         * sysdeps/posix/seekdir.c: ... here.
29159         * sysdeps/unix/telldir.c: Renamed to ...
29160         * sysdeps/posix/telldir.c: ... here.
29161         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29162         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29163         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29164         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29165
29166         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29167         * bits/fcntl.h: ... here.
29168
29169         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29170         not 0.
29171         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29172         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29173         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29174         (struct flock): Move l_start, l_len to the beginning.
29175         Use __pid_t for l_pid.
29176         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29177         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29178         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29179         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29180         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29181         [__USE_LARGEFILE64] (struct flock64): New type.
29182         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29183
29184         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29185         * bits/dirent.h: ... here.
29186
29187         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29188         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29189
29190 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29191
29192         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29193         Change from 2.6.0 to 2.6.16.
29194         * sysdeps/unix/sysv/linux/configure: Regenerated.
29195         * sysdeps/unix/sysv/linux/kernel-features.h
29196         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29197         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29198         version.
29199         (__ASSUME_UTIMES): Likewise.
29200         (__ASSUME_CLONE_STOPPED): Remove.
29201         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29202         architectures, not kernel version.
29203         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29204         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29205         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29206         (__ASSUME_WAITID_SYSCALL): Likewise.
29207         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29208         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29209         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29210         refer to older versions.
29211
29212 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29213
29214         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29215         Define alphasort64 as an alias.
29216         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29217         Define versionsort64 as an alias.
29218         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29219         Define scandir64 as an alias.
29220         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29221         Define scandirat64 as an alias.
29222         * dirent/alphasort64.c (alphasort64):
29223         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29224         * dirent/versionsort64.c: Likewise.
29225         * dirent/scandir64.c: Likewise.
29226         * dirent/scandirat64.c: Likewise.
29227         * sysdeps/wordsize-64/alphasort.c: File removed.
29228         * sysdeps/wordsize-64/alphasort64.c: File removed.
29229         * sysdeps/wordsize-64/scandir.c: File removed.
29230         * sysdeps/wordsize-64/scandir64.c: File removed.
29231         * sysdeps/wordsize-64/scandirat.c: File removed.
29232         * sysdeps/wordsize-64/scandirat64.c: File removed.
29233         * sysdeps/wordsize-64/versionsort.c: File removed.
29234         * sysdeps/wordsize-64/versionsort64.c: File removed.
29235         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29236         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29237         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29238         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29239         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29240         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29241         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29242         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29243
29244         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29245         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29246         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29247         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29248         [defined __arch64__ || defined __sparcv9]
29249         (__INO_T_MATCHES_INO64_T): New macro.
29250         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29251         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29252         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29253         * sysdeps/unix/sysv/linux/bits/dirent.h
29254         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29255         (_DIRENT_MATCHES_DIRENT64): New macro.
29256
29257         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29258         Define lockf64 as an alias.
29259         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29260         Define fseeko64 as an alias.
29261         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29262         Define ftello64 as an alias.
29263         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29264         Define _IO_fgetpos64 and fgetpos64 as aliases.
29265         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29266         Define _IO_fsetpos64 and fsetpos64 as aliases.
29267         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29268         Conditionalize body on this.
29269         * libio/fseeko64.c: Likewise.
29270         * libio/ftello64.c: Likewise.
29271         * libio/iofgetpos64.c: Likewise.
29272         * libio/iofsetpos64.c: Likewise.
29273         * sysdeps/wordsize-64/lockf.c: File removed.
29274         * sysdeps/wordsize-64/lockf64.c: File removed.
29275         * sysdeps/wordsize-64/fseeko.c: File removed.
29276         * sysdeps/wordsize-64/fseeko64.c: File removed.
29277         * sysdeps/wordsize-64/ftello.c: File removed.
29278         * sysdeps/wordsize-64/ftello64.c: File removed.
29279         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29280         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29281         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29282         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29283         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29284         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29285         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29286         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29287         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29288         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29289         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29290         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29291         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29292         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29293
29294         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29295         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29296         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29297         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29298         [defined __arch64__ || defined __sparcv9]
29299         (__OFF_T_MATCHES_OFF64_T): New macro.
29300         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29301         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29302         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29303         (__OFF_T_MATCHES_OFF64_T): New macro.
29304
29305 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29306
29307         * stdlib/secure-getenv.c (__secure_getenv): Replace
29308         GLIBC_2_16 with GLIBC_2_17.
29309
29310 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29311
29312         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29313         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29314
29315 2012-08-03  David S. Miller  <davem@davemloft.net>
29316
29317         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29318
29319 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29320
29321         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29322         Remove.
29323         (__ASSUME_CORRECT_SI_PID): Likewise.
29324         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29325         (__ASSUME_TMPFS_NAME): Likewise.
29326         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29327         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29328         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29329         (HAVE_AUX_SECURE): Make definition unconditional.
29330         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29331         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29332
29333 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29334
29335         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29336         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29337         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29338         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29339         __eloop_threshold instead of SYMLOOP_MAX.
29340
29341         * sysdeps/generic/eloop-threshold.h: New file.
29342         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29343         of MAXSYMLINKS.
29344         * elf/chroot_canon.c (chroot_canon): Likewise.
29345
29346 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29347
29348         [BZ #13717]
29349         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29350         Change to 2.6.0 everywhere.
29351         * sysdeps/unix/sysv/linux/configure: Regenerated.
29352         * sysdeps/unix/sysv/linux/kernel-features.h
29353         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29354         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29355         kernel versions.
29356         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29357         (__ASSUME_FUTEX_REQUEUE): Remove.
29358         (__ASSUME_STATFS64): Define unconditionally.
29359         (__ASSUME_AT_SECURE): Likewise.
29360         (__ASSUME_CORRECT_SI_PID): Likewise.
29361         (__ASSUME_TGKILL): Define without depending on kernel version for
29362         i386.
29363         (__ASSUME_UTIMES): Likewise.
29364         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29365         kernel version.
29366         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29367         (__ASSUME_TMPFS_NAME): Likewise.
29368         * README: Update reference to Linux kernel versions.
29369
29370 2012-08-02  Marek Polacek  <polacek@redhat.com>
29371
29372         [BZ# 14150]
29373         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29374         libc_cv_asm_type_prefix with %.
29375         * configure: Regenerated.
29376         * include/libc-symbols.h: Remove comment about
29377         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29378         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29379         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29380         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29381         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29382         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29383         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29384         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29385         * elf/tst-unique2mod1.c: Likewise.
29386         * elf/tst-unique1mod2.c: Likewise.
29387         * elf/tst-unique1mod1.c: Likewise.
29388         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29389         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29390         Replace ASM_TYPE_DIRECTIVE with .type.
29391         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29392         * sysdeps/i386/sysdep.h: Likewise.
29393         * sysdeps/x86_64/sysdep.h: Likewise.
29394         * sysdeps/sh/sysdep.h: Likewise.
29395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29396         Do not define ASM_TYPE_DIRECTIVE.
29397         * sysdeps/powerpc/sysdep.h: Likewise.
29398         * sysdeps/powerpc/powerpc32/sysdep.h:
29399         Replace ASM_TYPE_DIRECTIVE with .type.
29400         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29401         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29402         * sysdeps/i386/fpu/e_powf.S: Likewise.
29403         * sysdeps/i386/fpu/e_expl.S: Likewise.
29404         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29405         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29406         * sysdeps/i386/fpu/e_pow.S: Likewise.
29407         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29408         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29409         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29410         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29411         * sysdeps/i386/fpu/e_log2.S: Likewise.
29412         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29413         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29414         * sysdeps/i386/fpu/e_powl.S: Likewise.
29415         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29416         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29417         * sysdeps/i386/fpu/e_logl.S: Likewise.
29418         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29419         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29420         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29421         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29422         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29423         * sysdeps/i386/fpu/e_log.S: Likewise.
29424         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29425         * sysdeps/i386/fpu/e_logf.S: Likewise.
29426         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29427         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29428         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29429         * sysdeps/i386/fpu/e_log10.S: Likewise.
29430         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29431         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29432         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29433         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29434         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29435         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29436         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29437         * sysdeps/i386/i686/strtok.S: Likewise.
29438         * sysdeps/i386/i386-mcount.S: Likewise.
29439         * sysdeps/i386/strtok.S: Likewise.
29440         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29441         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29442         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29443         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29444         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29445         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29446         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29447         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29448         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29449         * sysdeps/x86_64/_mcount.S: Likewise.
29450         * sysdeps/x86_64/strtok.S: Likewise.
29451         * sysdeps/sh/_mcount.S: Likewise.
29452
29453 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29454
29455         * libio/iofopen.c: Include <fcntl.h>.
29456         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29457         (_IO_fopen64, fopen64): Define as aliases.
29458         * libio/iofopen64.c: Include <fcntl.h>.
29459         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29460         Conditionalize body on this.
29461         * sysdeps/wordsize-64/iofopen.c: File removed.
29462         * sysdeps/wordsize-64/iofopen64.c: File removed.
29463
29464 2012-08-01  Marek Polacek  <polacek@redhat.com>
29465
29466         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29467         Use dlfcn directly instead of a variable.
29468         (binfmt-subdir): Do not define.
29469         (dlfcn): Likewise.
29470
29471 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29472
29473         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29474         Remove all definitions.
29475         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29476         <kernel-features.h>.
29477         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29478         (miss_F_GETOWN_EX): Remove all definitions.
29479         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29480         macro definition.
29481         [!__ASSUME_FCNTL64]: Remove conditional code.
29482         [__ASSUME_FCNTL64]: Make code unconditional.
29483         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29484         <kernel-features.h>.
29485         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29486         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29487         (lockf64) [__NR_fcntl64]: Make code unconditional.
29488         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29489
29490         * sysdeps/unix/sysv/linux/kernel-features.h
29491         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29492         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29493         Make code unconditional.
29494         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29495         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29497         [__NR_vfork]: Make code unconditional.
29498         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29499         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29501         [__NR_vfork]: Make code unconditional.
29502         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29503         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29504
29505 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29506
29507         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29508         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29509
29510         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29511         Define mkstemp64 as an alias.
29512         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29513         Define mkstemps64 as an alias.
29514         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29515         Define mkostemp64 as an alias.
29516         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29517         Define mkostemps64 as an alias.
29518         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29519         Conditionalize body on this.
29520         * misc/mkostemp64.c: Likewise.
29521         * misc/mkostemps64.c: Likewise.
29522         * misc/mkstemps64.c: Likewise.
29523         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29524         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29525         * sysdeps/wordsize-64/mkostemp.c: File removed.
29526         * sysdeps/wordsize-64/mkstemp.c: File removed.
29527         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29528         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29529         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29530         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29531
29532         [BZ #14138]
29533         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29534         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29535         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29536         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29537
29538         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29539         compat_symbol macros from <shlib-compat.h> rather than the underlying
29540         default_symbol_version and symbol_version macros, so that DEFAULT
29541         lines in shlib-versions are respected.
29542         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29543
29544 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29545
29546         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29547         Declare with warn_unused_result.
29548         (setgid, setregid, setegid, setresgid): Likewise.
29549         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29550         Likewise.
29551         * WUR-REPORT: Remove set*id functions.
29552
29553 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29554
29555         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29556
29557 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29558
29559         [BZ #10191]
29560         * include/sys/socket.h (__libc_accept, __libc_accept4):
29561         Add attribute_hidden.
29562         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29563
29564         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29565         use of PTR_MANGLE.
29566         * inet/getnetgrent_r.c (setup): Likewise.
29567
29568         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29569
29570 2012-07-31  David S. Miller  <davem@davemloft.net>
29571
29572         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29573
29574 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29575
29576         [BZ #13629]
29577         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29578         value between 1.0 and 2.0 and smaller part has absolute value less
29579         than 1.0.
29580         * math/s_clog10.c (__clog10): Likewise.
29581         * math/s_clog10f.c (__clog10f): Likewise.
29582         * math/s_clog10l.c (__clog10l): Likewise.
29583         * math/s_clogf.c (__clogf): Likewise.
29584         * math/s_clogl.c (__clogl): Likewise.
29585         * math/libm-test.inc (clog_test): Add more tests.
29586         (clog10_test): Likewise.
29587         * sysdeps/i386/fpu/libm-test-ulps: Update.
29588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29589
29590 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29591
29592         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29593         Exit with zero in case no suitable GID is found, and write a
29594         message to standard error.
29595
29596 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29597
29598         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29599         rather than to 1.
29600         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29601         (MAXPATHLEN): Removed.
29602         (NOGROUP, NODEV): New macros.
29603         (setbit, clrbit, isset, isclr): New macros.
29604         (howmany, roundup, powerof2): New macros.
29605         (DEV_BSIZE): New macro.
29606
29607         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29608         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29609
29610         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29611         definition on [!__NO_LONG_DOUBLE_MATH].
29612
29613         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29614         PTR_MANGLE and PTR_DEMANGLE.
29615
29616         * socket/accept4.c (accept4): Rename to __libc_accept4.
29617         Define accept4 as a weak alias.
29618
29619         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29620         on [_DIRENT_HAVE_D_TYPE].
29621         * io/ftw.c (ftw_dir): Likewise.
29622
29623         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29624
29625         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29626
29627         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29628         Use the BSD numbers rather than the arbitrary ones we had.
29629         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29630         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29631         (SIGXCPU, SIGXFSZ): New macros.
29632         (_NSIG): Now 32.
29633
29634         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29635         initializer on [_LIBC_REENTRANT].
29636
29637         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29638         definitions inside [_POSIX_MAPPED_FILES].
29639
29640         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29641
29642         * dirent/opendir.c: Include <fcntl.h>.
29643
29644         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29645         (__libc_getspecific): Likewise.
29646         (__libc_key_create): Likewise.
29647
29648         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29649         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29650         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29651         (tmpfile64): Define as alias.
29652         * sysdeps/wordsize-64/tmpfile.c: File removed.
29653         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29654         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29655         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29656
29657         * stdio-common/vfscanf.c: Include <stdbool.h>.
29658         * nss/makedb.c: Likewise.
29659         * stdio-common/_i18n_number.h: Likewise.
29660         * argp/argp-help.c: Likewise.
29661         * posix/wordexp.c: Likewise.
29662         * sysdeps/posix/spawni.c: Likewise.
29663         * nss/nss_files/files-initgroups.c: Likewise.
29664         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29665         * nss/nss_files/files-initgroups.c: Likewise.
29666         * nss/nss_db/db-netgrp.c: Likewise.
29667         * nss/nss_db/db-initgroups.c: Likewise.
29668         * io/fchmodat.c: Include <sys/stat.h>.
29669
29670         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29671         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29672
29673         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29674         [HAVE_MMAP].
29675
29676         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29677         Add multiple inclusion protection.
29678
29679 2012-07-27  David S. Miller  <davem@davemloft.net>
29680
29681         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29682
29683 2012-07-27  Gary Benson  <gbenson@redhat.com>
29684
29685         [BZ #14298]
29686         * elf/rtld.c: Include <stap-probe.h>.
29687         (dl_main): Added static probes "init_start" and "init_complete".
29688         * elf/dl-load.c: Include <stap-probe.h>.
29689         (lose): Take new parameter "nsid".
29690         Added static probe "map_failed".
29691         (_dl_map_object_from_fd): Pass namespace id to lose.
29692         Added static probe "map_start".
29693         (open_verify): Pass namespace id to lose.
29694         * elf/dl-open.c: Include <stap-probe.h>.
29695         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29696         and "reloc_complete".
29697         * elf/dl-close.c: Include <stap-probe.h>.
29698         (_dl_close_worker): Added static probes "unmap_start" and
29699         "unmap_complete".
29700         * elf/rtld-debugger-interface.txt: New file documenting the above.
29701
29702 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29703
29704         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29705         rather than a string variable.
29706         * sunrpc/rpc_main.c (h_output): Likewise.
29707         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29708
29709 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29710
29711         * inet/check_native.c: New file.
29712
29713 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29714
29715         [BZ #13629]
29716         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29717         if larger part has absolute value 1.0.
29718         * math/s_clog10.c (__clog10): Likewise.
29719         * math/s_clog10f.c (__clog10f): Likewise.
29720         * math/s_clog10l.c (__clog10l): Likewise.
29721         * math/s_clogf.c (__clogf): Likewise.
29722         * math/s_clogl.c (__clogl): Likewise.
29723         * math/libm-test.inc (clog_test): Add more tests.
29724         (clog10_test): Likewise.
29725         * sysdeps/i386/fpu/libm-test-ulps: Update.
29726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29727
29728         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29729         (pltexit): Likewise.
29730         (La_regs): Likewise.
29731         (La_retval): Likewise.
29732         (int_retval): Likewise.
29733         Update #error for removed macros to refer only to definitions in
29734         tst-audit.h.
29735         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29736         macro.
29737         (pltexit): Likewise.
29738         (La_regs): Likewise.
29739         (La_retval): Likewise.
29740         (int_retval): Likewise.
29741         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29742         macro.
29743         (pltexit): Likewise.
29744         (La_regs): Likewise.
29745         (La_retval): Likewise.
29746         (int_retval): Likewise.
29747         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29748         macro.
29749         (pltexit): Likewise.
29750         (La_regs): Likewise.
29751         (La_retval): Likewise.
29752         (int_retval): Likewise.
29753         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29754         macro.
29755         (pltexit): Likewise.
29756         (La_regs): Likewise.
29757         (La_retval): Likewise.
29758         (int_retval): Likewise.
29759         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29760         macro.
29761         (pltexit): Likewise.
29762         (La_regs): Likewise.
29763         (La_retval): Likewise.
29764         (int_retval): Likewise.
29765         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29766         macro.
29767         (pltexit): Likewise.
29768         (La_regs): Likewise.
29769         (La_retval): Likewise.
29770         (int_retval): Likewise.
29771         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29772         macro definitions in tst-audit.h.
29773         * sysdeps/i386/tst-audit.h: New file.
29774         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29775         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29776         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29777         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29778         * sysdeps/sh/tst-audit.h: Likewise.
29779         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29780         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29781         * sysdeps/x86_64/tst-audit.h: Likewise.
29782
29783 2012-07-26  Andreas Jaeger  <aj@suse.de>
29784
29785         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29786         ptrace.
29787
29788         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29789         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29790         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29791         PTRACE_O_MASK.
29792         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29793         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29794         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29795
29796         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29797         value.
29798
29799         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29800         _sigsys.
29801         (si_call_addr, si_syscall, si_arch): Define new macro.
29802         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29803         _sigsys.
29804         (si_call_addr, si_syscall, si_arch): Define new marcro.
29805         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29806         _sigsys.
29807         (si_call_addr, si_syscall, si_arch): Define new macro.
29808         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29809         _sigsys.
29810         (si_call_addr, si_syscall, si_arch): Define new macro.
29811
29812 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29813
29814         [BZ #13717]
29815         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29816         Change to 2.4.21 where previously 2.4.1.
29817         * sysdeps/unix/sysv/linux/configure: Regenerated.
29818         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29819         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29820         Linux kernel version.
29821         (__ASSUME_STD_AUXV): Remove.
29822         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29823         kernel version.
29824         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29825         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29826         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29827         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29828         (__ASSUME_NETLINK_SUPPORT): Likewise.
29829         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29830         (__no_netlink_support): Remove conditional definition.
29831         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29832         Remove.
29833         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29834         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29835         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29836         (if_nameindex_ioctl): Remove.
29837         (if_nameindex_netlink): Do not handle __no_netlink_support.
29838         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29839         code.
29840         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29841         Remove conditional code.
29842         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29843         code.
29844         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29845         unconditional.
29846         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29847         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29848         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29849         Remove.
29850         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29851         [!__ASSUME_STD_AUXV]: Remove conditional code.
29852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29853         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29854         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29856         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29857         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29858         code.
29859         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29861         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29862         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29863         conditional code.
29864         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29866         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29867         code.
29868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29869         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29870         conditional code.
29871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29872         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29873         code unconditional.
29874         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29875         conditional code.
29876         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29877         unconditional.
29878         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29879         conditional code.
29880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29881         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29882         unconditional.
29883         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29884         conditional code.
29885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29886         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29887         code unconditional.
29888         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29889         conditional code.
29890         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29891         unconditional.
29892         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29893         conditional code.
29894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29895         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29896         code unconditional.
29897         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29898         conditional code.
29899         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29900         unconditional.
29901         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29902         conditional code.
29903
29904 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29905
29906         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29907         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29908         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29909         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29910         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29911         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29912         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29913         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29914         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29915         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29916         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29917         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29918         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29919         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29920         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29921         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29922         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29923         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29924         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29925         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29926         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29927         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29928         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29929
29930 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29931
29932         * Versions.def: Add GLIBC_2.17.
29933         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29934         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29935         Introduce __libc_secure_getenv.
29936         * stdlib/Versions (2.17): Add secure_getenv
29937         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29938         * stdlib/secure-getenv.c: Rename __secure_getenv to
29939         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29940         symbol __secure_getenv for GLIBC_2.0.
29941         * stdlib/tst-secure-getenv.c: New.
29942         * stdlib/Makefile (tests): Add testcase.
29943         * manual/startup.texi (Environment Access): Document
29944         secure_getenv.
29945         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29946         __libc_secure_getenv.
29947         * inet/ruserpass.c (ruserpass): Likewise.
29948         * malloc/mtrace.c (mtrace): Likewise.
29949         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29950         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29951         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29952         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29953         HAVE_SECURE_GETENV.
29954         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29955         __secure_getenv to __libc_secure_getenv.
29956         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29958         Likewise.
29959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29960         Likewise.
29961         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29962         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29963         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29966         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29968
29969 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29970
29971         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29972         (struct La_i86_retval): Likewise.
29973         (struct La_x86_64_regs): Likewise.
29974         (struct La_x86_64_retval): Likewise.
29975         (struct La_x32_regs): Likewise.
29976         (struct La_x32_retval): Likewise.
29977         (struct La_ppc32_regs): Likewise.
29978         (struct La_ppc32_retval): Likewise.
29979         (struct La_ppc64_regs): Likewise.
29980         (struct La_ppc64_retval): Likewise.
29981         (struct La_sh_regs): Likewise.
29982         (struct La_sh_retval): Likewise.
29983         (struct La_s390_32_regs): Likewise.
29984         (struct La_s390_32_retval): Likewise.
29985         (struct La_s390_64_regs): Likewise.
29986         (struct La_s390_64_retval): Likewise.
29987         (struct La_sparc32_regs): Likewise.
29988         (struct La_sparc32_retval): Likewise.
29989         (struct La_sparc64_regs): Likewise.
29990         (struct La_sparc64_retval): Likewise.
29991         (struct audit_ifaces): Remove architecture-specific pltenter and
29992         pltexit members.
29993         * sysdeps/i386/ldsodefs.h: New file.
29994         * sysdeps/powerpc/ldsodefs.h: Likewise.
29995         * sysdeps/s390/ldsodefs.h: Likewise.
29996         * sysdeps/sh/ldsodefs.h: Likewise.
29997         * sysdeps/sparc/ldsodefs.h: Likewise.
29998         * sysdeps/x86_64/ldsodefs.h: Likewise.
29999
30000 2012-07-25  Marek Polacek  <polacek@redhat.com>
30001
30002         [BZ #6808]
30003         * math/libm-test.inc (yn_test): Add another test.
30004         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
30005         to ERANGE when the result is +-Inf.
30006         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
30007         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
30008         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
30009         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
30010
30011 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
30012
30013         * conform/data/time.h-data (NULL): Use macro-constant.  Require
30014         equal to 0.
30015         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
30016         clock_t.
30017         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
30018
30019 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
30020
30021         * configure.in <sysdeps resolving>: Correct printing
30022         Implies_before.
30023         * configure: Regenerate.
30024
30025 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
30026
30027         * math/w_ilogb.c: Include <limits.h>.
30028         * math/w_ilogbl.c: Likewise.
30029
30030 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30031
30032         * manual/lang.texi (__va_copy): Document primarily as ISO C99
30033         va_copy.  Document allowing for unavailable va_copy only as
30034         pre-C99 compatibility.
30035         * manual/string.texi (Copying and Concatenation): Use va_copy
30036         instead of __va_copy in concat example.
30037
30038 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
30039
30040         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
30041         (__sendto): Use create_address_port.  Initialize APORT and deallocate
30042         it if not null.
30043
30044         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
30045         with O_NOLINK passed to __file_name_lookup.
30046
30047         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
30048         with O_NOLINK passed to __file_name_lookup.
30049
30050         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
30051         negative N or less than NGIDS.
30052
30053         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
30054         type to string_t.  Set ERANGE as errno and return it if NAME is not big
30055         enough.  Use memcpy instead of strncpy.
30056
30057 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30058
30059         * elf/Makefile (check-data): Remove.
30060         (localplt.data): New vpath directive.
30061         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30062         instead of $(check-data).
30063         * scripts/data/localplt-generic.data: Move to ...
30064         * sysdeps/generic/localplt.data: ... here.
30065         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30066         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30067         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30069         ... here.
30070         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30072         ... here.
30073         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30075         ... here.
30076         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30077         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30078         ... here.
30079         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30080         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30081         ... here.
30082         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30083         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30084         ... here.
30085
30086 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30087
30088         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30089         PPC32 and PPC64 files.
30090         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30091         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30092
30093 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30094
30095         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30096         __makecontext_ret to ...
30097         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30098         ... here and call exit if uc_link is NULL.  New file.
30099         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30100         __makecontext_ret.S.
30101         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30102         __makecontext_ret to ...
30103         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30104         ... here and call exit if uc_link is NULL.  New file.
30105         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30106         __makecontext_ret.S.
30107
30108 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30109
30110         * elf/elf.h (R_390_IRELATIVE): New definition.
30111         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30112         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30113         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30114         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30115         (elf_machine_lazy_rel): Likewise.
30116         * sysdeps/s390/dl-irel.h: New file.
30117         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30118         * sysdeps/s390/s390-64/memset.S: New asm code.
30119         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30120         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30121         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30122         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30123         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30124         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30125         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30126         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30127         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30128         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30129         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30130         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30131         * sysdeps/s390/s390-32/memset.S: New asm code.
30132         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30133
30134 2012-07-17  Marek Polacek  <polacek@redhat.com>
30135
30136         [BZ #14349]
30137         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30138         * sysdeps/s390/s390-64/configure.in: Likewise.
30139         * sysdeps/sparc/configure.in: Likewise.
30140         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30141         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30142         * sysdeps/i386/configure.in: Likewise.
30143         * sysdeps/x86_64/configure.in: Likewise.
30144         * sysdeps/sh/configure.in: Likewise.
30145         * sysdeps/s390/s390-32/configure: Regenerated.
30146         * sysdeps/s390/s390-64/configure: Likewise.
30147         * sysdeps/x86_64/configure: Likewise.
30148         * sysdeps/sh/configure: Likewise.
30149         * sysdeps/powerpc/powerpc64/configure: Likewise.
30150         * sysdeps/powerpc/powerpc32/configure: Likewise.
30151         * sysdeps/sparc/configure: Likwise.
30152         * sysdeps/i386/configure: Likewise.
30153
30154         * elf/dl-open.c: Comment fixes.
30155
30156 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30157
30158         * Makefile [CXX] (check-data): Remove.
30159         [CXX] (c++-types.data): New vpath directive.
30160         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30161         vpath.  Do not allow for C++ type data being missing.
30162         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30163         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30164         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30165         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30166         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30167         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30168         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30170         ... here.
30171         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30173         ... here.
30174         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30175         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30176         ... here.
30177         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30178         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30179         ... here.
30180         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30181         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30182         ... here.
30183         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30184         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30185         ... here.
30186         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30187         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30188         ... here.
30189         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30190         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30191
30192         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30193         definitions to architecture-specific files.
30194         (TLS_IE): Likewise.
30195         (TLS_LD): Likewise.
30196         (TLS_GD): Likewise.
30197         * sysdeps/i386/tls-macros.h: New file.
30198         * sysdeps/powerpc/tls-macros.h: Likewise.
30199         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30200         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30201         * sysdeps/sh/tls-macros.h: Likewise.
30202         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30203         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30204         * sysdeps/x86_64/tls-macros.h: Likewise.
30205
30206 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30207
30208         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30209         zero value for regular exit case.
30210
30211         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30212         (__start_context): Preserve zero value for regular exit case.
30213
30214 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30215             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30216
30217         * manual/setjmp.texi (setcontext): Clarify normal process
30218         termination when uc_link is the null pointer.
30219         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30220         exit call.
30221
30222 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30223
30224         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30225         preprocessor.  Test for each exception mask separately.
30226
30227 2012-07-16  Andreas Jaeger  <aj@suse.de>
30228
30229         * po/ru.po: Update from translation team.
30230
30231 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30232
30233         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30234         equal to 0.
30235         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30236         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30237         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30238         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30239         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30240
30241 2012-07-13  Andreas Jaeger  <aj@suse.de>
30242
30243         * po/fr.po: Update from translation team.
30244
30245 2012-07-12  Marek Polacek  <polacek@redhat.com>
30246
30247         [BZ #14173]
30248         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30249         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30250         loop condition.
30251
30252 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30253
30254         [BZ #13717]
30255         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30256         Change to 2.4.1 where previously 2.4.0.
30257         * sysdeps/unix/sysv/linux/configure: Regenerated.
30258         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30259         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30260         version.
30261         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30262         (__ASSUME_AT_CLKTCK): Remove.
30263         (__ASSUME_AT_PAGESIZE): Likewise.
30264         (__ASSUME_AT_XID): Likewise.
30265         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30266         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30267         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30268         unconditionally.
30269         (HAVE_AUX_PAGESIZE): Likewise.
30270         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30271         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30272         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30273
30274 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30275
30276         [BZ #14307]
30277         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30278         the temporary buffer used to invoke __gethostbyname2_r,
30279         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30280         host_data / struct gaih_addrtuple.
30281         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30282         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30283         header file nss/nsswitch.h.
30284         * nss/nsswitch.h (global scope): Add definition of implementation
30285         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30286         resolv/nss_dns/dns-host.c).
30287
30288 2012-07-11  Andreas Jaeger  <aj@suse.de>
30289
30290         * po/fr.po: Update from translation team.
30291
30292         * po/sv.po: Update from translation team
30293         * po/fr.po: Another update from translation team.
30294
30295 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30296
30297         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30298         for subnormals or multiply small sinh result by itself.
30299         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30301
30302 2012-07-11  David S. Miller  <davem@davemloft.net>
30303
30304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30305
30306 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30307
30308         [BZ #14347]
30309         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30310         (INTERNAL_MARK): Shift it here.
30311
30312 2012-07-10  Marek Polacek  <polacek@redhat.com>
30313
30314         [BZ #14151]
30315         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30316         libc_cv_asm_global_directive with .globl.
30317         * configure: Regenerated.
30318         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30319         with .globl.
30320         * sysdeps/i386/configure: Regenerated.
30321         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30322         with .globl.
30323         * sysdeps/x86_64/configure: Regenerated.
30324         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30325         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30326         * elf/tst-unique2mod2.c: Likewise.
30327         * elf/tst-unique2mod1.c: Likewise.
30328         * elf/tst-unique1mod2.c: Likewise.
30329         * elf/tst-unique1mod1.c: Likewise.
30330         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30331         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30332         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30333         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30334         * sysdeps/mach/sysdep.h: Likewise.
30335         * sysdeps/i386/sysdep.h: Likewise.
30336         * sysdeps/i386/i386-mcount.S: Likewise.
30337         * sysdeps/x86_64/_mcount.S: Likewise.
30338         * sysdeps/x86_64/sysdep.h: Likewise.
30339         * sysdeps/sh/_mcount.S: Likewise.
30340         * sysdeps/sh/sysdep.h: Likewise.
30341         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30342         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30343         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30344         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30345         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30346         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30347         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30348         * locale/localeinfo.h: Likewise.
30349         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30350         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30351
30352 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30353
30354         [BZ #14336]
30355         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30356         system".
30357         * manual/message.texi (The Uniforum approach): Likewise.
30358         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30359         (glibc iconv Implementation): Likewise.
30360
30361 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30362
30363         [BZ #14337]
30364         * math/s_clog.c (__clog): Avoid scaling a value down where that
30365         could result in underflow.
30366         * math/s_clog10.c (__clog10): Likewise.
30367         * math/s_clog10f.c (__clog10f): Likewise.
30368         * math/s_clog10l.c (__clog10l): Likewise.
30369         * math/s_clogf.c (__clogf): Likewise.
30370         * math/s_clogl.c (__clogl): Likewise.
30371         * math/libm-test.inc (clog_test): Add more tests.
30372         (clog10_test): Likewise.
30373         * sysdeps/i386/fpu/libm-test-ulps: Update.
30374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30375
30376 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30377
30378         [BZ #14283]
30379         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30380         by 7 not 8 to examine high bit of fractional part.
30381
30382         [BZ #14042]
30383         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30384         for call to __mcount_internal.
30385         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30386         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30387         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30388
30389 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30390
30391         [BZ #14154]
30392         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30393         approximation for values within 0x1p-13f of an odd multiple of
30394         pi/4.
30395         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30396         exception.  Add more tests.
30397         * sysdeps/i386/fpu/libm-test-ulps: Update.
30398
30399         [BZ #6778]
30400         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
30401         inputs and return -1 for them.  Do not check for +Inf in case not
30402         reachable for +Inf.
30403         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
30404         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30405         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30406         and return -1 for them.  Do not check for +Inf in case not
30407         reachable for +Inf.
30408         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
30409         define.
30410         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30411         and return -1 for them.  Do not check for +Inf in case not
30412         reachable for +Inf.
30413         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
30414         spurious underflow.
30415         * sysdeps/i386/fpu/libm-test-ulps: Update.
30416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30417
30418 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
30419
30420         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
30421
30422 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
30423
30424         [BZ #14157]
30425         [BZ #14331]
30426         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
30427         could result in spurious underflow.  Scale down values above
30428         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
30429         * math/s_csqrtf.c (__csqrtf): Likewise.
30430         * math/s_csqrtl.c (__csqrtl): Likewise.
30431         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
30432         spurious underflow.
30433         * sysdeps/i386/fpu/libm-test-ulps: Update.
30434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30435
30436 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
30437
30438         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
30439         xopen-msg.sed.
30440         * catgets/xopen-msg.awk: New file.
30441         * catgets/xopen-msg.sed: Removed.
30442
30443         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30444         po2text.sed.
30445         * intl/po2test.awk: New file.
30446         * intl/po2test.sed: Removed.
30447
30448 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30449
30450         [BZ #14328]
30451         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30452         or multiply small sinh result by itself.
30453         * math/s_ctanf.c (__ctanf): Likewise.
30454         * math/s_ctanh.c (__ctanh): Likewise.
30455         * math/s_ctanhf.c (__ctanhf): Likewise.
30456         * math/s_ctanhl.c (__ctanhl): Likewise.
30457         * math/s_ctanl.c (__ctanl): Likewise.
30458         * math/libm-test.inc (ctan_test_tonearest): New function.
30459         (ctan_test_towardzero): Likewise.
30460         (ctan_test_downward): Likewise.
30461         (ctan_test_upward): Likewise.
30462         (ctanh_test_tonearest): Likewise.
30463         (ctanh_test_towardzero): Likewise.
30464         (ctanh_test_downward): Likewise.
30465         (ctanh_test_upward): Likewise.
30466         (main): Call these new functions.
30467         * sysdeps/i386/fpu/libm-test-ulps: Update.
30468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30469
30470 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30471
30472         * .gitignore: Delete /ports entry.
30473
30474 2012-07-03  Andreas Jaeger  <aj@suse.de>
30475
30476         * po/bg.po: Update from translation team.
30477         * po/cs.po: Likewise.
30478         * po/de.po: Likewise.
30479         * po/hr.po: Likewise.
30480         * po/nl.pl: Likewise.
30481         * po/pl.po: Likewise.
30482         * po/vi.po: Likewise.
30483
30484 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30485
30486         * Makeconfig [!+link] (+link-before-libc): New variable.
30487         [!+link] (+link-after-libc): Likewise.
30488         [!+link] (+link-tests): Likewise.
30489         [!+link] (+link): Define in terms of $(+link-before-libc) and
30490         $(+link-after-libc).
30491         [!+link-static] (+link-static-before-libc): New variable.
30492         [!+link-static] (+link-static-after-libc): Likewise.
30493         [!+link-static] (+link-static-tests): Likewise.
30494         [!+link-static] (+link-static): Define in terms of
30495         $(+link-static-before-libc) and $(+link-static-after-libc).
30496         [build-shared] (link-libc-before-gnulib): New variable.
30497         [build-shared] (link-libc-tests): Likewise.
30498         [build-shared] (link-libc): Define in terms of
30499         $(link-libc-before-gnulib).
30500         [!build-shared] (link-libc-tests): New variable.
30501         (link-libc-static-tests): New variable.
30502         [!gnulib] (gnulib-arch): New variable.
30503         [!gnulib] (gnulib-tests): Likewise.
30504         [!gnulib] (static-gnulib-arch): Likewise.
30505         [!gnulib] (static-gnulib-tests): Likewise.
30506         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30507         Define with "=" instead of ":=".
30508         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30509         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30510         * Rules (binaries-all-notests): New variable.
30511         (binaries-all-tests): Likewise.
30512         (binaries-static-notests): Likewise.
30513         (binaries-static-tests): Likewise.
30514         (binaries-all): Define using $(binaries-all-notests) and
30515         $(binaries-all-tests).
30516         (binaries-static): Define using $(binaries-static-notests) and
30517         $(binaries-static-tests).
30518         (binaries-shared-tests): New variable.
30519         (binaries-shared-notests): Likewise.
30520         (binaries-shared): Remove variable.
30521         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30522         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30523         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30524         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30525         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30526         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30527         * elf/Makefile (sln-modules): New variable.
30528         (extra-objs): Add $(sln-modules:=.o).
30529         (ldconfig-modules): Add static-stubs.
30530         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30531         * elf/static-stubs.c: New file.
30532
30533         [BZ #14283]
30534         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30535         by 7 not 8 to examine high bit of fractional part.  Use volatile
30536         variables when splitting into final array of floats if
30537         __FLT_EVAL_METHOD__ != 0.
30538         * math/libm-test.inc (cos_test): Add another test.
30539         (sin_test): Likewise.
30540         * sysdeps/i386/fpu/libm-test-ulps: Update.
30541
30542         [BZ #14273]
30543         * math/libm-test.inc (cosh_test): Add more tests.
30544
30545         * version.h (RELEASE): Set to "development".
30546         (VERSION): Set to "2.16.90".
30547
30548 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30549
30550         * NEWS: Update copyright. Remove last-updated date.
30551         Mention math library bug fixes and timezone data changes.
30552         * README: Mention GNU/Hurd, x32, and HPPA support status.
30553
30554 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30555
30556         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30557
30558 2012-06-27  Andreas Jaeger  <aj@suse.de>
30559
30560         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30561
30562 2012-06-25  Andreas Jaeger  <aj@suse.de>
30563
30564         * sysdeps/s390/fpu/libm-test-ulps: Update.
30565
30566 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30567             Thomas Schwinge  <thomas@codesourcery.com>
30568
30569         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30570         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30571         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30572         fanotify_mark.
30573
30574 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30575
30576         * sysdeps/mach/start.c: Remove file.
30577         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30578         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30579         * sysdeps/sh/init-first.c: Likewise.
30580
30581         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30582         registers for frame unwinding purposes, add CFI directives.
30583         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30584         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30585         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30586         Likewise.
30587
30588         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30589         __fortify_fail returning.
30590         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30591
30592         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30593         sysdeps/sh/____longjmp_chk.S.
30594         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30595         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30596         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30597         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30598
30599         * sysdeps/sh/abort-instr.h: New file.
30600         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30601         process in case exit returns.
30602
30603         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30604         initialize the GOT register before use.
30605
30606         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30607         calculation of ARGC > 4.
30608
30609         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30610         meaningful names to some local labels.
30611
30612 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30613             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30614
30615         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30616         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30617         (__arch_compare_and_exchange_val_16_acq): Likewise.
30618         (__arch_compare_and_exchange_val_32_acq): Likewise.
30619         (atomic_exchange_and_add): Fix gUSA sequence.
30620         (atomic_add): Likewise.
30621         (atomic_add_negative): Likewise.
30622         (atomic_add_zero): Likewise.
30623         (atomic_bit_test_set): Likewise.
30624
30625 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30626
30627         [BZ #13579]
30628         * include/link.h (struct link_map): Add l_free_initfini.
30629         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30630         l_initfini.
30631         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30632         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30633         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30634         set.
30635
30636 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30637
30638         * configure.in: Use AC_LANG_SOURCE.
30639         * configure: Regenerate.
30640
30641 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30642
30643         * configure.in (libc_cv_localstatedir): New substituted variable.
30644         * configure: Regenerated.
30645         * config.make.in (localstatedir): New variable, substituted from
30646         libc_cv_localstatedir.
30647         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30648         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30649         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30650         * sysdeps/gnu/configure: Regenerated.
30651
30652 2012-06-21  Jeff Law  <law@redhat.com>
30653
30654         [BZ #14277]
30655         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30656         free.  Simplify list management for _LIBC case.
30657
30658 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30659
30660         [BZ #14273]
30661         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30662         Clear sign bit of 64-bit integer value before comparing against
30663         overflow value.
30664
30665         * sysdeps/mach/configure: Regenerated.
30666
30667 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30668
30669         [BZ #14278]
30670         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30671
30672 2012-06-21  Jeff Law  <law@redhat.com>
30673
30674         [BZ #13882]
30675         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30676         uint16_t for elements in the "seen" array to avoid char overflows.
30677         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30678         * elf/dl-open.c (dl_open_worker): Likewise.
30679
30680 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30681
30682         * scripts/list-sources.sh: Scan PORTS for translations.
30683         * po/libc.pot: Regenerated.
30684
30685 2012-06-21  Andreas Jaeger  <aj@suse.de>
30686
30687         [BZ #12194]
30688         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30689         warning.
30690         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30691         * bits/byteswap-16.h (__bswap_16): Likewise.
30692         * bits/byteswap.h (__bswap_constant_16): Likewise.
30693
30694 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30695
30696         [BZ #14117]
30697         * sysdeps/i386/fpu_control.h: Removed.
30698         * sysdeps/x86_64/fpu_control.h: Moved to ...
30699         * sysdeps/x86/fpu_control.h: Here.
30700
30701         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30702         (_FPU_SETCW): Likewise.
30703
30704 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30705
30706         [BZ #14117]
30707         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30708         * sysdeps/x86/fpu/bits/mathinline.h: This.
30709         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30710
30711         [BZ #14050]
30712         [BZ #14117]
30713         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30714         functions if __x86_64__ is defined.
30715
30716 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30717
30718         * string/endian.h: Add !__ASSEMBLER__ condition for including
30719         conversion interfaces.
30720
30721 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30722
30723         [BZ #14241]
30724         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30725         of ABS(x) in calculating zero to negative powers other than odd
30726         integers.
30727         * math/libm-test.inc (pow_test): Add more tests.
30728
30729 2012-06-15  Andreas Jaeger  <aj@suse.de>
30730
30731         * manual/contrib.texi (Contributors): Update entry of Liubov
30732         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30733         Machado Filho.
30734
30735 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30736
30737         * string/string.h: Add __wur to GNU version of strerror_r.
30738
30739 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30740
30741         [BZ #14229]
30742         * string/Makefile (tests): Add tst-strtok_r.
30743         * string/tst-strtok_r.c: New file.
30744         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30745         RAX_LP/RDX_LP on SAVE_PTR.
30746
30747 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30748
30749         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30750
30751 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30752
30753         * libm_test.inc (csqrt_test): Allow more spurious underflow
30754         exceptions.
30755         (j0_test): Likewise.
30756         (j1_test): Likewise.
30757         (y0_test): Likewise.
30758         (y1_test): Likewise.
30759
30760 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30761
30762         * po/Makefile (libc.pot): Use UTF-8 charset.
30763
30764 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30765
30766         [BZ #14210]
30767         Suppress sign-conversion warning from FD_SET.
30768         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30769         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30770         not unsigned long int.
30771         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30772
30773 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30774
30775         [BZ #14050]
30776         [BZ #14117]
30777         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30778         __extern_always_inline instead of __extern_inline.
30779         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30780         (__signbit): Likewise.
30781         (__signbitl): Support C++ namespace.
30782         (lrintf): New inline function.
30783         (lrint): Likewise.
30784         (llrintf): Likewise.
30785         (llrint): Likewise.
30786         (fmaxf): Likewise.
30787         (fmax): Likewise.
30788         (fminf): Likewise.
30789         (fmin): Likewise.
30790         (rint): Likewise.
30791         (rintf): Likewise.
30792         (ceil): Likewise.
30793         (ceilf): Likewise.
30794         (floor): Likewise.
30795         (floorf): Likewise.
30796         (nearbyint): Likewise.
30797         (nearbyintf): Likewise.
30798
30799 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30800
30801         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30802         non-default versions.
30803
30804 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30805
30806         [BZ #14218]
30807         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30808
30809 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30810
30811         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30812         (FE_UPWARD, FE_DOWNWARD): Don't define.
30813         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30814         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30815
30816         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30817         reading it.
30818         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30819         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30820
30821 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30822
30823         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30824         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30825         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30826         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30827
30828 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30829
30830         [BZ #14117]
30831         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30832         * sysdeps/i386/fpu/Implies: New file.
30833         * sysdeps/x86_64/fpu/Implies: Likewise.
30834         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30835         * sysdeps/x86/fpu/bits/fenv.h: This.
30836
30837         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30838         __SSE_MATH__.
30839
30840 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30841
30842         [BZ #14134]
30843         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30844         character 0xffff that matches the last element of the
30845         conversion table.
30846
30847 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30848
30849         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30850         fmodl commit.
30851
30852 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30853
30854         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30855         values higher than 25.6283.
30856
30857 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30858
30859         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30860         subnormal exponent extraction and add some __builtin_expect.
30861         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30862         Fix for subnormal mantissa calculation.
30863
30864 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30865
30866         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30867         cpu2 is -1 and errno is not ENOSYS.
30868
30869 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30870
30871         [BZ #14117]
30872         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30873         * sysdeps/x86/bits/string.h: This.
30874         * sysdeps/x86_64/bits/string.h: Removed.
30875
30876         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30877         if not compiling for x86-64, but compiling for >= i486.
30878
30879         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30880         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30881
30882         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30883         New macro from Linux kernel 3.4.0.
30884         (FP_XSTATE_MAGIC2): Likewise.
30885         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30886         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30887         (struct _fpx_sw_bytes): New struct.
30888         (struct _xsave_hdr): Likewise.
30889         (struct _ymmh_state): Likewise.
30890         (struct _xstate): Likewise.
30891
30892         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30893         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30894         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30895         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30896         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30897         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30898
30899         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30900         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30901         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30902         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30903         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30904         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30905
30906 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30907
30908         [BZ #13743]
30909         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30910         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30911         (sysdep_headers): Include sys/platform/ppc.h.
30912         * sysdeps/powerpc/test-gettimebase.c: Test for
30913         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30914         * manual/Makefile (appendices): Include platform.texi.
30915         * manual/contrib.texi (Contributors): Update @node pointers.
30916         * manual/maint.texi (Maintenance): Likewise.
30917         (Platform): New node.
30918         * manual/platform.texi: New file.  Document the new features.
30919
30920 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30921             Jakub Jelinek  <jakub@redhat.com>
30922
30923         [BZ #14188]
30924         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30925         where __builtin_expect is unavailable.
30926
30927 2012-06-03  David S. Miller  <davem@davemloft.net>
30928
30929         * stdlib/longlong.h: Updated from GCC.
30930
30931 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30932
30933         [BZ #14042]
30934         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30935         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30936         __mcount_internal.
30937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30938         (GLIBC_2.16): Likewise.
30939
30940 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30941
30942         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30943
30944 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30945
30946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30947         (default-abi): New variable.
30948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30949         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30950         variable.
30951         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30952         Likewise.
30953         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30954         Likewise.
30955         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30956         Likewise.
30957
30958         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30959         definition.  Document in comment.
30960
30961 2012-06-01  David S. Miller  <davem@davemloft.net>
30962
30963         * stdlib/longlong.h: Updated from GCC.
30964
30965 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30966
30967         [BZ #14117]
30968         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30969         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30970         sys/debugreg.h sys/io.h here.
30971         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30972         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30973         sys/io.h.
30974         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30975         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30976         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30977         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30978         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30979         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30980
30981         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30982         Define only if __x86_64__ is defined.
30983
30984 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30985
30986         [BZ #14048]
30987         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30988         Use int64_t for variable i.
30989         * math/libm-test.inc (fmod_test): Add more tests.
30990
30991         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30992         z computation is not scheduled after fetestexcept.
30993         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30994         Use math_force_eval instead of asm to ensure calculation scheduled
30995         before exception test.
30996         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30997         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30998
30999 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
31000
31001         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
31002         computation is not scheduled after fetestexcept.
31003
31004 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31005
31006         [BZ #14117]
31007         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
31008         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
31009
31010 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31011
31012         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
31013         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
31014
31015 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31016
31017         [BZ #14117]
31018         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
31019         <bits/wordsize.h>.
31020         (__WCHAR_MIN): Support __WORDSIZE == 64.
31021         (__WCHAR_MAX): Likewise.
31022
31023         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
31024         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
31025
31026         [BZ #14183]
31027         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
31028         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
31029
31030         [BZ #14117]
31031         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
31032         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
31033
31034         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
31035         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
31036
31037         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
31038         Defined to 1 if __x86_64__ isn't defined.
31039         (_STAT_VER_LINUX_OLD): New.
31040         (st_atime): Remove duplicate.
31041         (st_mtime): Likewise.
31042         (st_ctime): Likewise.
31043
31044 2012-05-31  David S. Miller  <davem@davemloft.net>
31045
31046         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
31047         entries.
31048
31049 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
31050
31051         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
31052         gen-libm-test.pl.
31053
31054         [BZ #14132]
31055         * elf/dl-reloc.c: Include <_itoa.h>.
31056         (_dl_reloc_bad_type): Remove use of INTUSE.
31057         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31058         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31059         * stdio-common/psiginfo.c (psiginfo): Likewise.
31060         * stdio-common/psignal.c (psignal): Likewise.
31061         * string/strsignal.c (strsignal): Likewise.
31062         * include/signal.h (_sys_siglist): Declare hidden proto.
31063         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31064         INTVARDEF with libc_hidden_data_def.
31065         * stdio-common/itoa-udigits.c: Likewise.
31066         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31067         (_itoa_lower_digits_internal): Remove declaration.
31068         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31069         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31070         (_sys_sigabbrev_internal): Remove aliases.
31071         (_sys_siglist): Define hidden alias.
31072
31073 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31074
31075         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31076         bits/sysctl.h.
31077
31078 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31079
31080         [BZ #14117]
31081         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31082         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31083
31084         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31085         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31086         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31087         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31088         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31089         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31090
31091         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31092         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31093         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31094
31095         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31096         with __addr.
31097         (insw): Likewise.
31098         (insl): Likewise.
31099         (outsb): Likewise.
31100         (outsw): Likewise.
31101         (outsl): Likewise.
31102
31103         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31104         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31105         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31106
31107         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31108         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31109         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31110         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31111         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31112         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31113
31114         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31115         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31116
31117         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31118         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31119
31120         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31121         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31122         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31123
31124         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31125         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31126         to ...
31127         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31128
31129         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31130         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31131         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31132
31133         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31134         for x86-64.
31135         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31136
31137 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31138
31139         * math/math.h (M_El): Use two more decimal places.
31140         (M_LOG2El): Likewise.
31141         (M_LOG10El): Likewise.
31142         (M_LN2l): Likewise.
31143         (M_LN10l): Likewise.
31144         (M_PIl): Likewise.
31145         (M_PI_2l): Likewise.
31146         (M_PI_4l): Likewise.
31147         (M_1_PIl): Likewise.
31148         (M_2_PIl): Likewise.
31149         (M_2_SQRTPIl): Likewise.
31150         (M_SQRT2l): Likewise.
31151         (M_SQRT1_2l): Likewise.
31152
31153 2012-05-31  David S. Miller  <davem@davemloft.net>
31154
31155         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31156         values between float registers.
31157         * sysdeps/sparc/sparc64/memset.S: Likewise.
31158         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31159
31160 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31161
31162         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31163         -D_FORTIFY_SOURCE=1.
31164         (CPPFLAGS-tst-longjmp_chk.c): Define.
31165         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31166         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31167         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31168         CFLAGS-tst-wchar-h.c.
31169
31170 2012-05-31  Marek Polacek  <polacek@redhat.com>
31171
31172         [BZ #14132]
31173         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31174         __endmntent_internal): Remove declaration.
31175         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31176         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31177         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31178
31179 2012-05-30  David S. Miller  <davem@davemloft.net>
31180
31181         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31182         (___Q_simulate_exceptions): Use real FP ops rather than writing
31183         into the %fsr.
31184         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31185         Likewise.
31186
31187 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31188
31189         [BZ #14117]
31190         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31191         * sysdeps/x86/bits/xtitypes.h: This.
31192
31193         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31194         * sysdeps/x86/bits/wordsize.h: This.
31195
31196         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31197         * sysdeps/x86/bits/huge_vall.h: This.
31198
31199         * sysdeps/i386/bits/select.h: Removed.
31200         * sysdeps/x86_64/bits/select.h: Renamed to ...
31201         * sysdeps/x86/bits/select.h: This.
31202
31203         * sysdeps/i386/bits/setjmp.h: Removed.
31204         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31205         * sysdeps/x86/bits/setjmp.h: This.
31206
31207         * sysdeps/i386/bits/mathdef.h: Removed.
31208         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31209         * sysdeps/x86/bits/mathdef.h: This.
31210
31211 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31212
31213         [BZ #14132]
31214         * include/sys/socket.h (__connect_internal)
31215         (__libc_sa_len_internal): Remove declaration.
31216         (__connect, __libc_sa_len): Declare hidden_proto.
31217         (SA_LEN): Remove use of INTUSE.
31218         * socket/connect.c: Add libc_hidden_def.
31219         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31220         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31221         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31222         alias.
31223         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31224         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31225         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31226         of adding _internal alias.
31227
31228 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31229
31230         [BZ #14117]
31231         * sysdeps/i386/bits/link.h: Removed.
31232         * sysdeps/i386/bits/linkmap.h: Likewise.
31233         * sysdeps/x86_64/bits/link.h: Renamed to ...
31234         * sysdeps/x86/bits/link.h: This.
31235         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31236         * sysdeps/x86/bits/linkmap.h: This.
31237
31238         * sysdeps/i386/bits/endian.h: Removed.
31239         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31240         * sysdeps/x86/bits/endian.h: This.
31241
31242         * sysdeps/i386/bits/byteswap.h: Removed.
31243         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31244         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31245         * sysdeps/x86/bits/byteswap.h: This.
31246         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31247         * sysdeps/x86/bits/byteswap-16.h: This.
31248         * sysdeps/i386/Implies: Add x86.
31249         * sysdeps/x86_64/Implies: Likewise.
31250
31251 2012-05-30  David S. Miller  <davem@davemloft.net>
31252
31253         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31254         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31255         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31256         (FP_TRAPPING_EXCEPTIONS): Define.
31257         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31258         (FP_TRAPPING_EXCEPTIONS): Define.
31259         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31260         subnormals only when inexact has been signalled or underflow
31261         exceptions are enabled.
31262         (_FP_PACK_CANONICAL): Likewise.
31263
31264 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31265
31266         [BZ #14183]
31267         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31268         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31269
31270 2012-05-30  Richard Henderson  <rth@twiddle.net>
31271
31272         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31273         with #ifndef NOT_IN_libc.
31274
31275         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31276         marked to avoid plt entry.
31277
31278 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31279
31280         [BZ #14112]
31281         * Makeconfig (default-abi): New macro.
31282         (abi-includes): Likewise.
31283         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31284         $(abi-$(default-abi)-lib-soname) for soname if defined.
31285         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31286         abi-variants.
31287         * Makefile (installed-stubs): Likewise.
31288         * include/stubs-biarch.h: Removed.
31289         * scripts/lib-names.awk: Only handle one library at a time.
31290         * scripts/soversions.awk: Remove WORDSIZE support.
31291         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31292         entries.
31293         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31294         Removed.
31295         (syscall-list-default-condition): Likewise.
31296         (syscall-list-default-condition): Likewise.
31297         (syscall-list-includes): Likewise.
31298         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31299         syscall-list-* with abi-*.  Handle undefined abi-variants.
31300         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31301         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31302         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31303         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31304         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31305         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31306         Removed.
31307         (syscall-list-32-options): Likewise.
31308         (syscall-list-32-condition): Likewise.
31309         (syscall-list-64-options): Likewise.
31310         (syscall-list-64-condition): Likewise.
31311         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31312         macro.
31313         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31314         Renamed to ...
31315         (abi-*): This.
31316         (abi-64-ld-soname): New macro.
31317         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31318         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31319         Renamed to ...
31320         (abi-*): This.
31321         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31322         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31323
31324 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31325
31326         * sysdeps/unix/sysv/linux/kernel-features.h
31327         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31328         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31329         include <kernel-features.h>.
31330         [!__NR_ftruncate64]: Remove conditional code.
31331         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31332         [__NR_ftruncate64]: Make code unconditional.
31333         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31334         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31335         include <kernel-features.h>.
31336         [!__NR_ftruncate64]: Remove conditional code.
31337         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31338         [__NR_ftruncate64]: Make code unconditional.
31339         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31341         include <kernel-features.h>.
31342         [!__NR_ftruncate64]: Remove conditional code.
31343         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31344         [__NR_ftruncate64]: Make code unconditional.
31345         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31347         include <kernel-features.h>.
31348         [!__NR_ftruncate64]: Remove conditional code.
31349         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31350         [__NR_ftruncate64]: Make code unconditional.
31351         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31352
31353         * configure.in (libc_cv_fpie): Weaken to a compile test using
31354         LIBC_TRY_CC_OPTION.
31355         * configure: Regenerated.
31356
31357 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31358
31359         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31360         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31362         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31363         Refreshed.
31364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31365         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31366         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31367         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31368         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31370         Refreshed.
31371
31372 2012-05-27  David S. Miller  <davem@davemloft.net>
31373
31374         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31375         (___Q_zero): New.
31376         (__Q_simulate_exceptions): Return void.  Change to simulate
31377         exceptions by writing into the %fsr.
31378         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31379         (__Qp_handle_exceptions): Likewise.
31380         (numbers): Delete.
31381         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31382         __Qp_handle_exceptions.
31383         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31384         __Qp_handle_exceptions.
31385         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31386         as unused and give dummy FP_RND_NEAREST initializer.
31387         (FP_INHIBIT_RESULTS): Define.
31388         (___Q_simulate_exceptions): Update declaration.
31389         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31390         formatting.
31391         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31392         as unused and give dummy FP_RND_NEAREST initializer.
31393         (__Qp_handle_exceptions): Update declaration.
31394         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31395         formatting.
31396
31397 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31398
31399         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
31400         the temporary FPU control word.
31401         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
31402         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
31403         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
31404         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31405         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
31406         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
31407         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
31408         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31409         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
31410         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
31411         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31412
31413 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31414
31415         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
31416         fields.
31417
31418 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
31419
31420         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
31421         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
31422         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
31423         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
31424         Likewise.
31425         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
31426         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
31427         Likewise.
31428
31429 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
31430
31431         * po/h.po: Update from translation team.
31432
31433 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
31434
31435         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
31436
31437         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
31438         handling of denormals.
31439         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31440         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31441         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31442         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31443         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31444         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31445         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31446         Likewise.
31447
31448 2012-05-26  Marek Polacek  <polacek@redhat.com>
31449
31450         [BZ #14152]
31451         * math/libm-test.inc (fma_test): Don't always expect underflow
31452         exception.
31453
31454 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31455
31456         [BZ #12416]
31457         * elf/tst-execstack.c: Include stackinfo.h.
31458         (do_test): Adjust test case to ensure that pthread_getattr_np
31459         behaviour remains the same after marking stack executable.
31460
31461 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31462
31463         * sysdeps/unix/sysv/linux/kernel-features.h
31464         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31465         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31466         kernel-features.h.
31467         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31468         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31469         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31470         kernel-features.h.
31471         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31472         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31473
31474 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31475
31476         * configure.in: Define the default includes to being none.
31477         * configure: Regenerated.
31478
31479 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31480
31481         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31482         * sysdeps/x86_64/setjmp.S: Likewise.
31483         * sysdeps/i386/bsd-setjmp.S: Likewise.
31484         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31485         * sysdeps/i386/setjmp.S: Likewise.
31486         * sysdeps/i386/__longjmp.S: Likewise.
31487         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31488         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31489
31490         * include/stap-probe.h: New file.
31491         * configure.in: Handle --enable-systemtap.
31492         * configure: Regenerated.
31493         * config.h.in (USE_STAP_PROBE): New #undef.
31494         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31495         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31496         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31497
31498 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31499
31500         [BZ #13717]
31501         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31502         to 2.4.0 where earlier.
31503         * sysdeps/unix/sysv/linux/configure: Regenerated.
31504         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
31513         [__ASSUME_32BITUIDS]: Make code unconditional.
31514         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31515         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
31516         <kernel-features.h>.
31517         [__ASSUME_32BITUIDS]: Make code unconditional.
31518         [!__ASSUME_32BITUIDS]: Remove conditional code.
31519         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
31520         <kernel-features.h>.
31521         [__ASSUME_32BITUIDS]: Make code unconditional.
31522         [!__ASSUME_32BITUIDS]: Remove conditional code.
31523         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
31524         <kernel-features.h>.
31525         [__ASSUME_32BITUIDS]: Make code unconditional.
31526         [!__ASSUME_32BITUIDS]: Remove conditional code.
31527         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
31528         <kernel-features.h>.
31529         [__ASSUME_32BITUIDS]: Make code unconditional.
31530         [!__ASSUME_32BITUIDS]: Remove conditional code.
31531         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
31532         <kernel-features.h>.
31533         [__ASSUME_32BITUIDS]: Make code unconditional.
31534         [!__ASSUME_32BITUIDS]: Remove conditional code.
31535         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
31536         <kernel-features.h>.
31537         [__ASSUME_32BITUIDS]: Make code unconditional.
31538         [!__ASSUME_32BITUIDS]: Remove conditional code.
31539         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
31540         <kernel-features.h>.
31541         [__ASSUME_32BITUIDS]: Make code unconditional.
31542         [!__ASSUME_32BITUIDS]: Remove conditional code.
31543         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
31544         <kernel-features.h>.
31545         [__ASSUME_32BITUIDS]: Make code unconditional.
31546         [!__ASSUME_32BITUIDS]: Remove conditional code.
31547         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
31548         <kernel-features.h>.
31549         [__ASSUME_32BITUIDS]: Make code unconditional.
31550         [!__ASSUME_32BITUIDS]: Remove conditional code.
31551         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
31552         <kernel-features.h>.
31553         [__ASSUME_32BITUIDS]: Make code unconditional.
31554         [!__ASSUME_32BITUIDS]: Remove conditional code.
31555         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
31556         <kernel-features.h>.
31557         [__NR_setresgid] (__setresgid): Do not declare.
31558         [__ASSUME_32BITUIDS]: Make code unconditional.
31559         [!__ASSUME_32BITUIDS]: Remove conditional code.
31560         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31561         <kernel-features.h>.
31562         [__NR_setresuid] (__setresuid): Do not declare.
31563         [__ASSUME_32BITUIDS]: Make code unconditional.
31564         [!__ASSUME_32BITUIDS]: Remove conditional code.
31565         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
31566         <kernel-features.h>.
31567         [__ASSUME_32BITUIDS]: Make code unconditional.
31568         [!__ASSUME_32BITUIDS]: Remove conditional code.
31569         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
31570         <kernel-features.h>.
31571         [__ASSUME_32BITUIDS]: Make code unconditional.
31572         [!__ASSUME_32BITUIDS]: Remove conditional code.
31573         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
31574         <kernel-features.h>.
31575         [__ASSUME_32BITUIDS]: Make code unconditional.
31576         [!__ASSUME_32BITUIDS]: Remove conditional code.
31577         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
31578         <kernel-features.h>.
31579         [__ASSUME_32BITUIDS]: Make code unconditional.
31580         [!__ASSUME_32BITUIDS]: Remove conditional code.
31581         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
31582         <kernel-features.h>.
31583         [__ASSUME_32BITUIDS]: Make code unconditional.
31584         [!__ASSUME_32BITUIDS]: Remove conditional code.
31585         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
31586         <kernel-features.h>.
31587         [__ASSUME_32BITUIDS]: Make code unconditional.
31588         [!__ASSUME_32BITUIDS]: Remove conditional code.
31589         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
31590         <kernel-features.h>.
31591         [__ASSUME_32BITUIDS]: Make code unconditional.
31592         [!__ASSUME_32BITUIDS]: Remove conditional code.
31593         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
31594         <kernel-features.h>.
31595         [__ASSUME_32BITUIDS]: Make code unconditional.
31596         [!__ASSUME_32BITUIDS]: Remove conditional code.
31597         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
31598         <kernel-features.h>.
31599         [__ASSUME_32BITUIDS]: Make code unconditional.
31600         [!__ASSUME_32BITUIDS]: Remove conditional code.
31601         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
31602         <kernel-features.h>.
31603         [__ASSUME_32BITUIDS]: Make code unconditional.
31604         [!__ASSUME_32BITUIDS]: Remove conditional code.
31605         * sysdeps/unix/sysv/linux/kernel-features.h
31606         (__ASSUME_SETRESUID_SYSCALL): Remove.
31607         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31608         (__ASSUME_32BITUIDS): Likewise.
31609         (__ASSUME_LDT_WORKS): Likewise.
31610         (__ASSUME_O_DIRECTORY): Likewise.
31611         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31612         architecture but not kernel version.
31613         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31614         (__ASSUME_MMAP2_SYSCALL): Likewise.
31615         (__ASSUME_STAT64_SYSCALL): Likewise.
31616         (__ASSUME_IPC64): Likewise.
31617         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31618         <kernel-features.h>.
31619         [__ASSUME_32BITUIDS]: Make code unconditional.
31620         [!__ASSUME_32BITUIDS]: Remove conditional code.
31621         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31622         <kernel-features.h>.
31623         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31624         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31625         132096]: Remove conditional code.
31626         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31627         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31628         <kernel-features.h>.
31629         [__ASSUME_32BITUIDS]: Make code unconditional.
31630         [!__ASSUME_32BITUIDS]: Remove conditional code.
31631         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31632         <kernel-features.h>.
31633         [__ASSUME_32BITUIDS]: Make code unconditional.
31634         [!__ASSUME_32BITUIDS]: Remove conditional code.
31635         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31636         <kernel-features.h>.
31637         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31638         unconditional.
31639         (__setresgid): Do not declare.
31640         [__ASSUME_32BITUIDS]: Make code unconditional.
31641         [!__ASSUME_32BITUIDS]: Remove conditional code.
31642         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31643         <kernel-features.h>.
31644         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31645         unconditional.
31646         (__setresuid): Do not declare.
31647         [__ASSUME_32BITUIDS]: Make code unconditional.
31648         [!__ASSUME_32BITUIDS]: Remove conditional code.
31649         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31650         <kernel-features.h>.
31651         [__ASSUME_32BITUIDS]: Make code unconditional.
31652         [!__ASSUME_32BITUIDS]: Remove conditional code.
31653         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31654         <kernel-features.h>.
31655         [__ASSUME_32BITUIDS]: Make code unconditional.
31656         [!__ASSUME_32BITUIDS]: Remove conditional code.
31657
31658 2012-05-25  Richard Henderson  <rth@twiddle.net>
31659
31660         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31661         dl_hwcap to ifunc resolver.
31662         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31663         elf_ifunc_invoke.
31664         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31665         dl_hwcap to ifunc resolver.
31666         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31667
31668 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31669
31670         [BZ #14153]
31671         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31672         for |x| <= 2**-26, not 2**-57.
31673         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31674         exception.
31675
31676 2012-05-24  Jeff Law  <law@redhat.com>
31677
31678         * stdio-common/Makefile (tests): Add bug25.
31679         * stdio-common/bug25.c: New test.
31680
31681 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31682
31683         [BZ #13576]
31684         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31685         multiple of MALLOC_ALIGNMENT in size.
31686         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31687
31688 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31689
31690         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31691         Require >= 256.
31692         (FILENAME_MAX): Use macro-int-constant.
31693         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31694         (_IOFBF): Use macro-int-constant.
31695         (_IOLBF): Likewise.
31696         (_IONBF): Likewise.
31697         (SEEK_CUR): Likewise.
31698         (SEEK_END): Likewise.
31699         (SEEK_SET): Likewise.
31700         (TMP_MAX): Likewise.
31701         (EOF): Use macro-int-constant.  Require < 0.
31702         (NULL): Use macro-constant.  Require == 0.
31703         (stdin): Require type to be FILE *.
31704         (stdout): Likewise.
31705         (stderr): Likewise.
31706         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31707         macro-int-constant.
31708         (EXIT_SUCCESS): Likewise.
31709         (NULL): Use macro-constant.  Require == 0.
31710         (RAND_MAX): Use macro-int-constant.
31711         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31712         [C99-based standards] (strtof): Require function.
31713         [C99-based standards] (strtold): Likewise.
31714         [C99-based standards] (strtoll): Likewise.
31715         [C99-based standards] (strtoull): Likewise.
31716         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31717         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31718         [ISO || ISO99 || ISO11] (math.h): Likewise.
31719         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31720         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31721         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31722
31723 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31724
31725         [BZ #14132]
31726         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31727         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31728         * intl/dgettext.c (DCGETTEXT): Likewise.
31729         * intl/gettext.c (DCGETTEXT): Likewise.
31730         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31731         * posix/regex_internal.h (gettext): Likewise.
31732         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31733         Remove declaration.
31734         * include/argz.h (__argz_count_internal)
31735         (__argz_stringify_internal): Remove declaration.
31736         (__argz_count, __argz_stringify): Declare hidden proto.
31737         * intl/dcgettext.c: Remove use of INTDEF.
31738         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31739         * string/argz-stringify.c: Likewise.
31740         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31741         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31742         Declare hidden proto.
31743         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31744         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31745         Declare hidden proto.
31746         * include/stdio.h (__asprintf_internal): Don't declare.
31747         (__asprintf): Don't define as macro.  Declare hidden proto.
31748         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31749         (__fsetlocking): Declare hidden proto.
31750         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31751         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31752         hidden proto.
31753         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31754         (_IO_setlinebuf): Remove use of INTUSE.
31755         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31756         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31757         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31758         Remove declaration.
31759         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31760         (_IO_do_flush): Remove use of INTUSE.
31761         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31762         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31763         (_IO_adjust_column, _IO_least_wmarker)
31764         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31765         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31766         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31767         (_IO_default_doallocate, _IO_wdefault_doallocate)
31768         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31769         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31770         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31771         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31772         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31773         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31774         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31775         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31776         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31777         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31778         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31779         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31780         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31781         proto.
31782         (_IO_flush_all_internal, _IO_adjust_column_internal)
31783         (_IO_default_uflow_internal, _IO_default_finish_internal)
31784         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31785         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31786         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31787         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31788         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31789         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31790         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31791         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31792         (_IO_file_close_internal, _IO_file_close_it_internal)
31793         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31794         (_IO_file_init_internal, _IO_file_attach_internal)
31795         (_IO_file_fopen_internal, _IO_file_read_internal)
31796         (_IO_file_sync_internal, _IO_file_seek_internal)
31797         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31798         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31799         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31800         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31801         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31802         (_IO_list_all_internal, _IO_link_in_internal)
31803         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31804         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31805         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31806         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31807         (_IO_do_write_internal, _IO_padn_internal)
31808         (_IO_getline_info_internal, _IO_getline_internal)
31809         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31810         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31811         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31812         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31813         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31814         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31815         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31816         with libc_hidden_ver, remove use of INTUSE.
31817         * libio/genops.c: Likewise.
31818         * libio/freopen.c: Likewise.
31819         * libio/freopen64.c: Likewise.
31820         * libio/iofclose.c: Likewise.
31821         * libio/iofdopen.c: Likewise.
31822         * libio/iofflush.c: Likewise.
31823         * libio/iofflush_u.c: Likewise.
31824         * libio/iofgets.c: Likewise.
31825         * libio/iofgets_u.c: Likewise.
31826         * libio/iofopen.c: Likewise.
31827         * libio/iofopncook.c: Likewise.
31828         * libio/iofread.c: Likewise.
31829         * libio/iofread_u.c: Likewise.
31830         * libio/ioftell.c: Likewise.
31831         * libio/iofwrite.c: Likewise.
31832         * libio/iogetline.c: Likewise.
31833         * libio/iogets.c: Likewise.
31834         * libio/iogetwline.c: Likewise.
31835         * libio/iopadn.c: Likewise.
31836         * libio/iopopen.c: Likewise.
31837         * libio/ioseekoff.c: Likewise.
31838         * libio/ioseekpos.c: Likewise.
31839         * libio/iosetbuffer.c: Likewise.
31840         * libio/iosetvbuf.c: Likewise.
31841         * libio/ioungetc.c: Likewise.
31842         * libio/ioungetwc.c: Likewise.
31843         * libio/iovdprintf.c: Likewise.
31844         * libio/iovsprintf.c: Likewise.
31845         * libio/iovsscanf.c: Likewise.
31846         * libio/memstream.c: Likewise.
31847         * libio/obprintf.c: Likewise.
31848         * libio/oldfileops.c: Likewise.
31849         * libio/oldiofclose.c: Likewise.
31850         * libio/oldiofdopen.c: Likewise.
31851         * libio/oldiofopen.c: Likewise.
31852         * libio/oldiopopen.c: Likewise.
31853         * libio/oldstdfiles.c: Likewise.
31854         * libio/putc.c: Likewise.
31855         * libio/setbuf.c: Likewise.
31856         * libio/setlinebuf.c: Likewise.
31857         * libio/stdfiles.c: Likewise.
31858         * libio/strops.c: Likewise.
31859         * libio/vasprintf.c: Likewise.
31860         * libio/vscanf.c: Likewise.
31861         * libio/vsnprintf.c: Likewise.
31862         * libio/vswprintf.c: Likewise.
31863         * libio/wfiledoalloc.c: Likewise.
31864         * libio/wfileops.c: Likewise.
31865         * libio/wgenops.c: Likewise.
31866         * libio/wmemstream.c: Likewise.
31867         * libio/wstrops.c: Likewise.
31868         * libio/__fpurge.c: Likewise.
31869         * libio/__fsetlocking.c: Likewise.
31870         * assert/assert.c: Likewise.
31871         * debug/fgets_chk.c: Likewise.
31872         * debug/fgets_u_chk.c: Likewise.
31873         * debug/fread_chk.c: Likewise.
31874         * debug/fread_u_chk.c: Likewise.
31875         * debug/gets_chk.c: Likewise.
31876         * debug/obprintf_chk.c: Likewise.
31877         * debug/vasprintf_chk.c: Likewise.
31878         * debug/vdprintf_chk.c: Likewise.
31879         * debug/vsnprintf_chk.c: Likewise.
31880         * debug/vsprintf_chk.c: Likewise.
31881         * malloc/mtrace.c: Likewise.
31882         * misc/error.c: Likewise.
31883         * misc/syslog.c: Likewise.
31884         * stdio-common/asprintf.c: Likewise.
31885         * stdio-common/fxprintf.c: Likewise.
31886         * stdio-common/getw.c: Likewise.
31887         * stdio-common/isoc99_fscanf.c: Likewise.
31888         * stdio-common/isoc99_scanf.c: Likewise.
31889         * stdio-common/isoc99_vfscanf.c: Likewise.
31890         * stdio-common/isoc99_vscanf.c: Likewise.
31891         * stdio-common/isoc99_vsscanf.c: Likewise.
31892         * stdio-common/printf-prs.c: Likewise.
31893         * stdio-common/printf_fp.c: Likewise.
31894         * stdio-common/printf_fphex.c: Likewise.
31895         * stdio-common/printf_size.c: Likewise.
31896         * stdio-common/putw.c: Likewise.
31897         * stdio-common/scanf.c: Likewise.
31898         * stdio-common/sprintf.c: Likewise.
31899         * stdio-common/tmpfile.c: Likewise.
31900         * stdio-common/vfprintf.c: Likewise.
31901         * stdio-common/vfscanf.c: Likewise.
31902         * stdlib/strfmon_l.c: Likewise.
31903         * sunrpc/openchild.c: Likewise.
31904         * sunrpc/xdr_stdio.c: Likewise.
31905         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31906         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31907
31908 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31909
31910         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31911
31912         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31913         in the third column, to generate for the shared library an IFUNC
31914         that uses _dl_vdso_vsym.
31915         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31916         * Makeconfig (object-suffixes-noshared): New variable.
31917
31918         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31919         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31920         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31921         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31922
31923         [BZ #14132]
31924         * include/sys/time.h (__gettimeofday): Remove macro.
31925         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31926         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31927         Remove INTDEF.
31928         (__gettimeofday): Add libc_hidden_def.
31929         (gettimeofday): Add libc_hidden_weak.
31930         * sysdeps/mach/gettimeofday.c: Likewise.
31931         * sysdeps/posix/gettimeofday.c: Likewise.
31932         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31933         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31934         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31935         (__gettimeofday_internal): Remove strong_alias.
31936         (__gettimeofday): Add libc_hidden_def.
31937         (gettimeofday): Add libc_hidden_weak.
31938         * sysdeps/unix/syscalls.list (gettimeofday):
31939         Remove __gettimeofday_internal alias.
31940
31941 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31942             H.J. Lu  <hongjiu.lu@intel.com>
31943
31944         [BZ #12495]
31945         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31946         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31947         (largebin_index_32_big): New.
31948         (largebin_index): Use it for 16-byte alignment.
31949         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31950         correction with front_misalign.
31951
31952 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31953
31954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31955         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31956         Likewise.
31957         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31958         Likewise.
31959         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31960         Likewise.
31961         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31962         Likewise.
31963         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31964         Likewise.
31965         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31966         Likewise.
31967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31968         Likewise.
31969         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31970         Likewise.
31971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31972         Likewise.
31973         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31974         Likewise.
31975         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31976         Likewise.
31977         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31978         Likewise.
31979
31980         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31981         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31982
31983 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31984
31985         [BZ #10846]
31986         [BZ #14036]
31987         * math/libm-test.inc (exp_test): Add test from bug 14036.
31988         (pow_test): Add test from bug 10846.
31989
31990         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31991         and other flags.
31992         (special_function): Do not include flags in test name.
31993         (parse_args): Likewise.
31994         * sysdeps/i386/fpu/libm-test-ulps: Update.
31995         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31996         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31997         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31998         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31999
32000         * math/gen-libm-test.pl (%beautify): Add entries for underflow
32001         exceptions.
32002         * math/libm-test.inc ("Philosophy"): Update comment about
32003         exception testing.
32004         (UNDERFLOW_EXCEPTION): New macro.
32005         (UNDERFLOW_EXCEPTION_OK): Likewise.
32006         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
32007         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
32008         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
32009         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
32010         (INVALID_EXCEPTION_OK): Update value.
32011         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
32012         (OVERFLOW_EXCEPTION_OK): Likewise.
32013         (IGNORE_ZERO_INF_SIGN): Likewise.
32014         (test_exceptions): Handle underflow exceptions.
32015         (acos_test): Update for underflow exception expectations.
32016         (cexp_test): Likewise.
32017         (clog_test): Likewise.
32018         (clog10_test): Likewise.
32019         (csqrt_test): Likewise.
32020         (ctan_test): Likewise.
32021         (ctanh_test): Likewise.
32022         (exp_test): Likewise.
32023         (exp10_test): Likewise.
32024         (exp2_test): Likewise.
32025         (expm1_test): Likewise.
32026         (fma_test): Likewise.
32027         (j0_test): Likewise.
32028         (jn_test): Likewise.
32029         (nexttoward_test): Likewise.
32030         (pow_test): Likewise.
32031         (scalbn_test): Likewise.
32032         (scalbln_test): Likewise.
32033         (tan_test): Likewise.
32034         (y1_test): Likewise.
32035         * sysdeps/i386/fpu/libm-test-ulps: Update.
32036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32037
32038 2012-05-23  David S. Miller  <davem@davemloft.net>
32039
32040         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32041         (__libc_sigaction): Remove unused local variables.
32042
32043 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32044
32045         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
32046
32047 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32048
32049         mktime: avoid signed integer overflow
32050         * time/mktime.c (__mktime_internal): Do not mishandle the case
32051         where diff == INT_MIN.
32052
32053         mktime: simplify computation of average
32054         * time/mktime.c (ranged_convert): Use new time_t_avg function
32055         instead of rolling our own (probably-slower) code.
32056
32057         mktime: do not assume signed right shift propagates sign bit
32058         * time/mktime.c (isdst_differ): New static function.
32059         (__mktime_internal): No need to normalize tm_isdst now.
32060         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32061         tm_isdst values.
32062
32063         mktime: merge another wrapv change from gnulib
32064         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32065         from some compilers.
32066
32067         mktime: remove incorrect attempt at unusual arithmetics
32068         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32069         The code didn't really work on such machines anyway.
32070         (TYPE_MINIMUM): Assume two's complement.
32071         (twos_complement_arithmetic): Verify that long_int and time_t
32072         are two's complement (or unsigned, in the latter case).
32073
32074         mktime: check signed shifts on long_int and time_t, too
32075         * time/mktime.c (SHR): Check that shifts work as desired
32076         on the types long_int and time_t too, as SHR is used on
32077         such types.
32078
32079         mktime: do not assume 'long' is wide enough
32080         * time/mktime.c (verify): Move decl up.
32081         (long_int): New type.
32082         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32083         to remove assumption in the code that 'long' is wide enough to
32084         store year values.  This assumption is not true on x32 and on
32085         some non-glibc platforms.
32086
32087         mktime: merge wrapv change from gnulib
32088         * time/mktime.c (WRAPV): New macro.
32089         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32090         (guess_time_tm, __mktime_internal): Do not assume that signed
32091         integer overflow wraps around; modern compilers generate code
32092         where this assumption is no longer valid.
32093
32094 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32095
32096         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32097         Replace "jmp L(pseudo_end)" with "ret".
32098         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32099         Likewise.
32100
32101 2012-05-23  Andreas Jaeger  <aj@suse.de>
32102
32103         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32104         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32105
32106 2012-05-23  Andreas Jaeger  <aj@suse.de>
32107             Maximilian Attems  <max@stro.at>
32108
32109         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32110         New macros.
32111
32112 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32113
32114         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32115         code so that pseudo_end is just ret and the stack pointer is
32116         correct also for static library in error case.
32117
32118 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32119
32120         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32121         move to syscalls.list.
32122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32126
32127         * manual/install.texi (Running make install): Do not mention Linux
32128         kernel version for which pt_chown is not needed.
32129         (Linux): Do not mention problems with nscd with 2.0 kernels.
32130         * INSTALL: Regenerated.
32131
32132 2012-05-23  Andreas Jaeger  <aj@suse.de>
32133
32134         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32135         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32136         macro.
32137         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32138         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32139         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32140         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32141         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32142         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32143         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32144         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32145         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32146         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32147         * sysdeps/unix/sysv/linux/bits/in.h
32148         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32149
32150 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32151
32152         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32153         (PREPARE_VERSION): Just use assert instead, it will be elided
32154         under [NDEBUG] anyway.
32155
32156 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32157
32158         * sysdeps/unix/sysv/linux/Makefile: Include
32159         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32160         (sysdep_routines): Remove sysctl.
32161         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32162         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32163         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32164         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32165         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32166
32167 2012-05-22  Andreas Jaeger  <aj@suse.de>
32168
32169         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32170         that pseudo_end is just ret and the stack pointer is correct also
32171         for static library in error case.
32172
32173 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32174
32175         [BZ #14122]
32176         * nss/nsswitch.c (defconfig_entries): New variable.
32177         (__nss_database_lookup): Don't leak defconfig entries.
32178         (nss_parse_service_list): Don't leak on error paths.
32179         (free_database_entries): New function.
32180         (free_defconfig): New function.
32181         (free_mem): Move common code to free_database_entries.
32182
32183 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32184
32185         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32186         Add arch_prctl.
32187         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32188
32189         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32190         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32191         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32192         New macro.
32193         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32194         (INTERNAL_SYSCALL_TYPES): Likewise.
32195         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32196         (LOAD_REGS_TYPES_[1-6]): Likewise.
32197         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32198         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32199
32200 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32201
32202         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32203         copysignl for GLIBC_2_0.
32204         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32205         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32206         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32207         logbl for GLIBC_2_0.
32208         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32209         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32210
32211 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32212
32213         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32214         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32215
32216         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32217         Use "neg %eax".
32218
32219         * time/mktime.c: Update copyright years.
32220
32221 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32222
32223         mktime: merge comment-quoting-style change from gnulib
32224         * time/mktime.c: Quote 'like this' in comments.
32225         The GNU coding standards suggest that we no longer quote `like this',
32226         as "`" and "'" are typically rendered asymmetrically nowadays.
32227         The typical gnulib style is to quote 'like this' when quoting
32228         code, and "like this" when quoting English.
32229
32230         * time/mktime.c (compile-command): Add "-I.".
32231
32232         mktime: merge mktime-internal.h change from gnulib
32233         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32234
32235         mktime: merge time_r change from gnulib
32236         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32237
32238         mktime: merge DEBUG change from gnulib
32239         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32240         case system <time.h> has a #define.
32241
32242         mktime: merge <sys/types.h> change from gnulib
32243         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32244         since <time.t> is now guaranteed to define time_t.
32245
32246         mktime: merge HAVE_CONFIG_H change from gnulib
32247         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32248
32249 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32250
32251         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32252         Use "neg %eax".
32253
32254         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32255         __rlim_t cast.
32256         (struct rusage): Use anonymous union to pad each field to
32257         __syscall_slong_t.
32258
32259 2012-05-21  David S. Miller  <davem@davemloft.net>
32260
32261         * Makefules (o-iterator): Remove .s cases.
32262         (compile-command.s): Delete.
32263         (COMPILE.s): Delete.
32264         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32265
32266 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32267
32268         * configure.in (libc_cv_predef_stack_protector): Only consider
32269         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32270         * configure: Regenerated.
32271
32272 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32273
32274         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32275         New macro.  Use R*LP on int and pointer.
32276         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32277         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32278         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32279         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32280
32281         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32282         [__WORDSIZE_TIME64_COMPAT32] instead of
32283         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32284         (struct utmp): Likewise.
32285         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32286         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32287         Renamed to ...
32288         (__WORDSIZE_TIME64_COMPAT32): This.
32289         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32290         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32291         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32292         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32293         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32294         (__WORDSIZE_TIME64_COMPAT32): New macro.
32295
32296 2012-05-21  Andreas Jaeger  <aj@suse.de>
32297
32298         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32299         only if [SHARED]. Add prototype for __wcschr_ia32.
32300
32301 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32302
32303         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32304         of %rbp unmolested in the jmp_buf while mangling the low bits.
32305         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32306         unmolested high bits of %rbp while demangling the low bits.
32307         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32308
32309 2012-05-21  Andreas Jaeger  <aj@suse.de>
32310
32311         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32312         * sunrpc/svc_simple.c: Use it for registerrpc.
32313         * sunrpc/xcrypt.c: Use it for passwd2des.
32314
32315         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32316
32317 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32318
32319         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32320         Don't define if [__SYSCALL_WORDSIZE != 32].
32321         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32322         New macro.
32323
32324 2012-05-21  Bruno Haible  <bruno@clisp.org>
32325             Andreas Jaeger  <aj@suse.de>
32326
32327         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32328         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32329         inptr and inend for must_buffer_ch.
32330         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32331         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32332         * stdio-common/Makefile (tests): Remove bug15.
32333         (bug15-ENV): Remove macro.
32334         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32335         anymore.
32336
32337 2012-05-19  Andreas Jaeger  <aj@suse.de>
32338             Roland McGrath  <roland@hack.frob.com>
32339
32340         * manual/contrib.texi: Completely rewritten. It contains now an
32341         alphabetical list of contributors and their contributions.
32342
32343 2012-05-21  Richard Henderson  <rth@twiddle.net>
32344
32345         * misc/getauxval.c (__getauxval): Use unsigned long int.
32346         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32347         (getauxval): Use unsigned long int.
32348
32349 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32350
32351         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32352
32353 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32354
32355         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32356         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32357         __alignof__ (long double).
32358
32359 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32360
32361         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32362
32363 2012-05-20  Richard Henderson  <rth@twiddle.net>
32364
32365         * misc/getauxval.c: New file.
32366         * misc/sys/auxv.h: New file.
32367         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32368         (routines): Add getauxval.
32369         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32370         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32371         * elf/dl-sysdep.c (_dl_auxv): Remove.
32372         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32373         * elf/dl-support.c (_dl_auxv): New variable.
32374         (_dl_aux_init): Initialize it.
32375         * manual/startup.texi (Auxiliary Vector): New node.
32376         * sysdeps/generic/bits/hwcap.h: New file.
32377         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32378         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32379         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32380         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32381         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32382         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32384         Update.
32385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32386         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32387         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32388         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32389         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32390         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32391         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32392         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32393
32394 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32395
32396         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32397
32398 2012-05-19  David S. Miller  <davem@davemloft.net>
32399
32400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32401
32402 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32403
32404         [BZ #14123]
32405         * math/s_ccosh.c: Include <float.h>
32406         (__ccosh): Avoid internal overflow calculating sinh and cosh
32407         values before multiplying by sin and cos values.
32408         * math/s_ccoshf.c: Likewise.
32409         * math/s_ccoshl.c: Likewise.
32410         * math/s_csin.c: Likewise.
32411         * math/s_csinf.c: Likewise.
32412         * math/s_csinl.c: Likewise.
32413         * math/s_csinh.c: Likewise.
32414         * math/s_csinhf.c: Likewise.
32415         * math/s_csinhl.c: Likewise.
32416         * math/libm-test.inc (ccos_test): Add more tests.
32417         (ccosh_test): Likewise.
32418         (csin_test): Likewise.
32419         (csinh_test): Likewise.
32420         * sysdeps/i386/fpu/libm-test-ulps: Update.
32421         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32422
32423 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
32424
32425         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
32426         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
32427
32428         * sysdeps/x86_64/x32/_itoa.h: Add comment.
32429
32430 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32431
32432         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
32433         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
32434         * sysdeps/powerpc/soft-fp/Versions: Likewise.
32435         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
32436         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
32437         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
32438         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
32439         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
32440         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32441         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32442         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32443         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32444         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32445         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32446         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32447         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32448         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32449         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32450         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32451         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32452         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32453         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32454         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32455         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32456         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32457         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32458         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32459         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32460         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32461         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32462         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32463
32464 2012-05-18  Andreas Jaeger  <aj@suse.de>
32465
32466         * csu/.gitignore: Delete.
32467
32468 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32469
32470         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32471         (timex): Use __syscall_slong_t.
32472
32473 2012-05-18  Andreas Jaeger  <aj@suse.de>
32474             Carlos O'Donell  <carlos_odonell@mentor.com>
32475
32476         * manual/install.texi (Configuring and compiling): Update
32477         description about files modified in the source directory.
32478         * INSTALL: Regenerated.
32479
32480 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32481
32482         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32483         value.  Use "or" to set return value to -1.
32484         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32485         negate return value.
32486
32487 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32488
32489         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32490         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32491         failure if the compiler has Graphite support disabled.
32492         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32493         Likewise.
32494         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32495         (CFLAGS-memmove.c): Likewise.
32496         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32497         Likewise.
32498
32499 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32500
32501         * sysdeps/x86_64/x32/_itoa.h: New file.
32502
32503         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32504         getdents system call only if kernel and user dirents have the
32505         same d_ino and d_off.
32506
32507         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32508         LLONG_MAX != LONG_MAX.
32509         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32510         (_fitoa_word): Likewise.
32511
32512         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32513         years.
32514         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32515         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32516         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32517
32518         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32519         include <bits/wordsize.h>.  Check __x86_64__ instead of
32520         __WORDSIZE.
32521         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32522         if __x86_64__ is defined.  Use anonymous union on fpstate.
32523
32524         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32525         anonymous union.
32526
32527 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32528
32529         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32530         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32531         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32532         Refer to _rtld_local_ro instead of _rtld_global_ro.
32533         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32534         Likewise.
32535         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32536         Likewise.
32537         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32538         Likewise.
32539         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32540         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32541         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32542
32543         * sysdeps/powerpc/powerpc32/dl-machine.c
32544         (__elf_machine_runtime_setup) [PROF]: Don't reference
32545         _dl_prof_resolve.
32546
32547 2012-05-18  Andreas Jaeger  <aj@suse.de>
32548
32549         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32550         function only available for GCCs before 3.4 since GCC 3.4
32551         introduced a builtin.
32552         (lrint): Likewise.
32553         (llrintf): Likewise.
32554         (llrint): Likewise.
32555         (fmaxf): Likewise.
32556         (fmax): Likewise.
32557         (fminf): Likewise.
32558         (fmin): Likewise.
32559         (rint): Likewise.
32560         (rintf): Likewise.
32561         (nearbyint): Likewise.
32562         (nearbyintf): Likewise.
32563         (ceil): Likewise.
32564         (ceilf): Likewise.
32565         (floor): Likewise.
32566         (floorf): Likewise.
32567
32568 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32569
32570         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32571         on both fields and cast pointer to __syscall_ulong_t.
32572
32573         * bits/types.h (__fsword_t): New type.
32574         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32575         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32576         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32577         (__FSWORD_T_TYPE): Likewise.
32578         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32579         (__FSWORD_T_TYPE): Likewise.
32580         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32581         (__FSWORD_T_TYPE): Likewise.
32582         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32583         (__FSWORD_T_TYPE): Likewise.
32584         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32585         __SWORD_TYPE with __fsword_t.
32586         (statfs64): Likewise.
32587
32588 2012-05-17  David S. Miller  <davem@davemloft.net>
32589
32590         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32591
32592 2012-05-17  Andreas Jaeger  <aj@suse.de>
32593
32594         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32595         warning.
32596
32597 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32598
32599         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32600
32601 2012-05-17  Andreas Jaeger  <aj@suse.de>
32602
32603         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32604         when it is used.
32605
32606 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32607
32608         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32609
32610 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32611
32612         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32613         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32614
32615 2012-05-17  Andreas Jaeger  <aj@suse.de>
32616             Carlos O'Donell  <carlos_odonell@mentor.com>
32617
32618         [BZ #14059]
32619         * sysdeps/x86_64/multiarch/init-arch.h
32620         (bit_YMM_Usable): Rename to...
32621         (bit_AVX_Usable): ... this.
32622         (bit_FMA4_Usable): New macro.
32623         (bit_XMM_state): New macro.
32624         (bit_YMM_state): New macro.
32625         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32626         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32627         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32628         (CPUID_OSXSAVE): New macro.
32629         (CPUID_AVX): New macro.
32630         (CPUID_FMA4): New macro.
32631         (index_YMM_Usable): Rename to...
32632         (index_AVX_Usable): ... this.
32633         (HAS_AVX): Use HAS_ARCH_FEATURE.
32634         (HAS_FMA4): Likewise.
32635         (HAS_YMM_USABLE): Remove.
32636         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32637         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32638         are present.
32639         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32640         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32641         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32642         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32643         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32644
32645 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32646
32647         * math/libm-test.c: Support platforms without multiple rounding modes.
32648         * math/bug-nextafter.c: Support platforms without FP exceptions.
32649         * math/bug-nexttoward.c: Likewise.
32650         * math/test-fenv.c: Likewise.
32651         * math/test-misc.c: Likewise.
32652         * stdlib/bug-getcontext.c: Likewise.
32653
32654 2012-05-17  Andreas Jaeger  <aj@suse.de>
32655
32656         * manual/examples/search.c (critter_cmp): Change signature to
32657         avoid warnings.
32658         * manual/string.texi (Collation Functions): Likewise.
32659
32660 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32661
32662         * bits/types.h: Fold copyright years.
32663         * bits/typesizes.h: Likewise.
32664         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32665         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32666         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32667         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32668         * time/time.h: Likewise.
32669
32670 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32671
32672         [BZ #208]
32673         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32674         in instead of returning them.  Return void.
32675         (__libc_mallinfo): Accumulate over all arenas.
32676         (__malloc_stats): Adjust for change in int_mallinfo interface.
32677
32678 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32679
32680         [BZ #10375]
32681         * configure.in (NM): Add AC_CHECK_TOOL for it.
32682         (libc_extra_cflags): New substituted variable.
32683         Check for -fstack-protector being used implicitly.
32684         * configure: Regenerated.
32685         * config.make.in (config-extra-cflags): New variable,
32686         gets @libc_extra_cflags@.
32687         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32688
32689         [BZ #10375]
32690         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32691         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32692         * configure: Regenerated.
32693         * config.make.in (CPPUNDEFS): New substituted variable.
32694         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32695         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32696         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32697
32698 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32699
32700         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32701         (mq_attr): Use __syscall_slong_t.
32702
32703 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32704
32705         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32706         Check __x86_64__ instead of __WORDSIZE.
32707         (_STAT_VER_LINUX): Likewise.
32708         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32709         __syscall_ulong_t and __syscall_slong_t.
32710         (stat64): Likewise.
32711
32712 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32713
32714         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32715
32716 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32717
32718         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32719
32720 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32721
32722         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32723         __syscall_ulong_t.
32724
32725         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32726         include <bits/wordsize.h>.  Check __x86_64__ instead of
32727         __WORDSIZE.
32728         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32729         defined.
32730         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32731
32732         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32733         include <bits/wordsize.h>.  Check __x86_64__ instead of
32734         __WORDSIZE.
32735         (user_regs_struct): Use "__extension__ unsigned long long"
32736         instead of "unsigned long" if __x86_64__ is defined.
32737         (user): Likewise.  Pad after pointer field if __ILP32__ is
32738         defined.
32739
32740 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32741
32742         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32743         versions 5 to 9.
32744         * configure: Regenerated.
32745         * manual/install.texi (texinfo): Increase version requirement to
32746         4.5 or later.
32747         * INSTALL: Regenerated.
32748
32749         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32750
32751 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32752
32753         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32754
32755         * sysdeps/x86_64/x32/ffs.c: New file.
32756
32757         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32758         __syscall_ulong_t.
32759         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32760         defined.  Use __syscall_ulong_t.
32761         (shminfo): Use __syscall_ulong_t.
32762         (shm_info): Likewise.
32763
32764         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32765         __syscall_ulong_t.
32766
32767         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32768         <bits/wordsize.h>.
32769         (msgqnum_t): Use __syscall_ulong_t.
32770         (msglen_t): Likewise.
32771         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32772         __syscall_ulong_t.
32773
32774         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32775         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32776
32777         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32778
32779         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32780         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32781
32782         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32783         __syscall_slong_t.
32784
32785         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32786         include <bits/wordsize.h>.  Check __x86_64__ instead of
32787         __WORDSIZE.
32788
32789         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32790         "unsigned long long int" if __x86_64__ is defined.
32791         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32792
32793         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32794         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32795         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32796
32797         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32798         <stdint.h>.
32799         (GET_PC): Cast to uintptr_t first.
32800         (GET_FRAME): Likewise.
32801         (GET_STACK): Likewise.
32802
32803         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32804         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32805         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32806         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32807         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32808         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32809         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32810         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32811         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32812         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32813         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32814         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32815         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32816         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32817         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32818         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32819         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32820         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32821         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32822         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32823         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32824         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32825         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32826         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32827         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32828         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32829         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32830         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32831         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32832
32833 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32834
32835         * Makerules (+depfiles): Also collect depfiles from .oS in
32836         $(extra-objs).
32837         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32838         .oS, $(libnldbl-routines)).
32839
32840         * Makerules (native-compile-mkdep-flags): Define.
32841         * sunrpc/Makefile (extra-objs): Add $(addprefix
32842         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32843         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32844         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32845         calling $(make-target-directory).
32846
32847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32848
32849         * bits/types.h (__snseconds_t): Removed.
32850         * time/time.h (struct timespec): Replace __snseconds_t with
32851         __syscall_slong_t.
32852         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32853         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32854         Likewise.
32855         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32856         (__SNSECONDS_T_TYPE): Likewise.
32857         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32858         (__SNSECONDS_T_TYPE): Likewise.
32859         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32860         (__SNSECONDS_T_TYPE): Likewise.
32861
32862 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32863
32864         * sysdeps/mach/hurd/bits/typesizes.h
32865         (__SYSCALL_SLONG_TYPE): New macro.
32866         (__SYSCALL_ULONG_TYPE): Likewise.
32867
32868 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32869
32870         * bits/types.h (__syscall_slong_t): New type.
32871         (__syscall_ulong_t): Likewise.
32872
32873         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32874         (__SYSCALL_ULONG_TYPE): Likewise.
32875         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32876         (__SYSCALL_SLONG_TYPE): Likewise.
32877         (__SYSCALL_ULONG_TYPE): Likewise.
32878         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32879         (__SYSCALL_SLONG_TYPE): Likewise.
32880         (__SYSCALL_ULONG_TYPE): Likewise.
32881         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32882         (__SYSCALL_SLONG_TYPE): Likewise.
32883         (__SYSCALL_ULONG_TYPE): Likewise.
32884
32885 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32886
32887         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32888         Add sigaltstack-offsets.sym.
32889         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32890         <sigaltstack-offsets.h>.
32891         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32892         longjmp_msg pointer.
32893         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32894         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32895         signal stack.
32896         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32897
32898 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32899
32900         * elf/stackguard-macros.h: Remove file.
32901         * sysdeps/generic/stackguard-macros.h: New file.
32902         * sysdeps/i386/stackguard-macros.h: Likewise.
32903         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32904         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32905         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32906         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32907         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32908         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32909         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32910         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32911         <elf/stackguard-macros.h>.
32912
32913         [BZ #14109]
32914         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32915         __aligned__ in attribute.
32916         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32917         (gregset_t): Likewise.
32918
32919 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32920
32921         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32922         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32923         * sysdeps/x86_64/x32/Implies-after: New file.
32924
32925 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32926
32927         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32928         and access return value for _dl_profile_fixup.  Use R10_LP to
32929         load frame size.
32930
32931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32932
32933         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32934
32935 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32936
32937         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32938         * sysdeps/x86_64/x32/sysdep.h: New file.
32939
32940 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32941
32942         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32943         * sysdeps/x86_64/setjmp.S: Likewise.
32944
32945 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32946
32947         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32948         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32949         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32950         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32951         remove unused global constant.
32952
32953 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32954
32955         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32956         include of <not-cancel.h>.
32957
32958 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32959
32960         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32961
32962 2012-05-15  Jeff Law  <law@redhat.com>
32963             Andreas Jaeger  <aj@suse.de>
32964
32965         [BZ #13594]
32966         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32967         out from...
32968         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32969         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32970         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32971         code changing __hst_map_handle.map.
32972
32973 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32974
32975         * configure.in (sysnames): Look for Implies-before and Implies-after
32976         files.
32977         * configure: Regenerated.
32978
32979 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32980
32981         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32982         8-byte data alignment with LP_SIZE alignment.
32983
32984 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32985
32986         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32987         into R10_LP.
32988
32989 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32990
32991         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32992
32993 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32994
32995         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32996         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32997         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32998         Likewise.
32999         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
33000
33001 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33002
33003         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
33004         (stackinfo_sub_sp): Likewise.
33005
33006 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33007
33008         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
33009         RAX_LP.
33010
33011 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33012
33013         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
33014         into R*_LP.
33015
33016 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33017
33018         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
33019         sizes into R*_LP.
33020
33021 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33022
33023         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
33024
33025 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33026
33027         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
33028         into R11_LP and load __x86_64_shared_cache_size_half into
33029         R8_LP.
33030
33031 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33032
33033         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
33034         R8_LP.
33035
33036 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33037
33038         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
33039         logb for POWER7.
33040         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
33041         logbf for POWER7.
33042         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
33043         logbl for POWER7.
33044         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
33045         powerpc32/power7/fpu/s_logb.c via #include.
33046         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
33047         powerpc32/power7/fpu/s_logbf.c via #include.
33048         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
33049         powerpc32/power7/fpu/s_logbl.c via #include.
33050
33051 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33052
33053         * README.libm: Remove file.
33054
33055 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33056
33057         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33058         count for x32.  Use R*_LP and omit operand-size suffix.
33059
33060 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33061
33062         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33063         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33064         * sysdeps/x86_64/x32/shlib-versions: New file.
33065
33066 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33067
33068         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33069         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33070         Use _dl_fatal_printf instead.
33071
33072 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33073
33074         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33075         set if not set by the user.  Do not allow for being unset.
33076         * sysdeps/unix/sysv/linux/configure: Regenerated.
33077
33078 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33079
33080         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33081         the `q' suffix from lea and replace .quad with ASM_ADDR.
33082
33083 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33084
33085         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33086         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33087         instead of $17.
33088         (PTR_DEMANGLE): Likewise.
33089
33090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33091
33092         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33093         (LP_OP): Likewise.
33094         (ASM_ADDR): Likewise.
33095         (RAX_LP): Likewise.
33096         (RBP_LP): Likewise.
33097         (RBX_LP): Likewise.
33098         (RCX_LP): Likewise.
33099         (RDI_LP): Likewise.
33100         (RSI_LP): Likewise.
33101         (RSP_LP): Likewise.
33102         (R8_LP): Likewise.
33103         (R9_LP): Likewise.
33104         (R10_LP): Likewise.
33105         (R10_LP): Likewise.
33106         (R11_LP): Likewise.
33107         (R12_LP): Likewise.
33108         (R13_LP): Likewise.
33109         (R14_LP): Likewise.
33110         (R15_LP): Likewise.
33111
33112 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33113
33114         * sysdeps/x86_64/x32/dl-machine.h: New file.
33115
33116 2012-05-14  Andreas Jaeger  <aj@suse.de>
33117
33118         * manual/Makefile (subdir): Remove export of subdir.
33119         (all): Remove target.
33120         (.PHONY): Remove all from list.
33121         (mkinstalldirs): Remove.
33122         (.PHONY): Remove installdirs from list.
33123         ($(inst_infodir)/libc.info): Use make-target-directory.
33124         (installdirs): Remove.
33125         (subdir_%): Remove.
33126         (glibc-targets): Remove.
33127         (lib): Remove.
33128         (stubs): Remove.
33129         ($(objpfx)stubs ../po/manual.pot): Remove.
33130         ($(objpfx)stamp%): Remove.
33131         (make-target-directory): Remove.
33132         (subdir_install): Remove.
33133         (routines): Remove.
33134         (aux): Remove.
33135         (sources): Remove.
33136         (objects): Remove.
33137         (headers): Remove.
33138
33139         [BZ #13750]
33140         * manual/.gitignore: Remove, it's not needed anymore.
33141         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33142         all files in it.
33143         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33144         directory.
33145         (texis): Renamed to $(objpfx)texis.
33146         (texis-path): New, contains path to generated files.
33147         (chapters.%): Use texis-path for complete path, add extra argument
33148         libc-texinfo.sh.
33149         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33150         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33151         (summary,texi, stamp-summary): Use complete path of
33152         files. Generate files in build dir.
33153         (dir-add.texi): Build in build dir.
33154         (libm-err.texi,stamp-libm-err): Likewise.
33155         (version.texi, stamp-version): Likewise.
33156         (.%c.texi): Likewise.
33157         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33158         (mostlyclean): Remove target.
33159         (realclean): Remove target.
33160         (generated): Add new variable with contents from mostlyclean and
33161         realclean, remove entries duplicated in common-mostlyclean, add
33162         stamp-libm-err and stamp-version.
33163         (generated-dirs): Add libc directory.
33164         ($(inst_infodir)/libc.info): Install files from build dir.
33165
33166         * manual/install.texi (Configuring and compiling): Adjust since
33167         the info files are not part of the tar ball anymore.
33168
33169 2012-05-14  Andreas Jaeger  <aj@suse.de>
33170
33171         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33172         variable.
33173
33174 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33175
33176         [BZ #13717]
33177         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33178         to 2.2.0 where earlier.
33179         * sysdeps/unix/sysv/linux/configure: Regenerated.
33180         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33181         Remove conditional code.
33182         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33183         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33184         Remove conditional code.
33185         [!__NR_lchown]: Likewise.
33186         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33187         [__NR_lchown]: Likewise.
33188         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33189         comment referencing __ASSUME_LCHOWN_SYSCALL.
33190         * sysdeps/unix/sysv/linux/i386/sigaction.c
33191         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33192         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33193         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33194         Remove conditional code.
33195         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33196         (__protocol_available): Remove #if 0 code.
33197         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33198         conditional code.
33199         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33200         * sysdeps/unix/sysv/linux/kernel-features.h
33201         (__ASSUME_GETCWD_SYSCALL): Don't define.
33202         (__ASSUME_REALTIME_SIGNALS): Likewise.
33203         (__ASSUME_PREAD_SYSCALL): Likewise.
33204         (__ASSUME_PWRITE_SYSCALL): Likewise.
33205         (__ASSUME_POLL_SYSCALL): Likewise.
33206         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33207         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33208         non-SPARC.
33209         (__ASSUME_SIOCGIFNAME): Don't define.
33210         (__ASSUME_MSG_NOSIGNAL): Likewise.
33211         (__ASSUME_SENDFILE): Define unconditionally.
33212         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33213         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33214         conditional code.
33215         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33216         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33217         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33218         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33219         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33220         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33221         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33223         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33224         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33226         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33227         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33229         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33230         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33232         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33233         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33235         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33236         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33238         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33239         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33241         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33242         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33244         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33245         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33246         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33247         Remove conditional code.
33248         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33249         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33250         Remove conditional code.
33251         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33252         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33253         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33254         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33255         Remove conditional code.
33256         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33257         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33258         Remove conditional code.
33259         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33260         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33261         Remove conditional code.
33262         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33263         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33264         Remove conditional code.
33265         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33266         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33267         Remove conditional code.
33268         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33269         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33270         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33271         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33272         * sysdeps/unix/sysv/linux/sigaction.c
33273         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33274         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33275         * sysdeps/unix/sysv/linux/sigpending.c
33276         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33277         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33278         * sysdeps/unix/sysv/linux/sigprocmask.c
33279         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33280         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33281         * sysdeps/unix/sysv/linux/sigsuspend.c
33282         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33283         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33284         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33285         (__libc_missing_rt_sigs): Remove.
33286         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33287         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33288         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33289         Remove conditional code.
33290         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33291         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33292         return 1.
33293         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33294         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33295         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33296         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33297
33298 2012-05-14  Andreas Jaeger  <aj@suse.de>
33299
33300         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33301         it's not used in glibc.
33302         (__coshm1): Likewise.
33303         (__acosh1p): Likewise.
33304         (__sgn): Likewise.
33305
33306         * manual/string.texi (Copying and Concatenation): Add missing
33307         variable in concat example.
33308         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33309
33310 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33311
33312         [BZ #14103]
33313         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33314         __builtin_clzl with __builtin_clzll.
33315
33316 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33317
33318         [BZ #14104]
33319         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33320         libc_freeres_ptr.
33321
33322 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33323
33324         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33325         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33326         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33327         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33328
33329 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33330
33331         * NEWS: Update ia64 info.
33332
33333 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33334
33335         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33336         used as bcopy.
33337
33338 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33339
33340         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33341         * sysdeps/unix/syscalls.list (dup3): Likewise.
33342         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33343         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33344
33345 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33346
33347         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33348         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33349
33350 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33351
33352         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33353         thread pointer.
33354         (TLS_IE): Use mov/add instead of movq/addq to load thread
33355         pointer.
33356         (TLS_GD_PREFIX): New.
33357         (TLS_GD): Use it.
33358
33359 2012-05-11  David S. Miller  <davem@davemloft.net>
33360
33361         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33362         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33363         (_FPU_SETCW): Likewise.
33364
33365 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33366
33367         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33368         is 32-byte aligned.
33369
33370 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33371
33372         [BZ #11837]
33373         * iconvdata/gb18030.c: Update tables.
33374         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33375         characters specially.
33376         (BODY for TO_LOOP): Add encoding of missing ranges.
33377
33378 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33379
33380         [BZ #13673]
33381         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33382         * sysdeps/mach/hurd/dup3.c: Likewise.
33383         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33384         * sysdeps/powerpc/memmove.c:: Likewise.
33385
33386 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33387
33388         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33389         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33390
33391 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33392
33393         * elf/elf.h (R_X86_64_RELATIVE64): New.
33394         (R_X86_64_NUM): Updated.
33395         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33396         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33397         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33398         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
33399         tst-quad1pie tst-quad2pie
33400         (modules-names): Add tst-quadmod1 tst-quadmod2.
33401         ($(objpfx)tst-quad1): New dependency.
33402         ($(objpfx)tst-quad2): Likewise.
33403         ($(objpfx)tst-quad1pie): Likewise.
33404         ($(objpfx)tst-quad2pie): Likewise.
33405         * sysdeps/x86_64/tst-quad1.c: New file.
33406         * sysdeps/x86_64/tst-quad1pie.c: New file.
33407         * sysdeps/x86_64/tst-quad2.c: Likewise.
33408         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
33409         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
33410         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
33411         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
33412         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
33413
33414 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33415
33416         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
33417         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
33418         * streams/stropts.h (t_scalar_t): Define type.
33419
33420         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
33421         (_PATH_PRESERVE): Set to "/var/lib".
33422         (_PATH_RWHODIR): Set to "/var/spool/rwho".
33423
33424         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
33425         instead of int.
33426
33427         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
33428         if __dir_mkfile succeeded.
33429
33430         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
33431         checking for _hurd_dtablesize.  Unlock it right after having
33432         finished _hurd_dtable allocation.
33433
33434 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33435
33436         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
33437         * sysdeps/mach/hurd/configure: Regenerated.
33438         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
33439         special-casing to...
33440         * sysdeps/gnu/configure.in: ... this new file.
33441         * sysdeps/unix/sysv/linux/configure: Regenerated.
33442         * sysdeps/gnu/configure: New generated file.
33443
33444         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33445         for Linux: use nsec instead of usec, as well as:
33446         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33447         members of type struct timespec.
33448         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33449         New macros.
33450         (struct stat64): Likewise.
33451         (_STATBUF_ST_NSEC): New macro.
33452         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33453
33454         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33455         __strtoul_internal rather than strtoul.
33456
33457 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33458
33459         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33460         and reject them.
33461
33462 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33463
33464         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33465         which preserves existing values.
33466         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33467
33468 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33469
33470         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33471         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33472         greater than FD_SETSIZE.
33473
33474 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33475
33476         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33477         allocated, call __vm_protect to finish enabling the existing space, and
33478         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33479         allocate the remainder.
33480
33481 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33482
33483         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33484         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33485
33486 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33487
33488         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33489         sysdeps/mach/hurd/readlink.c.
33490
33491         * posix/tst-sysconf.c (posix_options): Only use
33492         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33493         _POSIX_SYNCHRONIZED_IO when they are defined
33494         * sysdeps/mach/hurd/bits/posix_opt.h:
33495         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33496         (_XOPEN_REALTIME): Undefine macro.
33497         (_XOPEN_REALTIME_THREADS): Undefine macro.
33498         (_XOPEN_SHM): Undefine macro.
33499         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33500         macro to -1.
33501         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33502         macro to -1.
33503         (_POSIX_ASYNC_IO): Undefine macro.
33504         (_POSIX_PRIORITIZED_IO): Undefine macro.
33505         (_POSIX_SPIN_LOCKS): Define macro to -1.
33506
33507         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33508         SA_NODEFER, SA_RESETHAND.
33509         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33510         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33511         F_DUPFD_CLOEXEC.
33512
33513 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33514
33515         * elf/Makefile (pldd-modules): Define unconditionally.
33516
33517 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33518
33519         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33520
33521 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33522
33523         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33524         Return ENOENT when name is empty.
33525         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33526
33527 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33528
33529         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33530
33531         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33532
33533 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33534
33535         Fix mlock in all cases except non-readable pages.
33536         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33537         instead of VM_PROT_ALL as parameter to __vm_wire function.
33538
33539         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33540         (__mkdir): When path is `/', just fail with EEXIST.
33541         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33542
33543 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33544
33545         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33546         <sys/uio.h> (for writev).
33547         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33548         and <sys/param.h> (for MIN).
33549
33550 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33551
33552         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33553         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33554         if interrupted.
33555
33556 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33557
33558         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33559         Depend on against $(link-rpcuserlibs).
33560
33561 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33562
33563         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33564         (__libc_stack_end): Do not use attribute_relro.
33565         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33566         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33567         to libthread-provided value.
33568         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33569         attribute_relro.
33570
33571 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33572
33573         [BZ #3748]
33574         * bits/libc-lock.h (__libc_once_get): New macro.
33575         * sysdeps/mach/bits/libc-lock.h: Likewise.
33576         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33577         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33578         instead of using implementation details.
33579
33580         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33581         * libio/freopen.c: Likewise.
33582         * libio/freopen64.c: Likewise.
33583         * misc/syslog.c: Likewise.
33584         * nscd/connections.c: Likewise.
33585         * nscd/netgroupcache.c: Likewise.
33586         * sysdeps/posix/getcwd.c: Likewise.
33587
33588 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33589
33590         * math/w_ilogbf.c: Add #include <limits.h>.
33591
33592 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33593
33594         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33595         path instead of returning without unlocking.
33596
33597         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33598         immediate-write ioctls.
33599         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33600
33601 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33602
33603         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33604         __builtin_frame_address instead of making assumptions about the
33605         location of the return address relative to DATA.  Force early load of
33606         the return address.
33607         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33608         __builtin_frame_address.
33609
33610         dup3 for GNU Hurd.
33611         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33612         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33613         implement dup3 and do some further code clean-ups.
33614         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33615         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33616
33617 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33618
33619         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33620
33621         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33622         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33623         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33624         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33625         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33626         d->port.lock.
33627
33628         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33629         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33630         when handler == SIG_ERR, not when handler != SIG_ERR.
33631
33632 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33633
33634         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33635         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33636         definitions.
33637
33638         accept4 for GNU Hurd.
33639         * include/sys/socket.h (__libc_accept4): New prototype.
33640         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33641         to implement __libc_accept4.
33642         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33643         __libc_accept4.
33644         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33645
33646         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33647         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33648         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33649         signal-defines.sym.
33650
33651 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33652
33653         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33654
33655 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33656
33657         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33658         assertion on O_CLOEXEC flag.
33659         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33660         * hurd/intern-fd.c: Likewise.
33661         * hurd/port2fd.c: Likewise.
33662
33663 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33664
33665         [BZ #3906]
33666         * bits/in.h (IPV6_PKTINFO): Define new macro.
33667         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33668
33669 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33670
33671         [BZ #13954]
33672         [BZ #13955]
33673         [BZ #13956]
33674         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33675         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33676         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33677         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33678         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33679         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33680         * math/libm-test.inc (logb_test) : Additional logb tests.
33681
33682 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33683             Andreas Jaeger  <aj@suse.de>
33684
33685         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33686         * configure: Regenerated.
33687         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33688         * config.make.in (link-obsolete-rpc): New substituted variable.
33689         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33690         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33691         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33692         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33693         so that libc.a contains the symbols.
33694         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33695         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33696         * sunrpc/auth_none.c: Likewise.
33697         * sunrpc/auth_unix.c: Likewise.
33698         * sunrpc/authdes_prot.c: Likewise.
33699         * sunrpc/authuxprot.c: Likewise.
33700         * sunrpc/clnt_gen.c: Likewise.
33701         * sunrpc/clnt_perr.c: Likewise.
33702         * sunrpc/clnt_raw.c: Likewise.
33703         * sunrpc/clnt_simp.c: Likewise.
33704         * sunrpc/clnt_tcp.c: Likewise.
33705         * sunrpc/clnt_udp.c: Likewise.
33706         * sunrpc/clnt_unix.c: Likewise.
33707         * sunrpc/des_crypt.c: Likewise.
33708         * sunrpc/des_soft.c: Likewise.
33709         * sunrpc/get_myaddr.c: Likewise.
33710         * sunrpc/key_call.c: Likewise.
33711         * sunrpc/key_prot.c: Likewise.
33712         * sunrpc/netname.c: Likewise.
33713         * sunrpc/pm_getmaps.c: Likewise.
33714         * sunrpc/pm_getport.c: Likewise.
33715         * sunrpc/pmap_clnt.c: Likewise.
33716         * sunrpc/pmap_prot.c: Likewise.
33717         * sunrpc/pmap_prot2.c: Likewise.
33718         * sunrpc/pmap_rmt.c: Likewise.
33719         * sunrpc/publickey.c: Likewise.
33720         * sunrpc/rpc_cmsg.c: Likewise.
33721         * sunrpc/rpc_common.c: Likewise.
33722         * sunrpc/rpc_dtable.c: Likewise.
33723         * sunrpc/rpc_prot.c: Likewise.
33724         * sunrpc/rpc_thread.c: Likewise.
33725         * sunrpc/rtime.c: Likewise.
33726         * sunrpc/svc.c: Likewise.
33727         * sunrpc/svc_auth.c: Likewise.
33728         * sunrpc/svc_raw.c: Likewise.
33729         * sunrpc/svc_run.c: Likewise.
33730         * sunrpc/svc_tcp.c: Likewise.
33731         * sunrpc/svc_udp.c: Likewise.
33732         * sunrpc/svc_unix.c: Likewise.
33733         * sunrpc/svcauth_des.c: Likewise.
33734         * sunrpc/xcrypt.c: Likewise.
33735         * sunrpc/xdr.c: Likewise.
33736         * sunrpc/xdr_array.c: Likewise.
33737         * sunrpc/xdr_float.c: Likewise.
33738         * sunrpc/xdr_intXX_t.c: Likewise.
33739         * sunrpc/xdr_mem.c: Likewise.
33740         * sunrpc/xdr_rec.c: Likewise.
33741         * sunrpc/xdr_ref.c: Likewise.
33742         * sunrpc/xdr_sizeof.c: Likewise.
33743         * sunrpc/xdr_stdio.c: Likewise.
33744
33745 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33746
33747         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33748         change.  Update copyright years.
33749
33750 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33751
33752         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33753
33754 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33755             Joseph Myers  <joseph@codesourcery.com>
33756             Paul Pluzhnikov  <ppluzhnikov@google.com>
33757
33758         [BZ #14012]
33759         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33760         requiring rpcgen.
33761         [cross-compiling] (extra-libs): Likewise.
33762         [cross-compiling] (extra-libs-others): Likewise.
33763         [cross-compiling] (librpcsvc-routines): Likewise.
33764         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33765         [cross-compiling] (omit-deps): Likewise.
33766         (sunrpc-CPPFLAGS): New variable.
33767         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33768         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33769         (cross-rpcgen-objs): New variable.
33770         (extra-objs): Append $(cross-rpcgen-objs).
33771         ($(cross-rpcgen-objs)): New rule.
33772         ($(objpfx)cross-rpcgen): Likewise.
33773         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33774         comment.
33775         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33776         ($(objpfx)x%.stmp): Likewise.
33777         * sunrpc/proto.h [IS_IN_build] (_): Define.
33778         [IS_IN_build] (_libc_intl_domainname): Likewise.
33779
33780 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33781
33782         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33783         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33784         and R_X86_64_TPOFF64.
33785
33786 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33787
33788         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33789         sysdeps/unix/sysv/syscalls.list.
33790         (stime): Likewise.
33791         (utime): Likewise.
33792         * sysdeps/unix/sysv/syscalls.list: Remove file.
33793
33794 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33795
33796         [BZ #3440]
33797         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33798         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33799         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33800         (__LC_IDENTIFICATION): Make these macros useful in #if
33801         expressions, as required by C99.
33802
33803 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33804
33805         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33806         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33807         after this.
33808
33809 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33810
33811         * stdlib/longlong.h: Updated from GCC.
33812
33813 2012-05-09  Andreas Jaeger  <aj@suse.de>
33814
33815         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33816         default is first entry.
33817         (run_mode): Set type.
33818         (main): Remove informal message about syslog.
33819         (options): Fix typo.
33820
33821         [BZ #14053]
33822         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33823         to asm.
33824         (lrint): Likewise.
33825         (llrintf): Likewise.
33826         (llrint): Likewise.
33827         (rint): Likewise.
33828         (rintf): Likewise.
33829         (nearbyint): Likewise.
33830         (nearbyintf): Likewise.
33831
33832 2012-05-09  Andreas Jaeger  <aj@suse.de>
33833             Pedro Alves  <palves@redhat.com>
33834
33835         * nscd/nscd.c (run_mode): Use enum.
33836         (main): Cleanup coding style issue.
33837
33838 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33839             Andreas Jaeger  <aj@suse.de>
33840
33841         * nscd/nscd.c (go_background): Replaced with...
33842         (run_mode): ... this.
33843         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33844         (options): Add -F --foreground.
33845         (main): Implement it.
33846         (parse_opt): Parse it.
33847
33848 2012-05-09  Andreas Jaeger  <aj@suse.de>
33849
33850         [BZ #14083]
33851         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33852         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33853         -Wconversion warning.
33854         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33855         Likewise.
33856
33857 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33858
33859         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33860         == 0.
33861         (LC_ALL): Use macro-int-constant.
33862         (LC_COLLATE): Likewise.
33863         (LC_CTYPE): Likewise.
33864         (LC_MESSAGES): Likewise.
33865         (LC_MONETARY): Likewise.
33866         (LC_NUMERIC): Likewise.
33867         (LC_TIME): Likewise.
33868         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33869         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33870         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33871         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33872         Specify type.
33873         [C99-based standards] (float_t): Expect type.
33874         [C99-based standards] (double_t): Expect type.
33875         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33876         type.
33877         [C99-based standards] (HUGE_VALL): Likewise.
33878         [C99-based standards] (INFINITY): Likewise.
33879         [C99-based standards] (NAN): Likewise.
33880         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33881         [C99-based standards] (FP_NAN): Likewise.
33882         [C99-based standards] (FP_NORMAL): Likewise.
33883         [C99-based standards] (FP_SUBNORMAL): Likewise.
33884         [C99-based standards] (FP_ZERO): Likewise.
33885         [C99-based standards] (FP_FAST_FMA): Use
33886         optional-macro-int-constant.  Specify type.  Require == 1.
33887         [C99-based standards] (FP_FAST_FMAF): Likewise.
33888         [C99-based standards] (FP_FAST_FMAL): Likewise.
33889         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33890         [C99-based standards] (FP_ILOGBNAN): Likewise.
33891         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33892         Specify type.
33893         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33894         [C99-based standards] (math_errhandling): Specify type.
33895         [ISO99 || ISO11] (signgam): Do not allow.
33896         [non-C99-based standards] (copysignf): Do not allow.
33897         [non-C99-based standards] (exp2f): Likewise.
33898         [non-C99-based standards] (log2f): Likewise.
33899         [non-C99-based standards] (modff): Allow.
33900         [non-C99-based standards] (erff): Do not allow.
33901         [non-C99-based standards] (erfcf): Likewise.
33902         [non-C99-based standards] (gammaf): Likewise.
33903         [non-C99-based standards] (hypotf): Likewise.
33904         [non-C99-based standards] (j0f): Likewise.
33905         [non-C99-based standards] (j1f): Likewise.
33906         [non-C99-based standards] (jnf): Likewise.
33907         [non-C99-based standards] (lgammaf): Likewise.
33908         [non-C99-based standards] (tgammaf): Likewise.
33909         [non-C99-based standards] (y0f): Likewise.
33910         [non-C99-based standards] (y1f): Likewise.
33911         [non-C99-based standards] (ynf): Likewise.
33912         [non-C99-based standards] (isnanf): Likewise.
33913         [non-C99-based standards] (acoshf): Likewise.
33914         [non-C99-based standards] (asinhf): Likewise.
33915         [non-C99-based standards] (atanhf): Likewise.
33916         [non-C99-based standards] (cbrtf): Likewise.
33917         [non-C99-based standards] (expm1f): Likewise.
33918         [non-C99-based standards] (ilogbf): Likewise.
33919         [non-C99-based standards] (log1pf): Likewise.
33920         [non-C99-based standards] (logbf): Likewise.
33921         [non-C99-based standards] (nextafterf): Likewise.
33922         [non-C99-based standards] (remainderf): Likewise.
33923         [non-C99-based standards] (rintf): Likewise.
33924         [non-C99-based standards] (scalbf): Likewise.
33925         [non-C99-based standards] (copysignl): Likewise.
33926         [non-C99-based standards] (exp2l): Likewise.
33927         [non-C99-based standards] (log2l): Likewise.
33928         [non-C99-based standards] (modfl): Allow.
33929         [non-C99-based standards] (erfl): Do not allow.
33930         [non-C99-based standards] (erfcl): Likewise.
33931         [non-C99-based standards] (gammal): Likewise.
33932         [non-C99-based standards] (hypotl): Likewise.
33933         [non-C99-based standards] (j0l): Likewise.
33934         [non-C99-based standards] (j1l): Likewise.
33935         [non-C99-based standards] (jnl): Likewise.
33936         [non-C99-based standards] (lgammal): Likewise.
33937         [non-C99-based standards] (tgammal): Likewise.
33938         [non-C99-based standards] (y0l): Likewise.
33939         [non-C99-based standards] (y1l): Likewise.
33940         [non-C99-based standards] (ynl): Likewise.
33941         [non-C99-based standards] (isnanl): Likewise.
33942         [non-C99-based standards] (acoshl): Likewise.
33943         [non-C99-based standards] (asinhl): Likewise.
33944         [non-C99-based standards] (atanhl): Likewise.
33945         [non-C99-based standards] (cbrtl): Likewise.
33946         [non-C99-based standards] (expm1l): Likewise.
33947         [non-C99-based standards] (ilogbl): Likewise.
33948         [non-C99-based standards] (log1pl): Likewise.
33949         [non-C99-based standards] (logbl): Likewise.
33950         [non-C99-based standards] (nextafterl): Likewise.
33951         [non-C99-based standards] (remainderl): Likewise.
33952         [non-C99-based standards] (rintl): Likewise.
33953         [non-C99-based standards] (scalbl): Likewise.
33954         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33955         [non-C99-based standards] (FP_*): Do not allow.
33956         [C99-based standards] (FP_*): Change to
33957         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33958         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33959         allow.
33960         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33961         (SIG_ERR): Likewise.
33962         [X/Open-based standards] (SIG_HOLD): Likewise.
33963         (SIG_IGN): Likewise.
33964         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33965         positive value.
33966         (SIGFPE): Likewise.
33967         (SIGILL): Likewise.
33968         (SIGINT): Likewise.
33969         (SIGSEGV): Likewise.
33970         (SIGTER): Likewise.
33971         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33972         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33973         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33974         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33975         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33976         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33977         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33978         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33979         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33980         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33981         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33982         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33983         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33984         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33985         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33986         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33987         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33988         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33989         [X/Open-based standards] (SIGTRAP): Likewise.
33990         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33991         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33992         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33993         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33994         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33995         allow.
33996
33997 2012-05-08  Ian Wienand  <ianw@vmware.com>
33998
33999         [BZ #14080]
34000         * time/tzset.c (__tzset_parse_tz): Update default rules for
34001         daylight time changes in the Energy Policy Act of 2005.
34002
34003 2012-05-09  Andreas Jaeger  <aj@suse.de>
34004
34005         [BZ #13983]
34006         * elf/ldconfig.c (parse_conf): Change string to make clear that
34007         ldconfig only issued a warning if ld.so.conf does not exist.
34008
34009 2012-05-08  David S. Miller  <davem@davemloft.net>
34010
34011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
34012         movxtod instead of popping the value on the stack.
34013
34014         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34015
34016 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
34017
34018         * config.h.in: Add HAVE_ARM_PCS_VFP.
34019
34020 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
34021
34022         [BZ #13979]
34023         * include/features.h: Warn if user requests __FORTIFY_SOURCE
34024         checking but the checks are disabled for any reason.
34025
34026 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
34027
34028         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
34029         and ELF64_R_TYPE with ELFW(R_TYPE).
34030
34031 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
34032
34033         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
34034         (ulimit): Likewise.
34035
34036         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
34037         (settimeofday): Likewise.
34038
34039 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
34040
34041         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
34042         a struct th_u2 inside the union, and move tu_block/tu_code into
34043         a new th_u3 union of tu_block/tu_code inside of that.  Move
34044         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
34045         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
34046         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
34047         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
34048         (th_stuff): Change to th_u1.tu_stuff.
34049         (th_data): Define.
34050         (th_msg): Change to th_u1.th_u2.tu_data.
34051
34052 2012-05-07  David S. Miller  <davem@davemloft.net>
34053
34054         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34055
34056         [BZ #14074]
34057         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34058         (SETUP_PIC_REG): Use it.
34059         (SETUP_PIC_REG_LEAF): Use it.
34060
34061 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34062
34063         [BZ #13885]
34064         [BZ #13923]
34065         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34066         USE_AS_EXPM1L.
34067         (EXPL_FINITE): Likewise.
34068         (FLDLOG): Likewise.
34069         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34070         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34071         e_expl.S.
34072         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34073         USE_AS_EXPM1L.
34074         (EXPL_FINITE): Likewise.
34075         (FLDLOG): Likewise.
34076         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34077         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34078         e_expl.S.
34079         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34080         test of -max_value argument for long double.
34081         * sysdeps/i386/fpu/libm-test-ulps: Update.
34082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34083
34084 2012-05-06  David S. Miller  <davem@davemloft.net>
34085
34086         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34087         quad soft-float symbols whose references which are compiler
34088         generated.
34089         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34090
34091 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34092
34093         [BZ #13884]
34094         [BZ #13914]
34095         * sysdeps/i386/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         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34105         e_expl.S.
34106         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34107         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34108         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34109         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34110         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34111         USE_AS_EXP10L.
34112         (EXPL_FINITE): Likewise.
34113         (FLDLOG): Likewise.
34114         (c0): Likewise.
34115         (c1): Likewise.
34116         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34117         Adjust comments for base varying.
34118         (__expl_finite): Change alias to EXPL_FINITE.
34119         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34120         tests for bugs.
34121         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34122
34123         [BZ #14064]
34124         * math/libm-test.inc (check_float_internal): Correct ulp
34125         calculation for subnormal expected results.
34126
34127 2012-05-06  Andreas Jaeger  <aj@suse.de>
34128
34129         * Makeconfig (+math-flags): New, set to -frounding-math.
34130         (+cflags): Add +math-flags so that all of glibc gets compiled with
34131         it.
34132
34133         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34134
34135 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34136
34137         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34138         Disable one test.
34139
34140         [BZ #13787]
34141         [BZ #13922]
34142         [BZ #14036]
34143         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34144         (__ieee754_expl): Allow for and saturate large arguments.
34145         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34146         (u_threshold): Likewise.
34147         (__exp): Call __ieee754_exp before checking for overflow and
34148         underflow.
34149         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34150         (u_threshold): Likewise.
34151         (__expf): Call __ieee754_expf before checking for overflow and
34152         underflow.
34153         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34154         (u_threshold): Likewise.
34155         (__expl): Call __ieee754_expl before checking for overflow and
34156         underflow.
34157         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34158         (__ieee754_expl): Allow for and saturate large arguments.
34159         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34160         missing overflow exception on overflow.
34161         (expm1_test): Do not allow missing overflow exception on overflow.
34162
34163         * sysdeps/i386/fpu/e_expl.c: Move to ...
34164         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34165         rather than using inline asm.
34166         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34167         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34168         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34169
34170         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34171         (nice): Likewise.
34172         (poll): Likewise.
34173         (signal): Likewise.
34174         (time): Likewise.
34175         (times): Likewise.
34176
34177 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34178
34179         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34180         sysdeps/unix/common/syscalls.list.
34181         (fchmod): Likewise.
34182         (fchown): Likewise.
34183         (ftruncate): Likewise.
34184         (getrusage): Likewise.
34185         (gettimeofday): Likewise.
34186         (setpgid): Likewise.
34187         (setregid): Likewise.
34188         (setreuid): Likewise.
34189         (sigaction): Likewise.
34190         (truncate): Likewise.
34191         (vhangup): Likewise.
34192         * sysdeps/unix/common/syscalls.list: Remove file.
34193         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34194         * sysdeps/unix/sysv/linux/Implies: Likewise.
34195
34196 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34197
34198         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34199         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34200         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34201         Moved to ...
34202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34203         Here.
34204         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34205         to ...
34206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34207         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34208         to ...
34209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34210         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34211         to ...
34212         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34213         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34214         to ...
34215         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34216         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34217         to ...
34218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34219         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34220         to ...
34221         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34222         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34223         to ...
34224         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34225         Here.
34226         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34227         to ...
34228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34229         Here.
34230         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34231         to ...
34232         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34233         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34234         Moved to ...
34235         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34236         Here.
34237         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34238         to ...
34239         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34240
34241 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34242
34243         * sysdeps/unix/common/bits/dirent.h: Remove file.
34244         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34245
34246         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34247         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34248         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34249         * sysdeps/unix/bsd/isatty.c: Likewise.
34250         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34251         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34252         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34253
34254 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34255
34256         [BZ #13563]
34257         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34258         long double comparison inaccuracies.
34259         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34260         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34261
34262 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34263
34264         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34265         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34266
34267 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34268
34269         [BZ #14049]
34270         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34271         nonzero digits before rounding a hex value.
34272         * stdlib/tst-strtod.c (tests): Add another test.
34273
34274 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34275
34276         * sysdeps/s390/fpu/libm-test-ulps: Update.
34277
34278 2012-05-03  Andreas Jaeger  <aj@suse.de>
34279
34280         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34281         does not get optimized out.
34282         (malloc_opt_barrier): New.
34283
34284 2012-05-03  Andreas Jaeger  <aj@suse.de>
34285             Roland McGrath  <roland@hack.frob.com>
34286
34287         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34288         intermediate file deletion.
34289         (generated): Add .symlist files.
34290
34291 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34292
34293         [BZ #13775]
34294         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34295         Redirect under this condition.
34296         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34297         [__USE_GNU] (__dprintf_chk): Not under this condition.
34298         [__USE_GNU] (__vdprintf_chk): Likewise.
34299         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34300         under this condition.
34301         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34302         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34303         [__USE_XOPEN2K8] (vdprintf): Likewise.
34304         [__USE_GNU] (__dprintf_chk): Not under this condition.
34305         [__USE_GNU] (__vdprintf_chk): Likewise.
34306         [__USE_GNU] (dprintf): Likewise.
34307         [__USE_GNU] (vdprintf): Likewise.
34308
34309 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34310
34311         * elf/Makefile (common-generated): Set this instead of generated for
34312         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34313         $(all-built-dso)-derived lists.
34314
34315 2012-05-03  Andreas Jaeger  <aj@suse.de>
34316
34317         * sysdeps/i386/fpu/libm-test-ulps: Update.
34318
34319         * FAQ: Removed.
34320         * FAQ.in: Likewise.
34321         * scripts/gen-FAQ.pl: Likewise.
34322         * manual/install.texi (Installation): Point to online location of
34323         FAQ.
34324         * Makefile (files-for-dist): Remove FAQ.
34325         (FAQ): Remove.
34326
34327 2012-05-02  Allan McRae  <allan@archlinux.org>
34328
34329         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34330         (LDFLAGS-reldepmod5.so): Likewise.
34331         (LDFLAGS-reldep6mod1.so): Likewise.
34332         (LDFLAGS-reldep6mod4.so): Likewise.
34333         (LDFLAGS-reldep8mod3.so): Likewise.
34334         (LDFLAGS-unload4mod1.so): Likewise.
34335         (LDFLAGS-unload4mod2.so): Likewise.
34336         (LDFLAGS-tst-initorder): Likewise.
34337         (LDFLAGS-tst-initordera2.so): Likewise.
34338         (LDFLAGS-tst-initordera3.so): Likewise.
34339         (LDFLAGS-tst-initordera4.so): Likewise.
34340         (LDFLAGS-tst-initorderb2.so): Likewise.
34341         (LDFLAGS-noload): Likewise.
34342         (LDFLAGS-next): Likewise.
34343         (LDFLAGS-order2mod1.so): Likewise.
34344         (LDFLAGS-order2mod2.so): Likewise.
34345         (LDFLAGS-tst-initorder2): Likewise.
34346         (LDFLAGS-tst-initorder2a.so): Likewise.
34347         (LDFLAGS-tst-initorder2b.so): Likewise.
34348         (LDFLAGS-tst-initorder2c.so): Likewise.
34349         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34350
34351 2012-05-02  David S. Miller  <davem@davemloft.net>
34352
34353         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34354
34355 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34356
34357         [BZ #14055]
34358         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34359
34360 2012-05-02  Andreas Jaeger  <aj@suse.de>
34361
34362         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34363         since we manipulate rounding mode.
34364         (CPPFLAGS-test-idouble.c): Likewise.
34365         (CPPFLAGS-test-ifloat.c): Likewise.
34366         (CFLAGS-test-ldouble.c): Likewise.
34367         (CFLAGS-test-double.c): Likewise.
34368         (CFLAGS-test-float.c): Likewise.
34369         (CFLAGS-test-misc.c): Likewise.
34370         (CFLAGS-test-test-fenv.c): Likewise.
34371
34372 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34373
34374         [BZ #2550]
34375         [BZ #2570]
34376         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34377         comparisons to determine direction to adjust input.
34378
34379 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34380
34381         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34382         output to the target.
34383
34384         * scripts/localplt.awk: New file.
34385         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34386         (check-localplt-CFLAGS): Variable removed.
34387         ($(all-built-dso:=.jmprel)): New static pattern rule.
34388         (generated): Add those targets.
34389         (localplt-built-dso): New variable.
34390         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34391
34392         * elf/check-localplt.c: File removed.
34393
34394         * scripts/check-execstack.awk: New file.
34395         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34396         (check-execstack-CFLAGS): Variable removed.
34397         ($(objpfx)check-execstack.h): Target removed.
34398         ($(objpfx)execstack-default): New target.
34399         (generated): Add that instead of check-execstack.h.
34400         ($(all-built-dso:=.phdr)): New static pattern rule.
34401         (generated): Add those targets.
34402         * elf/check-execstack.c: File removed.
34403
34404         * scripts/check-textrel.awk: New file.
34405         * elf/Makefile ($(objpfx)check-textrel): Target removed.
34406         (check-textrel-CFLAGS): Variable removed.
34407         (all-built-dso): Use := to define.o
34408         ($(all-built-dso:=.dyn)): New static pattern rule.
34409         (generated): Add those targets.
34410         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
34411         * config.make.in (READELF): New substituted variable.
34412         * elf/check-textrel.c: File removed.
34413
34414 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34415
34416         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34417         allow.
34418         * conform/data/ctype.h-data [C99-based standards] (isblank):
34419         Expect function.
34420         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
34421         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
34422         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34423         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
34424         Specify type.  Require positive value.
34425         (EILSEQ): Likewise.
34426         (ERANGE): Likewise.
34427         [ISO || POSIX] (EILSEQ): Do not expect.
34428         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
34429         Specify type.  Require positive value.
34430         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
34431         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
34432         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
34433         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
34434         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
34435         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
34436         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
34437         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
34438         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
34439         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
34440         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34441         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34442         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34443         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34444         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34445         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34446         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34447         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34448         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34449         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34450         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34451         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34452         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34453         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34454         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34455         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34456         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34457         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34458         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34459         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34460         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34461         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34462         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34463         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34464         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34465         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34466         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34467         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34468         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34469         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34470         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34471         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34472         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34473         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34474         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34475         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34476         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34477         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34478         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34479         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34480         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34481         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34482         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34483         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34484         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34485         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34486         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34487         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34488         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34489         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34490         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34491         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34492         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34493         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34494         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34495         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34496         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34497         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34498         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34499         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34500         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34501         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34502         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34503         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34504         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34505         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34506         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34507         Require >= 2.
34508         (FLT_ROUNDS): Expect as macro, not constant.
34509         (FLT_MANT_DIG): Use macro-int-constant.
34510         (DBL_MANT_DIG): Likewise.
34511         (LDBL_MANT_DIG): Likewise.
34512         (FLT_DIG): Likewise.
34513         (DBL_DIG): Likewise.
34514         (LDBL_DIG): Likewise.
34515         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34516         (DBL_MIN_EXP): Likewise.
34517         (LDBL_MIN_EXP): Likewise.
34518         (FLT_MAX_EXP): Use macro-int-constant.
34519         (DBL_MAX_EXP): Likewise.
34520         (LDBL_MAX_EXP): Likewise.
34521         (FLT_MAX_10_EXP): Likewise.
34522         (DBL_MAX_10_EXP): Likewise.
34523         (LDBL_MAX_10_EXP): Likewise.
34524         (FLT_MAX): Use macro-constant.
34525         (DBL_MAX): Likewise.
34526         (LDBL_MAX): Likewise.
34527         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34528         (DBL_EPSILON): Likewise.
34529         (LDBL_EPSILON): Likewise.
34530         (FLT_MIN): Likewise.
34531         (DBL_MIN): Likewise.
34532         (LDBL_MIN): Likewise.
34533         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34534         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34535         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34536         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34537         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34538         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34539         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34540         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34541         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34542         [ISO11] (FLT_TRUE_MIN): Likewise.
34543         [ISO11] (LDBL_TRUE_MIN): Likewise.
34544         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34545         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34546         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34547         (SCHAR_MAX): Likewise.
34548         (UCHAR_MAX): Likewise.
34549         (CHAR_MIN): Likewise.
34550         (CHAR_MAX): Likewise.
34551         (MB_LEN_MAX): Use macro-int-constant.
34552         (SHRT_MIN): Use macro-int-constant.  Specify type.
34553         (SHRT_MAX): Likewise.
34554         (USHRT_MAX): Likewise.
34555         (INT_MAX): Likewise.
34556         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34557         bound negative.
34558         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34559         bound with "U".
34560         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34561         bound with "L".
34562         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34563         bound negative.  Suffix upper bound with "L".
34564         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34565         bound with "UL".
34566         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34567         Specify type.
34568         [C99-based standards] (LLONG_MAX): Likewise.
34569         [C99-based standards] (ULLONG_MAX): Likewise.
34570         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34571         == 0.
34572         [ISO11] (max_align_t): Require type.
34573         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34574
34575         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34576         from $CFLAGS, without defining away __attribute__ calls.
34577         (checknamespace): Use $CFLAGS_namespace.
34578
34579         * conform/conformtest.pl (@keywords): Only include C99 keywords
34580         for standards based on C99 or C11.
34581
34582         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34583         Disable tests.
34584         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34585         UNIX98]: Likewise.
34586
34587         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34588         usability of symbols in #if.
34589
34590         * conform/conformtest.pl: If macro or constant types start
34591         "promoted:", expect the symbol to be of the following type
34592         promoted by the integer promotions.
34593
34594         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34595         in one place.  Also handle "macro-constant".
34596
34597         * conform/conformtest.pl: Only accept expected macro values with
34598         "==".  Parse all "macro" lines in one place.
34599         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34600
34601         * conform/conformtest.pl: Handle braced types on "constant" lines
34602         instead of handling "typed-constant".
34603         * conform/data/signal.h-data: Use "constant" instead of
34604         "typed-constant".
34605
34606         * conform/conformtest.pl: Handle "optional-" at start of lines in
34607         one place rather than duplicating several cases.  Handle each
34608         format of "macro" line with initial "optional-".
34609
34610         * conform/conformtest.pl: Only accept expected constant or
34611         optional-constant values with "==".  Parse all "constant" lines in
34612         one place.  Parse all "optional-constant" lines in one place.
34613         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34614         * conform/data/fmtmsg.h-data: Likewise.
34615         * conform/data/netinet/in.h-data: Likewise.
34616         * conform/data/tar.h-data: Likewise.
34617         * conform/data/limits.h-data: Use "==" form on "constant" and
34618         "optional-constant" lines.
34619
34620         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34621         Use -std=c99 for XOPEN2K.
34622         (@knownproblems): Remove.
34623         (newtoken): Don't check %isknown.
34624
34625         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34626         Do not expect macro.
34627         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34628         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34629         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34630         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34631         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34632         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34633         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34634         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34635         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34636         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34637         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34638         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34639         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34640         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34641         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34642         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34643         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34644         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34645         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34646         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34647         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34648         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34649         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34650         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34651         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34652         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34653         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34654         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34655         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34656         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34657         [XPG3] (acosh): Likewise.
34658         [XPG3] (asinh): Likewise.
34659         [XPG3] (atanh): Likewise.
34660         [XPG3] (cbrt): Likewise.
34661         [XPG3] (expm1): Likewise.
34662         [XPG3] (ilogb): Likewise.
34663         [XPG3] (log1p): Likewise.
34664         [XPG3] (logb): Likewise.
34665         [XPG3] (nextafter): Likewise.
34666         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34667         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34668         [XPG3] (remainder): Likewise.
34669         [XPG3] (rint): Likewise.
34670         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34671         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34672         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34673         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34674         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34675         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34676         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34677         [UNIX98 || XOPEN2K] (scalb): Expect.
34678         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34679         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34680         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34681         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34682         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34683         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34684         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34685         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34686         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34687         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34688         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34689         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34690         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34691         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34692         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34693         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34694         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34695         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34696         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34697         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34698         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34699         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34700         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34701         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34702         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34703         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34704         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34705         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34706         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34707         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34708         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34709         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34710         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34711         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34712         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34713         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34714         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34715         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34716         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34717         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34718         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34719         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34720         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34721         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34722         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34723         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34724         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34725         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34726         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34727         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34728         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34729         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34730         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34731         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34732         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34733         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34734         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34735         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34736         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34737         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34738         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34739         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34740         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34741         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34742         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34743         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34744         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34745         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34746         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34747         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34748         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34749         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34750         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34751         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34752         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34753         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34754         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34755         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34756         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34757         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34758         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34759         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34760         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34761         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34762         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34763         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34764         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34765         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34766         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34767         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34768         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34769         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34770         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34771         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34772         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34773         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34774         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34775         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34776         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34777         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34778         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34779         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34780         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34781         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34782         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34783         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34784         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34785         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34786         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34787         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34788         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34789         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34790         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34791         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34792         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34793         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34794         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34795         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34796         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34797         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34798         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34799         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34800         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34801         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34802         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34803         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34804         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34805         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34806         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34807         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34808         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34809         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34810         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34811         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34812         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34813         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34814         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34815
34816         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34817         _XOPEN_SOURCE_EXTENDED for XPG4.
34818
34819         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34820
34821         * Makeconfig (localtime): Remove variable.
34822         (inst_localtime-file): Likewise.
34823
34824 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34825
34826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34827         Update.
34828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34829         Update.
34830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34831         Update.
34832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34833         Update.
34834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34835         Update.
34836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34837         Update.
34838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34839         Update.
34840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34841         Update.
34842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34843         Update.
34844
34845 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34846
34847         [BZ #2550]
34848         [BZ #2570]
34849         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34850         comparisons to determine direction to adjust input.
34851         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34852         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34853         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34854         Likewise.
34855         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34856         Likewise.
34857         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34858         Likewise.
34859         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34860         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34861         Likewise.
34862         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34863         Likewise.
34864         * math/libm-test.inc (nexttoward_test): Add more tests.
34865
34866 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34867
34868         [BZ #14040]
34869         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34870         in version GLIBC_2.1, not GLIBC_2.0.
34871         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34872         Likewise.
34873
34874 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34875
34876         [BZ #13942]
34877         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34878         (1 - x) * (1 + x).
34879         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34880         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34881         * math/libm-test.inc (acos_test): Add more tests.
34882         (asin_test): Likewise.
34883         * sysdeps/i386/fpu/libm-test-ulps: Update.
34884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34885
34886         [BZ #14034]
34887         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34888         of square root.
34889         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34890         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34891         * math/libm-test.inc (acos_test_tonearest): New function.
34892         (acos_test_towardzero): Likewise.
34893         (acos_test_downward): Likewise.
34894         (acos_test_upward): Likewise.
34895         (asin_test_tonearest): Likewise.
34896         (asin_test_towardzero): Likewise.
34897         (asin_test_downward): Likewise.
34898         (asin_test_upward): Likewise.
34899         (main): Call the new functions.
34900         * sysdeps/i386/fpu/libm-test-ulps: Update.
34901         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34902
34903         [BZ #13884]
34904         [BZ #13924]
34905         * math/e_exp10.c: Include <float.h>.
34906         (__ieee754_exp10): Handle underflow here rather than multiplying
34907         large negative argument by M_LN10.
34908         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34909         of __ieee754_expf.
34910         * math/e_exp10l.c: Include <float.h>.
34911         (__ieee754_exp10l): Handle underflow here rather than multiplying
34912         large negative argument by M_LN10l.
34913         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34914         spurious overflow exception on underflow.
34915
34916 2012-04-29  Marek Polacek  <polacek@redhat.com>
34917
34918         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34919         (__fortify_function): New macro.
34920         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34921         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34922         __extern_always_inline.
34923         * libio/bits/stdio2.h: Likewise.
34924         * libio/bits/stdio.h: Likewise.
34925         * string/string.h: Likewise.
34926         * string/bits/string3.h: Likewise.
34927         * include/stdio.h: Likewise.
34928         * stdlib/bits/stdlib.h: Likewise.
34929         * stdlib/stdlib.h: Likewise.
34930         * rt/bits/mqueue2.h: Likewise.
34931         * rt/mqueue.h: Likewise.
34932         * posix/bits/unistd.h: Likewise.
34933         * posix/unistd.h: Likewise.
34934         * io/bits/poll2.h: Likewise.
34935         * io/bits/fcntl2.h: Likewise.
34936         * io/fcntl.h: Likewise.
34937         * io/sys/poll.h: Likewise.
34938         * misc/bits/syslog.h: Likewise.
34939         * misc/bits/syslog-ldbl.h: Likewise.
34940         * misc/sys/syslog.h: Likewise.
34941         * socket/bits/socket2.h: Likewise.
34942         * socket/sys/socket.h: Likewise.
34943         * debug/tst-chk1.c: Likewise.
34944         * wcsmbs/bits/wchar2.h: Likewise.
34945         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34946         * wcsmbs/wchar.h: Likewise.
34947
34948 2012-04-29  Andreas Jaeger  <aj@suse.de>
34949
34950         * Makerules (tests): Remove enable-check-abi protection.
34951         (check-abi-warn): Remove.
34952         (check-abi-%): Remove check-abi-warn usage.
34953
34954         * configure.in: Remove check-abi configure option.
34955         * configure: Regenerated.
34956         * config.make.in (enable-check-abi): Remove.
34957
34958 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34959
34960         [BZ #14033]
34961         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34962         double functions to double *_finite functions.
34963
34964         [BZ #13941]
34965         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34966         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34967         LDBL_MIN_EXP.
34968         * stdio-common/Makefile (tests): Add tst-sprintf3.
34969         * stdio-common/tst-sprintf3.c: New file.
34970
34971         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34972         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34973
34974 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34975
34976         * conform/conformtest.pl: Remove duplicate typed-constant
34977         handling.
34978
34979 2012-04-28  David S. Miller  <davem@davemloft.net>
34980
34981         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34982         (check-abi-%): Remove AWK script prerequisite and explicit
34983         abilist directory.
34984         (check-abi): Rewrite to just diff the symlist with the abilist.
34985         (config-tls, config-abi-config): Delete, no longer used.
34986         (update-abi-%): Remove AWK script and explicit abilist directory.
34987         (update-abi): Rewrite to simply compare and conditionally copy the
34988         symlist and the sysdep abilist file.  Remove update-abi-config
34989         checks.
34990         * abilist/ld.abilist: Remove.
34991         * abilist/libBrokenLocale.abilist: Remove.
34992         * abilist/libanl.abilist: Remove.
34993         * abilist/libcrypt.abilist: Remove.
34994         * abilist/libdl.abilist: Remove.
34995         * abilist/librt.abilist: Remove.
34996         * abilist/libthread_db.abilist: Remove.
34997         * abilist/libutil.abilist: Remove.
34998         * scripts/extract-abilist.awk: Remove.
34999         * scripts/merge-abilist.awk: Remove.
35000         * sysdeps/generic/libcidn.abilist: New file.
35001         * sysdeps/generic/libnss_compat.abilist: New file.
35002         * sysdeps/generic/libnss_db.abilist: New file.
35003         * sysdeps/generic/libnss_dns.abilist: New file.
35004         * sysdeps/generic/libnss_files.abilist: New file.
35005         * sysdeps/generic/libnss_hesiod.abilist: New file.
35006         * sysdeps/generic/libnss_nis.abilist: New file.
35007         * sysdeps/generic/libnss_nisplus.abilist: New file.
35008         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
35009         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
35010         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
35011         file.
35012         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
35013         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
35014         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
35015         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
35016         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
35017         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
35018         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
35019         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
35020         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
35021         file.
35022         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
35023         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
35024         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
35025         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
35026         file.
35027         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
35028         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
35029         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
35030         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
35031         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
35032         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
35033         file.
35034         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
35035         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
35036         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
35037         file.
35038         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
35039         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
35040         New file.
35041         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
35042         New file.
35043         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
35044         New file.
35045         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
35046         New file.
35047         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
35048         New file.
35049         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
35050         New file.
35051         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
35052         New file.
35053         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
35054         New file.
35055         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
35056         New file.
35057         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35058         New file.
35059         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35060         New file.
35061         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35062         New file.
35063         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35064         New file.
35065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35066         file.
35067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35068         New file.
35069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35070         New file.
35071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35072         file.
35073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35074         New file.
35075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35076         New file.
35077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35078         file.
35079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35080         New file.
35081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35082         New file.
35083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35084         New file.
35085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35086         New file.
35087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35088         New file.
35089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35090         New file.
35091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35092         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35093         file.
35094         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35095         New file.
35096         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35097         file.
35098         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35099         file.
35100         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35101         file.
35102         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35103         file.
35104         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35105         file.
35106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35107         New file.
35108         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35109         file.
35110         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35111         file.
35112         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35113         New file.
35114         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35115         file.
35116         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35117         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35118         file.
35119         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35120         New file.
35121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35122         file.
35123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35124         file.
35125         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35126         file.
35127         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35128         file.
35129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35130         file.
35131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35132         New file.
35133         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35134         file.
35135         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35136         file.
35137         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35138         New file.
35139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35140         file.
35141         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35142         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35143         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35144         file.
35145         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35146         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35147         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35148         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35149         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35150         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35151         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35152         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35153         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35154         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35155         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35156         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35157         file.
35158         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35159         New file.
35160         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35161         file.
35162         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35163         file.
35164         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35165         file.
35166         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35167         file.
35168         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35169         file.
35170         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35171         New file.
35172         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35173         New file.
35174         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35175         file.
35176         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35177         New file.
35178         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35179         file.
35180         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35181         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35182         file.
35183         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35184         New file.
35185         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35186         file.
35187         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35188         file.
35189         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35190         file.
35191         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35192         file.
35193         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35194         file.
35195         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35196         New file.
35197         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35198         New file.
35199         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35200         file.
35201         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35202         New file.
35203         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35204         file.
35205
35206 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35207
35208         * conform/conformtest.pl: Fix typo in handling typed-constant from
35209         allow-header.
35210
35211 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35212
35213         * README: Cut down references to pre-2.6 Linux kernels and
35214         Linuxthreads.  Update lists of configurations in libc and ports
35215         and sort alphabetically.  Say "or newer" with Linux kernel version
35216         requirements.
35217
35218         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35219
35220 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35221
35222         [BZ #887]
35223         * math/libm-test.inc (logb_test_downward): New test to expose
35224         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35225         rounding mode.
35226
35227 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35228
35229         [BZ #14027]
35230         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35231         to be done.
35232         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35233         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35234
35235 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35236
35237         * sysdeps/unix/i386/brk.S: Remove file.
35238         * sysdeps/unix/i386/dl-brk.S: Likewise.
35239         * sysdeps/unix/i386/pipe.S: Likewise.
35240         * sysdeps/unix/i386/sigreturn.S: Likewise.
35241         * sysdeps/unix/i386/syscall.S: Likewise.
35242         * sysdeps/unix/i386/vfork.S: Likewise.
35243         * sysdeps/unix/i386/wait.S: Likewise.
35244
35245         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35246         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35247
35248         * configure.in (arm*-none*): Do not allow without
35249         --enable-hacker-mode.
35250         (netbsd*): Remove case setting base_os.
35251         (386bsd*): Likewise.
35252         (freebsd*): Likewise.
35253         (bsdi*): Likewise.
35254         (osf*): Likewise.
35255         (sunos*): Likewise.
35256         (ultrix*): Likewise.
35257         (newsos*): Likewise.
35258         (dynix*): Likewise.
35259         (*bsd*): Likewise.
35260         (sysv*): Likewise.
35261         (isc*): Likewise.
35262         (esix*): Likewise.
35263         (sco*): Likewise.
35264         (minix*): Likewise.
35265         (irix4*): Likewise.
35266         (irix6*): Likewise.
35267         (solaris[2-9]*): Likewise.
35268         (none): Likewise.
35269         * configure: Regenerated.
35270
35271 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35272
35273         [BZ #11521]
35274         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35275         overflow or cancellation in calculating denominator.
35276         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35277         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35278         down expression to avoid unexpected rounding in newer GCCs.
35279         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35280
35281 2012-04-26  David S. Miller  <davem@davemloft.net>
35282
35283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35284         long-double compat symbols.
35285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35290         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35291         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35293         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35294         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35295         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35296         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35298
35299 2012-04-25  David S. Miller  <davem@davemloft.net>
35300
35301         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35302         HWCAP_* values only after the memory barriers have been defined.
35303         (atomic_full_barrier): Define.
35304         (atomic_read_barrier): Define.
35305         (atomic_write_barrier): Define.
35306
35307 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35308
35309         * shlib-versions: Add libgcc_s version information.
35310         * sysdeps/generic/libgcc_s.h: Remove.
35311         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35312         libgcc_s.h.
35313         * sysdeps/gnu/unwind-resume.c: Likewise.
35314         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35315
35316 2012-04-25  David S. Miller  <davem@davemloft.net>
35317
35318         * sysdeps/unix/sparc/brk.S: Delete.
35319         * sysdeps/unix/sparc/dl-brk.S: Delete.
35320         * sysdeps/unix/sparc/pipe.S: Delete.
35321         * sysdeps/unix/sparc/sysdep.S: Delete.
35322         * sysdeps/unix/sparc/sysdep.h: Delete.
35323         * sysdeps/unix/sparc/vfork.S: Delete.
35324         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35325         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35326         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35327         (ret_ERRVAL, r0, r1, MOVE): Define.
35328         (JUMPTARGET): Remove.
35329         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35330         sysdeps/unix/sparc/sysdep.h
35331         (ENTRY, END): Remove.
35332         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35333
35334 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35335
35336         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35337         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35338         -DIS_IN_build.
35339
35340         * timezone/README: Update upstream location and email address for
35341         tzcode and tzdata.
35342         * timezone/zdump.c: Update from tzcode 2012b.
35343         * timezone/zic.c: Likewise.
35344
35345         * configure.in (libc_cv_as_needed): Remove test.
35346         * configure: Regenerated.
35347         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35348         conditional definition.
35349         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35350         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35351         * config.make.in (have-as-needed): Remove variable.
35352
35353 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35354             Paul Pluzhnikov  <ppluzhnikov@google.com>
35355
35356         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35357         strings correctly.
35358
35359 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35360
35361         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35362         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35363         * sysdeps/sh/strlen.S: Likewise.
35364
35365 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35366
35367         * sysdeps/unix/fork.S: Remove file.
35368         * sysdeps/unix/i386/fork.S: Likewise.
35369         * sysdeps/unix/sparc/fork.S: Likewise.
35370
35371         * sysdeps/unix/system.c: Remove file.
35372         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35373
35374         * sysdeps/unix/getegid.S: Remove file.
35375         * sysdeps/unix/geteuid.S: Likewise.
35376
35377 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35378
35379         * scripts/check-localplt.awk: New file.
35380         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35381         of diff.
35382         * scripts/data/localplt-generic.data: Add a comment.
35383
35384         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35385         NODE when __dir_mkfile failed.
35386         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35387         Reported by Ludovic Courtès <ludo@gnu.org>.
35388
35389 2012-04-24  Andreas Jaeger  <aj@suse.de>
35390
35391         * Makerules (common-clean): Also remove gen-as-const-headers
35392         files.
35393
35394 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35395
35396         * Makerules (native-compile): Do not change working directory for
35397         build.  Use $(OUTPUT_OPTION) in command.
35398         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
35399
35400 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35401
35402         [BZ #13886]
35403         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
35404         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
35405         * math/libm-test.inc (floor_test): Add more tests.
35406         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
35407
35408 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35409
35410         * sysdeps/unix/getdents.c: Remove file.
35411         * sysdeps/unix/sysv/getdents.c: Likewise.
35412         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
35413
35414         * sysdeps/unix/syscalls.list (madvise): Add syscall from
35415         sysdeps/unix/mman/syscalls.list.
35416         (mmap): Likewise.
35417         (mprotect): Likewise.
35418         (msync): Likewise.
35419         (munmap): Likewise.
35420         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
35421         * sysdeps/unix/mman/syscalls.list: Remove.
35422         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
35423
35424         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
35425         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
35426         * configure: Regenerated.
35427         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
35428         $(libgcc_s_suffix).
35429         * config.make.in (libgcc_s_suffix): Remove variable.
35430
35431 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
35432
35433         * sysdeps/unix/sysv/gethostname.c: Move to ...
35434         * sysdeps/posix/gethostname.c: ... here.
35435
35436         * sysdeps/unix/execve.S: Remove file.
35437
35438         * sysdeps/unix/_exit.S: Remove file.
35439
35440 2012-04-23  Andreas Jaeger  <aj@suse.de>
35441
35442         [BZ #13739]
35443         * manual/Makefile: Remove make dist support, there's no
35444         need for a stand-alone documentation tar ball.
35445         (TEXI2DVI): Define always, it's not in Makeconfig.
35446         (dist): Removed.
35447         (tar-it): Removed.
35448         (edition): Removed.
35449         (glibc-doc-$(edition).tar): Removed
35450         (%.Z): Removed.
35451         (%.gz): Removed.
35452         (%.uu): Removed.
35453         (ETAGS): Remove, it's in Makeconfig.
35454         (move-if-change): Remove, it's in Makeconfig.
35455
35456 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35457
35458         [BZ #13970]
35459         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35460         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35461         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35462         (strtod_l, strtof_l, strtold_l): Remove __wur.
35463         It is not necessarily an error to ignore strtol's return value.
35464         One can reliably look at the stored endptr to decide whether
35465         the number had valid syntax.
35466
35467 2012-04-21  Andreas Jaeger  <aj@suse.de>
35468
35469         [BZ #13739]
35470         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35471
35472 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35473
35474         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35475         * sysdeps/unix/sysv/Versions: Remove file.
35476
35477 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35478
35479         [BZ #13927]
35480         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35481
35482 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35483
35484         [BZ #7064]
35485         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35486         version from __vm86.
35487
35488 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35489
35490         * sysdeps/unix/common/lxstat.c: Remove file.
35491         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35492
35493         * sysdeps/unix/sysv/Makefile: Remove file.
35494
35495         * sysdeps/unix/sysv/direct.h: Remove file.
35496
35497         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35498         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35499         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35500         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35501         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35502         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35503         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35504
35505         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35506
35507         * sysdeps/unix/xmknod.c: Remove file.
35508         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35509
35510         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35511
35512         * sysdeps/unix/sysv/i386/time.S: Remove file.
35513
35514         * sysdeps/unix/fxstat.c: Remove file.
35515         * sysdeps/unix/xstat.c: Likewise.
35516         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35517
35518         * sysdeps/unix/sysv/sigaction.c: Remove file.
35519
35520         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35521         (sysdep_headers): Remove variable.
35522         [termio.h not in sysdep_headers] (generated): Likewise.
35523         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35524         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35525         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35526         * sysdeps/unix/sysv/tcflow.c: Likewise.
35527         * sysdeps/unix/sysv/tcflush.c: Likewise.
35528         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35529         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35530         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35531         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35532         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35533
35534         * sysdeps/unix/siglist.c: Remove file.
35535
35536         * sysdeps/unix/getppid.S: Remove file.
35537
35538         * sysdeps/unix/mkdir.c: Remove file.
35539         * sysdeps/unix/rmdir.c: Likewise.
35540
35541 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35542
35543         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35544         ERR_MAX value.
35545         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35546         errlist-compat value.
35547
35548 2012-04-18  David S. Miller  <davem@davemloft.net>
35549
35550         * sysdeps/generic/memcopy.h (reg_char): Delete.
35551         * debug/strcat_chk.c: Use char, not reg_char.
35552         * debug/strcpy_chk.c: Likewise.
35553         * debug/strncat_chk.c: Likewise.
35554         * debug/strncpy_chk.c: Likewise.
35555         * string/memchr.c: Likewise.
35556         * string/memrchr.c: Likewise.
35557         * string/rawmemchr.c: Likewise.
35558         * string/strcat.c: Likewise.
35559         * string/strchr.c: Likewise.
35560         * string/strchrnul.c: Likewise.
35561         * string/strcmp.c: Likewise.
35562         * string/strcpy.c: Likewise.
35563         * string/strncat.c: Likewise.
35564         * string/strncmp.c: Likewise.
35565         * string/strncpy.c: Likewise.
35566
35567 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35568
35569         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35570         __builtin_memcopy is called when src and dest ranges are known to not
35571         overlap.
35572
35573 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35574
35575         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35576         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35577         fwd_align_merge macro call.
35578         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35579         bwd_align_merge macro call.
35580         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35581
35582 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35583
35584         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35585         bwd_align_merge macros.
35586         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35587         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35588         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35589
35590 2012-04-18  David S. Miller  <davem@davemloft.net>
35591
35592         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35593
35594 2012-04-18  Andreas Jaeger  <aj@suse.de>
35595
35596         [BZ# 6794]
35597         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35598         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35599         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35600
35601         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35602         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35603         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35604
35605         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35606         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35607         Adjust for changed ldbl-128 files.
35608
35609         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35610         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35611         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35612
35613 2012-04-17  David S. Miller  <davem@davemloft.net>
35614
35615         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35616
35617 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35618
35619         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35620         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35621         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35622         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35623         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35624         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35625
35626 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35627
35628         [BZ #6794]
35629         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35630         * math/libm-test.inc: Add ilogb errno and exception tests.
35631         * math/w_ilogb.c: New file: ilogb wrapper.
35632         * math/w_ilogbf.c: New file: ilogbf wrapper.
35633         * math/w_ilogbl.c: New file: ilogbl wrapper.
35634         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35635         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35636         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35637         exception being thrown with 0.0 as argument.
35638         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35639         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35640         exception being thrown with 0.0 as argument.
35641         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35642         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35643         exception being thrown with 0.0 as argument.
35644         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35645         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35646         exception being thrown with 0.0 as argument.
35647         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35648         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35649         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35650         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35651         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35652         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35653         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35654         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35655         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35656
35657 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35658
35659         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35660         with altivec.
35661
35662 2012-04-16  Marek Polacek  <polacek@redhat.com>
35663
35664         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35665
35666 2012-04-16  Marek Polacek  <polacek@redhat.com>
35667
35668         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35669         operands of fdivp instruction.
35670
35671 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35672
35673         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35674         * elf/tst-auditmod3b.c: Likewise.
35675         * elf/tst-auditmod4b.c: Likewise.
35676         * elf/tst-auditmod5b.c: Likewise.
35677         * elf/tst-auditmod6b.c: Likewise.
35678         * elf/tst-auditmod6c.c: Likewise.
35679         * elf/tst-auditmod7b.c: Likewise.
35680         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35681         * sysdeps/x86_64/preconfigure.in: Likewise.
35682         * sysdeps/x86_64/preconfigure: Regenerated.
35683
35684 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35685
35686         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35687         __ILP32__.
35688
35689 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35690
35691         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35692         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35693
35694 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35695
35696         [BZ #13973]
35697         * locale/iso-639.def: Fix gl language name. Spotted by
35698         Yaron Shahrabani.
35699
35700 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35701
35702         [BZ #2074]
35703         * libio/libio.h (__io_write_fn): Update comment.
35704
35705 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35706
35707         [BZ #2074]
35708         * stdio.texi (Hook Functions): The user provided writer function
35709         is not allowed to return -1.
35710
35711 2012-04-11  David S. Miller  <davem@davemloft.net>
35712
35713         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35714
35715 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35716
35717         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35718         Add a leading slash to rtkaio.
35719
35720 2012-04-11  Jim Meyering  <meyering@redhat.com>
35721
35722         [BZ #11959]
35723         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35724         It is not necessarily an error to ignore fwrite's return
35725         value.  One can reliably use ferror to test for errors after
35726         the fact.
35727
35728 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35729
35730         * bits/types.h (__snseconds_t): New type.
35731         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35732
35733         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35734         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35735         (__SNSECONDS_T_TYPE): Likewise.
35736         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35737         (__SNSECONDS_T_TYPE): Likewise.
35738         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35739         (__SNSECONDS_T_TYPE): Likewise.
35740
35741 2012-04-10  Andreas Jaeger  <aj@suse.de>
35742
35743         [BZ #2636]
35744         * manual/time.texi (Processor Time): Return type of times is
35745         elapsed real time since an arbitrary point in the past.
35746         (CPU Time): Move CLK_TCK from here...
35747         (Processor Time): ...to here.  Correct description.
35748         * manual/conf.texi (Constants for Sysconf): Correct description of
35749         _SC_CLK_TCK.
35750
35751 2012-04-10  David S. Miller  <davem@davemloft.net>
35752
35753         [BZ #13967]
35754         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35755         where the is a gap between DT_REL(A) and DT_JMPREL.
35756
35757 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35758
35759         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35760         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35761         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35762
35763 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35764
35765         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35766         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35767         (dl_main): Handle --inhibit-cache.
35768         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35769         _dl_inhibit_cache.
35770         * elf/dl-load.c (_dl_map_object): Use it.
35771         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35772
35773 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35774
35775         [BZ #13872]
35776         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35777         (__ieee754_powl): Saturate large exponents rather than testing for
35778         overflow of y*log2(x).
35779         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35780         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35781         exceptions.
35782
35783         [BZ #11521]
35784         * math/s_ctan.c: Include <float.h>.
35785         (__ctan): Avoid internal overflow or cancellation in calculating
35786         denominator.
35787         * math/s_ctanf.c: Likewise.
35788         * math/s_ctanl.c: Likewise.
35789         * math/s_ctanh.c: Likewise.
35790         * math/s_ctanhf.c: Likewise.
35791         * math/s_ctanhl.c: Likewise.
35792         * math/libm-test.inc (ctan_test): Add more tests.
35793         (ctanh_test): Likewise.
35794         * sysdeps/i386/fpu/libm-test-ulps: Update.
35795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35796
35797 2012-04-09  Andreas Jaeger  <aj@suse.de>
35798
35799         [BZ #6894]
35800         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35801         is an optional BSD extension.
35802
35803         [BZ #10254]
35804         * manual/stdio.texi (Opening Streams): Document additional fopen
35805         parameters.
35806
35807 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35808
35809         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35810         %eax without telling the compiler.
35811
35812 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35813
35814         [BZ # 13963]
35815         * manual/install.texi: Use sourceware.org.
35816
35817 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35818
35819         [BZ #13873]
35820         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35821         (__ieee754_pow): Generate overflow and underflow using huge*huge
35822         and tiny*tiny rather than just returning constant infinity or zero
35823         for large exponents.
35824         * math/libm-test.inc (pow_test): Require overflow exceptions for
35825         applicable cases of large exponents.
35826
35827         [BZ #706]
35828         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35829         (__ieee754_pow): Use iterative multiplication algorithm only for
35830         integer exponents with absolute value below 1024.  Check for odd
35831         integer exponents when using algorithm for real exponents.
35832         * math/libm-test.inc (pow_test): Add more tests.
35833         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35834
35835 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35836
35837         [BZ #13705]
35838         * math/libm-test.inc (exp_test): Do not allow overflow exception
35839         on underflow test.
35840
35841 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35842
35843         [BZ #13705]
35844         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35845         instead of __kernel_standard_f.
35846
35847 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35848
35849         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35850         * sysdeps/x86_64/memset_chk.S: Likewise.
35851
35852 2012-04-08  Andreas Jaeger  <aj@suse.de>
35853
35854         [BZ #10153]
35855         * manual/startup.texi (Environment Access): Describe return value
35856         for putenv and setenv.
35857
35858         [BZ #6895]
35859         * manual/filesys.texi (Directory Entries): Add description for
35860         DT_LNK.
35861
35862         [BZ #6890]
35863         * manual/filesys.texi (Directory Entries): Clarify that it's file
35864         system not operating system in the description of DT_UNKNOWN.
35865
35866         [BZ #6578]
35867         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35868
35869 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35870
35871         [BZ #6649]
35872         * manual/llio.texi (Opening and Closing Files): Add cross
35873         reference to explain mode argument.
35874
35875 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35876
35877         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35878         * sysdeps/x86_64/memset_chk.S: Likewise.
35879
35880 2012-04-07  David S. Miller  <davem@davemloft.net>
35881
35882         * elf/elf.h (R_SPARC_WDISP10): Define.
35883         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35884         R_SPARC_SIZE32.
35885         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35886         R_SPARC_SIZE64 and R_SPARC_H34.
35887
35888 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35889
35890         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35891         conditions and remove no longer applicable assertion.
35892
35893 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35894
35895         * bits/byteswap.h: Include <features.h>.
35896         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35897         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35898
35899 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35900
35901         * bits/byteswap.h (__bswap_16): Removed.
35902         Include <bits/byteswap-16.h> to get __bswap_16.
35903         * sysdeps/i386/bits/byteswap.h: Likewise.
35904         * sysdeps/s390/bits/byteswap.h: Likewise.
35905         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35906         * bits/byteswap-16.h: New file.
35907         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35908         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35909         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35910         * string/Makefile (headers): Add bits/byteswap-16.h.
35911
35912 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35913
35914         [BZ #13895]
35915         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35916         extra indirection.
35917         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35918         * nss/tst-nss-static.c: New.
35919
35920 2012-04-06  Robert Millan  <rmh@gnu.org>
35921
35922         [BZ #6486]
35923         * manual/llio.texi (File Position Primitive): lseek
35924         refers to WHENCE when it really means OFFSET.
35925
35926 2012-04-06  Andreas Jaeger  <aj@suse.de>
35927
35928         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35929         strncmp declarations.
35930
35931         * abilist/libc.abilist: Add __poll and __ppoll.
35932
35933 2012-04-05  David S. Miller  <davem@davemloft.net>
35934
35935         * scripts/check-local-headers.sh: Accept a host triplet in the
35936         path matched by the exclude regexp.
35937
35938         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35939         definition.
35940         * sysdeps/powerpc/powerpc32/dl-machine.h
35941         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35942         * sysdeps/s390/s390-32/dl-machine.h
35943         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35944         * sysdeps/sparc/sparc32/dl-machine.h
35945         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35946         * sysdeps/sparc/sparc64/dl-machine.h
35947         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35948
35949         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35950         lazy binding.
35951         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35952         undefined symbol errors.
35953
35954         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35955         DT_NEEDED entries.
35956
35957 2012-04-05  Michael Matz  <matz@suse.de>
35958
35959         [BZ #13592]
35960         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35961
35962 2012-04-05  Andreas Jaeger  <aj@suse.de>
35963
35964         [BZ #13908]
35965         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35966         comment.
35967
35968 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35969
35970         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35971         which ROUND is no valid rounding mode.
35972
35973 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35974
35975         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35976         read again.
35977         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35978
35979 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35980
35981         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35982         an exception using FPU order intentionally.
35983
35984 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35985
35986         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35987         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35988         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35989         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35990
35991 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35992
35993         [BZ #12340]
35994         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35995         EINVAL when BUFLEN is too smal.
35996
35997 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35998
35999         [BZ #13553]
36000         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
36001         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
36002
36003 2012-04-03  Andreas Jaeger  <aj@suse.de>
36004
36005         [BZ #13938]
36006         * manual/setjmp.texi (System V contexts): Fix sentence.
36007
36008         [BZ #13926]
36009         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
36010         New macro for this case.
36011         [!__GNUC__] (__bswap_64): New inline function for this case.
36012         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36013         * bits/byteswap.h: Likewise.
36014         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
36015         ull, guard with __GLIBC_HAVE_LONG_LONG.
36016
36017         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
36018         __GLIBC_HAVE_LONG_LONG.
36019
36020         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
36021         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
36022
36023 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
36024
36025         [BZ #13691]
36026         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
36027         inptr and inend, rather than using last_ch.
36028
36029 2012-04-02  David S. Miller  <davem@davemloft.net>
36030
36031         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
36032         * stdio-common/printf-parse.h (read_int): Change return type to
36033         'int', return -1 on INT_MAX overflow.
36034         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
36035         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
36036         overflows INT_MAX.  Check for overflow of in-format-string precision
36037         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
36038         SIZE_MAX not INT_MAX for integer overflow test.
36039         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
36040         skip the construct in the format string but do not record anything.
36041         * stdio-common/bug22.c: Adjust to test both width/prevision
36042         INT_MAX overflow as well as total length INT_MAX overflow.  Check
36043         explicitly for proper errno values.
36044
36045 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
36046
36047         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
36048         CHAR_MAX.
36049         * string/test-strcmp.c [! WIDE]: Likewise.
36050         * time/tst-mktime2.c: Likewise for INT_MAX.
36051         * string/test-string.h: #include <sys/param.h> for MIN.
36052
36053         * csu/init-first.c (__libc_init_first): Call __ctype_init.
36054         * sysdeps/i386/init-first.c (init): Likewise.
36055         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
36056         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36057         * sysdeps/sh/init-first.c (init): Likewise.
36058
36059 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36060
36061         * po/ru.po: Update from translation team.
36062         * po/vi.po: Likewise.
36063
36064 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36065
36066         * resolv/nss_dns/dns-host.c: Merge copyright years.
36067
36068 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36069
36070         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36071         Optimize memcpy with prefetch if
36072         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36073         src, dst pointers have unequal 16 byte alignments.
36074
36075 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36076
36077         [BZ #13928]
36078         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36079         from a CNAME entry and return the minimum ttl for the query.
36080         (gaih_getanswer_slice): Likewise.
36081
36082 2012-03-30  Jeff Law  <law@redhat.com>
36083
36084         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36085         due to long keys.
36086         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36087         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36088
36089         * resolv/nss_dns/dns-host.c: Update copyright year.
36090
36091 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36092
36093         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36094         requests to save a system call.  Fix check that all bytes are sent.
36095
36096         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36097         comments for sendmmsg.
36098
36099 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36100
36101         [BZ #13691]
36102         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36103         with only 1 character between 0x0041 and 0x01b0.
36104         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36105         * wcsmbs/tst-mbsnrtowcs.c: New file.
36106
36107 2012-03-29  David S. Miller  <davem@davemloft.net>
36108
36109         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36110         small copies by hand.
36111
36112 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36113
36114         [BZ #13761]
36115         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36116         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36117         group memberships.
36118
36119 2012-03-28  David S. Miller  <davem@davemloft.net>
36120
36121         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36122         that branches into memcpy.
36123         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36124         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36125         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36126         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36127         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36128         bits.
36129         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36130         implementation too.
36131         * sysdeps/sparc/mempcpy.S: New file.
36132
36133         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36134         the IFUNC routine in the libc case.
36135         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36136
36137         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36138         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36139         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36140         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36141         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36142         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36143         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36144         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36145
36146         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36147         loop to 256 bytes instead of 64 bytes and fix test signedness.
36148
36149         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36150         * sysdeps/sparc/sparc32/Makefile: rather than here...
36151         * sysdeps/sparc/sparc64/Makefile: and here.
36152
36153 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36154
36155         * malloc/mallocbug.c: Avoid warnings about unused variables.
36156
36157 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36158
36159         [BZ #13760]
36160         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36161         in the right place. Discard and retry query if response is
36162         larger than input buffer size.
36163
36164 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36165
36166         [BZ #369]
36167         [BZ #2678]
36168         [BZ #3866]
36169         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36170         x for large integer exponent.
36171         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36172         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36173         sign of result as needed afterwards.
36174         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36175         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36176         result for underflowing pow the same as for overflow.
36177         (__kernel_standard_l): Handle powl overflow and underflow here
36178         rather than calling __kernel_standard.
36179         * math/libm-test.inc (pow_test): Add more tests.
36180
36181         [BZ #3868]
36182         [BZ #13879]
36183         [BZ #13910]
36184         [BZ #13911]
36185         [BZ #13912]
36186         [BZ #13913]
36187         [BZ #13915]
36188         [BZ #13916]
36189         [BZ #13917]
36190         [BZ #13918]
36191         [BZ #13919]
36192         [BZ #13920]
36193         [BZ #13921]
36194         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36195         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36196         (__kernel_standard_l): New function.
36197         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36198         __kernel_standard.
36199         * math/w_acosl.c (__acosl): Likewise.
36200         * math/w_asinl.c (__asinl): Likewise.
36201         * math/w_atan2l.c (__atan2l): Likewise.
36202         * math/w_atanhl.c (__atanhl): Likewise.
36203         * math/w_coshl.c (__coshl): Likewise.
36204         * math/w_exp10l.c (__exp10l): Likewise.
36205         * math/w_exp2l.c (__exp2l): Likewise.
36206         * math/w_fmodl.c (__fmodl): Likewise.
36207         * math/w_hypotl.c (__hypotl): Likewise.
36208         * math/w_j0l.c (__j0l, __y0l): Likewise.
36209         * math/w_j1l.c (__j1l, __y1l): Likewise.
36210         * math/w_jnl.c (__jnl, __ynl): Likewise.
36211         * math/w_lgammal.c (__lgammal): Likewise.
36212         * math/w_log10l.c (__log10l): Likewise.
36213         * math/w_log2l.c (__log2l): Likewise.
36214         * math/w_logl.c (__logl): Likewise.
36215         * math/w_powl.c (__powl): Likewise.
36216         * math/w_remainderl.c (__remainderl): Likewise.
36217         * math/w_scalbl.c (sysv_scalbl): Likewise.
36218         * math/w_sinhl.c (__sinhl): Likewise.
36219         * math/w_sqrtl.c (__sqrtl): Likewise.
36220         * math/w_tgammal.c (__tgammal): Likewise.
36221         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36222         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36223         * math/libm-test.inc (acos_test): Add more tests.
36224         (acosh_test): Likewise.
36225         (asin_test): Likewise.
36226         (atanh_test): Likewise.
36227         (exp_test): Likewise.
36228         (exp10_test): Likewise.
36229         (exp2_test): Likewise.
36230         (expm1_test): Likewise.
36231         (lgamma_test): Likewise.
36232         (log_test): Likewise.
36233         (log10_test): Likewise.
36234         (log1p_test): Likewise.
36235         (log2_test): Likewise.
36236         (pow_test): Do not allow some spurious overflow exceptions.
36237         (sqrt_test): Add more tests.
36238         (tgamma_test): Likewise.
36239         (y0_test): Likewise.
36240         (y1_test): Likewise.
36241         (yn_test): Likewise.
36242
36243 2012-03-27  Anton Blanchard  <anton@samba.org>
36244
36245         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36246         MAP_HUGETLB.
36247         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36248         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36249         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36250
36251 2012-03-27  David S. Miller  <davem@davemloft.net>
36252
36253         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36254
36255         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36256         have-as-vis3 check.
36257
36258 2012-03-27  Andreas Jaeger  <aj@suse.de>
36259
36260         * sysdeps/x86_64/elf/configure.in: Moved to ...
36261         * sysdeps/x86_64/configure.in: ... here.
36262         * sysdeps/x86_64/elf/start.S: Moved to ...
36263         * sysdeps/x86_64/start.S: ... here.
36264         * sysdeps/x86_64/elf/configure: Delete.
36265
36266         * sysdeps/x86_64/configure.in: Merge contents from
36267         sysdeps/i386/configure.in (without i686 check).
36268
36269         * sysdeps/i386/elf/Versions: Merge into ...
36270         * sysdeps/i386/Versions: ... this.
36271         * sysdeps/i386/elf/Versions: Delete file.
36272         * sysdeps/i386/elf/start.S: Moved to ...
36273         * sysdeps/i386/start.S: ...here.
36274         * sysdeps/i386/elf/configure.in: Merge into...
36275         * sysdeps/i386/configure.in: ...here.
36276         * sysdeps/i386/elf/configure.in: Delete file.
36277         * sysdeps/i386/elf/configure: Delete file.
36278
36279         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36280         * debug/backtracesyms.c: ... here.
36281         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36282         * debug/backtracesymsfd.c: ... here.
36283         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36284         * sysdeps/generic/ifunc-sel.h: ... here.
36285
36286         * sysdeps/unix/i386/start.c: Delete file.
36287         * sysdeps/unix/sparc/start.c: Delete file.
36288         * sysdeps/unix/start.c: Delete file.
36289
36290         * sysdeps/sh/elf/configure.in: Moved to ...
36291         * sysdeps/sh/configure.in: ... here.
36292         * sysdeps/sh/elf/start.S: Moved to ...
36293         * sysdeps/sh/start.S: ... here.
36294         * sysdeps/sh/elf/configure: Delete file.
36295
36296         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36297         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36298         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36299         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36300         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36301         * sysdeps/powerpc/powerpc64/start.S: here.
36302         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36303         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36304         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36305         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36306         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36307
36308         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36309         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36310         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36311         * sysdeps/powerpc/powerpc32/start.S: ... here.
36312         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36313         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36314         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36315
36316         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36317         * sysdeps/powerpc/ifunc-sel.h: ... here.
36318         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36319         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36320
36321         * sysdeps/sparc/elf/configure.in: Moved to ...
36322         * sysdeps/sparc/configure.in: ... here.
36323         * sysdeps/sparc/elf/configure: Delete file.
36324         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36325         * sysdeps/sparc/sparc32/start.S: ... here.
36326         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36327         * sysdeps/sparc/sparc64/start.S: ... here.
36328         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36329         * sysdeps/sparc/sparc32/Makefile: ... this.
36330         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36331         * sysdeps/sparc/sparc64/Makefile: ... this.
36332
36333         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36334         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36335         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36336         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36337         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36338         * sysdeps/s390/s390-32/setjmp.S: ... here.
36339         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36340         * sysdeps/s390/s390-32/configure.in: ... here.
36341         * sysdeps/s390/s390-32/elf/configure: Delete file.
36342         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36343         * sysdeps/s390/s390-32/start.S: ... here.
36344
36345         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36346         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36347         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36348         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36349         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36350         * sysdeps/s390/s390-64/setjmp.S: ... here.
36351         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36352         * sysdeps/s390/s390-64/configure.in: ... here
36353         * sysdeps/s390/s390-64/elf/configure: Delete file.
36354         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36355         * sysdeps/s390/s390-64/start.S: ... here.
36356         * sysdeps/s390/s390-64/elf/configure: Delete.
36357
36358         * configure.in: Remove support for elf directories in sysdeps.
36359
36360         * configure: Regenerated.
36361         * sysdeps/i386/configure: Regenerated.
36362         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36363         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36364         * sysdeps/s390/s390-32/configure: Regenerated.
36365         * sysdeps/s390/s390-64/configure: Regenerated.
36366         * sysdeps/sh/configure: Regenerated.
36367         * sysdeps/sparc/configure: Regenerated.
36368         * sysdeps/x86_64/configure: Regenerated.
36369
36370 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36371
36372         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36373
36374         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36375         denormal result into account.
36376
36377 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36378
36379         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36380         Reported by Allan McRae <allan@archlinux.org>.
36381
36382 2012-03-23  Jeff Law  <law@redhat.com>
36383
36384         * nss/getnssent.c (__nss_getent): Fix typo.
36385
36386 2012-03-23  David S. Miller  <davem@davemloft.net>
36387
36388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36389
36390 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36391
36392         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36393         to pad to uint64_t for each field.
36394         (dl_tls_index): Replace unsigned long with uint64_t.
36395
36396 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36397         Paul Pluzhnikov  <ppluzhnikov@google.com>
36398
36399         [BZ #6528]
36400         * grp/Makefile (otherlibs): Don't set it.
36401         * inet/Makefile (otherlibs): Likewise.
36402         * login/Makefile (otherlibs): Likewise.
36403         * nscd/Makefile (otherlibs): Likewise.
36404         * posix/Makefile (otherlibs): Likewise.
36405         * pwd/Makefile (otherlibs): Likewise.
36406         * rt/Makefile (otherlibs): Likewise.
36407         * sunrpc/Makefile (otherlibs): Likewise.
36408         * nss/Makefile (otherlibs): Likewise.
36409         Add libnss_files to routines and static-only-routines.
36410         ($(objpfx)getent): Remove rule.
36411         * resolv/Makefile: Add libnss_dns and libresolv to routines and
36412         static-only-routines.
36413
36414 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36415
36416         [BZ #13892]
36417         * math/s_cexp.c: Include <float.h>.
36418         (__cexp): Handle exp result overflowing not necessarily
36419         overflowing both real and imaginary parts of result.
36420         * math/s_cexpf.c: Likewise.
36421         * math/s_cexpl.c: Likewise.
36422         * math/libm-test.inc (cexp_test): Add more tests.
36423         * sysdeps/i386/fpu/libm-test-ulps: Update.
36424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36425
36426 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36427
36428         * include/link.h (ELFW): New macro.
36429         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
36430         Replace ELF64_R_TYPE with ELFW(R_TYPE).
36431
36432 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36433
36434         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
36435         with uint64_t.
36436
36437 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36438
36439         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
36440         declaration.
36441         (struct La_x32_retval): Likewise.
36442
36443 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36444
36445         * sysdeps/x86_64/preconfigure.in: New file.
36446         * sysdeps/x86_64/preconfigure: New generated file.
36447
36448 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36449
36450         [BZ #13824]
36451         * math/e_exp2l.c: Include <float.h>.
36452         (__ieee754_exp2l): Handle overflow and underflow cases
36453         separately.  Only pass fractional part of argument to
36454         __ieee754_expl.
36455         * math/libm-test.inc (exp2_test): Add more tests.
36456
36457         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36458         negating x to take absolute value.
36459         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36460         Likewise.
36461         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36462         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36463         Likewise.
36464         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36465         computing low part if x was negated.
36466         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36467
36468 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36469
36470         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36471         la_x32_gnu_pltexit.
36472         (pltexit): Cast int_retval to ptrdiff_t.
36473         * elf/tst-auditmod3b.c: Likewise.
36474         * elf/tst-auditmod4b.c: Likewise.
36475         * elf/tst-auditmod5b.c: Likewise.
36476         * elf/tst-auditmod6b.c: Likewise.
36477         * elf/tst-auditmod6c.c: Likewise.
36478         * elf/tst-auditmod7b.c: Likewise.
36479
36480         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36481         and x32_gnu_pltexit.
36482
36483         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36484         __ELF_NATIVE_CLASS.
36485         (La_x32_regs): New macro.
36486         (La_x32_retval): Likewise.
36487         (la_x32_gnu_pltenter): New function prototype.
36488         (la_x32_gnu_pltexit): Likewise.
36489
36490 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36491
36492         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36493         exponent.
36494
36495         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36496
36497         * configure.in (libc_cv_cc_nofma): Check for option to disable
36498         generation of FMA instructions.
36499         * configure: Regenerate.
36500         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36501         * sysdeps/ieee754/dbl-64/Makefile: New file.
36502         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36503         Remove brandred-fma4.
36504         (CFLAGS-brandred-fma4.c): Remove.
36505         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36506         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36507         define.
36508         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36509         define.
36510
36511 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36512
36513         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36514         LLONG_MAX != LONG_MAX.
36515         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36516         (_fitoa_word): Likewise.
36517         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36518         LLONG_MAX != LONG_MAX.
36519         * stdio-common/_itowa.h: Include <_itoa.h>.
36520         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36521         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36522         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36523         only if not defined.
36524         (_ITOA_WORD_TYPE): Likewise.
36525         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36526         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36527
36528 2012-03-21  David S. Miller  <davem@davemloft.net>
36529
36530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36531
36532 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36533
36534         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36535         of x86_64 when setting libc_cv_slibdir, libdir and
36536         libc_cv_localedir.
36537         * sysdeps/unix/sysv/linux/configure: Regenerated.
36538
36539 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36540
36541         * manual/lang.texi (Old Varargs): Remove section.
36542         (How Variadic): Update menu.
36543         (va_start): Do not mention varargs.h.
36544
36545 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36546             Joseph Myers  <joseph@codesourcery.com>
36547
36548         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36549         link test.
36550         * configure: Regenerated.
36551
36552 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36553
36554         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36555         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36556         conformtest.pl
36557
36558 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36559
36560         * NOTES: Remove.
36561         * Makefile (files-for-dist): Remove NOTES.
36562         (NOTES): Remove rule.
36563         * README: Don't refer to NOTES.
36564         * manual/creature.texi: Don't include macros.texi.
36565         * manual/intro.texi (creature.texi): Remove comment referring to
36566         NOTES.
36567
36568         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36569         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36570         * configure: Regenerated.
36571         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36572         LIBC_TRY_CC_OPTION.
36573         (libc_cv_as_i686): Likewise.
36574         (libc_cv_cc_avx): Likewise.
36575         (libc_cv_cc_sse2avx): Likewise.
36576         (libc_cv_cc_fma4): Likewise.
36577         (libc_cv_cc_novzeroupper): Likewise.
36578         * sysdeps/i386/configure: Regenerated.
36579
36580         [BZ #13883]
36581         * sysdeps/i386/fpu/s_cexp.S: Remove.
36582         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36583         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36584         * math/libm-test.inc (cexp_test): Add more tests.
36585         * sysdeps/i386/fpu/libm-test-ulps: Update.
36586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36587
36588 2012-03-21  Allan McRae  <allan@archlinux.org>
36589
36590         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36591
36592 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36593
36594         [BZ #13871]
36595         * math/w_exp2.c: Do not include <float.h>.
36596         (o_threshold, u_threshold): Remove.
36597         (__exp2): Calculate result before checking finiteness and calling
36598         __kernel_standard.
36599         * math/w_exp2f.c: Likewise.
36600         * math/w_exp2l.c: Likewise.
36601         * math/libm-test.inc (exp2_test): Require overflow exception for
36602         1e6 input.
36603
36604         [BZ #3866]
36605         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36606         range of signed 64-bit integers before using fistpll.  Remove
36607         checks for whether integers fit in mantissa bits.
36608         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36609         the range of signed 32-bit integers before using fistpl.  Remove
36610         checks for whether integers fit in mantissa bits.
36611         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36612         (__ieee754_powl): Test for y outside the range of signed 64-bit
36613         integers before using fistpll.  Reduce 64-bit values to 63-bit
36614         ones as needed.
36615         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36616         divide-by-zero is raised for zero to large negative powers.
36617         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36618         (__ieee754_powl): Test for y outside the range of signed 64-bit
36619         integers before using fistpll.  Reduce 64-bit values to 63-bit
36620         ones as needed.
36621         * math/libm-test.inc (pow_test): Add more tests.
36622
36623 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36624
36625         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36626         <stdio-common/_itoa.h>.
36627         * debug/segfault.c: Likewise.
36628         * elf/dl-cache.c: Likewise.
36629         * elf/dl-minimal.c: Likewise.
36630         * elf/dl-misc.c: Likewise.
36631         * elf/dl-sysdep.c: Likewise.
36632         * elf/dl-version.c: Likewise.
36633         * elf/rtld.c: Likewise.
36634         * hurd/hurdsock.c: Likewise.
36635         * hurd/lookup-retry.c: Likewise.
36636         * malloc/malloc.c: Likewise.
36637         * malloc/mtrace.c: Likewise.
36638         * nscd/nscd_getgr_r.c: Likewise.
36639         * nscd/nscd_getpw_r.c: Likewise.
36640         * nscd/nscd_getserv_r.c: Likewise.
36641         * posix/getopt_init.c: Likewise.
36642         * posix/wordexp.c: Likewise.
36643         * stdio-common/_itoa.c: Likewise.
36644         * stdio-common/printf_fphex.c: Likewise.
36645         * stdio-common/vfprintf.c: Likewise.
36646         * string/_strerror.c: Likewise.
36647         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36648         * sysdeps/i386/i686/hp-timing.h: Likewise.
36649         * sysdeps/mach/_strerror.c: Likewise.
36650         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36651         * sysdeps/mach/hurd/sethostid.c: Likewise.
36652         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36653         * sysdeps/mach/xpg-strerror.c: Likewise.
36654         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36655         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36656         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36657         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36658         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36659         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36660         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36661         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36662         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36663         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36664         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36665         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36666         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36667         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36668         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36669         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36670         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36671         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36672         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36673         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36674         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36675
36676         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36677
36678         * stdio-common/_itoa.h: Moved to ...
36679         * sysdeps/generic/_itoa.h: Here.
36680
36681         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36682
36683         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36684         instead of "_itoa.h" and "_itowa.h".
36685         * stdio-common/vfprintf.: Likewise.
36686
36687 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36688
36689         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36690         <bits/wordsize.h>.
36691         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36692         (__signbit): Likwise.
36693         (llrintf): Likwise.
36694         (llrint): Likwise.
36695
36696 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36697
36698         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36699         __WORDSIZE != 64.
36700
36701 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36702
36703         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36704         OVERFLOW_EXCEPTION_OK.
36705         * math/libm-test.inc ("Philosophy"): Update comment about
36706         exception testing.
36707         (OVERFLOW_EXCEPTION): Define.
36708         (OVERFLOW_EXCEPTION_OK): Likewise.
36709         (INVALID_EXCEPTION_OK): Renumber.
36710         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36711         (IGNORE_ZERO_INF_SIGN): Likewise.
36712         (test_exceptions): Handle FE_OVERFLOW.
36713         (exp10_test): Expect overflow exceptions.
36714         (exp2_test): Likewise.
36715         (expm1_test): Likewise.
36716         (nextafter_test): Likewise.
36717         (pow_test): Likewise.
36718         (scalbn_test): Likewise.
36719         (scalbln_test): Likewise.
36720
36721 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36722
36723         * sysdeps/x86_64/bits/atomic.h
36724         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36725         64bit integer.
36726         (atomic_exchange_acq): Likewise.
36727         (__arch_exchange_and_add_body): Likewise.
36728         (__arch_add_body): Likewise.
36729         (atomic_add_negative): Likewise.
36730         (atomic_add_zero): Likewise.
36731
36732 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36733
36734         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36735         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36736
36737 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36738
36739         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36740         Check __x86_64__ instead of __WORDSIZE.
36741
36742 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36743
36744         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36745
36746 2012-03-19  David S. Miller  <davem@davemloft.net>
36747
36748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36749
36750         * sysdeps/sparc/fpu/fenv_private.h: New file.
36751         * sysdeps/sparc/fpu/math_private.h: Use it.
36752         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36753         Remove.
36754         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36755         (libc_feholdexcept_setroundl): Remove.
36756         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36757         Remove.
36758         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36759         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36760
36761 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36762
36763         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36764         int64_t instead of long int.
36765         (INSERT_WORDS64): Likwise.
36766
36767 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36768
36769         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36770         _Unwind_GetCFA return to _Unwind_Ptr first.
36771
36772 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36773
36774         [BZ #13629]
36775         * math/s_clog.c: Include <float.h>.
36776         (__clog): Scale large or subnormal inputs.
36777         * math/s_clogf.c: Likewise.
36778         * math/s_clogl.c: Likewise.
36779         * math/s_clog10.c: Include <float.h>.
36780         (M_LOG10_2): Define.
36781         (__clog10): Scale large or subnormal inputs.
36782         * math/s_clog10f.c: Likewise.
36783         * math/s_clog10l.c: Likewise.
36784         * math/libm-test.inc (clog_test): Add more tests.
36785         (clog10_test): Likewise.
36786         * sysdeps/i386/fpu/libm-test-ulps: Update.
36787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36788
36789         [BZ #11451]
36790         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36791         x and y.
36792         * math/libm-test.inc (atan2_test): Add another test.
36793
36794         * Makerules (common-objdir-compile): Remove.
36795         * sysdeps/unix/Makefile (config-generated): Do not add
36796         $(unix-generated) to variable.
36797         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36798         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36799         Remove rule.
36800         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36801         Likewise.
36802         [generic bits/local_lim.h] (before-compile): Do not append to
36803         variable.
36804         [generic bits/local_lim.h] (common-generated): Likewise.
36805         [generic sys/param.h] (before-compile): Do not append to variable.
36806         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36807         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36808         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36809         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36810         include.
36811         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36812         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36813         [generic sys/param.h] ($(addprefix
36814         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36815         [generic sys/param.h] (common-generated): Do not append to
36816         variable.
36817         [generic sys/param.h] (sysdep_headers): Likewise.
36818         [generic bits/errno.h] (before-compile): Do not append to
36819         variable.
36820         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36821         rule.
36822         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36823         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36824         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36825         [generic bits/errno.h] (common-generated): Do not append to
36826         variable.
36827         [generic bits/ioctls.h] (before-compile): Do not append to
36828         variable.
36829         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36830         rule.
36831         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36832         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36833         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36834         rule.
36835         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36836         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36837         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36838         [generic bits/ioctls.h] (common-generated): Do not append to
36839         variable.
36840         [generic sys/syscall.h] (syscall.h): Remove variable.
36841         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36842         rule.
36843         [generic sys/syscall.h] (before-compile): Do not append to
36844         variable.
36845         [generic sys/syscall.h] (common-generated): Likewise.
36846         * sysdeps/unix/errnos-tmpl.c: Remove file.
36847         * sysdeps/unix/errnos.awk: Likewise.
36848         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36849         * sysdeps/unix/ioctls.awk: Likewise.
36850         * sysdeps/unix/mk-local_lim.c: Likewise.
36851         * sysdeps/unix/snarf-ioctls: Likewise.
36852
36853 2012-03-19  Richard Henderson  <rth@twiddle.net>
36854
36855         * sysdeps/i386/fpu/fenv_private.h: New file.
36856         * sysdeps/i386/fpu/math_private.h: Use it.
36857         (math_opt_barrier, math_force_eval): Remove.
36858         (libc_feholdexcept_setround_53bit): Remove.
36859         (libc_feupdateenv_53bit): Remove.
36860         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36861         (math_opt_barrier, math_force_eval): Remove.
36862         (libc_feholdexcept): Remove.
36863         (libc_feholdexcept_setround): Remove.
36864         (libc_fetestexcept, libc_fesetenv): Remove.
36865         (libc_feupdateenv_test): Remove.
36866         (libc_feupdateenv, libc_feholdsetround): Remove.
36867         (libc_feresetround): Remove.
36868
36869         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36870         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36871
36872         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36873         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36874         (libc_feupdateenv_testl): New.
36875         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36876         (libc_feupdateenv_testf): New.
36877         (libc_feupdateenv): Use libc_feupdateenv_test.
36878         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36879         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36880
36881         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36882         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36883         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36884         (libc_feresetround_noex): New.
36885         (libc_feresetround_noexf): New.
36886         (libc_feresetround_noexl): New.
36887         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36888         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36889         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36890         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36891         SET_RESTORE_ROUND.
36892         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36893         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36894         (__cos): Likewise.
36895         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36896         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36897         SET_RESTORE_ROUND_NOEX.
36898         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36899         SET_RESTORE_ROUND_NOEXF.
36900         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36901         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36902         (libc_feholdsetroundf): New.
36903         (libc_feresetround, libc_feresetroundf): New.
36904
36905         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36906         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36907         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36908
36909         * sysdeps/generic/math_private.h: Include <fenv.h>.
36910         (default_libc_feholdexcept): New.
36911         (default_libc_feholdexcept_setround): New.
36912         (default_libc_fesetenv, default_libc_feupdateenv): New.
36913         (libc_feholdexcept): Only define if undefined.
36914         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36915         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36916         (libc_feholdexcept_setroundl): Likewise.
36917         (libc_feholdexcept_setround_53bit): Likewise.
36918         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36919         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36920         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36921         (libc_feupdateenv_53bit): Likewise.
36922         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36923         (libc_feholdexcept): Convert from macro to inline function.
36924         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36925         (libc_fesetenv, libc_feupdateenv): Likewise.
36926
36927         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36928         not previously defined.
36929         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36930         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36931         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36932         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36933         * sysdeps/ieee754/flt-32/math_private.h: New file.
36934         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36935         math_private.h below SET_FLOAT_WORD.
36936         (__isnan, __isinf_ns, __finite): Remove.
36937         (__isnanf, __isinf_nsf, __finitef): Remove.
36938
36939 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36940
36941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36942
36943 2012-03-17  David S. Miller  <davem@davemloft.net>
36944
36945         [BZ #6471]
36946         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36947         for 2.16.
36948
36949 2012-03-16  David S. Miller  <davem@davemloft.net>
36950
36951         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36952         warnings.
36953
36954         [BZ #6471]
36955         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36956         properly.
36957         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36958         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36959         sysdep_routines when subdir is sysvipc.
36960         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36961         __getshmlba helper.
36962
36963         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36964
36965 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36966
36967         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36968         [__LP64__].
36969
36970 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36971
36972         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36973         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36974         (__lround): Renamed to ...
36975         (__llround): This.  Replace long int with long long int.
36976         Define lround functions as aliases of llround functions.
36977         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36978
36979 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36980
36981         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36982         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36983         adresses to uintptr_t.  Replace "long int" and "unsigned long
36984         int" with "greg_t" on va_arg.
36985
36986 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36987
36988         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36989         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36990
36991         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36992         Move e_machine check before EI_CLASS check.  Handle x32
36993         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36994         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36995         SKIP_EM_IA_64 and include
36996         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36997
36998         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36999         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
37000         (add_system_dir): New macro.
37001
37002         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
37003         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
37004
37005 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37006
37007         [BZ #2551]
37008         [BZ #2552]
37009         [BZ #2553]
37010         [BZ #2554]
37011         [BZ #2562]
37012         [BZ #2563]
37013         [BZ #2565]
37014         [BZ #2566]
37015         [BZ #2576]
37016         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
37017         (y0): Likewise.
37018         * math/w_j0f.c (j0f): Likewise.
37019         (y0f): Likewise.
37020         * math/w_j0l.c (__j0l): Likewise.
37021         (__y0l): Likewise.
37022         * math/w_j1.c (j1): Likewise.
37023         (y1): Likewise.
37024         * math/w_j1f.c (j1f): Likewise.
37025         (y1f): Likewise.
37026         * math/w_j1l.c (__j1l): Likewise.
37027         (__y1l): Likewise.
37028         * math/w_jn.c (jn): Likewise.
37029         (yn): Likewise.
37030         * math/w_jnf.c (jnf): Likewise.
37031         (ynf): Likewise.
37032         * math/w_jnl.c (__jnl): Likewise.
37033         (__ynl): Likewise.
37034         * math/libm-test.inc (j0_test): Add more tests.
37035         (j1_test): Likewise.
37036         (jn_test): Likewise.  Add trailing semicolon to existing test.
37037         (y0_test): Likewise.
37038         (y1_test): Likewise.
37039         * sysdeps/i386/fpu/libm-test-ulps: Update.
37040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37041
37042         [BZ #13851]
37043         [BZ #13854]
37044         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
37045         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
37046         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
37047         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
37048         (__tanl): Set errno for infinite argument.
37049         * sysdeps/i386/fpu/mptan.c: Remove.
37050         * sysdeps/i386/fpu/s_tan.S: Likewise.
37051         * sysdeps/i386/fpu/s_tanl.S: Likewise.
37052         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
37053         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
37054         * math/libm-test.inc (tan_test): Add more tests and enable more
37055         tests for double and long double.
37056         * sysdeps/i386/fpu/libm-test-ulps: Update.
37057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37058
37059 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37060
37061         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37062         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37063
37064 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37065
37066         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37067         * configure.in: Use it for both main tree and add-ons.
37068         * configure: Regenerated.
37069
37070 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37071
37072         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37073
37074 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37075
37076         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37077         in comment.
37078
37079         [BZ #13851]
37080         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37081         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37082         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37083         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37084         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37085         infinite argument.
37086         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37087         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37088         != 0 for prec == 2.
37089         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37090         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37091         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37092         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37093         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37094         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37095         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37096         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37097         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37098         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37099         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37100         * math/libm-test.inc (cos_test): Add more tests and enable more
37101         tests for long double.
37102         (sin_test): Likewise.
37103         (sincos_test): Likewise.
37104         * sysdeps/i386/fpu/libm-test-ulps: Update.
37105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37106
37107 2012-03-16  David S. Miller  <davem@davemloft.net>
37108
37109         * sysdeps/sparc/fpu/math_private.h: New file.
37110
37111 2012-03-15  David S. Miller  <davem@davemloft.net>
37112
37113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37114         file.
37115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37117         file.
37118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37119         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37120         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37121         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37122         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37123         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37124         sysdep routines.
37125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37126
37127         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37128         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37129
37130         * sysdeps/sparc/sparc-ifunc.h: New file.
37131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37132         sparc-ifunc.h
37133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37135         Likewise.
37136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37137         Likewise.
37138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37142         Likewise.
37143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37148         Likewise.
37149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37150         Likewise.
37151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37155         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37156         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37157         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37158         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37159         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37160         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37161         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37162         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37163         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37164         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37165         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37166         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37167         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37168         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37169         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37170         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37171         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37172         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37173         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37174         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37175
37176 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37177
37178         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37179         scaling.
37180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37181
37182 2012-03-15  Andreas Jaeger  <aj@suse.de>
37183
37184         [BZ #13852]
37185         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37186         ieee754/flt-32 implementation for sin, cos and sincos.
37187         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37188         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37189         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37190         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37191         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37192         ieee754/flt-32 implementation for tan.
37193
37194         * math/libm-test.inc (cos_test): Enable some large input tests for
37195         float as well
37196         (sin_test): Likewise.
37197         (sincos_test): Likewise.
37198         (tan_test): Add tests for large input.
37199
37200         * sysdeps/i386/fpu/libm-test-ulps: Update.
37201
37202 2012-03-15  Andreas Jaeger  <aj@suse.de>
37203
37204         [BZ #13658]
37205         * math/libm-test.inc (cos_test): Add more test cases.
37206         (sin_test): Likewise.
37207         (sincos_test): Likewise.
37208
37209 2012-03-15  Andreas Jaeger  <aj@suse.de>
37210
37211         [BZ #13837]
37212         * math/libm-test.inc (cos_test): Add a test case for large input
37213         value.
37214         (sin_test): Likewise.
37215         (sincos_test): Likewise.
37216
37217 2012-03-15  Andreas Jaeger  <aj@suse.de>
37218             Joseph Myers  <joseph@codesourcery.com>
37219
37220         [BZ #13658]
37221         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37222         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37223         * sysdeps/i386/fpu/branred.c: Likewise.
37224         * sysdeps/i386/fpu/dosincos.c: Likewise.
37225         * sysdeps/i386/fpu/mpa.c: Likewise.
37226         * sysdeps/i386/fpu/s_cos.S: Likewise.
37227         * sysdeps/i386/fpu/s_sin.S: Likewise.
37228         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37229         * sysdeps/i386/fpu/sincos32.c: Likewise.
37230
37231         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37232         Define.
37233         (libc_feupdateenv_53bit): Define.
37234         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37235         Define.
37236         (libc_feupdateenv_53bit): Define.
37237
37238         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37239         53 bit (without extend i386 double precision).
37240
37241         * math/libm-test.inc (sincos_test): Add tests for large input.
37242         (sin): Likewise.
37243         (cos): Likewise.
37244
37245         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37246
37247 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37248
37249         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37250
37251 2012-03-15  David S. Miller  <davem@davemloft.net>
37252
37253         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37254         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37255         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37256         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37258         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37261         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37262         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37263         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37264         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37265         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37266         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37267         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37269         file.
37270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37272         file.
37273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37275         file.
37276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37278         file.
37279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37280         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37281         fmin/fmax sysdep routines.
37282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37283
37284 2012-03-14  David S. Miller  <davem@davemloft.net>
37285
37286         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37287         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37288         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37289         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37290         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37291         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37292         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37293         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37294         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37295         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37296         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37297         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37298         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37299         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37300         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37301         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37302         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37303         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37304         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37305         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37306         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37307         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37308         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37309         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37310         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37311         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37312         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37313         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37314         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37315         routines.
37316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37317         file.
37318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37320         file.
37321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37323         file.
37324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37326         file.
37327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37329         file.
37330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37332         file.
37333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37334         file.
37335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37336         file.
37337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37338         file.
37339         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37340         New file.
37341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37342         file.
37343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37344         file.
37345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37347         file.
37348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37350         file.
37351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37353         file.
37354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37356         VIS3 routines.
37357
37358         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37359         New file.
37360
37361         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37362
37363         * sysdeps/sparc/configure.in: New file.
37364         * sysdeps/sparc/configure: Generate.
37365         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37366         * configure: Regenerate.
37367         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37368         * config.make.in (have-as-vis3): New.
37369         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37370         available use -Av9d instead of -Av9a.
37371         * sysdeps/sparc/sparc64/Makefile: Likewise.
37372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37374         New file.
37375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37376         file.
37377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37378         New file.
37379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37380         file.
37381         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37382         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37383         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37384         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37385         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37386
37387         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37388         fzeros/fnegs to load 0x80000000 into a float register instead of
37389         using the stack.
37390         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37391
37392 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37393
37394         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37395         bits/syscall.h.
37396         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37397         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37398         ($(inst_includedir)/bits/syscall.h): Remove rule.
37399         ($(objpfx)bits/syscall.d): Include instead of
37400         $(objpfx)syscall-list.d.
37401         (generated): Change syscall-list.h and syscall-list.d to
37402         bits/syscall.h and bits/syscall.d.
37403
37404 2012-03-14  Roland McGrath  <roland@hack.frob.com>
37405
37406         [BZ #13846]
37407         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
37408
37409 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37410
37411         [BZ #13841]
37412         * math/s_csqrt.c: Include <float.h>.
37413         (__csqrt): Scale large or subnormal inputs.
37414         * math/s_csqrtf.c: Likewise.
37415         * math/s_csqrtl.c: Likewise.
37416         * math/libm-test.inc (csqrt_test): Add more tests.
37417         * sysdeps/i386/fpu/libm-test-ulps: Update.
37418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37419
37420         [BZ #13840]
37421         * math/libm-test.inc (hypot_test): Add more tests.
37422
37423 2012-03-13  David S. Miller  <davem@davemloft.net>
37424
37425         [BZ #13840]
37426         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
37427         double-precision for the calculation instead of scaling.
37428
37429 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
37430
37431         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
37432         manipulate bits before adding and subtracting TWO52[sx].
37433         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
37434         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
37435         Likewise.
37436         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
37437
37438 2012-03-13  David S. Miller  <davem@davemloft.net>
37439
37440         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37441         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37442         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37443         rtld-global-offsets.h
37444         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37445
37446         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37447         large parameters.
37448
37449         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37450
37451         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37452         'err' in the ifdef scope in which it is actually used.
37453
37454         * nss/nss_db/db-init.c: Include string.h
37455
37456 2012-03-12  David S. Miller  <davem@davemloft.net>
37457
37458         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37459         masking out of the most significant byte of random value used.
37460         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37461         Fix coding style in previous change.
37462
37463         * sysdeps/unix/sysv/linux/kernel-features.h
37464         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37465         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37466         expression.
37467         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37468         later.
37469
37470 2012-03-11  David S. Miller  <davem@davemloft.net>
37471
37472         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37473         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37474         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37475         for 'resultvar' otherwise things get truncated on 64-bit.
37476
37477         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37478         Fix masking out of the most significant byte of random value used.
37479
37480         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37481
37482 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37483
37484         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37485
37486 2012-03-09  David S. Miller  <davem@davemloft.net>
37487
37488         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37489         variables with appropriate CPP guards.
37490         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37491         from the frame pointer, not the stack pointer.  Correct layout
37492         comments.  Fix test on resulting framesize and the management of
37493         the outregs buffer for pltexit.  Preserve floating point return
37494         values across _dl_call_pltexit call.
37495         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37496         framesize and the management of the outregs buffer for pltexit.
37497         Preserve floating point return values across _dl_call_pltexit
37498         call.
37499         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37500         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37501         (la_sparc64_gnu_pltexit): New functions.
37502         (print_exit): Fix format string for return register value.
37503
37504 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37505
37506         * sunrpc/Makefile (others): Add rpcgen.
37507         ($(objpfx)rpcgen): Remove special build rule and dependency on
37508         libc.
37509         * sunrpc/rpcgen.c: New file.
37510
37511 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37512
37513         [BZ #13673]
37514         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37515         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37516         * sysdeps/i386/crti.S: Likewise.
37517         * sysdeps/i386/crtn.S: Likewise.
37518         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37519         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37520         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37521         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37522         * sysdeps/sh/crti.S: Likewise.
37523         * sysdeps/sh/crtn.S: Likewise.
37524         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37525
37526         [BZ #13673]
37527         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37528         with URL.
37529         * locale/programs/locfile-kw.gperf: Likewise.
37530         * locale/programs/charmap-kw.h: Regenerated.
37531         * locale/programs/locfile-kw.h: Likewise.
37532
37533         [BZ #13673]
37534         * intl/plural.y: Replace FSF snail mail address with URL.
37535         * intl/plural.c: Regenerated.
37536
37537 2012-03-09  Richard Henderson  <rth@twiddle.net>
37538
37539         * include/math_private.h: Remove file.
37540         * math/math_private.h: Move file ...
37541         * sysdeps/generic/math_private.h: ... here.
37542
37543         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37544         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37545         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37546
37547         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37548         and <math_private.h>.
37549         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37550         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37551         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37552         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37553         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37554         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37555         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37556         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37557         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37558         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37559         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37560         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37561         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37562         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37563         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37564         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37565         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37566         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37567         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37568         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37569         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37570         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37571         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37572         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37573         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37574         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37575         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37576         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37577         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37578         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37579         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37580         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37581         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37582         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37583         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37584         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37585         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37586         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37587         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37588         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37589         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37590         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37591         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37592         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37593         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37594         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37595         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37596         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37597         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37598         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37599         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37600         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37601         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37602         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37603         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37604         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37605         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37606         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37607         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37608         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37609         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37610         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37611         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37612         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37613         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37614         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37615         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37616         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37617         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37618         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37619         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37620         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37621         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37622         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37623         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37624         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37625         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37626         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37627         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37628         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37629         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37630         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37631         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37632         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37633         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37634         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37635         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37636         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37637         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37638         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37639         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37640         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37641         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37642         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37643         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37644         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37645         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37646         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37647         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37648         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37649         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37650         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37651         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37652         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37653         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37654         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37655         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37656         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37657         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37658         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37659         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37660         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37661         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37662         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37663         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37664         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37665         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37666         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37667         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37668         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37669         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37670         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37671         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37672         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37673         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37674         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37675         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37676         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37677         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37678         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37679         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37680         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37681         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37682         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37683         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37684         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37685         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37686         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37687         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37688         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37689         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37690         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37691         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37692         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37693         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37694         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37695         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37696         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37697         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37698         * sysdeps/ieee754/k_standard.c: Likewise.
37699         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37700         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37701         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37702         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37703         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37704         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37705         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37706         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37707         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37708         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37709         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37710         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37711         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37712         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37713         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37714         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37715         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37716         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37717         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37718         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37719         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37720         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37721         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37722         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37723         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37724         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37725         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37726         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37727         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37728         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37729         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37730         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37731         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37732         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37733         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37734         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37735         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37736         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37737         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37738         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37739         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37740         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37741         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37742         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37743         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37744         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37745         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37746         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37747         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37748         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37749         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37750         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37751         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37752         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37753         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37754         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37755         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37756         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37757         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37758         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37759         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37760         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37761         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37762         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37763         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37764         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37765         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37766         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37767         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37768         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37769         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37770         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37771         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37772         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37773         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37774         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37775         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37776         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37777         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37778         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37779         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37780         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37781         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37782         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37783         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37784         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37785         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37786         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37787         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37788         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37789         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37790         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37791         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37792         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37793         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37794         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37795         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37796         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37797         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37798         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37799         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37800         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37801         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37802         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37803         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37804         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37805         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37806         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37807         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37808         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37809         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37810         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37811         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37812         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37813         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37814         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37815         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37816         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37817         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37818         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37819         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37820         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37821         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37822         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37823         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37824         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37825         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37826         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37827         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37828         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37829         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37830         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37831         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37832         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37833         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37834         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37835         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37836         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37837         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37838         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37839         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37840         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37841         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37842         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37843         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37844         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37845         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37846         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37847         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37848         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37849         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37850         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37851         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37852         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37853         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37854         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37855         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37856         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37857         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37858         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37859         * sysdeps/ieee754/s_lib_version.c: Likewise.
37860         * sysdeps/ieee754/s_matherr.c: Likewise.
37861         * sysdeps/ieee754/s_signgam.c: Likewise.
37862         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37863         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37864         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37865         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37866         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37867         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37868         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37869         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37870         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37871         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37872         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37873         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37874         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37875         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37876         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37877         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37878         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37879         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37880         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37881         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37882         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37883
37884 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37885
37886         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37887         * sunrpc/rpc_main.c: Likewise.
37888         * sunrpc/rpc_svcout.c: Likewise.
37889
37890 2012-03-09  David S. Miller  <davem@davemloft.net>
37891
37892         * include/math_private.h: New file.
37893
37894 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37895
37896         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37897         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37898         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37899         from <bits/socket_type.h>.
37900         (enum __socket_type): Don't define here.
37901         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37902         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37903         bits/socket_type.h.
37904
37905         [BZ #13566]
37906         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37907         checking __USE_GNU.
37908
37909         * Makerules ($(inst_includedir)/%.h): New rule.
37910         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37911         (install-others): Remove variable setting.
37912         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37913
37914 2012-03-08  Richard Henderson  <rth@twiddle.net>
37915
37916         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37917         from macro to inline function; merge with the
37918         !__LIBC_INTERNAL_MATH_INLINES version.
37919         (__ieee754_sqrtf): Likewise.
37920
37921         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37922         to inline function.
37923         (__rintf, __floor, __floorf): Likewise.
37924
37925         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37926         macro to inline function.
37927         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37928
37929         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37930         not <math/math_private.h>.
37931
37932 2012-03-08  David S. Miller  <davem@davemloft.net>
37933
37934         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37935         copyright year.
37936         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37937
37938 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37939
37940         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37941         normalization.
37942         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37943         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37944
37945 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37946
37947         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37948         be defined individually, they must be defined as a block.  Define
37949         S for printing a string instead of hidint the different by using a
37950         macro for adding the 'l'.
37951         * stdio-common/tst-fphex-wide.c: Adjust.
37952
37953 2012-03-07  Marek Polacek  <polacek@redhat.com>
37954
37955         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37956
37957 2012-03-08  Marek Polacek  <polacek@redhat.com>
37958
37959         [BZ #13806]
37960         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37961         * stdio-common/tst-fphex.c: Define a few macros to make the
37962         test reusable.  Use them.
37963         * stdio-common/tst-fphex-wide.c: New file.
37964
37965 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37966
37967         [BZ #6911]
37968         * manual/macros.texi (gnusystems): New macro.
37969         (nongnusystems): Likewise.
37970         (gnulinuxhurdsystems): Likewise.
37971         (gnuhurdsystems): Likewise..
37972         (gnulinuxsystems): Likewise.
37973         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37974         variants of the GNU system, not "GNU system".
37975         * manual/conf.texi: Likewise.
37976         * manual/errno.texi: Likewise.  Update example of errno macro
37977         expansion.
37978         * manual/filesys.texi: Likewise.
37979         (getumask): Document as specific to GNU/Hurd.
37980         * manual/install.texi: Likewise.  Reword some references to
37981         GNU/Linux.
37982         * manual/intro.texi: Likewise.
37983         * manual/io.texi: Likewise.
37984         (File Name Portability): Detail which constraints are inapplicable
37985         to all GNU systems and which are only inapplicable to GNU/Hurd.
37986         * manual/job.texi: Likewise.
37987         * manual/llio.texi: Likewise.
37988         (O_NOCTTY): Document as present on GNU/Linux.
37989         * manual/maint.texi: Likewise.
37990         * manual/memory.texi: Likewise.
37991         * manual/pattern.texi: Likewise.
37992         * manual/pipe.texi: Likewise.
37993         * manual/process.texi: Likewise.
37994         * manual/resource.texi: Likewise.
37995         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37996         child on GNU/Hurd.
37997         * manual/setjmp.texi: Likewise.
37998         * manual/signal.texi: Likewise.
37999         * manual/startup.texi: Likewise.
38000         * manual/stdio.texi: Likewise.
38001         * manual/terminal.texi: Likewise.
38002         (ONLCR): Document as POSIX.
38003         (OXTABS): Document availability on GNU/Linux as XTABS.
38004         (ONOEOT): Document availability separately from other bits.
38005         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
38006         * manual/time.texi: Likewise.
38007         * manual/users.texi: Likewise.
38008         * INSTALL: Regenerated.
38009         * sysdeps/gnu/errlist.c: Regenerated.
38010
38011         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
38012         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
38013         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
38014         puts.
38015         * configure: Regenerated.
38016
38017 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
38018
38019         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
38020         default includes instead of AC_HEADER_CHECK.
38021         * sysdeps/i386/configure: Regenerated.
38022
38023         [BZ #10716]
38024         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
38025         * math/s_cacoshf.c (__cacoshf): Likewise.
38026         * math/s_cacoshl.c (__cacoshl): Likewise.
38027         * math/s_casinh.c (__casinh): Set signs of result from argument.
38028         * math/s_casinhf.c (__casinhf): Likewise.
38029         * math/s_casinhl.c (__casinhl): Likewise.
38030         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
38031         (casinh_test): Add more tests.
38032         * sysdeps/i386/fpu/libm-test-ulps: Update.
38033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38034
38035 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
38036
38037         * po/zh_TW.po: Update from translation team.
38038
38039         * login/Makefile (distribute): Remove variable.
38040         * catgets/Makefile: Likewise.
38041         * mach/Makefile: Likewise.
38042         * malloc/Makefile: Likewise.
38043         * misc/Makefile: Likewise.
38044         * iconv/Makefile: Likewise.
38045         * nscd/Makefile: Likewise.
38046         * hurd/Makefile: Likewise.
38047         * manual/Makefile: Likewise.
38048         * locale/Makefile: Likewise.
38049         * intl/Makefile: Likewise.
38050         * conform/Makefile: Likewise.
38051         * nss/Makefile: Likewise.
38052         * time/Makefile: Likewise.
38053         * soft-fp/Makefile: Likewise.
38054         * dirent/Makefile: Likewise.
38055         * gmon/Makefile: Likewise.
38056         * po/Makefile: Likewise.
38057         * rt/Makefile: Likewise.
38058         * socket/Makefile: Likewise.
38059         * math/Makefile: Likewise.
38060         * signal/Makefile: Likewise.
38061         * debug/Makefile: Likewise.
38062         * elf/Makefile: Likewise.
38063         * timezone/Makefile: Likewise.
38064         * stdlib/Makefile: Likewise.
38065         * iconvdata/Makefile: Likewise.
38066         * sunrpc/Makefile: Likewise.
38067         * io/Makefile: Likewise.
38068         * argp/Makefile: Likewise.
38069         * inet/Makefile: Likewise.
38070         * hesiod/Makefile: Likewise.
38071         * grp/Makefile: Likewise.
38072         * csu/Makefile: Likewise.
38073         * wctype/Makefile: Likewise.
38074         * crypt/Makefile: Likewise.
38075         * libio/Makefile: Likewise.
38076         * string/Makefile: Likewise.
38077         * nis/Makefile: Likewise.
38078         * resolv/Makefile: Likewise.
38079         * stdio-common/Makefile: Likewise.
38080         * wcsmbs/Makefile: Likewise.
38081         * dlfcn/Makefile: Likewise.
38082         * posix/Makefile: Likewise.
38083
38084         [BZ #6959]
38085         * timezone/Makefile: Don't install timezone files, just the programs
38086         and scripts.
38087
38088 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38089
38090         * nss/databases.def: Add missing gshadow entry.
38091
38092         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38093
38094 2012-03-06  Marek Polacek  <polacek@redhat.com>
38095
38096         [BZ #13726]
38097         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38098         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38099         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38100         * stdio-common/tst-long-dbl-fphex.c: New file.
38101
38102 2012-03-06  David S. Miller  <davem@davemloft.net>
38103
38104         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38105         (set_obp_int): New function.
38106         (get_obp_int): New function.
38107         (__get_clockfreq_via_dev_openprom): Likewise.
38108         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38109         Avoid unused variable warnings on 'val' and use builtin_expect.
38110         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38111         __builtin_expect.
38112         (INLINE_CLONE_SYSCALL): Likewise.
38113
38114 2012-03-05  David S. Miller  <davem@davemloft.net>
38115
38116         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38117
38118 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38119
38120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38121
38122         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38123         only for |x| >= 40.
38124         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38125
38126 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38127
38128         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38129         Replace gettimeofday with __vdso_gettimeofday.
38130
38131         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38132         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38133         __vdso_clock_gettime and __vdso_getcpu.
38134
38135         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38136         time with __vdso_time.
38137
38138 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38139
38140         * manual/lang.texi (size_t): Note types to which size_t may be
38141         equivalent with the GNU C Library, but do not describe when
38142         differences between them are significant.
38143
38144 2012-03-05  Andreas Jaeger  <aj@suse.de>
38145
38146         * sysdeps/i386/fpu/libm-test-ulps: Update.
38147
38148 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38149
38150         [BZ #3976]
38151         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38152         (__ieee754_pow): Save and restore rounding mode and use
38153         round-to-nearest for main computations.
38154         * math/libm-test.inc (pow_test_tonearest): New function.
38155         (pow_test_towardzero): Likewise.
38156         (pow_test_downward): Likewise.
38157         (pow_test_upward): Likewise.
38158         (main): Call the new functions.
38159         * sysdeps/i386/fpu/libm-test-ulps: Update.
38160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38161
38162         [BZ #3976]
38163         * math/libm-test.inc (cosh_test_tonearest): New function.
38164         (cosh_test_towardzero): Likewise.
38165         (cosh_test_downward): Likewise.
38166         (cosh_test_upward): Likewise.
38167         (sinh_test_tonearest): Likewise.
38168         (sinh_test_towardzero): Likewise.
38169         (sinh_test_downward): Likewise.
38170         (sinh_test_upward): Likewise.
38171         (main): Call the new functions.
38172         * sysdeps/i386/fpu/libm-test-ulps: Update.
38173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38174
38175 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38176
38177         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38178         default stack guard is set in last bytes.
38179         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38180
38181 2012-03-05  Kees Cook  <keescook@chromium.org>
38182
38183         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38184
38185         [BZ #13656]
38186         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38187         possibly allocate from heap instead of stack.
38188         * stdio-common/bug-vfprintf-nargs.c: New file.
38189         * stdio-common/Makefile (tests): Add nargs overflow test.
38190
38191 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38192
38193         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38194
38195 2012-03-03  Marek Polacek  <polacek@redhat.com>
38196
38197         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38198         * math/math_private.h: Likewise.
38199         * stdlib/tst-strtod.c: Likewise.
38200         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38201         * sysdeps/x86_64/bits/atomic.h: Likewise.
38202
38203 2012-03-02  David S. Miller  <davem@davemloft.net>
38204
38205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38208         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38209         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38210         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38211         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38212         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38213
38214 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38215
38216         [BZ #13792]
38217         * manual/examples/README: New file, says the example source files
38218         can be used under GPL>=2.
38219         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38220         line containing just "*/".
38221         * manual/examples/add.c: Add copyright header (GPL>=2).
38222         * manual/examples/argp-ex1.c: Likewise.
38223         * manual/examples/argp-ex2.c: Likewise.
38224         * manual/examples/argp-ex3.c: Likewise.
38225         * manual/examples/argp-ex4.c: Likewise.
38226         * manual/examples/atexit.c: Likewise.
38227         * manual/examples/db.c: Likewise.
38228         * manual/examples/dir.c: Likewise.
38229         * manual/examples/dir2.c: Likewise.
38230         * manual/examples/execinfo.c: Likewise.
38231         * manual/examples/filecli.c: Likewise.
38232         * manual/examples/filesrv.c: Likewise.
38233         * manual/examples/fmtmsgexpl.c: Likewise.
38234         * manual/examples/genpass.c: Likewise.
38235         * manual/examples/inetcli.c: Likewise.
38236         * manual/examples/inetsrv.c: Likewise.
38237         * manual/examples/isockad.c: Likewise.
38238         * manual/examples/longopt.c: Likewise.
38239         * manual/examples/memopen.c: Likewise.
38240         * manual/examples/memstrm.c: Likewise.
38241         * manual/examples/mkfsock.c: Likewise.
38242         * manual/examples/mkisock.c: Likewise.
38243         * manual/examples/mygetpass.c: Likewise.
38244         * manual/examples/pipe.c: Likewise.
38245         * manual/examples/popen.c: Likewise.
38246         * manual/examples/rprintf.c: Likewise.
38247         * manual/examples/search.c: Likewise.
38248         * manual/examples/select.c: Likewise.
38249         * manual/examples/setjmp.c: Likewise.
38250         * manual/examples/sigh1.c: Likewise.
38251         * manual/examples/sigusr.c: Likewise.
38252         * manual/examples/stpcpy.c: Likewise.
38253         * manual/examples/strdupa.c: Likewise.
38254         * manual/examples/strftim.c: Likewise.
38255         * manual/examples/strncat.c: Likewise.
38256         * manual/examples/subopt.c: Likewise.
38257         * manual/examples/swapcontext.c: Likewise.
38258         * manual/examples/termios.c: Likewise.
38259         * manual/examples/testopt.c: Likewise.
38260         * manual/examples/testpass.c: Likewise.
38261         * manual/examples/timeval_subtract.c: Likewise.
38262
38263         [BZ #13792]
38264         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38265         function to ...
38266         * manual/timeval_subtract.c.texi: ... here, new file.
38267
38268 2012-03-02  David S. Miller  <davem@davemloft.net>
38269
38270         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38271
38272 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38273
38274         [BZ #3976]
38275         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38276         (__sin): Save and restore rounding mode and use round-to-nearest
38277         for all computations.
38278         (__cos): Save and restore rounding mode and use round-to-nearest
38279         for all computations.
38280         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38281         <fenv.h>.
38282         (tan): Save and restore rounding mode and use round-to-nearest for
38283         all computations.
38284         * math/libm-test.inc (cos_test_tonearest): New function.
38285         (cos_test_towardzero): Likewise.
38286         (cos_test_downward): Likewise.
38287         (cos_test_upward): Likewise.
38288         (sin_test_tonearest): Likewise.
38289         (sin_test_towardzero): Likewise.
38290         (sin_test_downward): Likewise.
38291         (sin_test_upward): Likewise.
38292         (tan_test_tonearest): Likewise.
38293         (tan_test_towardzero): Likewise.
38294         (tan_test_downward): Likewise.
38295         (tan_test_upward): Likewise.
38296         (main): Call the new functions.
38297         * sysdeps/i386/fpu/libm-test-ulps: Update.
38298         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38299
38300         [BZ #10135]
38301         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38302         small n, then large n, before computing and testing k+n.
38303         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38304         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38305         Likewise.
38306         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38307         Likewise.
38308         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38309         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38310         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38311         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38312         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38313         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38314         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38315         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38316         * math/libm-test.inc (scalbn_test): Add more tests.
38317         (scalbln_test): Likewise.
38318
38319         * manual/filesys.texi (mode_t): Describe constraints on size and
38320         signedness, not exact equivalence to a particular type.
38321         (ino_t): Likewise.
38322         (ino64_t): Likewise.
38323         (dev_t): Likewise.
38324         (nlink_t): Likewise.
38325         (blkcnt_t): Likewise.
38326         (blkcnt64_t): Likewise.
38327         * manual/llio.texi (off_t): Likewise.
38328
38329         [BZ #3976]
38330         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38331         (__ieee754_exp): Save and restore rounding mode and use
38332         round-to-nearest for all computations.
38333         * math/libm-test.inc (exp_test_tonearest): New function.
38334         (exp_test_towardzero): Likewise.
38335         (exp_test_downward): Likewise.
38336         (exp_test_upward): Likewise.
38337         (main): Call the new functions.
38338         * sysdeps/i386/fpu/libm-test-ulps: Update.
38339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38340
38341 2012-03-01  Chris Demetriou  <cgd@google.com>
38342
38343         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38344         have predictable order.
38345
38346 2012-03-01  David S. Miller  <davem@davemloft.net>
38347
38348         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38349
38350         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38351         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38352         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38353         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38354
38355         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38356         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38357         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38358         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38359         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38360         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38361         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38362         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38363         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38364
38365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38366
38367         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38368         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38369         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38370
38371         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38372         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38373         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38374         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38375         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38376         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38377         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38378         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38379         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38380         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38381         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38382         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38383         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38384         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38385         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38386         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38387         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38388         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38389         * sysdeps/sparc/elf/configure: Regenerated.
38390
38391 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38392
38393         * configure.in (AS, LD): Require binutils 2.20 or later.
38394         * configure: Regenerated.
38395         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38396         as required minimum version.
38397         * INSTALL: Regenerated.
38398
38399         [BZ #2541]
38400         [BZ #4108]
38401         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
38402         before squaring exponent.
38403         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
38404         bottom long double and 27 bits of top long double before squaring
38405         exponent.
38406         * math/libm-test.inc (erfc_test): Add more tests.
38407         * sysdeps/i386/fpu/libm-test-ulps: Update.
38408         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38410
38411 2012-03-01  Kai Tietz  <ktietz@redhat.com>
38412
38413         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
38414         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
38415         containing bit-fields.
38416         * soft-fp/extended.h (_FP_UNION_E): Likewise.
38417         * soft-fp/single.h (_FP_UNION_S): Likewise.
38418         * soft-fp/double.h (_FP_UNION_D): Likewise.
38419
38420 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38421
38422         [BZ #13786]
38423         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
38424         not include ../strcmp.S.
38425         [USE_AS_STRNCASECMP_L]: Likewise.
38426         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
38427         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
38428         * sysdeps/i386/i686/multiarch/strncase_l-c.c
38429         (__strncasecmp_l_ia32): Define as alias to
38430         __strncasecmp_l_nonascii.
38431
38432         [BZ #5794]
38433         * math/libm-test.inc (expm1_test): Add test for bug 5794.
38434         * sysdeps/i386/fpu/libm-test-ulps: Update.
38435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38436
38437         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
38438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38439
38440 2012-02-29  Jeff Law  <law@redhat.com>
38441
38442         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38443         out of bounds read.
38444
38445 2012-02-29  Marek Polacek  <polacek@redhat.com>
38446
38447         [BZ #13706]
38448         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38449         * elf/Makefile: Add rules to run tst-unused-dep.out.
38450
38451 2012-02-28  David S. Miller  <davem@davemloft.net>
38452
38453         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38454         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38455         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38456         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38457         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38458         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38459
38460 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38461
38462         * math/libm-test.inc (llround_test): Move one test from
38463         lround_test.  Use TEST_f_L in moved test.
38464         (lround_test): Move misplaced test to llround_test.  Add testcase
38465         from bug 2561.
38466
38467 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38468
38469         * sysdeps/x86_64/fpu/e_expf.S: New file.
38470         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38471
38472 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38473
38474         [BZ #13637]
38475         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38476         of remain_len that may cause incomplete multi-byte character and
38477         false match.
38478         * posix/bug-regex33.c: New file.
38479         * posix/Makefile (tests): Add bug-regex33.
38480
38481 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38482
38483         * manual/macros.texi: New file.
38484         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38485         * manual/libc.texinfo: Include macros.texi.
38486         * manual/creatute.texi: Likewise.
38487         * manual/install.texi: Likewise.
38488         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38489         @glibcadj{} in references to the GNU C Library.
38490         * manual/charset.texi: Likewise.
38491         * manual/conf.texi: Likewise.
38492         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38493         when not using those macros.
38494         * manual/creature.texi: Likewise.
38495         * manual/crypt.texi: Likewise.
38496         * manual/errno.texi: Likewise.
38497         * manual/filesys.texi: Likewise.
38498         * manual/header.texi: Likewise.
38499         * manual/install.texi: Likewise.
38500         * manual/intro.texi: Likewise.
38501         * manual/io.texi: Likewise.
38502         * manual/job.texi: Likewise.
38503         * manual/lang.texi: Likewise.
38504         * manual/libc.texiinfo: Likewise.
38505         * manual/llio.texi: Likewise.
38506         * manual/locale.texi: Likewise.
38507         * manual/maint.texi: Likewise.
38508         * manual/math.texi: Likewise.
38509         * manual/memory.texi: Likewise.
38510         * manual/message.texi: Likewise.
38511         * manual/nss.texi: Likewise.
38512         * manual/pattern.texi: Likewise.
38513         * manual/process.texi: Likewise.
38514         * manual/resource.texi: Likewise.
38515         * manual/search.texi: Likewise.
38516         * manual/setjmp.texi: Likewise.
38517         * manual/signal.texi: Likewise.
38518         * manual/socket.texi: Likewise.
38519         * manual/startup.texi: Likewise.
38520         * manual/stdio.texi: Likewise.
38521         * manual/string.texi: Likewise.
38522         * manual/sysinfo.texi: Likewise.
38523         * manual/syslog.texi: Likewise.
38524         * manual/terminal.texi: Likewise.
38525         * manual/time.texi: Likewise.
38526         * manual/users.texi: Likewise.
38527         * INSTALL: Regenerated.
38528         * NOTES: Regenerated.
38529         * sysdeps/gnu/errlist.c: Regenerated.
38530
38531 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38532
38533         * include/dirent.h: Include <dirstream.h> before
38534         <dirent/dirent.h>.
38535
38536 2012-02-28  David S. Miller  <davem@davemloft.net>
38537
38538         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38539         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38540         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38541         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38542
38543 2012-02-27  David S. Miller  <davem@davemloft.net>
38544
38545         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38546         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38547         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38548         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38549
38550         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38551         frame pointer instead of stack pointer relative arg slot.
38552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38553         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38554         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38555
38556 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38557
38558         [BZ #3992]
38559         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38560
38561 2012-02-27  David S. Miller  <davem@davemloft.net>
38562
38563         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38564         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38565         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38566         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38567         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38568         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38569         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38570         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38571
38572 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38573
38574         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38575         later.  Allow versions 5-9.
38576         * configure: Regenerated.
38577         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38578         required minimum version and 4.6 as recommended version.  Do not
38579         mention bugs in GCC 2.7 and 2.8.
38580         * INSTALL: Regenerated.
38581
38582 2012-02-27  David S. Miller  <davem@davemloft.net>
38583
38584         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38585         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38586         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38587         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38588         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38589         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38590         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38591         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38592
38593         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38594         manipulate bits before adding and subtracting TWO112[sx].
38595         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38596
38597 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38598
38599         [BZ #13775]
38600         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38601         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38602         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38603         being in POSIX, because they are in 1003.1-2008.
38604
38605         * rt/tst-aio.c: Include <fcntl.h>.
38606         * rt/tst-aio7.c: Likewise.
38607         * rt/tst-aio64.c: Likewise.
38608
38609         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38610
38611 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38612
38613         * manual/install.texi (--with-headers): Describe headers as
38614         interface headers, not private headers.
38615         (Specific advice for GNU/Linux systems): Describe use of headers
38616         from "make headers_install", not private headers from older
38617         kernels.
38618         * INSTALL: Regenerated.
38619         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38620         Change to 2.6.19.
38621         * sysdeps/unix/sysv/linux/configure: Regenerated.
38622
38623         * manual/llio.texi (fclean): Remove documentation.
38624
38625         * manual/Makefile (libc-texi-generated): New variable.  Include
38626         version.texi.
38627         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38628         $(libc-texi-generated), not duplicated list of files.
38629         (version.texi, stamp-version): New rules.
38630         (realclean): Remove $(libc-texi-generated), not individual files
38631         from that list.  Do not remove dir-add.texinfo.
38632         * manual/libc.texinfo: Comment out uses of edition numbers and
38633         references to printed manual.  Remove last-updated dates.
38634         (EDITION): Comment out.
38635         (ISBN): Likewise.
38636         (VERSION, UPDATED): Remove.
38637         (version.texi): Include.
38638
38639 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38640
38641         * sysdeps/posix/spawni.c: Include <signal.h>.
38642         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38643         * sysdeps/pthread/aio_fsync.c: Likewise.
38644
38645 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38646
38647         * conform/Makefile (tests): Run only when not cross-compiling and
38648         when fast-check is not defined.
38649
38650         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38651         * conform/data/limits.h-data: Fixes for POSIX2008.
38652         * conform/run-conformtest.sh: Run all tests.
38653         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38654         headers.
38655         * include/bits/dlfcn.h: Likewise.
38656         * include/langinfo.h: Likewise.
38657         * include/monetary.h: Likewise.
38658         * include/sys/poll.h: Likewise.
38659
38660         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38661         for __USE_GNU.
38662         * posix/spawn.h: Define __need_sigset_t.
38663         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38664         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38665         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38666         to get sigevent_t only.
38667         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38668         only for __USE_GNU.
38669         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38670         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38671         process_vm_writev only for __USE_GNU.
38672         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38673
38674         * conform/Makefile: For now ignore errors from run-conformtest.
38675         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38676         POSIX to avoid namespace pollution.  Don't prepend headers.
38677         * conform/data/aio.h-data: Fixes for POSIX testing.
38678         * conform/data/fcntl.h-data: Likewise.
38679         * conform/data/glob.h-data: Likewise.
38680         * conform/data/grp.h-data: Likewise.
38681         * conform/data/pthread.h-data: Likewise.
38682         * conform/data/pwd.h-data: Likewise.
38683         * conform/data/signal.h-data: Likewise.
38684         * conform/data/spawn.h-data: Likewise.
38685         * conform/data/stdio.h-data: Likewise.
38686         * conform/data/stdlib.h-data: Likewise.
38687         * conform/data/stropts.h-data: Likewise.
38688         * conform/data/sys/mman.h-data: Likewise.
38689         * conform/data/sys/stat.h-data: Likewise.
38690         * conform/data/sys/types.h-data: Likewise.
38691         * conform/data/sys/wait.h-data: Likewise.
38692         * conform/data/time.h-data: Likewise.
38693         * conform/data/unistd.h-data: Likewise.
38694         * conform/data/utime.h-data: Likewise.
38695
38696         * io/sys/stat.h: fchmod was always in POSIX.
38697         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38698         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38699         * rt/aio.h: Define __need_timespec before including <time.h>.
38700         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38701         struct.  Add forward declaration of pthread_attr_t and use it in
38702         sigevent.
38703         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38704         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38705         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38706         always remove CLK_TCK definition.
38707
38708 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38709
38710         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38711
38712 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38713
38714         * conform/run-conformtest.sh: New file.
38715         * conform/Makefile: Run run-conformtest for tests.
38716         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38717         support.
38718
38719         * conform/data/uchar.h-data: New file.
38720         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38721         * conform/data/arpa/inet.h-data: Likewise.
38722         * conform/data/assert.h-data: Likewise.
38723         * conform/data/complex.h-data: Likewise.
38724         * conform/data/cpio.h-data: Likewise.
38725         * conform/data/ctype.h-data: Likewise.
38726         * conform/data/dirent.h-data: Likewise.
38727         * conform/data/dlfcn.h-data: Likewise.
38728         * conform/data/errno.h-data: Likewise.
38729         * conform/data/fcntl.h-data: Likewise.
38730         * conform/data/float.h-data: Likewise.
38731         * conform/data/fmtmsg.h-data: Likewise.
38732         * conform/data/fnmatch.h-data: Likewise.
38733         * conform/data/ftw.h-data: Likewise.
38734         * conform/data/glob.h-data: Likewise.
38735         * conform/data/grp.h-data: Likewise.
38736         * conform/data/iconv.h-data: Likewise.
38737         * conform/data/inttypes.h-data: Likewise.
38738         * conform/data/langinfo.h-data: Likewise.
38739         * conform/data/libgen.h-data: Likewise.
38740         * conform/data/limits.h-data: Likewise.
38741         * conform/data/locale.h-data: Likewise.
38742         * conform/data/math.h-data: Likewise.
38743         * conform/data/monetary.h-data: Likewise.
38744         * conform/data/mqueue.h-data: Likewise.
38745         * conform/data/ndbm.h-data: Likewise.
38746         * conform/data/net/if.h-data: Likewise.
38747         * conform/data/netdb.h-data: Likewise.
38748         * conform/data/netinet/in.h-data: Likewise.
38749         * conform/data/nl_types.h-data: Likewise.
38750         * conform/data/poll.h-data: Likewise.
38751         * conform/data/pthread.h-data: Likewise.
38752         * conform/data/pwd.h-data: Likewise.
38753         * conform/data/regex.h-data: Likewise.
38754         * conform/data/sched.h-data: Likewise.
38755         * conform/data/search.h-data: Likewise.
38756         * conform/data/semaphore.h-data: Likewise.
38757         * conform/data/setjmp.h-data: Likewise.
38758         * conform/data/signal.h-data: Likewise.
38759         * conform/data/spawn.h-data: Likewise.
38760         * conform/data/stdarg.h-data: Likewise.
38761         * conform/data/stdio.h-data: Likewise.
38762         * conform/data/stdlib.h-data: Likewise.
38763         * conform/data/string.h-data: Likewise.
38764         * conform/data/strings.h-data: Likewise.
38765         * conform/data/stropts.h-data: Likewise.
38766         * conform/data/sys/ipc.h-data: Likewise.
38767         * conform/data/sys/mman.h-data: Likewise.
38768         * conform/data/sys/msg.h-data: Likewise.
38769         * conform/data/sys/resource.h-data: Likewise.
38770         * conform/data/sys/select.h-data: Likewise.
38771         * conform/data/sys/sem.h-data: Likewise.
38772         * conform/data/sys/shm.h-data: Likewise.
38773         * conform/data/sys/socket.h-data: Likewise.
38774         * conform/data/sys/stat.h-data: Likewise.
38775         * conform/data/sys/statvfs.h-data: Likewise.
38776         * conform/data/sys/time.h-data: Likewise.
38777         * conform/data/sys/timeb.h-data: Likewise.
38778         * conform/data/sys/times.h-data: Likewise.
38779         * conform/data/sys/types.h-data: Likewise.
38780         * conform/data/sys/uio.h-data: Likewise.
38781         * conform/data/sys/un.h-data: Likewise.
38782         * conform/data/sys/utsname.h-data: Likewise.
38783         * conform/data/sys/wait.h-data: Likewise.
38784         * conform/data/syslog.h-data: Likewise.
38785         * conform/data/tar.h-data: Likewise.
38786         * conform/data/termios.h-data: Likewise.
38787         * conform/data/utime.h-data: Likewise.
38788         * conform/data/utmpx.h-data: Likewise.
38789         * conform/data/varargs.h-data: Likewise.
38790         * conform/data/wchar.h-data: Likewise.
38791         * conform/data/wctype.h-data: Likewise.
38792         * conform/data/wordexp.h-data: Likewise.
38793
38794         * include/stropts.h: New file.
38795         * include/uchar.h: New file.
38796         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38797         * include/assert.h: Likewise.
38798         * include/ctype.h: Likewise.
38799         * include/dirent.h: Likewise.
38800         * include/dlfcn.h: Likewise.
38801         * include/fcntl.h: Likewise.
38802         * include/fnmatch.h: Likewise.
38803         * include/glob.h: Likewise.
38804         * include/grp.h: Likewise.
38805         * include/libio.h: Likewise.
38806         * include/locale.h: Likewise.
38807         * include/math.h: Likewise.
38808         * include/net/if.h: Likewise.
38809         * include/netdb.h: Likewise.
38810         * include/netinet/in.h: Likewise.
38811         * include/pthread.h: Likewise.
38812         * include/pwd.h: Likewise.
38813         * include/regex.h: Likewise.
38814         * include/sched.h: Likewise.
38815         * include/search.h: Likewise.
38816         * include/setjmp.h: Likewise.
38817         * include/signal.h: Likewise.
38818         * include/stdio.h: Likewise.
38819         * include/stdlib.h: Likewise.
38820         * include/string.h: Likewise.
38821         * include/sys/cdefs.h: Likewise.
38822         * include/sys/mman.h: Likewise.
38823         * include/sys/msg.h: Likewise.
38824         * include/sys/resource.h: Likewise.
38825         * include/sys/select.h: Likewise.
38826         * include/sys/socket.h: Likewise.
38827         * include/sys/stat.h: Likewise.
38828         * include/sys/statvfs.h: Likewise.
38829         * include/sys/time.h: Likewise.
38830         * include/sys/times.h: Likewise.
38831         * include/sys/uio.h: Likewise.
38832         * include/sys/utsname.h: Likewise.
38833         * include/sys/wait.h: Likewise.
38834         * include/termios.h: Likewise.
38835         * include/time.h: Likewise.
38836         * include/ulimit.h: Likewise.
38837         * include/unistd.h: Likewise.
38838         * include/utime.h: Likewise.
38839         * include/wchar.h: Likewise.
38840         * include/wctype.h: Likewise.
38841         * include/wordexp.h: Likewise.
38842
38843         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38844
38845         * time/time.h: TIME_UTC must be a macro.
38846         Make timespec_get available for ISO C11 only as well.
38847
38848 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38849
38850         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38851         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38852
38853 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38854
38855         * configure.in: Use -o not -a in test for unsupported multi-arch.
38856
38857 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38858
38859         * manual/texinfo.tex: Update to version 2012-01-19.16.
38860
38861 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38862
38863         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38864
38865 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38866
38867         [BZ #13738]
38868         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38869         * manual/fdl-1.3.texi: New file.
38870         * manual/fdl-1.1.texi: File removed.
38871
38872         [BZ #13738]
38873         * manual/libc.texinfo (FDL_VERSION): New @set.
38874         Use it for mention of FDL in cover text.
38875         (Documentation License): Use it in @include file name.
38876
38877 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38878             Roland McGrath  <roland@hack.frob.com>
38879
38880         [BZ #5461]
38881         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38882         (not LONG_LONG_MAX and LONG_LONG_MIN.
38883         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38884         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38885         name.
38886         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38887
38888 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38889
38890         [BZ #2547]
38891         [BZ #11365]
38892         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38893         manipulate bits before adding and subtracting TWO23[sx].
38894         * math/libm-test.inc (nearbyint_test): Add more tests.
38895
38896 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38897
38898         [BZ #2548]
38899         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38900         bits before adding and subtracting TWO23[sx].
38901         * math/libm-test.inc (rint_test): Add more tests.
38902         (rint_test_tonearest): Likewise.
38903         (rint_test_towardzero): Likewise.
38904         (rint_test_downward): Likewise.
38905         (rint_test_upward: Likewise.
38906
38907 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38908
38909         [BZ #10110]
38910         * include/stdc-predef.h: New file.  Extracted from features.h.
38911         * include/features.h: Include stdc-predef.h.
38912         * Makefile (headers): Add stdc-predef.h.
38913         * CONFORMANCE (Compiler limitations): Update.
38914
38915 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38916
38917         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38918
38919 2012-02-21  David S. Miller  <davem@davemloft.net>
38920
38921         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38922         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38923
38924 2012-02-20  David S. Miller  <davem@davemloft.net>
38925
38926         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38927         using a normal save/restore sequence, rather than allocating a
38928         dummy stack frame just to store a frame pointer and restore.
38929         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38930
38931 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38932
38933         * manual/install.texi: Fix stray word in line-wrapped comment.
38934
38935 2012-02-20  David S. Miller  <davem@davemloft.net>
38936
38937         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38938         both binutils and gcc support GOTDATA.
38939
38940         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38941         "rd %pc" in the PIC register setup sequences.
38942
38943         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38944         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38945         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38946         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38947         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38948         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38949         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38950         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38951         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38952         (SYSCALL_ERROR_HANDLER): Likewise.
38953         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38954         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38955         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38956         (SYSCALL_ERROR_HANDLER): Likewise.
38957
38958         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38959         (HAVE_GCC_GOTDATA): New.
38960         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38961         relocation support in both binutils and gcc.
38962         * sysdeps/sparc/elf/configure: Regenerate.
38963
38964         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38965         * sysdeps/sparc/sparc32/elf/configure: Delete.
38966         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38967         * sysdeps/sparc/sparc64/elf/configure: Delete.
38968         * sysdeps/sparc/elf/configure.in: New file.
38969         * sysdeps/sparc/elf/configure: Generate.
38970
38971         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38972         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38973         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38974         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38975         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38976
38977 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38978
38979         * manual/install.texi: Do not mention specific glibc version
38980         numbers.
38981         * manual/libc.texinfo (VERSION, UPDATED): Update.
38982         (@copying): Use @copyright{} and range of years.
38983
38984 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38985
38986         [BZ #13695]
38987         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38988         [crti.S not in sysdirs] (generated): Do not append.
38989         [crti.S not in sysdirs] (omit-deps): Likewise.
38990         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38991         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38992         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38993         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38994         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38995         Likewise.
38996         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38997         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38998         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38999         * csu/defs.awk: Remove file.
39000         * sysdeps/generic/initfini.c: Likewise.
39001         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
39002         variable.
39003         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
39004         Likewise.
39005
39006 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39007
39008         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
39009         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
39010         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
39011         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
39012         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39013         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
39014         <bits/epoll.h>.
39015         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
39016         (__EPOLL_PACKED): Define to empty if not defined by
39017         <bits/epoll.h>.
39018         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
39019         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39020         bits/epoll.h.
39021
39022 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39023
39024         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
39025         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
39026         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
39027         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
39028         <bits/timerfd.h>.
39029         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
39030         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39031         bits/timerfd.h.
39032
39033 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39034
39035         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
39036         in C locale.
39037         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39038         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
39039         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
39040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39041
39042 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
39043
39044         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39045         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39046
39047 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
39048
39049         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
39050         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
39051         defined.
39052         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
39053         Likewise.
39054         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
39055         entry for 2.16.
39056
39057 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39058
39059         * math/w_acos.c: Use non-signaling floating-point comparisons.
39060         * math/w_acosf.c: Likewise.
39061         * math/w_acosh.c: Likewise.
39062         * math/w_acoshf.c: Likewise.
39063         * math/w_acoshl.c: Likewise.
39064         * math/w_acosl.c: Likewise.
39065         * math/w_asin.c: Likewise.
39066         * math/w_asinf.c: Likewise.
39067         * math/w_asinl.c: Likewise.
39068         * math/w_atanh.c: Likewise.
39069         * math/w_atanhf.c: Likewise.
39070         * math/w_atanhl.c: Likewise.
39071         * math/w_exp2.c: Likewise.
39072         * math/w_exp2f.c: Likewise.
39073         * math/w_exp2l.c: Likewise.
39074         * math/w_j0.c: Likewise.
39075         * math/w_j0f.c: Likewise.
39076         * math/w_j0l.c: Likewise.
39077         * math/w_j1.c: Likewise.
39078         * math/w_j1f.c: Likewise.
39079         * math/w_j1l.c: Likewise.
39080         * math/w_jn.c: Likewise.
39081         * math/w_jnf.c: Likewise.
39082         * math/w_log.c: Likewise.
39083         * math/w_log10.c: Likewise.
39084         * math/w_log10f.c: Likewise.
39085         * math/w_log10l.c: Likewise.
39086         * math/w_log2.c: Likewise.
39087         * math/w_log2f.c: Likewise.
39088         * math/w_log2l.c: Likewise.
39089         * math/w_logf.c: Likewise.
39090         * math/w_logl.c: Likewise.
39091         * math/w_sqrt.c: Likewise.
39092         * math/w_sqrtf.c: Likewise.
39093         * math/w_sqrtl.c: Likewise.
39094         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39095         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39096         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39097         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39098         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39099
39100 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39101
39102         [BZ #9739]
39103         * manual/string.texi (strnlen): Use correct parameter name in
39104         equivalent expression.
39105
39106 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39107
39108         [BZ #11174]
39109         * manual/users.texi (seteuid): Consistently use neweuid for
39110         argument name.
39111
39112 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39113
39114         [BZ #13704]
39115         * manual/nss.texi (Services in the NSS configuration): Correct
39116         list of services in example configuration file.
39117
39118 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39119
39120         [BZ #11322]
39121         * manual/arith.texi: Remove statements about negative zero
39122         behaving identically to zero.
39123
39124 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39125
39126         [BZ #5993]
39127         * manual/install.texi: Do not document upgrading from libc5.
39128
39129 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39130
39131         [BZ #4596]
39132         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39133
39134 2012-02-18  David S. Miller  <davem@davemloft.net>
39135
39136         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39137         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39138         %o7 across the call.
39139         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39140         instead.
39141         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39142         SETUP_PIC_REG_LEAF.
39143         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39144         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39145         * sysdeps/sparc/crtn.S: Likewise.
39146
39147 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39148
39149         * aout/Makefile: Remove.
39150
39151 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39152
39153         [BZ #13058]
39154         * manual/examples/argp-ex1.c (main): Format definition in GNU
39155         style.
39156         * manual/examples/argp-ex2.c (main): Likewise.
39157         * manual/examples/argp-ex3.c (main): Likewise.
39158         * manual/examples/argp-ex4.c (main): Likewise.
39159         * manual/examples/longopt.c (main): Use new-style prototype
39160         definition.
39161         * manual/examples/strncat.c (main): Specify return type and use
39162         (void) for arguments.
39163         * manual/examples/subopt.c (main): Use char **argv argument.
39164
39165 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39166
39167         [BZ #5077]
39168         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39169         rounding modes.
39170
39171 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39172
39173         [BZ #6907]
39174         * manual/string.texi (strchr): Change when strchrnul is
39175         recommended.
39176
39177 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39178
39179         [BZ #174]
39180         * manual/locale.texi (setlocale): Document LOCPATH.
39181
39182 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39183
39184         [BZ #10210]
39185         * manual/process.texi (execle): Move @dots{} before last argument.
39186
39187 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39188
39189         [BZ #12047]
39190         * manual/charset.texi (Generic Charset Conversion): Fix typo
39191         (LC_TYPE -> LC_CTYPE).
39192
39193 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39194
39195         [BZ #5805]
39196         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39197         (scalbnf): Likewise.
39198         (scalbnl): Likewise.
39199         (scalbln): Likewise.
39200         (scalblnf): Likewise.
39201         (scalblnl): Likewise.
39202         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39203         (vwarnx): Likewise.
39204         (verr): Likewise.
39205         (verrx): Likewise.
39206         * manual/filesys.texi (telldir): Use braces around return type.
39207         * manual/llio.texi (mmap): Add space after comma.
39208         (mmap64): Likewise.
39209         * manual/math.texi (jn): Use @var{} on parameter names.
39210         (jnf): Likewise.
39211         (jnl): Likewise.
39212         (yn): Likewise.
39213         (ynf): Likewise.
39214         (ynl): Likewise.
39215         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39216         line.
39217         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39218         "...".
39219         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39220         (sched_get_priority_max): Likewise.
39221         * manual/signal.texi (sigvec): Add space after comma.
39222         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39223         names.
39224         (if_indextoname): Likewise.
39225         (if_freenameindex): Likewise.
39226         (sendto): Use ',' instead of '.' in prototype.
39227         * manual/startup.texi (syscall): Use @dots{} instead of literal
39228         "...".
39229         * manual/stdio.texi (__fpending): Separate initial words of
39230         paragraph from @deftypefun line.
39231         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39232         "...".
39233         (vsyslog): Use @var{} on parameter names.
39234         * manual/terminal.texi (stty): Use @var{} on parameter names.
39235         * manual/users.texi (getutmp): Use @var{} on parameter names.
39236         (getutmpx): Likewise.
39237
39238 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39239
39240         [BZ #6884]
39241         * manual/stdio.texi (fopen): Fix typos in description of
39242         ",ccs=STRING".
39243
39244 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39245
39246         [BZ #4026]
39247         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39248         get clock_id definition.
39249
39250 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39251
39252         [BZ #4822]
39253         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39254         (madvise): Cast every argument to void on its own.
39255
39256 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39257
39258         [BZ #9902]
39259         * manual/startup.texi (Exit Status): Fix typo.
39260
39261 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39262
39263         [BZ #10140]
39264         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39265         * manual/examples/argp-ex2.c: Likewise.
39266         * manual/examples/argp-ex3.c: Likewise.
39267
39268 2012-02-16  Richard Henderson  <rth@redhat.com>
39269
39270         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39271         * sysdeps/s390/s390-32/initfini.c: Remove.
39272         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39273         * sysdeps/s390/s390-64/initfini.c: Remove.
39274
39275 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39276
39277         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39278         compiler output for sysdeps/generic/initfini.c.
39279         * sysdeps/sh/elf/initfini.c: Remove file.
39280
39281 2012-02-16  David S. Miller  <davem@davemloft.net>
39282
39283         [BZ #11494]
39284         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39285
39286         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39287         * sysdeps/sparc/crti.S: New file.
39288         * sysdeps/sparc/crtn.S: New file.
39289         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39290         * sysdeps/sparc/sparc64/Makefile: Likewise.
39291
39292 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39293
39294         [BZ #3335]
39295         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39296
39297 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39298
39299         [BZ #4822]
39300         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39301
39302         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39303         (write, read, close): Likewise.
39304         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39305
39306 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39307
39308         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39309         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39310         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39311         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39312         <bits/signalfd.h>.
39313         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39314         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39315         bits/signalfd.h.
39316
39317 2012-02-14  Marek Polacek  <polacek@redhat.com>
39318
39319         * sysdeps/x86_64/crti.S: New file.
39320         * sysdeps/x86_64/crtn.S: New file.
39321         * sysdeps/x86_64/elf/initfini.c: Remove file.
39322
39323 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39324
39325         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39326         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39327         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39328         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39329         <bits/inotify.h>.
39330         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39331         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39332         bits/inotify.h.
39333
39334 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39335
39336         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39337         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39338         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39339         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39340         <bits/eventfd.h>.
39341         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39342         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39343         bits/eventfd.h.
39344
39345 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39346
39347         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39348         __feraiseexcept instead of feraiseexcept.
39349
39350         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39351         nanosleep invocations.
39352         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39353         strings, and add error checking for a nanosleep invocations.
39354
39355 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39356
39357         Replace FSF snail mail address with URLs, as per GNU coding standards.
39358         Most of the snail mail addresses were wrong anyway, and omitting
39359         them makes the source code easier to maintain.  Almost all of the
39360         changes are to license notices and to locale LC_IDENTIFICATION
39361         addresses, except for this one:
39362         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39363         not its snail mail address.
39364
39365 2012-02-09  Richard Henderson  <rth@twiddle.net>
39366
39367         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39368         of kernel-features.h.
39369
39370         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39371
39372 2012-02-08  Marek Polacek  <polacek@redhat.com>
39373
39374         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39375         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39376         * sysdeps/gnu/_G_config.h: Likewise.
39377         * sysdeps/generic/_G_config.h: Likewise.
39378
39379 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39380
39381         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39382         tests.
39383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39384
39385         * sysdeps/powerpc/powerpc32/crti.S: New file.
39386         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39387         * sysdeps/powerpc/powerpc64/crti.S: New file.
39388         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39389
39390         * Makeconfig (have-initfini): Don't set.
39391         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39392         * configure.in (nopic_initfini): Don't substitute.
39393         * config.h.in (HAVE_INITFINI): Don't #undef.
39394         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39395         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39396
39397 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39398
39399         Support crti.S and crtn.S provided directly by architectures.
39400         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
39401         [crti.S in sysdirs] (omit-deps): Likewise.
39402         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
39403         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
39404         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
39405         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
39406         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
39407         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
39408         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
39409         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
39410         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
39411         compiler output for sysdeps/generic/initfini.c.
39412         * sysdeps/i386/elf/Makefile: Remove file.
39413         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
39414
39415 2012-02-07  Marek Polacek  <polacek@redhat.com>
39416
39417         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
39418         * sysdeps/gnu/_G_config.h: Likewise.
39419         * sysdeps/mach/hurd/_G_config.h: Likewise.
39420
39421 2012-02-07  Marek Polacek  <polacek@redhat.com>
39422
39423         * math/Makefile (tests): Add tst-CMPLX2.
39424         * math/tst-CMPLX2.c: New file.
39425
39426 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
39427
39428         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39429
39430         * math/libm-test.inc (jn_test): Add missing L suffix.
39431
39432 2012-02-06  Marek Polacek  <polacek@redhat.com>
39433
39434         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
39435         * sysdeps/i386/fpu/e_powf.S: Likewise.
39436         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39437         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
39438         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39439         * sysdeps/i386/fpu/e_pow.S: Likewise.
39440         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39441         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39442         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39443         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39444         * sysdeps/i386/fpu/e_log2.S: Likewise.
39445         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39446         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39447         * sysdeps/i386/fpu/e_powl.S: Likewise.
39448         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39449         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39450         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39451         * sysdeps/i386/fpu/e_logl.S: Likewise.
39452         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39453         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39454         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39455         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39456         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39457         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39458         * sysdeps/i386/fpu/e_log.S: Likewise.
39459         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39460         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39461         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39462         * sysdeps/i386/fpu/e_logf.S: Likewise.
39463         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39464         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39465         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39466         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39467         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39468         * sysdeps/i386/fpu/e_log10.S: Likewise.
39469         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39470         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39471         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39472         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39473         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39474         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39475         * sysdeps/i386/asm-syntax.h: Likewise.
39476         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39477         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39478         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39479         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39480         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39481         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39482         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39483         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39484         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39485         * sysdeps/powerpc/sysdep.h: Likewise.
39486         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39487         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39488
39489 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39490
39491         [BZ #411]
39492         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39493
39494 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39495
39496         * sysdeps/i386/sysdep.h: Include <features.h>.
39497         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39498         version.
39499
39500 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39501
39502         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39503         Define.
39504         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39505         LOAD_PIC_REG_STR.
39506
39507 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39508
39509         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39510         (SETUP_PIC_REG): Use GET_PC_THUNK.
39511         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39512         macro.
39513
39514 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39515
39516         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39517         for non-PIC compilation.
39518         (SETUP_PIC_REG): Add .p2align directive.
39519         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39520         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39521         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39522         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39523         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39524         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39525         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39526         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39527         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39528         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39529         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39530         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39531         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39532         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39533         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39534         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39535         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39536         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39537         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39538         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39539         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39540         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39541         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39542         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39543         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39544         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39545         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39546         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39547         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39548         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39549         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39550         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39551         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39552         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39553         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39554         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39555         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39556         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39557         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39558         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39559         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39560
39561 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39562
39563         * math/tst-CMPLX.c: Include <stdio.h>.
39564
39565 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39566
39567         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39568         float.
39569         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39570         * sysdeps/sparc/bits/mathdef.h: Likewise.
39571
39572 2012-01-31  Marek Polacek  <polacek@redhat.com>
39573
39574         * libio/libio.h: Don't define _PARAMS.
39575         * locale/programs/config.h: Don't define PARAMS.
39576         * stdlib/strtol_l.c: Likewise.
39577         (__strtol_l): Remove PARAMS from the prototype.
39578
39579 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39580
39581         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39582         names.  Just use the correct names.  Remove unnecessary wrapper
39583         functions.
39584         * malloc/arena.c: Likewise.
39585         * malloc/hooks.c: Likewise.
39586
39587         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39588         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39589         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39590
39591 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39592
39593         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39594         into tail calls.
39595         (update_get_addr): New function.
39596         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39597         GET_ADDR_MODULE parameter.
39598
39599 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39600
39601         * crypt/cert.c: Remove __STDC__ conditionals.
39602         * crypt/crypt-entry.c: Likewise.
39603         * crypt/crypt_util.c: Likewise.
39604         * libio/filedoalloc.c: Likewise.
39605         * libio/fileops.c: Likewise.
39606         * libio/genops.c: Likewise.
39607         * libio/iofclose.c: Likewise.
39608         * libio/iofdopen.c: Likewise.
39609         * libio/iofopen.c: Likewise.
39610         * libio/iofopen64.c: Likewise.
39611         * libio/iogetdelim.c: Likewise.
39612         * libio/iopopen.c: Likewise.
39613         * libio/obprintf.c: Likewise.
39614         * libio/oldfileops.c: Likewise.
39615         * libio/oldiofclose.c: Likewise.
39616         * libio/oldiofdopen.c: Likewise.
39617         * libio/oldiofopen.c: Likewise.
39618         * libio/oldiopopen.c: Likewise.
39619         * libio/wfiledoalloc.c: Likewise.
39620         * libio/wgenops.c: Likewise.
39621         * locale/programs/xmalloc.c: Likewise.
39622         * misc/syslog.c: Likewise.
39623         * stdio-common/xbug.c: Likewise.
39624         * string/memchr.c: Likewise.
39625         * string/memcmp.c: Likewise.
39626         * string/memrchr.c: Likewise.
39627         * string/rawmemchr.c: Likewise.
39628         * sysdeps/posix/getcwd.c: Likewise.
39629         * time/strftime_l.c: Likewise.
39630
39631 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39632
39633         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39634         * config.make.in (config-cflags-sse2avx): Define.
39635         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39636         Fix typo.
39637
39638 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39639
39640         * scripts/config.guess: Update from upstream config git repository.
39641         * scripts/config.sub: Likewise.
39642
39643 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39644
39645         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39646         (EM_NUM): Update.
39647         (R_TILEPRO_*, R_TILEGX_*): New macros.
39648
39649         * scripts/firstversions.awk: Fix bug in version range handling.
39650
39651         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39652
39653         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39654
39655         * include/sys/epoll.h: New file.
39656         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39657         libc_hidden_def.
39658
39659 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39660
39661         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39662         Avoid unnecessary __WORDSIZE == 64 test.
39663         (fmaxf): Use VEX format if possible.
39664         (fmax): Likewise.
39665         (fminf): Likewise.
39666         (fmin): Likewise.
39667
39668         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39669         * math/math_private.h: Remove libc_fegetround* and
39670         libc_fesetround*.
39671         * sysdeps/i386/configure.in: Check for -msse2avx.
39672         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39673         also if SSE2AVX is defined.
39674         Remove libc_fegetround* and libc_fesetround*.
39675         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39676         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39677         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39678         of HAS_YMM_USABLE.
39679         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39680         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39681         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39682         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39683         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39684
39685         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39686
39687 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39688
39689         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39690         size is not set.
39691         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39692
39693 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39694
39695         [BZ #13618]
39696         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39697         relocation.
39698         * Makeconfig (libm): Define.
39699         * elf/Makefile: Add rules to build and run tst-relsort1.
39700         * elf/tst-relsort1.c: New file.
39701         * elf/tst-relsort1mod1.c: New file.
39702         * elf/tst-relsort1mod2.c: New file.
39703
39704 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39705
39706         * math/s_ldexp.c: Remove __STDC__ conditionals.
39707         * math/s_ldexpf.c: Likewise.
39708         * math/s_ldexpl.c: Likewise.
39709         * math/s_nextafter.c: Likewise.
39710         * math/s_nexttowardf.c: Likewise.
39711         * math/s_significand.c: Likewise.
39712         * math/s_significandf.c: Likewise.
39713         * math/s_significandl.c: Likewise.
39714         * math/w_jnl.c: Likewise.
39715         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39716         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39717         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39718         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39719         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39720         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39721         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39722         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39723         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39724         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39725         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39726         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39727         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39728         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39729         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39730         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39731         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39732         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39733         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39734         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39735         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39736         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39737         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39738         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39739         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39740         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39741         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39742         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39743         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39744         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39745         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39746         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39747         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39748         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39749         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39750         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39751         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39752         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39753         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39754         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39755         * sysdeps/ieee754/k_standard.c: Likewise.
39756         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39757         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39758         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39759         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39760         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39761         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39762         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39763         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39764         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39765         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39766         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39767         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39768         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39769         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39770         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39771         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39772         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39773         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39774         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39775         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39776         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39777         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39778         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39779         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39780         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39781         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39782         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39783         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39784         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39785         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39786         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39787         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39788         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39789         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39790         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39791         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39792         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39793         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39794         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39795         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39796         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39797         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39798         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39799         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39800         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39801         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39802         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39803         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39804         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39805         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39806         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39807         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39808         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39809         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39810         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39811         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39812         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39813         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39814         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39815         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39816         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39817         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39818         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39819         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39820         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39821         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39822         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39823         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39824         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39825         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39826         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39827         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39828         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39829         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39830         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39831         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39832         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39833         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39834         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39835         * sysdeps/ieee754/s_matherr.c: Likewise.
39836         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39837         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39838         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39839         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39840
39841 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39842
39843         * crypt/md5.h: Remove __STDC__ conditionals.
39844         * libio/libioP.h: Likewise.
39845         * locale/programs/config.h: Likewise.
39846         * sysdeps/generic/sysdep.h: Likewise.
39847         * sysdeps/i386/asm-syntax.h: Likewise.
39848         * sysdeps/s390/asm-syntax.h: Likewise.
39849         * sysdeps/unix/sysdep.h: Likewise.
39850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39852
39853 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39854
39855         * libio/libio.h: Remove __STDC__ conditionals.
39856         * malloc/obstack.h: Likewise.
39857         * math/complex.h: Likewise.
39858         * math/math.h: Likewise.
39859         * sysdeps/generic/_G_config.h: Likewise.
39860         * sysdeps/gnu/_G_config.h: Likewise.
39861         * sysdeps/mach/hurd/_G_config.h: Likewise.
39862         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39863         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39864         * sysdeps/sparc/bits/mathdef.h: Likewise.
39865
39866 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39867
39868         [BZ #13583]
39869         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39870         Clean up HAS_* macros.
39871         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39872         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39873         possible.
39874         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39875         HAS_AVX.
39876         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39877         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39878         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39879         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39880         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39881
39882 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39883
39884         * elf/tst-unique3.cc (gets): Remove declaration.
39885         * elf/tst-unique3lib.cc (gets): Likewise.
39886         * elf/tst-unique3lib2.cc (gets): Likewise.
39887         * elf/tst-unique4.cc (gets): Likewise.
39888
39889 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39890
39891         * include/stdio.h: Add C++ protection.  Add gets declarations and
39892         definitions.
39893         * debug/tst-chk1.c: Don't declare gets here.
39894         * stdio-common/tst-gets.c: Likewise.
39895
39896 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39897
39898         * posix/glob: Remove directory.
39899
39900 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39901
39902         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39903
39904 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39905
39906         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39907         of the non-standard EPFNOSUPPORT.
39908
39909 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39910
39911         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39912         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39913         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39914
39915 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39916
39917         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39918
39919 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39920
39921         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39922         transient errors.
39923         * nscd/grpcache.c (cache_addgr): Likewise.
39924         * nscd/hstcache.c (cache_addhst): Likewise.
39925         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39926         * nscd/pwdcache.c (cache_addpw): Likewise.
39927         * nscd/servicescache.c (cache_addserv): Likewise.
39928
39929 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39930
39931         * malloc/malloc.c: Various cleanups.
39932         * malloc/hooks.c: Likewise.
39933
39934         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39935         * stdlib/bug-fmtmsg1.c: New file.
39936
39937         * stdlib/fmtmsg.c (init): Add missing unlock.
39938         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39939
39940 2012-01-12  Marek Polacek  <polacek@redhat.com>
39941
39942         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39943         and _GNU_SOURCE.
39944
39945 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39946
39947         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39948         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39949         macro to ensure uniqueness of label name.
39950         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39951         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39952
39953 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39954
39955         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39956
39957         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39958         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39959         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39960         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39961
39962 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39963
39964         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39965
39966         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39967         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39968         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39969
39970         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39971
39972         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39973         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39974         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39975         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39976
39977         * math/bits/math-finite.h: Add ldexp support.
39978
39979 2012-01-10  Marek Polacek  <polacek@redhat.com>
39980
39981         * locale/programs/localedef.h (show_archive_content): Add noreturn
39982         attribute.
39983
39984 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39985
39986         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39987
39988 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39989
39990         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39991
39992         * io/Makefile (headers): Add bits/poll2.h.
39993
39994 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39995
39996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39997         typo #include statement.
39998
39999 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40000
40001         * include/sys/cdefs.h: Define __attribute_alloc_size.
40002         * catgets/gencat.c: Add alloc_size attribute and apply consistently
40003         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
40004         * elf/pldd.c: Likewise.
40005         * iconv/iconv_charmap.c: Likewise.
40006         * iconv/iconvconfig.c: Likewise.
40007         * iconv/strtab.c: Likewise.
40008         * locale/programs/locale.c: Likewise.
40009         * locale/programs/localedef.h: Likewise.
40010         * locale/programs/simple-hash.c: Likewise.
40011         * nscd/nscd.h: Likewise.
40012         * nss/makedb.c: Likewise.
40013         * sysdeps/generic/ldconfig.h: Likewise.
40014         * locale/programs/localedef.c: Remove xmalloc prototype.
40015         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
40016
40017 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
40018
40019         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
40020         appropriate.
40021
40022 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40023
40024         * math/Makefile (tests): Add tst-CMPLX.
40025         * math/tst-CMPLX.c: New file.
40026
40027         * math/complex.h (CMPLXL): Fix typo.
40028
40029         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
40030         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
40031         GLIBC_2.16.
40032         * debug/tst-chk1.c: Add poll and ppoll tests.
40033         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
40034         * include/sys/poll.h: Add hidden proto for ppoll.
40035         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
40036         * sysdeps/mach/hurd/ppoll.c: Likewise.
40037         * io/ppoll.c: Likewise.
40038         * debug/poll_chk.c: New file.
40039         * debug/ppoll_chk.c: New file.
40040         * include/bits/poll2.h: New file.
40041         * io/bits/poll2.h: New file.
40042
40043         [BZ #1350]
40044         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
40045
40046         * configure.in: static is always set to yes.  Remove.
40047         * config.make.in: Don't set build-static.
40048         * Makeconfig: Remove use of build-static.
40049         * dlfcn/Makefile: Likewise.
40050         * elf/Makefile: Likewise.
40051         * math/Makefile: Likewise.
40052         * misc/Makefile: Likewise.
40053         * nptl/Makefile: Likewise.
40054         * sysdeps/mach/hurd/Makefile: Likewise.
40055
40056         * configure.in: PWD_P is not used anymore.
40057         * config.make.in: Remove PWD_P entry.
40058
40059         * configure.in: Remove last remnants of RANLIB.
40060         No need to check for signed size_t anymore.
40061         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40062         and IA-64.
40063         Remove __builtin_expect test because we require at least gcc 3.4.
40064         * aclocal.m4: Likewise.
40065
40066         * wcsmbs/mbrtoc16.c: Implement using towc function.
40067         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40068         * wcsmbs/wcsmbsload.c: Likewise.
40069         * iconv/gconv_simple.c: Likewise.
40070         * iconv/gconv_int.h: Likewise.
40071         * iconv/gconv_builtin.h: Likewise.
40072         * iconv/iconv_prog.c: Remove CHAR16 handling.
40073
40074         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40075
40076         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40077
40078         * configure.in: Remove --with-elf and --enable-bounded options.
40079         Dont set base_machine for ia64.  More non-ELF conditions removed.
40080         Remove testing and setting of leading underscore information.
40081         * config.make.in (build-bounded): Set to no.
40082         * config.h.in: Remove NO_UNDERSCORES entry.
40083         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40084         them.
40085         * csu/start.c: Remove !NO_UNDERSCORE code.
40086         * locale/localeinfo.h: Likewise.
40087         * sysdeps/generic/machine-gmon.h: Likewise.
40088         * sysdeps/generic/sysdep.h: Likewise.
40089         * sysdeps/i386/sysdep.h: Likewise.
40090         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40091         * sysdeps/mach/sysdep.h: Likewise.
40092         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40093         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40094         * sysdeps/sh/sysdep.h: Likewise.
40095         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40096         * sysdeps/unix/i386/sysdep.S: Likewise.
40097         * sysdeps/unix/sparc/start.c: Likewise.
40098         * sysdeps/unix/sparc/sysdep.S: Likewise.
40099         * sysdeps/unix/sparc/sysdep.h: Likewise.
40100         * sysdeps/unix/start.c: Likewise.
40101         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40102         * sysdeps/x86_64/sysdep.h: Likewise.
40103
40104 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40105
40106         [BZ #13553]
40107         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40108         for non-gcc.
40109         * argp/argp-fmtstream.h: Use const instead __const.
40110         * argp/argp.h: Likewise.
40111         * assert/assert.h: Likewise.
40112         * bits/fenv.h: Likewise.
40113         * bits/sched.h: Likewise.
40114         * bits/sigset.h: Likewise.
40115         * bits/sigthread.h: Likewise.
40116         * catgets/nl_types.h: Likewise.
40117         * conform/data/pthread.h-data: Likewise.
40118         * crypt/crypt-private.h: Likewise.
40119         * crypt/crypt.h: Likewise.
40120         * crypt/crypt_util.c: Likewise.
40121         * ctype/ctype.h: Likewise.
40122         * debug/execinfo.h: Likewise.
40123         * debug/mbsnrtowcs_chk.c: Likewise.
40124         * debug/mbsrtowcs_chk.c: Likewise.
40125         * debug/wcsnrtombs_chk.c: Likewise.
40126         * debug/wcsrtombs_chk.c: Likewise.
40127         * debug/wcstombs_chk.c: Likewise.
40128         * dirent/dirent.h: Likewise.
40129         * dlfcn/dlfcn.h: Likewise.
40130         * elf/neededtest4.c: Likewise.
40131         * grp/grp.h: Likewise.
40132         * gshadow/gshadow.h: Likewise.
40133         * iconv/gconv.h: Likewise.
40134         * iconv/gconv_int.h: Likewise.
40135         * iconv/gconv_simple.c: Likewise.
40136         * iconv/iconv.h: Likewise.
40137         * iconv/loop.c: Likewise.
40138         * iconv/skeleton.c: Likewise.
40139         * include/aio.h: Likewise.
40140         * include/aliases.h: Likewise.
40141         * include/argz.h: Likewise.
40142         * include/arpa/inet.h: Likewise.
40143         * include/assert.h: Likewise.
40144         * include/dirent.h: Likewise.
40145         * include/dlfcn.h: Likewise.
40146         * include/execinfo.h: Likewise.
40147         * include/fcntl.h: Likewise.
40148         * include/fenv.h: Likewise.
40149         * include/glob.h: Likewise.
40150         * include/grp.h: Likewise.
40151         * include/libintl.h: Likewise.
40152         * include/mntent.h: Likewise.
40153         * include/netdb.h: Likewise.
40154         * include/pwd.h: Likewise.
40155         * include/rpc/netdb.h: Likewise.
40156         * include/sched.h: Likewise.
40157         * include/search.h: Likewise.
40158         * include/shadow.h: Likewise.
40159         * include/signal.h: Likewise.
40160         * include/stdio.h: Likewise.
40161         * include/stdlib.h: Likewise.
40162         * include/string.h: Likewise.
40163         * include/sys/socket.h: Likewise.
40164         * include/sys/stat.h: Likewise.
40165         * include/sys/statfs.h: Likewise.
40166         * include/sys/statvfs.h: Likewise.
40167         * include/sys/syslog.h: Likewise.
40168         * include/sys/time.h: Likewise.
40169         * include/sys/uio.h: Likewise.
40170         * include/time.h: Likewise.
40171         * include/unistd.h: Likewise.
40172         * include/utmp.h: Likewise.
40173         * include/wchar.h: Likewise.
40174         * include/wctype.h: Likewise.
40175         * inet/aliases.h: Likewise.
40176         * inet/arpa/inet.h: Likewise.
40177         * inet/netinet/ether.h: Likewise.
40178         * inet/netinet/in.h: Likewise.
40179         * intl/libintl.h: Likewise.
40180         * io/bits/fcntl2.h: Likewise.
40181         * io/fcntl.h: Likewise.
40182         * io/ftw.h: Likewise.
40183         * io/sys/poll.h: Likewise.
40184         * io/sys/stat.h: Likewise.
40185         * io/sys/statfs.h: Likewise.
40186         * io/sys/statvfs.h: Likewise.
40187         * io/utime.h: Likewise.
40188         * libio/bits/stdio.h: Likewise.
40189         * libio/bits/stdio2.h: Likewise.
40190         * libio/libio.h: Likewise.
40191         * libio/libioP.h: Likewise.
40192         * libio/stdio.h: Likewise.
40193         * locale/lc-ctype.c: Likewise.
40194         * locale/locale.h: Likewise.
40195         * login/utmp.h: Likewise.
40196         * malloc/arena.c: Likewise.
40197         * malloc/malloc.c: Likewise.
40198         * malloc/malloc.h: Likewise.
40199         * malloc/mcheck.c: Likewise.
40200         * malloc/mtrace.c: Likewise.
40201         * math/bits/mathcalls.h: Likewise.
40202         * math/fenv.h: Likewise.
40203         * math/math_private.h: Likewise.
40204         * misc/bits/error.h: Likewise.
40205         * misc/bits/syslog.h: Likewise.
40206         * misc/err.h: Likewise.
40207         * misc/error.h: Likewise.
40208         * misc/fstab.h: Likewise.
40209         * misc/mntent.h: Likewise.
40210         * misc/regexp.h: Likewise.
40211         * misc/search.h: Likewise.
40212         * misc/sgtty.h: Likewise.
40213         * misc/sys/mman.h: Likewise.
40214         * misc/sys/syslog.h: Likewise.
40215         * misc/sys/uio.h: Likewise.
40216         * misc/sys/xattr.h: Likewise.
40217         * misc/ttyent.h: Likewise.
40218         * nis/rpcsvc/ypclnt.h: Likewise.
40219         * nss/nss.h: Likewise.
40220         * posix/bits/unistd.h: Likewise.
40221         * posix/fnmatch.h: Likewise.
40222         * posix/glob.h: Likewise.
40223         * posix/sched.h: Likewise.
40224         * posix/spawn.h: Likewise.
40225         * posix/sys/wait.h: Likewise.
40226         * posix/unistd.h: Likewise.
40227         * posix/wordexp.h: Likewise.
40228         * pwd/pwd.h: Likewise.
40229         * resolv/netdb.h: Likewise.
40230         * resource/sys/resource.h: Likewise.
40231         * rt/aio.h: Likewise.
40232         * rt/bits/mqueue2.h: Likewise.
40233         * rt/mqueue.h: Likewise.
40234         * shadow/shadow.h: Likewise.
40235         * signal/signal.h: Likewise.
40236         * socket/send.c: Likewise.
40237         * socket/sendto.c: Likewise.
40238         * socket/sys/socket.h: Likewise.
40239         * stdio-common/printf.h: Likewise.
40240         * stdlib/bits/stdlib.h: Likewise.
40241         * stdlib/fmtmsg.h: Likewise.
40242         * stdlib/monetary.h: Likewise.
40243         * stdlib/stdlib.h: Likewise.
40244         * stdlib/ucontext.h: Likewise.
40245         * streams/stropts.h: Likewise.
40246         * string/argz.h: Likewise.
40247         * string/bits/string2.h: Likewise.
40248         * string/string.h: Likewise.
40249         * string/strings.h: Likewise.
40250         * sunrpc/rpc/auth.h: Likewise.
40251         * sunrpc/rpc/auth_des.h: Likewise.
40252         * sunrpc/rpc/clnt.h: Likewise.
40253         * sunrpc/rpc/netdb.h: Likewise.
40254         * sunrpc/rpc/pmap_clnt.h: Likewise.
40255         * sunrpc/rpc/xdr.h: Likewise.
40256         * sysdeps/generic/inttypes.h: Likewise.
40257         * sysdeps/generic/net/if.h: Likewise.
40258         * sysdeps/generic/sys/swap.h: Likewise.
40259         * sysdeps/gnu/net/if.h: Likewise.
40260         * sysdeps/gnu/utmpx.h: Likewise.
40261         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40262         * sysdeps/i386/i486/bits/string.h: Likewise.
40263         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40264         * sysdeps/s390/bits/string.h: Likewise.
40265         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40266         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40267         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40268         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40269         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40270         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40271         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40272         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40273         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40274         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40275         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40276         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40277         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40278         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40279         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40280         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40281         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40282         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40283         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40284         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40285         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40286         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40287         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40288         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40289         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40290         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40291         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40292         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40293         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40294         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40295         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40296         * sysvipc/sys/ipc.h: Likewise.
40297         * sysvipc/sys/msg.h: Likewise.
40298         * sysvipc/sys/sem.h: Likewise.
40299         * sysvipc/sys/shm.h: Likewise.
40300         * termios/termios.h: Likewise.
40301         * time/sys/time.h: Likewise.
40302         * time/time.h: Likewise.
40303         * wcsmbs/bits/wchar2.h: Likewise.
40304         * wcsmbs/uchar.h: Likewise.
40305         * wcsmbs/wchar.h: Likewise.
40306         * wctype/wctype.h: Likewise.
40307
40308         [BZ #13551]
40309         * Makeconfig: Remove all but ELF support including AIX support.
40310         * Makerules: Likewise.
40311         * config.h.in: Likewise.
40312         * config.make.in: Likewise.
40313         * configure: Likewise.
40314         * configure.in: Likewise.
40315         * csu/Makefile: Likewise.
40316         * csu/version.c: Likewise.
40317         * debug/Makefile: Likewise.
40318         * dlfcn/Makefile: Likewise.
40319         * elf/Makefile: Likewise.
40320         * extra-lib.mk: Likewise.
40321         * iconv/Makefile: Likewise.
40322         * include/libc-symbols.h: Likewise.
40323         * include/shlib-compat.h: Likewise.
40324         * resolv/Makefile: Likewise.
40325         * resolv/res_libc.c: Likewise.
40326         * rt/Makefile: Likewise.
40327         * sysdeps/i386/asm-syntax.h: Likewise.
40328         * sysdeps/i386/sysdep.h: Likewise.
40329         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40330         * sysdeps/mach/sysdep.h: Likewise.
40331         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40332         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40333         * sysdeps/s390/asm-syntax.h: Likewise.
40334         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40335         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40336         * sysdeps/sh/sysdep.h: Likewise.
40337         * sysdeps/unix/sparc/sysdep.h: Likewise.
40338         * sysdeps/wordsize-32/divdi3.c: Likewise.
40339         * sysdeps/x86_64/sysdep.h: Likewise.
40340
40341         * argp/Versions: Remove _argp_unlock_xxx.
40342
40343         [BZ #13559]
40344         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40345         * abilist/libBrokenLocale.abilist: Likewise.
40346         * abilist/libanl.abilist: Likewise.
40347         * abilist/libc.abilist: Likewise.
40348         * abilist/libcrypt.abilist: Likewise.
40349         * abilist/libdl.abilist: Likewise.
40350         * abilist/libm.abilist: Likewise.
40351         * abilist/libnsl.abilist: Likewise.
40352         * abilist/libpthread.abilist: Likewise.
40353         * abilist/libresolv.abilist: Likewise.
40354         * abilist/librt.abilist: Likewise.
40355         * abilist/libthread_db.abilist: Likewise.
40356         * abilist/libutil.abilist: Likewise.
40357         * abilist/libnss_db.abilist: New file.
40358
40359         * scripts/abilist.awk: Add support for indirect functions.
40360
40361         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40362
40363         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40364
40365         * shlib-versions: Remove entries for ports architectures.
40366
40367         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40368         files in ports.
40369         * elf/stackguard-macros.h: Remove support for IA-64.
40370         * elf/tst-auditmod1.c: Likewise.
40371         * sysdeps/generic/ldsodefs.h: Likewise.
40372
40373         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40374         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40375         configure files.
40376
40377         [BZ #13552]
40378         * configure.in: Remove --enable-omitfp support.
40379         * FAQ.in: Adjust.
40380         * config.make.in: Likewise.
40381         * Makeconfig: Likewise.
40382         * manual/install.texi: Likewise.
40383
40384         In case anyone cares, the IA-64 architecture could move to ports.
40385         * sysdeps/ia64/*: Removed.
40386         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40387         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40388
40389         [BZ #13555]
40390         * configure.in: Remove entries for unsupported architectures.
40391
40392         [BZ #13533]
40393         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40394         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40395         routines.
40396         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40397         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40398         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
40399         fall back to using wcrtomb.
40400         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
40401         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
40402         renaming.
40403         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
40404         * wcsmbs/tst-c16c32-1.c: New file.
40405
40406         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
40407         local variable.
40408
40409         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
40410
40411         * elf/tst-unique3.cc: Add explicit declaration of gets.
40412         * elf/tst-unique3lib.cc: Likewise.
40413         * elf/tst-unique3lib2.cc: Likewise.
40414         * elf/tst-unique4.cc: Likewise.
40415
40416         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
40417
40418 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
40419
40420         [BZ #13566]
40421         * assert/assert.h (static_assert): Don't define for C++.
40422         * libio/stdio.h (gets): Do declare for C++ <= C++11.
40423         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
40424
40425 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
40426
40427         * iconv/loop.c (single loop): Fix assertion in storing of
40428         remaining bytes.
40429
40430         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
40431
40432 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
40433
40434         * posix/getconf.c: Update copyright year.
40435         * nss/getent.c: Likewise.
40436         * nss/makedb.c: Likewise.
40437         * iconv/iconvconfig.c: Likewise.
40438         * iconv/iconv_prog.c: Likewise.
40439         * elf/ldconfig.c: Likewise.
40440         * elf/pldd.c: Likewise.
40441         * elf/sotruss.ksh: Likewise.
40442         * catgets/gencat.c: Likewise.
40443         * csu/version.c: Likewise.
40444         * elf/ldd.bash.in: Likewise.
40445         * elf/sprof.c (print_version): Likewise.
40446         * locale/programs/locale.c: Likewise.
40447         * locale/programs/localedef.c: Likewise.
40448         * login/programs/pt_chown.c: Likewise.
40449         * nscd/nscd.c (print_version): Likewise.
40450         * debug/xtrace.sh: Likewise.
40451         * malloc/memusage.sh: Likewise.
40452         * malloc/mtrace.pl: Likewise.
40453         * debug/catchsegv.sh: Likewise.
40454
40455 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40456
40457         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40458         pure attribute.
40459
40460 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40461
40462         [BZ #13533]
40463         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40464         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40465         transformations.
40466         * iconv/gconv_int.h: Likewise.
40467         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40468         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40469         from libc for GLIBC_2.16.
40470         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40471         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40472         * wcsmbs/uchar.h: Really define mbstate_t.
40473         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40474         * wcsmbs/c16rtomb.c: New file.
40475         * wcsmbs/mbrtoc16.c: New file.
40476         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40477         for C/POSIX locale.
40478         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40479         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40480
40481         * wcsmbs/wchar.h: Add missing __restrict.
40482
40483 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40484
40485         [BZ #13532]
40486         * time/Makefile (routines): Add timespec_get.
40487         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40488         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40489         timespec for ISO C11.
40490         * time/timespec_get.c: New file.
40491         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40492         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40493
40494         [BZ #13531]
40495         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40496         * stdlib/stdlib.h: Declare aligned_alloc.
40497         * Versions.def: Add GLIBC_2.16 for libc.
40498         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40499
40500         [BZ 13527]
40501         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40502         ISO C11.
40503
40504         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40505         code.
40506
40507         [BZ #13528]
40508         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40509
40510         [BZ #13529]
40511         * assert/assert.h (static_assert): Define.
40512
40513         * version.h: Update for 2.16 development version.
40514
40515         [BZ #13526]
40516         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40517         _ISOC11_SOURCE.
40518
40519         * version.h (RELEASE): Bump for 2.15 release.
40520         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40521
40522         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40523         Patch by Marek Polacek <mpolacek@redhat.com>.
40524
40525         * bits/byteswap.h: Protect long long constants with __extension__.
40526         * sysdeps/i386/bits/byteswap.h: Likewise.
40527         * sysdeps/ia64/bits/byteswap.h: Likewise.
40528         * sysdeps/s390/bits/byteswap.h: Likewise.
40529         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40530
40531 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40532
40533         [BZ #13540]
40534         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40535         destination buffer.
40536         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40537
40538 2011-12-23  Marek Polacek  <polacek@redhat.com>
40539
40540         * elf/dl-addr.c (determine_info): Add inline keyword.
40541         * elf/tst-auditmod4b.c (check_avx): Likewise.
40542         * elf/tst-auditmod6b.c (check_avx): Likewise.
40543         * elf/tst-auditmod6c.c (check_avx): Likewise.
40544         * elf/tst-auditmod7b.c (check_avx): Likewise.
40545
40546 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40547
40548         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40549         !__SSE_MATH__.
40550
40551 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40552
40553         [BZ #13540]
40554         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40555         processing for last bytes.
40556
40557 2011-08-06  Bruno Haible  <bruno@clisp.org>
40558
40559         [BZ #13061]
40560         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40561         U+0385, not to U+1FEE.
40562
40563         [BZ #13062]
40564         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40565         entry for U+00A5 U+0301.
40566
40567 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40568
40569         [BZ #13166]
40570         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40571         buffer for the output is too small.
40572
40573         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40574         optimization.
40575
40576         [BZ #13185]
40577         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40578         SSE flags if possible.
40579
40580 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40581
40582         [BZ #13540]
40583         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40584         processing for last bytes.
40585
40586 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40587
40588         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40589         (syscall-list-default-options, syscall-list-default-condition)
40590         (syscall-list-includes): Define.
40591         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40592         list of ABIs and options and #if conditions for each ABI.  Do not
40593         handle common syscalls between ABIs specially.
40594         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40595         Remove.
40596         (syscall-list-variants, syscall-list-32bit-options)
40597         (syscall-list-32bit-condition, syscall-list-64bit-options)
40598         (syscall-list-64bit-condition): Define.
40599         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40600         (syscall-list-variants, syscall-list-32bit-options)
40601         (syscall-list-32bit-condition, syscall-list-64bit-options)
40602         (syscall-list-64bit-condition): Define.
40603         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40604         Remove.
40605         (syscall-list-variants, syscall-list-32bit-options)
40606         (syscall-list-32bit-condition, syscall-list-64bit-options)
40607         (syscall-list-64bit-condition): Define.
40608         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40609         Remove.
40610         (syscall-list-variants, syscall-list-32bit-options)
40611         (syscall-list-32bit-condition, syscall-list-64bit-options)
40612         (syscall-list-64bit-condition): Define.
40613
40614 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40615
40616         * locale/iso-639.def: Add brx entry.
40617
40618         [BZ #13328]
40619         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40620         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40621
40622         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40623         __feraiseexcept_renamed.
40624
40625 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40626
40627         [BZ #13538]
40628         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40629         EPOLLET with unsigned values.
40630         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40631         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40632
40633         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40634         to large cancellation.
40635         * math/s_cacoshf.c: Likewise.
40636         * math/s_cacoshl.c: Likewise.
40637
40638 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40639
40640         [BZ #13305]
40641         [BZ #12786]
40642         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40643         * math/s_cacoshf.c: Likewise.
40644         * math/s_cacoshl.c: Likewise.
40645
40646 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40647
40648         [BZ #13439]
40649         * iconv/gconv.h: Define __GCONV_SWAP.
40650         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40651         * iconvdata/utf-16.c: Likewise.
40652         * iconvdata/utf-32.c: Likewise.
40653
40654 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40655
40656         [BZ #13524]
40657         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40658         numerator after shifting it by one limb.
40659
40660 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40661
40662         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40663         under [__USE_EXTERN_INLINES].
40664
40665 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40666
40667         [BZ #13446]
40668         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40669
40670 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40671
40672         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40673         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40674         optimized code.
40675         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40676         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40677         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40678         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40679         for strncasecmp/strncasecmp_l compilation.
40680         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40681         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40682
40683 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40684
40685         [BZ #13484]
40686         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40687         of __asm__.
40688
40689 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40690
40691         [BZ #13506]
40692         * time/tzfile.c (__tzfile_read): Check values from file header.
40693
40694 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40695
40696         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40697         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40698         * powerpc/powerpc32/dl-start.S: Likewise.
40699         * powerpc/powerpc32/elf/start.S: Likewise.
40700         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40701         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40702         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40703         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40704         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40705         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40706         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40707         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40708         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40709         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40710         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40711         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40712         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40713         * powerpc/powerpc32/memset.S: Likewise.
40714         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40715         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40716         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40717         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40718         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40719         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40720         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40721         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40722         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40723         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40724         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40725         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40726         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40727
40728 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40729
40730         * math/libm-test.inc: Added more nearbyint tests.
40731         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40732         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40733         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40734         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40735
40736 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40737
40738         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40739         FD_CLOEXEC.
40740
40741 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40742
40743         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40744         Add wcscpy-ssse3 wcscpy-c.
40745         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40746         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40747         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40748         * sysdeps/x86_64/wcschr.S: New file.
40749         * sysdeps/x86_64/wcsrchr.S: New file.
40750         * string/test-strcmp.c: Remove checking of wcscmp function for
40751         wrong alignments.
40752         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40753         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40754         wcsrchr-sse2 wcsrchr-c.
40755         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40756         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40757         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40758         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40759         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40760         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40761         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40762         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40763         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40764         * wcsmbc/wcschr.c (WCSCHR): New macro.
40765
40766 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40767
40768         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40769         * wcsmbs/test-wcsrchr.c: New file.
40770         * string/test-strrchr.c: Add wcsrchr support.
40771         (WIDE): New macro.
40772         * wcsmbs/test-wcscpy.c: New file.
40773         * string/test-strcpy.c: Add wcscpy support.
40774         (WIDE): New macro.
40775
40776 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40777
40778         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40779         the inner loop.
40780
40781 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40782
40783         [BZ #13472]
40784         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40785
40786 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40787
40788         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40789         Minor optimizations.
40790
40791         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40792         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40793         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40794
40795 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40796
40797         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40798         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40799         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40800         for gcc to avoid warnings.
40801         * inet/Makefile (tests): Add tst-checks.
40802         * inet/tst-checks.c: New file.
40803
40804         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40805         warning.
40806
40807         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40808         __wmemcmp_sse2.
40809
40810         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40811         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40812
40813         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40814
40815 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40816
40817         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40818         problem.
40819
40820         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40821
40822 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40823
40824         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40825         conditional on GCC version.
40826         (__arch_compare_and_exchange_val_8_acq)
40827         (__arch_compare_and_exchange_val_16_acq)
40828         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40829         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40830         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40831
40832 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40833
40834         * sysdeps/sh/backtrace.c: New file.
40835
40836 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40837
40838         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40839         parenthesis.
40840
40841 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40842
40843         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40844         falling back to utime.
40845
40846 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40847
40848         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40849         expectations for float.
40850
40851 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40852
40853         * locale/weight.h (findidx): Add parameter len.
40854         * locale/weightwc.h (findidx): Likewise.
40855         * posix/fnmatch_loop.c (FCT): Adjust caller.
40856         * posix/regcomp.c (build_equiv_class): Likewise.
40857         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40858         * posix/regexec.c (check_node_accept_bytes): Likewise.
40859         * string/strcoll_l.c (STRCOLL): Likewise.
40860         * string/strxfrm_l.c (STRXFRM): Likewise.
40861
40862 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40863
40864         * Makefile.in: Remove CVSOPT handling.
40865         * configure.in: Remove use of AC_REVISION.
40866         * iconvdata/Makefile (distribute): No need to filter out CVS.
40867         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40868         handling.
40869
40870 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40871
40872         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40873         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40874         [USE_AS_STRNCASECMP_L]: Likewise.
40875         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40876         NO_TLS_DIRECT_SEG_REFS.
40877         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40878         Fix argument offsets for non-PIC.
40879         [USE_AS_STRNCASECMP_L]: Likewise.
40880         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40881         NO_TLS_DIRECT_SEG_REFS.
40882
40883 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40884
40885         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40886         O_CLOEXEC.
40887         * locale/loadlocale.c (_nl_load_locale): Likewise.
40888
40889 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40890
40891         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40892         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40893         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40894         (SYSCALL_GETTIME): Set errno on error.
40895
40896         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40897         count references to noai6ai_cached.
40898
40899 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40900
40901         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40902
40903         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40904         FD_CLOEXEC for /proc/self/maps.
40905
40906         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40907         FD_CLOEXEC for /proc/meminfo.
40908
40909         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40910         gai.conf.
40911
40912         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40913         FD_CLOEXEC for given file.
40914
40915         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40916
40917         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40918         FD_CLOEXEC for /etc/hosts.
40919         (_gethtent): Likewise.
40920
40921         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40922
40923         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40924         cancellation and set FD_CLOEXEC for /etc/netgroup.
40925
40926         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40927         reading /etc/publickey.
40928
40929         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40930         allow cancellation when reading /etc/group.
40931
40932         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40933         cancellation.
40934         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40935
40936         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40937         when using data file.
40938
40939         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40940
40941         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40942         (write_nis_obj): Use "c" and "e" in fopen.
40943
40944         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40945
40946         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40947
40948         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40949
40950         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40951
40952         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40953         locale.alias.
40954
40955         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40956
40957         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40958
40959         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40960
40961         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40962         file parsing and set FD_CLOEXEC.
40963
40964 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40965
40966         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40967
40968 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40969
40970         * malloc/arena.c (arena_get2): Don't call reused_arena when
40971         _int_new_arena failed.
40972
40973 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40974
40975         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40976         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40977         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40978         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40979         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40980         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40981         to compile strcasecmp and strncasecmp.
40982         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40983         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40984
40985         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40986
40987 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40988
40989         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40990         locale-defines.sym to gen-as-const-headers.
40991         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40992         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40993         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40994         to compile strcasecmp and strncasecmp.
40995         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40996         strcasecmp_l and strncasecmp_l.
40997         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40998         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40999         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
41000         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
41001         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
41002         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
41003         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
41004         * sysdeps/i386/i686/multiarch/strncase.S: New file.
41005         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
41006         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
41007         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
41008
41009 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
41010
41011         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
41012         result of SYSDEP_GETTIME_CPU to retval.
41013         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
41014         parameter list to macro.  Remove trailing semicolon.  Adjust users.
41015
41016         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
41017         variable.
41018
41019         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
41020         mantissa words.
41021         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
41022
41023         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
41024         from unused variable.
41025
41026         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
41027         DWARF definitions.
41028         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
41029         for assembling.
41030
41031         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
41032         over namespaces.
41033
41034         * sunrpc/rpc_prot.c (rejected): Fix case value.
41035
41036         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
41037         unsigned long long int to avoid warnings in shift.
41038
41039         * posix/regex_internal.c (re_string_reconstruct): Actually use result
41040         of use of trans.
41041         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
41042         variable tmp.
41043
41044         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
41045         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
41046         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
41047
41048         * nis/nis_table.c (nis_list): Use variable of correct type for
41049         result of __follow_path call.
41050
41051 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41052
41053         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
41054         of math functions ceil, trunc, floor, round, and sqrt, when
41055         avaliable on the platform.
41056         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41057         name clash.
41058         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41059         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41060         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41061
41062 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41063
41064         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41065         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41066
41067 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41068
41069         * include/unistd.h: Fix __readlink return type.
41070         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41071
41072 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41073
41074         * stdlib/ucontext.h: Undo last change for makecontext.
41075
41076 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41077
41078         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41079
41080         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41081         * setjmp/setjmp.h: Mark functions as non-leaf.
41082         * setjmp/bits/setjmp2.h: Likewise.
41083         * stdlib/ucontext.h: Likewise.
41084
41085 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41086
41087         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41088         (reused_arena): Don't check arena limit.
41089         (arena_get2): Atomically check arena limit.
41090
41091 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41092
41093         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41094         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41095
41096         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41097         instructions.
41098
41099 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41100
41101         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41102         handler when locking.
41103
41104         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41105         Fix size of allocated buffer.
41106
41107 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41108
41109         [BZ #10103]
41110         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41111         declarations for long double functions.
41112         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41113
41114         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41115
41116 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41117
41118         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41119         installed.
41120
41121         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41122         is disabled.
41123
41124 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41125
41126         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41127
41128 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41129
41130         * include/alloca.h (stackinfo_alloca_round): Define.
41131         (extend_alloca): Use it.
41132         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41133         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41134         here.
41135
41136         * scripts/check-local-headers.sh: Ignore libaudit.h.
41137
41138         * nscd/Makefile (extra-objs): Make recursively expanded.
41139
41140 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41141
41142         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41143         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41144
41145         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41146         * posix/tst-rfc3484-2.c: Likewise.
41147         * posix/tst-rfc3484-3.c: Likewise.
41148
41149         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41150         process_vm_writev.
41151         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41152         process_vm_writev.
41153         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41154         process_vm_writev from libc using GLIBC_2.15 version.
41155
41156         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41157
41158 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41159
41160         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41161         stack usage.
41162
41163 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41164
41165         [BZ #13367]
41166         * nss/getent.c (initgroups_keys): Show error message in case no group
41167         names are given.
41168
41169         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41170         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41171         __bump_nl_timestamp.
41172         * nscd/connections (nscd_init): When host database is served open
41173         netlink socket and request notification about configuration changes.
41174         (main_loop_poll): Track netlink file descriptor and bump timestamp
41175         in case data becomes available.
41176         (main_loop_epoll): Likewise.
41177         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41178         (database_pers_head): Add extra_data fileds.
41179         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41180         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41181         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41182         Adjust caller.
41183         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41184         in6ai data, call __free_in6ai.
41185         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41186         Add -DHAVE_NETLINK.
41187         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41188         interface information.  Reuse previous data if netlink timestamp
41189         is not changed.
41190         (__bump_nl_timestamp): New function.
41191         (__free_in6ai): New function.
41192
41193 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41194
41195         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41196         close_not_cancel_no_status here.
41197         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41198
41199 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41200
41201         [BZ #13276]
41202         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41203         return value.
41204
41205         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41206         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41207         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41208
41209 2011-07-03  Andreas Jaeger  <aj@suse.de>
41210
41211         [BZ #10709]
41212         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41213         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41214         * math/libm-test.inc (sin_test): Add test case.
41215
41216 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41217
41218         [BZ #13337]
41219         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41220         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41221
41222         * elf/chroot_canon.c (chroot_canon): Cleanups.
41223
41224         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41225
41226         [BZ #13335]
41227         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41228         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41229
41230         * string/test-strchr.c: Make usable for strchrnul testing.
41231         * string/test-strchrnul.c: New file.
41232         * string/Makefile (strop-tests): Add strchrnul.
41233
41234         * po/it.po: Update from translation team.
41235         * po/es.po: Likewise.
41236
41237 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41238
41239         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41240         the three constants needed as parameters.  Drop the others.
41241         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41242         __m128i_strloadu_tolower.
41243         Create and initialize variable zero and use it in all the places
41244         where _mm_setzero_si128 was used.
41245
41246         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41247         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41248         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41249         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41250         anymore.
41251         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41252         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41253         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41254         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41255         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41256         __mpranred, __mptan.
41257         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41258         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41259         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41260         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41261         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41262         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41263         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41264         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41265         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41266
41267 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41268
41269         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41270         redefine if SHARED.
41271         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41272
41273         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41274         wide char related routines to wcsmbs subdir.
41275
41276 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41277
41278         [BZ #13344]
41279         * misc/sys/cdefs.h (__THROWNL): Define.
41280         * posix/unistd.h: Use __THREADNL instead of __THREAD
41281         for memory synchronization functions.
41282
41283 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41284
41285         [BZ #13349]
41286         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41287         doesn't exist.
41288         * manual/stdio.texi (Obstack Streams): Node removed.
41289
41290 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41291
41292         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41293         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41294         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41295
41296         * math/math_private.h (math_force_eval): Allow non-addressable
41297         arguments.
41298         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41299
41300 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41301
41302         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41303         file is not needed.
41304
41305         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41306         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41307         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41308         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41309         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41310         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41311         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41312         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41313         Add AVX variants.
41314         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41315         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41316         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41317         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41318         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41319         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41320         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41321         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41322         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41323         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41324         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41325         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41326         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41327         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41328         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41329         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41330         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41331         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41332         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41333
41334         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41335         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41336
41337         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41338         place.  Use VEX encoding when compiling for AVX.
41339
41340 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41341
41342         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41343         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41344
41345         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41346
41347 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41348
41349         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41350         useless if() expression.
41351         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41352         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41353         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41354         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41355         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41356         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41357         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41358         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41359         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41360         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41361         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41362         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41363         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41364         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41365         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41366         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41367         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41368         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41369         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41370
41371         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41372
41373 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41374
41375         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41376         condition.
41377         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41378
41379 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41380
41381         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41382         .text section.  Avoid duplicate constants.
41383         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41384         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41385         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41386         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41387         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41388         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41389         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41390         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41391         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41392         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41393         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41394         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41395         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41396         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41397         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41398         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
41399         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
41400         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
41401         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
41402         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41403         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
41404         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
41405         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
41406         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
41407         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
41408         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
41409         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
41410         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
41411         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
41412         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
41413         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
41414         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
41415         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
41416         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
41417         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
41418         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
41419         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
41420         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
41421         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
41422         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
41423         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
41424         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
41425         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
41426         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
41427         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
41428
41429 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
41430
41431         * sysdeps/x86_64/dla.h: Move to ...
41432         * sysdeps/x86_64/fpu/dla.h: ...here.
41433         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
41434         situations.  Use __builtin_fma only for gcc 4.6 and up.
41435
41436         * config.make.in: Add have-mfma4 entry.
41437         * configure.in: Substitute libc_cv_cc_fma4.
41438         * math/Makefile (dbl-only-routines): Add sincostab.
41439         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
41440         Use __sincostab not sincos.
41441         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41442         name is a macro.
41443         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41444         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41445         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41446         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41447         using __copysign.
41448         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41449         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41450         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41451         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41452         and __inv.
41453         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41454         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41455         __copysign.
41456         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41457         define aliases when function name is a macro.
41458         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41459         sysdeps/ieee754/dbl-64/sincos.tbl.
41460         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41461         fma4-enabled routines.
41462         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41463         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41464         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41465         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41466         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41467         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41468         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41469         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41470         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41471         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41472         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41473         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41474         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41475         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41476         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41477         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41478         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41479         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41480         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41481         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41482         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41483         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41484         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41485         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41486         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41487         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41488         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41489         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41490         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41491         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41492
41493         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41494         rename.
41495         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41496         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41497         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41498         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41499         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41500         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41501         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41502         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41503
41504 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41505
41506         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41507
41508 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41509
41510         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41511
41512         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41513         prediction.
41514         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41515
41516         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41517         Remove unused variable magic_bits.
41518         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41519
41520         * string/strnlen.c: Define and use STRNLEN macro.
41521         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41522         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41523         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41524         * wcsmbs/wcslen.c: Define and use WCSLEN.
41525         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41526         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41527         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41528         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41529         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41530         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41531         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41532
41533 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41534
41535         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41536         strnlen-sse2-no-bsf.
41537         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41538         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41539         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41540         Add strnlen support.
41541         (USE_AS_STRNLEN): New macro.
41542         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41543         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41544         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41545         * sysdeps/x86_64/wcslen.S: New file.
41546
41547 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41548
41549         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41550         XMM-moves are used for copying on small sizes.
41551
41552 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41553
41554         * wcsmbs/Makefile (strop-tests): Add wcschr.
41555         * wcsmbs/test-wcschr.c: New file.
41556         * string/test-strchr.c: Update.
41557         Add wcschr support.
41558         (WIDE): New macro.
41559
41560 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41561
41562         * wcsmbs/Makefile (strop-tests): Add wcslen.
41563         * wcsmbs/test-wcslen.c: New file.
41564         * string/test-strlen.c: Update.
41565         Add wcslen support.
41566         (WIDE): New macro.
41567
41568 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41569
41570         * po/it.po: Update from translation team.
41571
41572 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41573
41574         * sysdeps/x86_64/wcscmp.S: Update.
41575         Fix wrong comparison semantics.
41576         wcscmp shall use signed comparison not unsigned.
41577         Don't use substraction to avoid overflow bug.
41578         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41579         * wcsmbc/wcscmp.c: Likewise.
41580         * string/test-strcmp.c: Likewise.
41581         Add new tests to check cases with negative values.
41582
41583 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41584
41585         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41586         * sysdeps/x86_64/dla.h: ...here.  New file.
41587         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41588         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41589         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41590         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41591         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41592         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41593         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41594         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41595         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41596
41597 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41598
41599         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41600         __ynl_finite aliases.
41601
41602 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41603
41604         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41605
41606         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41607         define DLA_FMA.
41608         [DLA_FMA] (EMULV): Use DLA_FMA.
41609         [DLA_FMA] (MUL12): Use EMULV.
41610         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41611         that are not needed.
41612         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41613         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41614         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41615         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41616         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41617         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41618         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41619
41620 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41621
41622         * math/s_nan.c: Undef __nan.
41623         * math/s_nanf.c: Undef __nanf.
41624         * math/s_nanl.c: Undef __nanl.
41625         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41626         "math_private.h".
41627
41628 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41629
41630         * math/s_catan.c: Add branch predictions.
41631         * math/s_catanf.c: Likewise.
41632         * math/s_catanh.c: Likewise.
41633         * math/s_catanhf.c: Likewise.
41634         * math/s_catanhl.c: Likewise.
41635         * math/s_catanl.c: Likewise.
41636         * math/s_cexp.c: Likewise.
41637         * math/s_cexpf.c: Likewise.
41638         * math/s_cexpl.c: Likewise.
41639         * math/s_clog.c: Likewise.
41640         * math/s_clog10.c: Likewise.
41641         * math/s_clog10f.c: Likewise.
41642         * math/s_clog10l.c: Likewise.
41643         * math/s_clogf.c: Likewise.
41644         * math/s_clogl.c: Likewise.
41645         * math/s_csqrt.c: Likewise.
41646         * math/s_csqrtf.c: Likewise.
41647         * math/s_csqrtl.c: Likewise.
41648         * math/s_ctanf.c: Likewise.
41649         * math/s_ctanh.c: Likewise.
41650         * math/s_ctanhf.c: Likewise.
41651         * math/s_ctanhl.c: Likewise.
41652         * math/s_ctanl.c: Likewise.
41653
41654         * math/math_private.h: Define __nan, __nanf, __nanl.
41655         * math/s_cacosh.c: Include <math_private.h>.
41656         * math/s_cacoshl.c: Likewise.
41657         * math/s_casinh.c: Likewise.
41658         * math/s_casinhf.c: Likewise.
41659         * math/s_casinhl.c: Likewise.
41660         * math/s_ccos.c: Rely entire on ccosh.
41661         * math/s_ccosf.c: Rely entire on ccoshf.
41662         * math/s_ccosl.c: Rely entirely on ccoshl.
41663         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41664         Remove tests for FE_INVALID.
41665         * math/s_ccoshf.c: Likewise.
41666         * math/s_ccoshl.c: Likewise.
41667         * math/s_csin.c: Likewise.
41668         * math/s_csinf.c: Likewise.
41669         * math/s_csinh.c Likewise.
41670         * math/s_csinhf.c: Likewise.
41671         * math/s_csinhl.c: Likewise.
41672         * math/s_csinl.c: Likewise.
41673         * math/s_ctan.c: Likewise.
41674         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41675         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41676         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41677
41678 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41679
41680         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41681         compilation problems.
41682
41683         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41684         __builtin_expect.
41685
41686 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41687
41688         * sysdeps/i386/configure.in: Test for -mfma4 option.
41689         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41690         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41691         COMMON_CPUID_INDEX_80000001.
41692         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41693         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41694         use it if FMA3 is not supported.
41695         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41696
41697         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41698         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41699
41700 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41701
41702         [BZ #12892]
41703         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41704         it would create a cycle with a link time dependency.
41705
41706 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41707
41708         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41709         instruction.
41710         * string/Makefile (strop-tests): Add rawmemchr.
41711         * string/test-rawmemchr.c: New file.
41712
41713         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41714         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41715         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41716         when compiling str{,n}casecmp and when AVX is available.  Hook up
41717         new optimized code in initializers.
41718
41719 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41720
41721         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41722         __feraiseexcept instead of feraiseexcept.
41723
41724 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41725
41726         * math/math_private.h: Define defaults for libc_fetestexcept and
41727         libc_feupdateenv.
41728         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41729         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41730         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41731         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41732         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41733         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41734         libc_fetestexcept and libc_feupdateenv.
41735
41736         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41737         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41738         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41739         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41740         libc_feholdexcept_setround.
41741
41742         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41743         Add s_nearbyint-c and s_nearbyintf-c.
41744         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41745         nearbyintf inlines.
41746         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41747         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41748         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41749         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41750
41751         * math/math_private.h: Define defaults for libc_fegetround,
41752         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41753         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41754         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41755         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41756         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41757         standard functions.
41758         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41759         Remove comments and hacks for old compiler versions.
41760         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41761         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41762         libc_feholdexceptl.
41763
41764 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41765
41766         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41767         (__feraiseexcept_renamed): Add __NTH.
41768         (feraiseexcept): Add __NTH.  Rename local variables to fix
41769         namespace violations.
41770
41771 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41772
41773         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41774
41775         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41776
41777         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41778         recently added interfaces.
41779         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41780
41781         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41782         about macro parameter expansion.
41783
41784         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41785         __NO_MATH_INLINES is defined.  Cleanups.
41786
41787         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41788         and __floorf is target has SSE4.1.
41789         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41790         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41791         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41792         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41793
41794         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41795         name.
41796         (floorf): Likewise.
41797
41798         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41799
41800 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41801
41802         * misc/sys/cdefs.h: Fix last change.
41803
41804         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41805         database lookup.
41806
41807 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41808
41809         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41810
41811         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41812         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41813         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41814         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41815         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41816         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41817         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41818         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41819         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41820         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41821         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41822         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41823         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41824         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41825         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41826         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41827         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41828         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41829         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41830         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41831         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41832         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41833
41834         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41835         ceil, ceilf, floor, floorf.
41836
41837         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41838         Perform IRELATIVE relocations last.
41839
41840         * elf/do-rel.h: Add another parameter nrelative, replacing the
41841         local variable with the same name.  Change name of the function
41842         to end in Rel or Rela (uppercase).
41843         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41844         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41845         elf_dynamic_do_##reloc function.
41846
41847 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41848
41849         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41850         is sufficient, at least on modern CPUs.
41851
41852         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41853
41854         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41855         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41856
41857         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41858         __expl_finite.
41859         * math/bits/math-finite.h: Add entries for exp.
41860         * math/e_expl.c: Add __*_finite alias.
41861         * sysdeps/i386/fpu/e_exp.S: Likewise.
41862         * sysdeps/i386/fpu/e_expf.S: Likewise.
41863         * sysdeps/i386/fpu/e_expl.c: Likewise.
41864         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41865         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41866         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41867         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41868         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41869         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41870         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41871
41872         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41873         is sufficient, at least on modern CPUs.
41874
41875         * ctype/ctype-info.c (__ctype_init): Define.
41876         * include/ctype.h (__ctype_init): Declare.
41877         (__ctype_b_loc): The variable is always initialized.
41878         (__ctype_toupper_loc): Likewise.
41879         (__ctype_tolower_loc): Likewise.
41880         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41881         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41882
41883 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41884
41885         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41886
41887         * configure.in: Also look in $cxxmachine/include for C++ system
41888         headers.
41889
41890 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41891
41892         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41893         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41894         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41895         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41896         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41897         (USE_AS_WMEMCMP): New macro.
41898         Fixing indents.
41899         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41900         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41901         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41902         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41903         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41904         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41905         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41906         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41907         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41908         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41909         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41910         (USE_AS_WMEMCMP): New macro.
41911         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41912         * sysdeps/string/test-memcmp.c: Update.
41913         Fix simple_wmemcmp.
41914         Add new tests.
41915         * wcsmbs/wmemcmp.c: Update.
41916         (WMEMCMP): New macro.
41917         Fix overflow bug.
41918
41919 2011-10-12  Andreas Jaeger  <aj@suse.de>
41920
41921         [BZ #13268]
41922         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41923
41924 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41925
41926         * libio/iofwide.c (do_length): Avoid warning.
41927
41928         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41929
41930 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41931
41932         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41933
41934         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41935         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41936         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41937         * sysdeps/i386/i686/fpu/e_log.S: New file.
41938         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41939         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41940
41941         * ctype/ctype.h: Add support for inlined isXXX functions when
41942         compiling C++ code.
41943
41944 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41945
41946         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41947
41948         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41949
41950 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41951
41952         [BZ #13291]
41953         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41954
41955 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41956
41957         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41958         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41959         feraiseexcept.
41960
41961         * sysdeps/x86_64/memrchr.S: Check for zero size.
41962
41963         * string/stratcliff.c: Add memrchr tests.
41964
41965 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41966
41967         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41968         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41969         rawmemchr-sse2 rawmemchr-sse2-bsf.
41970         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41971         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41972         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41973         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41974         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41975         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41976         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41977         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41978         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41979         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41980         * string/memrchr.c (MEMRCHR): New macro.
41981
41982 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41983
41984         Add integration with gcc's -ffinite-math-only and optimize wrapper
41985         functions in libm.
41986         * Versions.def: Define GLIBC_2.15 version for libm.
41987         * math/Makefile (headers): Add bits/math-finite.h.
41988         * math/bits/math-finite.h: New file.
41989         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41990         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41991         * math/e_acoshl.c: Add __*_finite alias.
41992         * math/e_acosl.c: Likewise.
41993         * math/e_asinl.c: Likewise.
41994         * math/e_atan2l.c: Likewise.
41995         * math/e_atanhl.c: Likewise.
41996         * math/e_coshl.c: Likewise.
41997         * math/e_exp10.c: Likewise.
41998         * math/e_exp10f.c: Likewise.
41999         * math/e_exp10l.c: Likewise.
42000         * math/e_exp2l.c: Likewise.
42001         * math/e_fmodl.c: Likewise.
42002         * math/e_gammal_r.c: Likewise.
42003         * math/e_hypotl.c: Likewise.
42004         * math/e_j0l.c: Likewise.
42005         * math/e_j1l.c: Likewise.
42006         * math/e_jnl.c: Likewise.
42007         * math/e_lgammal_r.c: Likewise.
42008         * math/e_log10l.c: Likewise.
42009         * math/e_log2l.c: Likewise.
42010         * math/e_logl.c: Likewise.
42011         * math/e_powl.c: Likewise.
42012         * math/e_sinhl.c: Likewise.
42013         * math/e_sqrtl.c: Likewise.
42014         * math/e_scalb.c: Completely rewritten and optimized.
42015         * math/e_scalbf.c: Likewise.
42016         * math/e_scalbl.c: Likewise.
42017         * math/w_acos.c: Likewise.
42018         * math/w_acosf.c: Likewise.
42019         * math/w_acosl.c: Likewise.
42020         * math/w_acosh.c: Likewise.
42021         * math/w_acoshf.c: Likewise.
42022         * math/w_acoshl.c: Likewise.
42023         * math/w_asin.c: Likewise.
42024         * math/w_asinf.c: Likewise.
42025         * math/w_asinl.c: Likewise.
42026         * math/w_atan2.c: Likewise.
42027         * math/w_atan2f.c: Likewise.
42028         * math/w_atan2l.c: Likewise.
42029         * math/w_atanh.c: Likewise.
42030         * math/w_atanhf.c: Likewise.
42031         * math/w_atanhl.c: Likewise.
42032         * math/w_exp10.c: Likewise.
42033         * math/w_exp10f.c: Likewise.
42034         * math/w_exp10l.c: Likewise.
42035         * math/w_fmod.c: Likewise.
42036         * math/w_fmodf.c: Likewise.
42037         * math/w_fmodl.c: Likewise.
42038         * math/w_j0.c: Likewise.
42039         * math/w_j0f.c: Likewise.
42040         * math/w_j0l.c: Likewise.
42041         * math/w_j1.c: Likewise.
42042         * math/w_j1f.c: Likewise.
42043         * math/w_j1l.c: Likewise.
42044         * math/w_jn.c: Likewise.
42045         * math/w_jnf.c: Likewise.
42046         * math/w_log.c: Likewise.
42047         * math/w_logf.c: Likewise.
42048         * math/w_logl.c: Likewise.
42049         * math/w_log10.c: Likewise.
42050         * math/w_log10f.c: Likewise.
42051         * math/w_log10l.c: Likewise.
42052         * math/w_log2.c: Likewise.
42053         * math/w_log2f.c: Likewise.
42054         * math/w_log2l.c: Likewise.
42055         * math/w_pow.c: Likewise.
42056         * math/w_powf.c: Likewise.
42057         * math/w_powl.c: Likewise.
42058         * math/w_remainder.c: Likewise.
42059         * math/w_remainderf.c: Likewise.
42060         * math/w_remainderl.c: Likewise.
42061         * math/w_scalb.c: Likewise.
42062         * math/w_scalbf.c: Likewise.
42063         * math/w_scalbl.c: Likewise.
42064         * math/w_sqrt.c: Likewise.
42065         * math/w_sqrtf.c: Likewise.
42066         * math/w_sqrtl.c: Likewise.
42067         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42068         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42069         used.
42070         * math/math_private.h: Declare __kernel_standard_f.
42071         * math/w_cosh.c: Remove cruft and optimize a bit.
42072         * math/w_coshf.c: Likewise.
42073         * math/w_coshl.c: Likewise.
42074         * math/w_exp2.c: Likewise.
42075         * math/w_exp2f.c: Likewise.
42076         * math/w_exp2l.c: Likewise.
42077         * math/w_hypot.c: Likewise.
42078         * math/w_hypotf.c: Likewise.
42079         * math/w_hypotl.c: Likewise.
42080         * math/w_lgamma.c: Likewise.
42081         * math/w_lgamma_r.c: Likewise.
42082         * math/w_lgammaf.c: Likewise.
42083         * math/w_lgammaf_r.c: Likewise.
42084         * math/w_lgammal.c: Likewise.
42085         * math/w_lgammal_r.c: Likewise.
42086         * math/w_sinh.c: Likewise.
42087         * math/w_sinhf.c: Likewise.
42088         * math/w_sinhl.c: Likewise.
42089         * math/w_tgamma.c: Likewise.
42090         * math/w_tgammaf.c: Likewise.
42091         * math/w_tgammal.c: Likewise.
42092         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42093         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42094         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42095         Minor optimizations.  Pretty printing.  Remove cruft.
42096         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42097         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42098         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42099         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42100         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42101         * sysdeps/i386/fpu/e_asin.S: Likewise.
42102         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42103         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42104         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42105         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42106         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42107         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42108         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42109         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42110         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42111         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42112         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42113         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42114         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42115         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42116         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42117         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42118         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42119         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42120         * sysdeps/i386/fpu/e_log.S: Likewise.
42121         * sysdeps/i386/fpu/e_log10.S: Likewise.
42122         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42123         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42124         * sysdeps/i386/fpu/e_log2.S: Likewise.
42125         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42126         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42127         * sysdeps/i386/fpu/e_logf.S: Likewise.
42128         * sysdeps/i386/fpu/e_logl.S: Likewise.
42129         * sysdeps/i386/fpu/e_pow.S: Likewise.
42130         * sysdeps/i386/fpu/e_powf.S: Likewise.
42131         * sysdeps/i386/fpu/e_powl.S: Likewise.
42132         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42133         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42134         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42135         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42136         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42137         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42138         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42139         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42140         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42141         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42142         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42143         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42144         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42145         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42146         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42147         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42148         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42149         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42150         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42151         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42152         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42153         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42154         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42155         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42156         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42157         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42158         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42159         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42160         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42161         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42162         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42163         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42164         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42165         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42166         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42167         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42168         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42169         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42170         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42171         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42172         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42173         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42174         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42175         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42176         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42177         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42178         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42179         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42180         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42181         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42182         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42183         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42184         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42185         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42186         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42187         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42188         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42189         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42190         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42191         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42192         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42193         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42194         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42195         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42196         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42197         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42198         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42199         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42200         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42201         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42202         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42203         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42204         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42205         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42206         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42207         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42208         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42209         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42210         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42211         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42212         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42213         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42214         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42215         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42216         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42217         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42218         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42219         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42220         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42221         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42222         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42223         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42224         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42225         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42226         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42227         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42228         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42229         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42230         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42231         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42232         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42233         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42234         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42235         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42236         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42237         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42238         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42239         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42240         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42241         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42242         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42243         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42244         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42245         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42246         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42247         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42248         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42249         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42250         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42251         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42252         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42253         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42254         (__isnanf): Likewise.
42255         (__isinf_ns): Likewise.
42256         (__isinf_nsf): Likewise.
42257         (__finite): Likewise.
42258         (__finitef): Likewise.
42259         (__ieee754_sqrt): Define as macro.
42260         (__ieee754_sqrtf): Define as macro.
42261         (__ieee754_sqrtl): Define as macro.
42262         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42263         inlined copy.
42264         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42265         __FINITE_MATH_ONLY__ consistent.
42266         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42267
42268 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42269
42270         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42271         of rawmemchr.
42272
42273         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42274
42275 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42276
42277         * po/ja.po: Update from translation team.
42278
42279 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42280
42281         * locale/programs/locarchive.c (prepare_address_space): New function.
42282         (create_archive, enlarge_archive, open_archive): Use it.
42283
42284         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42285         inside [SHARED], where it is used.
42286
42287         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42288
42289         * nss/getent.c (netgroup_keys): Remove unused variable.
42290         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42291
42292 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42293
42294         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42295         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42296         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42297         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42298         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42299         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42300         * math/Makefile (libm-calls): Add s_isinf_ns.
42301         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42302         * math/multc3.c: Likewise.
42303         * math/s_casin.c: Likewise.
42304         * math/s_casinf.c: Likewise.
42305         * math/s_casinl.c: Likewise.
42306         * math/s_ccos.c: Likewise.
42307         * math/s_ccosf.c: Likewise.
42308         * math/s_ccosl.c: Likewise.
42309         * math/s_ctan.c: Likewise.
42310         * math/s_ctanf.c: Likewise.
42311         * math/s_ctanh.c: Likewise.
42312         * math/s_ctanhf.c: Likewise.
42313         * math/s_ctanhl.c: Likewise.
42314         * math/s_ctanl.c: Likewise.
42315         * math/w_fmod.c: Likewise.
42316         * math/w_fmodf.c: Likewise.
42317         * math/w_fmodl.c: Likewise.
42318         * math/w_remainder.c: Likewise.
42319         * math/w_remainderf.c: Likewise.
42320         * math/w_remainderl.c: Likewise.
42321         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42322         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42323         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42324         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42325         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42326         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42327         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42328         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42329
42330         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42331         of the number.
42332         * stdio-common/printf_fphex.c: Likewise.
42333         * stdio-common/printf_size.c: Likewise.
42334
42335         * math/e_exp10.c: Include math_private.h using <...> not "...".
42336         * math/e_exp10f.c: Likewise.
42337         * math/e_exp10l.c: Likewise.
42338         * math/e_exp2l.c: Likewise.
42339         * math/e_j0l.c: Likewise.
42340         * math/e_j1l.c: Likewise.
42341         * math/e_jnl.c: Likewise.
42342         * math/e_lgammal_r.c: Likewise.
42343         * math/e_rem_pio2l.c: Likewise.
42344         * math/e_scalb.c: Likewise.
42345         * math/e_scalbf.c: Likewise.
42346         * math/e_scalbl.c: Likewise.
42347         * math/k_cosl.c: Likewise.
42348         * math/k_sinl.c: Likewise.
42349         * math/k_tanl.c: Likewise.
42350         * math/s_cacoshf.c: Likewise.
42351         * math/s_catan.c: Likewise.
42352         * math/s_catanf.c: Likewise.
42353         * math/s_catanh.c: Likewise.
42354         * math/s_catanhf.c: Likewise.
42355         * math/s_catanhl.c: Likewise.
42356         * math/s_catanl.c: Likewise.
42357         * math/s_ccosh.c: Likewise.
42358         * math/s_ccoshf.c: Likewise.
42359         * math/s_ccoshl.c: Likewise.
42360         * math/s_cexp.c: Likewise.
42361         * math/s_cexpf.c: Likewise.
42362         * math/s_cexpl.c: Likewise.
42363         * math/s_clog.c: Likewise.
42364         * math/s_clog10.c: Likewise.
42365         * math/s_clog10f.c: Likewise.
42366         * math/s_clog10l.c: Likewise.
42367         * math/s_clogf.c: Likewise.
42368         * math/s_clogl.c: Likewise.
42369         * math/s_csin.c: Likewise.
42370         * math/s_csinf.c: Likewise.
42371         * math/s_csinh.c: Likewise.
42372         * math/s_csinhf.c: Likewise.
42373         * math/s_csinhl.c: Likewise.
42374         * math/s_csinl.c: Likewise.
42375         * math/s_csqrt.c: Likewise.
42376         * math/s_csqrtf.c: Likewise.
42377         * math/s_csqrtl.c: Likewise.
42378         * math/s_ctan.c: Likewise.
42379         * math/s_ctanf.c: Likewise.
42380         * math/s_ctanh.c: Likewise.
42381         * math/s_ctanhf.c: Likewise.
42382         * math/s_ctanhl.c: Likewise.
42383         * math/s_ctanl.c: Likewise.
42384         * math/s_ldexp.c: Likewise.
42385         * math/s_ldexpf.c: Likewise.
42386         * math/s_ldexpl.c: Likewise.
42387         * math/s_significand.c: Likewise.
42388         * math/s_significandf.c: Likewise.
42389         * math/s_significandl.c: Likewise.
42390         * math/w_acos.c: Likewise.
42391         * math/w_acosf.c: Likewise.
42392         * math/w_acosh.c: Likewise.
42393         * math/w_acoshf.c: Likewise.
42394         * math/w_acoshl.c: Likewise.
42395         * math/w_acosl.c: Likewise.
42396         * math/w_asin.c: Likewise.
42397         * math/w_asinf.c: Likewise.
42398         * math/w_asinl.c: Likewise.
42399         * math/w_atan2.c: Likewise.
42400         * math/w_atan2f.c: Likewise.
42401         * math/w_atan2l.c: Likewise.
42402         * math/w_atanh.c: Likewise.
42403         * math/w_atanhf.c: Likewise.
42404         * math/w_atanhl.c: Likewise.
42405         * math/w_cosh.c: Likewise.
42406         * math/w_coshf.c: Likewise.
42407         * math/w_coshl.c: Likewise.
42408         * math/w_dremf.c: Likewise.
42409         * math/w_exp10.c: Likewise.
42410         * math/w_exp10f.c: Likewise.
42411         * math/w_exp10l.c: Likewise.
42412         * math/w_exp2.c: Likewise.
42413         * math/w_exp2f.c: Likewise.
42414         * math/w_fmod.c: Likewise.
42415         * math/w_fmodf.c: Likewise.
42416         * math/w_fmodl.c: Likewise.
42417         * math/w_hypot.c: Likewise.
42418         * math/w_hypotf.c: Likewise.
42419         * math/w_hypotl.c: Likewise.
42420         * math/w_j0.c: Likewise.
42421         * math/w_j0f.c: Likewise.
42422         * math/w_j0l.c: Likewise.
42423         * math/w_j1.c: Likewise.
42424         * math/w_j1f.c: Likewise.
42425         * math/w_j1l.c: Likewise.
42426         * math/w_jn.c: Likewise.
42427         * math/w_jnf.c: Likewise.
42428         * math/w_jnl.c: Likewise.
42429         * math/w_lgamma.c: Likewise.
42430         * math/w_lgamma_r.c: Likewise.
42431         * math/w_lgammaf.c: Likewise.
42432         * math/w_lgammaf_r.c: Likewise.
42433         * math/w_lgammal.c: Likewise.
42434         * math/w_lgammal_r.c: Likewise.
42435         * math/w_log.c: Likewise.
42436         * math/w_log10.c: Likewise.
42437         * math/w_log10f.c: Likewise.
42438         * math/w_log10l.c: Likewise.
42439         * math/w_log2.c: Likewise.
42440         * math/w_log2f.c: Likewise.
42441         * math/w_log2l.c: Likewise.
42442         * math/w_logf.c: Likewise.
42443         * math/w_logl.c: Likewise.
42444         * math/w_pow.c: Likewise.
42445         * math/w_powf.c: Likewise.
42446         * math/w_powl.c: Likewise.
42447         * math/w_remainder.c: Likewise.
42448         * math/w_remainderf.c: Likewise.
42449         * math/w_remainderl.c: Likewise.
42450         * math/w_scalb.c: Likewise.
42451         * math/w_scalbf.c: Likewise.
42452         * math/w_scalbl.c: Likewise.
42453         * math/w_sinh.c: Likewise.
42454         * math/w_sinhf.c: Likewise.
42455         * math/w_sinhl.c: Likewise.
42456         * math/w_sqrt.c: Likewise.
42457         * math/w_sqrtf.c: Likewise.
42458         * math/w_sqrtl.c: Likewise.
42459         * math/w_tgamma.c: Likewise.
42460         * math/w_tgammaf.c: Likewise.
42461         * math/w_tgammal.c: Likewise.
42462
42463         * po/ja.po: Update from translation team.
42464
42465 2011-09-29  Andreas Jaeger  <aj@suse.de>
42466
42467         [BZ #13179]
42468         * sunrpc/netname.c (netname2host): Fix logic.
42469
42470         [BZ #6779]
42471         [BZ #6783]
42472         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42473         correctly.
42474         * math/w_remainder.c (__remainder): Likewise.
42475         * math/w_remainderf.c (__remainderf): Likewise.
42476         * math/libm-test.inc (remainder_test): Add test cases.
42477
42478 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42479
42480         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42481         sdiv_qrnnd.
42482
42483 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42484
42485         * string/test-memcmp.c: Avoid unncessary #defines.
42486         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42487
42488 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42489
42490         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42491         Use new sse2 version for core i3 - i7 as it's faster
42492         than sse42 version.
42493         (bit_Prefer_PMINUB_for_stringop): New.
42494         * sysdeps/x86_64/rawmemchr.S: Update.
42495         Replace with faster SSE2 version.
42496         * sysdeps/x86_64/memrchr.S: New file.
42497         * sysdeps/x86_64/memchr.S: Update.
42498         Replace with faster SSE2 version.
42499
42500 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42501
42502         * elf/dl-load.c (lose): Add cast to avoid warning.
42503
42504 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42505
42506         * po/ca.po: Update from translation team.
42507
42508         * inet/getnetgrent_r.c: Hook up nscd.
42509         * nscd/Makefile (routines): Add nscd_netgroup.
42510         (nscd-modules): Add netgroupcache.
42511         (CFLAGS-netgroupcache.c): Define.
42512         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42513         (cache_search): Add const to second parameter.
42514         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42515         INNETGR.
42516         (dbs): Add netgrdb entry.
42517         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42518         (verify_persistent_db): Handle netgrdb.
42519         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42520         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42521         GETFDNETGR.
42522         (netgroup_response_header): Define.
42523         (innetgroup_response_header): Define.
42524         (datahead): Add netgroup_response_header and innetgroup_response_header
42525         elements.
42526         * nscd/nscd.conf: Add entries for netgroup cache.
42527         * nscd/nscd.h (dbtype): Add netgrdb.
42528         (_PATH_NSCD_NETGROUP_DB): Define.
42529         (netgroup_iov_disabled): Declare.
42530         (xmalloc, xcalloc, xrealloc): Move declarations here.
42531         (cache_search): Adjust prototype.
42532         Add netgroup-related prototypes.
42533         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42534         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42535         (__nscd_innetgr): Declare.
42536         * nscd/selinux.c (perms): Use access_vector_t as element type and
42537         add netgroup-related initializers.
42538         * nscd/netgroupcache.c: New file.
42539         * nscd/nscd_netgroup.c: New file.
42540         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42541         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42542         For four parameters use innetgr.
42543         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42544         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42545         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42546         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42547
42548         * nscd/connections.c (register_traced_file): Don't register file
42549         for disabled databases.
42550
42551 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42552
42553         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42554
42555         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42556         from tree and freeing node.
42557
42558 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42559
42560         * nss/nsswitch.c (__nss_database_lookup): Handle
42561         nss_parse_service_list out of memory case.
42562
42563 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42564
42565         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42566         out of memory case.
42567
42568 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42569
42570         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42571         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42572         pass it down.
42573         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42574         elf_machine_rela, elf_machine_lazy_rel.
42575         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42576         (ELF_DYNAMIC_DO_REL): Likewise.
42577         (ELF_DYNAMIC_DO_RELA): Likewise.
42578         (ELF_DYNAMIC_RELOCATE): Likewise.
42579         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42580         to ELF_DYNAMIC_DO_REL.
42581         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42582         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42583         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42584         elf_machine_rela.
42585         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42586         skip_ifunc, don't call ifunc function if non-zero.
42587         (elf_machine_rela): Likewise.
42588         (elf_machine_lazy_rel): Likewise.
42589         (elf_machine_lazy_rela): Likewise.
42590         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42591         (elf_machine_lazy_rel): Likewise.
42592         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42593         Likewise.
42594         (elf_machine_lazy_rel): Likewise.
42595         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42596         Likewise.
42597         (elf_machine_lazy_rel): Likewise.
42598         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42599         (elf_machine_lazy_rel): Likewise.
42600         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42601         (elf_machine_lazy_rel): Likewise.
42602         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42603         (elf_machine_lazy_rel): Likewise.
42604         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42605         (elf_machine_lazy_rel): Likewise.
42606         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42607         (elf_machine_lazy_rel): Likewise.
42608         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42609         (elf_machine_lazy_rel): Likewise.
42610
42611 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42612
42613         * nss/nss_files/files-init.c (_nss_files_init): Use static
42614         initialization for all the *_traced_file variables.
42615
42616 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42617
42618         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42619
42620 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42621
42622         [BZ #13226]
42623         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42624
42625 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42626
42627         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42628         Reread the line before reparsing it.
42629
42630 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42631
42632         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42633
42634 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42635             Maxim Kuvyrkov  <maxim@codesourcery.com>
42636             Joseph Myers  <joseph@codesourcery.com>
42637
42638         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42639         if needed for __stack_chk_guard.
42640
42641 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42642
42643         * sysdeps/posix/spawni.c (script_execute): Always define it.
42644         It will be optimized away if unused.
42645         (maybe_script_execute): New function.
42646         (__spawni): Call it.
42647
42648         * Makerules: Don't include tls.make.
42649         (config-tls): Always set to thread.
42650         * tls.make.c: File removed.
42651
42652 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42653
42654         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42655         * config.make.in (CPPFLAGS-config): New substituted variable.
42656
42657 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42658
42659         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42660
42661         [BZ #13192]
42662         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42663         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42664
42665 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42666
42667         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42668         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42669         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42670         (CALL_FAIL): Likewise.
42671         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42672         (CALL_FAIL): Macro removed.
42673         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42674
42675 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42676
42677         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42678         for __FINITE_MATH_ONLY__ == 1.
42679
42680 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42681
42682         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42683         __ieee754_sqrt instead of sqrt.
42684         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42685         __ieee754_sqrtf instead of sqrtf.
42686         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42687         __floorf instead of floorf.
42688         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42689         __floorf, __truncf instead of floorf, truncf.
42690
42691 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42692
42693         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42694
42695         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42696         __extern_always_inline.
42697         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42698         32-bit.
42699
42700 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42701
42702         * elf/rtld.c (dl_main): Also relocate in dependency order when
42703         doing symbol dependency testing.
42704
42705 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42706
42707         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42708         Always define `refsym'.
42709
42710 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42711
42712         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42713         (__FD_ELT): Renamed from __FDELT.
42714         * misc/bits/select2.h (__FD_ELT): Likewise.
42715         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42716         __FD_MASK instead of __FDELT, __FDMASK.
42717         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42718         Likewise.
42719         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42720         Likewise.
42721
42722         * elf/Makefile (gen-ldd): Fix pattern.
42723
42724         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42725         (init_tls): Likewise.
42726
42727 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42728
42729         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42730
42731 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42732
42733         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42734         `struct cmsghdr *' instead of `void *'.
42735         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42736         Likewise.
42737
42738 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42739
42740         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42741         if non-absolute.
42742         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42743         ldd_rewrite_script.
42744
42745 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42746
42747         * configure.in: Remove --with-tls option.
42748         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42749         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42750         out in case it is missing.
42751         * sysdeps/ia64/elf/configure.in: Likewise.
42752         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42753         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42754         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42755         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42756         * sysdeps/sh/elf/configure.in: Likewise.
42757         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42758         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42759         * sysdeps/x86_64/elf/configure.in: Likewise.
42760         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42761         * sysdeps/mach/hurd/tls.h: Likewise.
42762
42763         [BZ #13067]
42764         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42765
42766         [BZ #13090]
42767         * configure.in: Fix use of AC_INIT.
42768
42769         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42770
42771 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42772
42773         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42774         __set_errno.
42775         * malloc/hooks.c: Likewise.
42776
42777         [BZ #11929]
42778         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42779         variables statically.
42780         (narenas): Initialize.
42781         (list_lock): Initialize.
42782         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42783         initializtion of main_arena and list_lock.  Small cleanups.
42784         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42785         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42786         Add initializers to main_arena and mp_.
42787         (malloc_state): Remove pagesize member.  Change all users to use
42788         GLRO(dl_pagesize).
42789
42790         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42791         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42792         is always initialized.
42793
42794         * malloc/malloc.c: Removed unused configurations and dead code.
42795         * malloc/arena.c: Likewise.
42796         * malloc/hooks.c: Likewise.
42797         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42798
42799         * include/tls.h: Removed.  USE___THREAD must always be defined.
42800         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42801         * elf/dl-libc.c: Likewise.
42802         * elf/dl-tsd.c: Likewise.
42803         * include/errno.h: Likewise.
42804         * include/netdb.h: Likewise.
42805         * include/resolv.h: Likewise.
42806         * inet/herrno-loc.c: Likewise.
42807         * inet/herrno.c: Likewise.
42808         * malloc/arena.c: Likewise.
42809         * malloc/hooks.c: Likewise.
42810         * malloc/malloc.c: Likewise.
42811         * resolv/res-state.c: Likewise.
42812         * resolv/res_libc.c: Likewise.
42813         * sysdeps/i386/dl-machine.h: Likewise.
42814         * sysdeps/ia64/dl-machine.h: Likewise.
42815         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42816         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42817         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42818         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42819         * sysdeps/sh/dl-machine.h: Likewise.
42820         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42821         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42822         * sysdeps/unix/i386/sysdep.S: Likewise.
42823         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42824         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42825         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42826         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42827         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42828         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42829         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42830         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42831         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42832         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42833         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42834         * sysdeps/x86_64/dl-machine.h: Likewise.
42835         * tls.make.c: Likewise.
42836
42837         * configure.in: Remove --with-__thread option.  Make tests for
42838         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42839         tls_model attribute fail if no support is available.  Remove
42840         USE_IN_LIBIO.
42841         * Makeconfig: Adjust for dropped configure option.  All features are
42842         now mandatory.
42843         * Makerules: Likewise.
42844         * Versions.def: Likewise.
42845         * argp/argp-fmtstream.c: Likewise.
42846         * argp/argp-fmtstream.h: Likewise.
42847         * argp/argp-help.c: Likewise.
42848         * assert/assert.c: Likewise.
42849         * config.h.in: Likewise.
42850         * config.make.in: Likewise.
42851         * configure: Likewise.
42852         * configure.in: Likewise.
42853         * csu/Versions: Likewise.
42854         * csu/init.c: Likewise.
42855         * elf/tst-audit2.c: Likewise.
42856         * elf/tst-tls10.c: Likewise.
42857         * elf/tst-tls10.h: Likewise.
42858         * elf/tst-tls11.c: Likewise.
42859         * elf/tst-tls12.c: Likewise.
42860         * elf/tst-tls14.c: Likewise.
42861         * elf/tst-tlsmod11.c: Likewise.
42862         * elf/tst-tlsmod12.c: Likewise.
42863         * elf/tst-tlsmod13.c: Likewise.
42864         * elf/tst-tlsmod13a.c: Likewise.
42865         * elf/tst-tlsmod14a.c: Likewise.
42866         * elf/tst-tlsmod15b.c: Likewise.
42867         * elf/tst-tlsmod16a.c: Likewise.
42868         * elf/tst-tlsmod16b.c: Likewise.
42869         * elf/tst-tlsmod7.c: Likewise.
42870         * elf/tst-tlsmod8.c: Likewise.
42871         * elf/tst-tlsmod9.c: Likewise.
42872         * gmon/gmon.c: Likewise.
42873         * grp/fgetgrent_r.c: Likewise.
42874         * grp/putgrent.c: Likewise.
42875         * hurd/fopenport.c: Likewise.
42876         * include/libc-symbols.h: Likewise.
42877         * include/tls.h: Likewise.
42878         * intl/gettextP.h: Likewise.
42879         * intl/loadinfo.h: Likewise.
42880         * locale/global-locale.c: Likewise.
42881         * locale/localeinfo.h: Likewise.
42882         * mach/devstream.c: Likewise.
42883         * malloc/arena.c: Likewise.
42884         * malloc/set-freeres.c: Likewise.
42885         * misc/err.c: Likewise.
42886         * misc/getttyent.c: Likewise.
42887         * misc/mntent_r.c: Likewise.
42888         * posix/getopt.c: Likewise.
42889         * posix/wordexp.c: Likewise.
42890         * pwd/fgetpwent_r.c: Likewise.
42891         * resolv/Versions: Likewise.
42892         * resolv/res_hconf.c: Likewise.
42893         * shadow/fgetspent_r.c: Likewise.
42894         * shadow/putspent.c: Likewise.
42895         * stdio-common/printf_fphex.c: Likewise.
42896         * stdio-common/tmpfile.c: Likewise.
42897         * stdlib/abort.c: Likewise.
42898         * stdlib/fmtmsg.c: Likewise.
42899         * sunrpc/auth_unix.c: Likewise.
42900         * sunrpc/clnt_perr.c: Likewise.
42901         * sunrpc/clnt_tcp.c: Likewise.
42902         * sunrpc/clnt_udp.c: Likewise.
42903         * sunrpc/clnt_unix.c: Likewise.
42904         * sunrpc/openchild.c: Likewise.
42905         * sunrpc/svc_simple.c: Likewise.
42906         * sunrpc/svc_tcp.c: Likewise.
42907         * sunrpc/svc_udp.c: Likewise.
42908         * sunrpc/svc_unix.c: Likewise.
42909         * sunrpc/xdr.c: Likewise.
42910         * sunrpc/xdr_array.c: Likewise.
42911         * sunrpc/xdr_rec.c: Likewise.
42912         * sunrpc/xdr_ref.c: Likewise.
42913         * sunrpc/xdr_stdio.c: Likewise.
42914
42915 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42916
42917         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42918
42919 2011-07-03  Andreas Jaeger  <aj@suse.de>
42920
42921         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42922         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42923         regenerate with gen-libm-tests.pl.
42924
42925 2010-05-12  Petr Baudis  <pasky@suse.cz>
42926
42927         [BZ #11589]
42928         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42929         around j0() zero points by switching to j1().
42930         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42931         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42932         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42933         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42934
42935 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42936
42937         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42938         instead of 0.
42939         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42940         instead of 0.
42941         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42942         Patch in part by Pavel Roskin <proski@gnu.org>.
42943
42944         [BZ #13138]
42945         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42946         realloc.
42947         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42948         Free memory block if necessary.
42949
42950         [BZ #12847]
42951         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42952         be NULL.  Don't lock in this case.
42953
42954 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42955
42956         * elf/elf.h (ELFOSABI_GNU): New macro.
42957         (ELFOSABI_LINUX): Define to that.
42958
42959 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42960
42961         * string/strncat.c (strncat): Undef the symbol in case it has been
42962         defined in bits/string.h.
42963
42964 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42965
42966         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42967
42968         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42969         link map.
42970
42971 2011-08-17  Andreas Jaeger  <aj@suse.de>
42972
42973         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42974
42975 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42976             Ian Lance Taylor  <iant@google.com>
42977
42978         * math/libm-test.inc (lround_test): New testcase.
42979         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42980
42981 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42982
42983         * Makefile: Remove support for automatic cvs check-ins.
42984         * Makerules: Likewise.
42985         * config.make.in: Likewise.
42986         * configure.in: Likewise.
42987         * intl/Makefile: Likewise.
42988         * locale/Makefile: Likewise.
42989         * po/Makefile: Likewise.
42990         * posix/Makefile: Likewise.
42991         * sysdeps/gnu/Makefile: Likewise.
42992         * sysdeps/mach/hurd/Makefile: Likewise.
42993         * sysdeps/sparc/sparc32/Makefile: Likewise.
42994
42995         [BZ #13118]
42996         * posix/Makefile (bug-regex32-ENV): Define.
42997         Patch by John Stanley <jpsinthemix@verizon.net>.
42998
42999         * misc/Makefile (headers): Add bits/select2.h.
43000         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
43001         * misc/bits/select2.h: New file.
43002         * include/bits/select2.h: New file.
43003         * debug/Makefile (routines): Add fdelt_chk.
43004         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
43005         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
43006         FD_ISSET.
43007         * debug/fdelt_chk.c: New file.
43008
43009         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
43010         * wcsmbs/test-wmemcmp.c: Likewise.
43011         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
43012         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
43013
43014 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43015
43016         * string/Makefile (strop-tests): Add memcmp.
43017         * string/test-wmemcmp.c: New file.
43018         * string/test-memcmp.c: Add wmemcmp support.
43019
43020 2011-09-08  Roland McGrath  <roland@hack.frob.com>
43021
43022         [BZ #13153]
43023         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
43024         2011-07-19 change.
43025
43026         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
43027         garbage value in a __mach_port_mod_refs call in the cases of the
43028         task-self and thread-self ports.
43029
43030 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43031
43032         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
43033
43034 2011-09-08  Andreas Schwab  <schwab@redhat.com>
43035
43036         * elf/dl-load.c (lose): Check for non-null L.
43037
43038 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43039
43040         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
43041
43042         * elf/dl-libc.c (dlerror_run): Pass back error code from
43043         dl_catch_error.
43044
43045         [BZ #13123]
43046         * elf/dl-load.c (lose): Free l_origin if it is valid.
43047
43048         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
43049         names.
43050         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
43051         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43052         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43053         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43054         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
43055         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
43056
43057 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43058
43059         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43060         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43061         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43062         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43063         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43064         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43065         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43066         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43067         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43068         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43069
43070 2011-08-15  Alan Modra  <amodra@gmail.com>
43071
43072         [BZ #13092]
43073         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43074         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43075         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43076         ppc_mcount to static-only-routines.
43077         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43078         __mcount_internal.
43079         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43080         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43081
43082 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43083
43084         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43085         for finite and infinity parameters.
43086
43087 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43088
43089         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43090         and add nop instructions for throughput optimization.
43091         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43092
43093 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43094
43095         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43096         aligned copy for power7 with vector-scalar instructions.
43097         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43098
43099 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43100
43101         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43102         AVX check.
43103
43104 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43105
43106         [BZ #13144]
43107         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43108         last change.
43109
43110 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43111
43112         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43113         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43114         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43115         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43116         clock_gettime.
43117
43118 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43119
43120         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43121         Forgot to demangle the pointer.
43122
43123         * sysdeps/i386/sysdep.h: Define atom_text_section.
43124         * sysdeps/x86_64/sysdep.h: Likewise.
43125         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43126         section with atom_text_section.
43127         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43128         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43129         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43130         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43131         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43132
43133         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43134         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43135         already be defined.  Change to take two parameters and don't assign
43136         result to variable.  Adjust all users.
43137         Define INTERNAL_GETTIME if not already defined.
43138         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43139         call.
43140         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43141         HAVE_CLOCK_GETTIME_VSYSCALL.
43142         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43143
43144         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43145         gettimeofday vsyscall, just use time.
43146
43147 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43148
43149         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43150         <errno.h>.
43151
43152 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43153
43154         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43155         syscall on x86-64.
43156         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43157         syscall.
43158         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43159         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43160         syscall if possible.
43161
43162 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43163
43164         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43165         e_ident.  Don't pass to find_mapsXX.
43166         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43167
43168 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43169
43170         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43171         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43172         * sysdeps/x86_64/multiarch/strchr.S: Update.
43173         Check bit_slow_BSF bit.
43174         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43175         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43176         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43177
43178 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43179
43180         [BZ #13134]
43181         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43182         before glibc 2.15.
43183         (tryshell): Define.
43184         (__spawni): Change last parameter to be flag.  Test
43185         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43186         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43187         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43188         * posix/spawni.c: Likewise.
43189         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43190         * posix/spawnp.c: Likewise.  Change normal version to use
43191         SPAWN_XFLAGS_USE_PATH.
43192         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43193         SPAWN_XFLAGS_TRY_SHELL.
43194
43195         [BZ #13150]
43196         * posix/glob.h: Remove gcc 1.x support.
43197
43198         [BZ #13068]
43199         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43200
43201 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43202
43203         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43204         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43205         strrchr-sse2-bsf
43206         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43207         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43208         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43209         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43210         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43211         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43212
43213 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43214
43215         * sysdeps/x86_64/wcscmp.S: New file.
43216
43217         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43218         wcscmp-c wcscmp-sse2
43219         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43220         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43221         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43222         * wcsmbs/wcscmp.c: Allow renaming.
43223
43224 2011-09-05  David S. Miller  <davem@davemloft.net>
43225
43226         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43227         stack slot, rather than the struct return pointer slot.
43228         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43229         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43230         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43231         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43232
43233 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43234
43235         * po/ja.po: Update from translation team.
43236
43237         [BZ #13144]
43238         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43239         kernel in 64-bit binaries.
43240
43241 2011-09-01  David S. Miller  <davem@davemloft.net>
43242
43243         * elf/elf.h (HWCAP_SPARC_*): Move to..
43244         * sysdeps/sparc/sysdep.h: this new file and add new values.
43245         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43246         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43247         _DL_HWCAP_COUNT to 24.
43248         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43249         entries.
43250         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43251         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43252         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43253         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43254         instead of magic constants.
43255         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43256
43257 2011-08-31  David S. Miller  <davem@davemloft.net>
43258
43259         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43260         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43261         Reimplement to do errno handling inline.
43262         (SYSCALL_ERROR_HANDLER): New macro.
43263         (__SYSCALL_STRING): Do not do errno handling in asm.
43264         (__CLONE_SYSCALL_STRING): Delete.
43265         (__INTERNAL_SYSCALL_STRING): Delete.
43266         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
43267         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43268         (PSEUDO): Reimplement to do errno handling inline.
43269         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43270         (SYSCALL_ERROR_HANDLER): New macro.
43271         (__SYSCALL_STRING): Do not do errno handling in asm.
43272         (__CLONE_SYSCALL_STRING): Delete.
43273         (__INTERNAL_SYSCALL_STRING): Delete.
43274         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43275         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43276         i386.
43277         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43278         (inline_syscall*): Add 'err' argument.
43279         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43280         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43281         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43282         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43283
43284         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43285         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43286
43287 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43288
43289         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43290
43291 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43292
43293         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43294         directive.
43295
43296 2011-08-24  David S. Miller  <davem@davemloft.net>
43297
43298         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43299
43300 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43301
43302         * elf/Makefile: Add rules to build and run unload8 test.
43303         * elf/unload8.c: New file.
43304         * elf/unload8mod1.c: New file.
43305         * elf/unload8mod1x.c: New file.
43306         * elf/unload8mod2.c: New file.
43307         * elf/unload8mod3.c: New file.
43308
43309         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43310         it wasn't used.
43311
43312 2011-08-23  David S. Miller  <davem@davemloft.net>
43313
43314         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43315         subtract stack bias.
43316         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43317         %sp not %fp in calculations.
43318         (_JMPBUF_UNWINDS_ADJ): Likewise.
43319
43320         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43321         (aio_suspend): Call it to force an exception region around the
43322         AIO_MISC_WAIT() invocation.
43323
43324 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43325
43326         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43327         backslash.
43328
43329 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43330
43331         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43332         protection macro.
43333         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43334         and <dl-machine.h>.
43335         (Elf64_FuncDesc): Remove.
43336
43337 2011-08-22  David S. Miller  <davem@davemloft.net>
43338
43339         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43340         sigaltstack check, add missing cfi directives.
43341         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43342         missing cfi directives, and sigaltstack handling.
43343
43344 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43345
43346         [BZ #11724]
43347         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43348         object is seen twice.
43349         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43350
43351         * elf/Makefile (distribute): Add tst-initorder2.c.
43352         (tests): Add tst-initorder2.
43353         (modules-names): Add tst-initorder2a tst-initorder2b
43354         tst-initorder2c tst-initorder2d.  Add rules to build them.
43355         ($(objpfx)tst-initorder2.out): New rule.
43356         * elf/tst-initorder2.c: New file.
43357         * elf/tst-initorder2.exp: New file.
43358
43359 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43360
43361         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43362
43363         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43364         dependencies back to end of function.
43365
43366         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43367         $(elfobjdir)/ld.so.
43368
43369 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43370
43371         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43372         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43373         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43374         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43375         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43376         of __vdso_gettimeofday.
43377         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43378         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43379         attribute_hidden.
43380         (_libc_vdso_platform_setup): Remove initialization of
43381         __vdso_gettimeofday and __vdso_time.
43382
43383 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43384
43385         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43386         and fgetc_unlocked.
43387         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43388         getc_unlocked.
43389
43390         * elf/dl-open.c (add_to_global): Report additions to the global scope
43391         for LD_DEBUG=scopes.
43392         (dl_open_worker): Also print scope of newly loaded dependencies.
43393         (_dl_show_scope): Indicate if there is no scope.
43394
43395         [BZ #13114]
43396         * stdio-common/Makefile (tests): Add bug24.
43397         * stdio-common/bug24.c: New file.
43398
43399 2011-08-19  Andreas Jaeger  <aj@suse.de>
43400
43401         [BZ #13114]
43402         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
43403         non-existant file when using close-on-exec mode.
43404
43405 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43406
43407         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
43408         the very first instruction.
43409
43410         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
43411         the CFI state in the end.
43412         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
43413         inclusion of dl-trampoline.h.
43414         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
43415
43416 2011-08-19  Andreas Schwab  <schwab@redhat.com>
43417
43418         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
43419         expectations for long double.
43420
43421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
43422         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
43423
43424 2011-08-14  David S. Miller  <davem@davemloft.net>
43425
43426         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
43427         artificual limit depends upon the system page size.
43428
43429 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43430
43431         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
43432         * resolv/Makefile: Define CFLAGS-libresolv.
43433
43434 2011-08-17  Andreas Schwab  <schwab@redhat.com>
43435
43436         * nss/makedb.c (compute_tables): Make variables used in nested
43437         function static.
43438
43439 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43440
43441         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43442         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43443         if buffer was too small.
43444
43445         * elf/pldd.c (main): Attach to all threads in the process.
43446         Rewrite /proc handling to use *at functions.
43447
43448 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43449
43450         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43451         specifies first scope to show.
43452         (dl_open_worker): Update callers.  Move printing scope of new
43453         object to before the relocation.
43454         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43455         * sysdeps/generic/ldsodefs.h: Update declaration.
43456
43457         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43458         string for the scope number.
43459
43460 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43461
43462         * nscd/servicescache.c (cache_addserv): Make sure written is always
43463         initialized.
43464
43465 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43466
43467         * sysdeps/i386/i486/bits/atomic.h
43468         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43469         statement expression, so as to suppress "set but not used" warning.
43470         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43471
43472         * string/strncat.c (STRNCAT): Use prototype definition.
43473
43474         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43475         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43476         -Iprograms here.
43477         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43478         (localedef-modules): Add localedef.
43479         (locale-modules): Add locale.
43480
43481         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43482         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43483         to avoid a warning.
43484
43485 2011-08-14  David S. Miller  <davem@davemloft.net>
43486
43487         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43488         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43489
43490 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43491
43492         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43493         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43494         * elf/rtld.c (dl_main): Set l_name of vDSO.
43495         Call _dl_show_scope when DL_DEBUG_SCOPES.
43496         (process_dl_debug): Recognize scopes flag and also set it for all.
43497         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43498         Declare _dl_show_scope.
43499
43500         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43501         (do_dlopen): Pass caller_dlopen to dl_open.
43502         (__libc_dlopen_mode): Initialize caller_dlopen.
43503
43504         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43505         of libc.  Make tolower call locale-independent.  Optimize a bit by
43506         using isdigit instead of isalnum.
43507         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43508
43509 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43510
43511         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43512         was a dependency or dynamically loaded.
43513
43514 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43515
43516         * intl/l10nflist.c: Allow architecture-specific pop function.
43517         * sysdeps/x86_64/l10nflist.c: New file.
43518
43519         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43520         classification.
43521
43522 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43523
43524         * include/dirent.h: Add libc_hidden_proto for scandirat and
43525         scandirat64.  Don't declare __scandirat64.
43526         * dirent/scandirat.c: Add libc_hidden_def.
43527         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43528         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43529
43530 2011-08-10  David S. Miller  <davem@davemloft.net>
43531
43532         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43533         enum.
43534         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43535         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43536         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43537
43538 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43539
43540         * Versions.def [libc]: Add GLIBC_2.15.
43541         * dirent/Makefile (routines): Add scandirat and scandirat64.
43542         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43543         GLIBC_2.15.
43544         * dirent/dirent.h: Declare scandirat and scandirat64.
43545         * dirent/scandirat.c: New file.
43546         * dirent/scandirat64.c: New file.
43547         * sysdeps/wordsize-64/scandirat.c: New file.
43548         * sysdeps/wordsize-64/scandirat64.c: New file.
43549         * dirent/opendir.c: Define opendirat.
43550         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43551         using scandirat.
43552         * dirent/scandir64.c: Adjust for scandir.c change.
43553         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43554         __scandirat64, and __scandir_cancel_handler.
43555         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43556         additional parameter and use openat instead of open (outside of ld.so).
43557         Add new __opendir as wrapper around __opendirat.
43558         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43559         here without requiring old scandirat implementation.
43560
43561 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43562
43563         * dirent/scandir.c (cancel_handler): Renamed to
43564         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43565         defined.  Adjust users.
43566         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43567         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43568
43569 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43570
43571         * string/test-string.h (IMPL): Use __STRING to expand name and then
43572         stringify it.
43573
43574         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43575         of cleanups.
43576
43577 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43578
43579         * string/Makefile: Update.
43580         (strop-tests): Append strncat.
43581         * string/test-wcscmp.c: New file.
43582         New comprehensive test for wcscmp.
43583         * string/test-strcmp.c: Update.
43584         (WIDE): New define.
43585
43586 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43587
43588         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43589         line.
43590
43591 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43592
43593         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43594         encoding to ACE if AI_IDN.
43595
43596 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43597
43598         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43599         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43600
43601 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43602
43603         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43604         Fix overflow bug in strncat.
43605         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43606
43607         * string/test-strncat.c: Update.
43608         Add new tests for checking overflow bugs.
43609
43610 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43611
43612         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43613         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43614         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43615         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43616         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43617         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43618         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43619         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43620         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43621
43622         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43623         (USE_AS_STRCAT): Define.
43624         Add strcat and strncat support.
43625         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43626
43627 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43628
43629         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43630         __n bigger than INT_MAX+1.
43631         (__strncmp_g): Likewise.
43632
43633 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43634
43635         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43636         * libio/stido.h: Likewise.
43637
43638         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43639         (AF_NFC): Define.
43640         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43641         (AF_NFC): Define.
43642
43643         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43644         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43645         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43646         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43647         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43648
43649         [BZ #13021]
43650         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43651         installed.
43652
43653         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43654         typo.
43655         (_dl_x86_64_save_sse): Likewise.
43656
43657 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43658
43659         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43660         OSXSAVE.
43661         (_dl_x86_64_save_sse): Likewise.
43662
43663         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43664
43665         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43666
43667 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43668
43669         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43670         change.
43671         (_dl_x86_64_save_sse): Use correct AVX check.
43672
43673 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43674
43675         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43676         bug in strncpy/strncat.
43677         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43678
43679 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43680
43681         * string/tester.c (test_strcat): Add tests for different alignments
43682         of source and destination.
43683         (test_strncat): Likewise.
43684
43685 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43686
43687         [BZ #12852]
43688         * posix/glob.c (glob): Check passed in values before using them in
43689         expressions to avoid some overflows.
43690         (glob_in_dir): Likewise.
43691
43692         [BZ #13007]
43693         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43694         check for AVX enablement so that we don't crash with old kernels and
43695         new hardware.
43696         * elf/tst-audit4.c: Add same checks here.
43697         * elf/tst-audit6.c: Likewise.
43698
43699         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43700
43701 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43702
43703         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43704
43705 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43706
43707         * po/cs.po: Update from translation team.
43708         * po/bg.po: Likewise.
43709
43710 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43711
43712         * misc/sys/cdefs.h: Add support for const attribute.
43713         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43714         to gnu_dev_{major,minor,makedev} functions.
43715
43716 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43717
43718         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43719
43720 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43721
43722         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43723         strlen results.
43724
43725 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43726
43727         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43728         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43729         register in order to avoid conflicts with the soft frame pointer
43730         being held in r11 when necessary.
43731         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43732         (INTERNAL_VSYSCALL_NCS): Likewise.
43733
43734 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43735
43736         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43737         * elf/dl-fini.c (_dl_fini): Adjust caller.
43738         * elf/dl-close.c (_dl_close_worker): Likewise.
43739         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43740
43741 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43742
43743         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43744         "aux_cache->nlibs < 0".
43745
43746         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43747         in the reload-count case.
43748
43749 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43750
43751         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43752         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43753         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43754         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43755         * sysdeps/x86_64/multiarch/strcat.S: New file.
43756         * sysdeps/x86_64/multiarch/strncat.S: New file.
43757         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43758         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43759         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43760         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43761         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43762         (USE_AS_STRCAT): Define.
43763         Add strcat and strncat support.
43764         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43765         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43766         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43767         * string/strncat.c: Update.
43768         (USE_AS_STRNCAT): Define.
43769         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43770         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43771         and i7.
43772         * sysdeps/x86_64/multiarch/init-arch.h
43773         (bit_Prefer_PMINUB_for_stringop): New.
43774         (index_Prefer_PMINUB_for_stringop): Likewise.
43775         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43776         bit_Prefer_PMINUB_for_stringop.
43777
43778 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43779
43780         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43781         buffer64.
43782         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43783         of casting of buffer.
43784         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43785         buffer32 and buffer64.
43786         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43787         writes instead of casting of buffer.
43788         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43789         buffer32.
43790         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43791         casting of buffer.
43792
43793 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43794
43795         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43796
43797 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43798
43799         * nscd/nscd.c (termination_handler): Don't do anything for a database
43800         if it has not yet been initialized.
43801
43802 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43803
43804         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43805
43806 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43807
43808         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43809
43810 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43811
43812         * po/nl.po: Update from translation team.
43813         * po/sv.po: Likewise.
43814
43815 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43816
43817         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43818         now disallowed by GCC.
43819
43820         * configure.in (use-default-link): Default to yes if a test -shared
43821         link meets our qualifications.
43822         * configure: Regenerated.
43823
43824         * config.make.in (output-format): New variable.
43825         * configure.in: Check for ld --print-output-format support.
43826         * configure: Regenerated.
43827         * Makerules ($(common-objpfx)format.lds)
43828         [$(output-format) != unknown]: Just use $(output-format),
43829         instead of the linker-script munging.
43830
43831 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43832
43833         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43834         of $(common-objpfx)shlib.lds.
43835         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43836
43837         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43838         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43839
43840         * configure.in (-z relro check): Adjust test code to add a large
43841         writable data section after it.
43842         * configure: Regenerated.
43843
43844 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43845
43846         * configure.in (-z relro check): Fix test code to make the variable
43847         truly const.
43848         * configure: Regenerated.
43849
43850 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43851
43852         * nscd/nscd.h (struct traced_file): Define.
43853         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43854         elements.  Add traced_files.
43855         (inotify_fd): Declare.
43856         (register_traced_file): Declare.
43857         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43858         (inotify_fd): Export.
43859         (resolv_conf_descr): Remove.
43860         (nscd_init): Move inotify descriptor creation to main.
43861         Don't register files for notification here.
43862         (register_traced_file): New function.
43863         (invalidate_cache): Don't use reset_res to determine whether to call
43864         res_init, go through the list of registered files.
43865         (main_loop_poll): The inotify descriptors are now stored in the
43866         structures for the traced files.
43867         (main_loop_epoll): Likewise
43868         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43869         to __nss_disable_nscd.
43870         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43871         for a database anymore.  Check the records for all the registered
43872         files instead.
43873         * nss/Makefile (libnss_files-routines): Add files-init.
43874         (libnss_db-routines): Add db-init.
43875         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43876         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43877         * nss/nss_db/db-init.c: New file.
43878         * nss/nss_files/files-init.c: New file.
43879         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43880         __nss_lookup_function.
43881         (__nss_lookup_function): Call nss_load_library.
43882         (nss_load_all_libraries): New function.
43883         (__nss_disable_nscd): Take parameter with callback function for files
43884         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43885         used for the cached services.
43886         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43887         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43888         options for features to all the files in nscd.
43889
43890         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43891
43892 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43893
43894         * csu/elf-init.c (__libc_csu_init): Comment typo.
43895
43896 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43897
43898         * po/pl.po: Update from translation team.
43899         * po/ja.po: Likewise.
43900         * po/ru.po: Likewise.
43901         * po/ko.po: Likewise.
43902         * po/fr.po: Likewise.
43903
43904 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43905
43906         * configure.in (.ctors/.dtors header and trailer check):
43907         Use an empirical test on a built program.
43908         * configure: Regenerated.
43909
43910         * configure.in (-z relro check): Use an empirical test on a built DSO.
43911         Detect, but do not require, on ia64.
43912         * configure: Regenerated.
43913
43914         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43915         Update tests that use readelf to use $READELF instead.
43916         * configure: Regenerated.
43917
43918 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43919
43920         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43921         if the result is not used.
43922
43923 2011-07-05  Andreas Jaeger  <aj@suse.de>
43924
43925         [BZ#9696]
43926         * stdlib/tst-strtod.c: Add testcase.
43927
43928 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43929
43930         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43931         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43932         The latter has a higher limit.  Take additional parameter to pass to
43933         the new function.
43934         (__pathconf): Pass file to __statfs_link_max.
43935         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43936         __statfs_link_max.
43937         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43938         __statfs_link_max.
43939
43940         [BZ #12868]
43941         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43942         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43943         Handle Lustre.
43944         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43945         (__statfs_filesize_max): Likewise.
43946         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43947
43948 2011-07-05  Andreas Jaeger  <aj@suse.de>
43949
43950         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43951
43952 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43953
43954         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43955         `status' variable.
43956         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43957         Likewise.
43958
43959 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43960
43961         * Makefile (strop-tests): Add strncat.
43962         * string/test-strncat.c: New file.
43963
43964 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43965
43966         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43967
43968 2011-06-21  Andreas Jaeger  <aj@suse.de>
43969
43970         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43971         Copy rule from iconvdata/Makefile.
43972
43973 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43974
43975         [BZ #12922]
43976         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43977         but no long options are defined, just return 'W'.
43978
43979 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43980
43981         [BZ #9696]
43982         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43983
43984 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43985
43986         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43987         netgroups to read.
43988         (innetgr): Likewise.
43989
43990 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43991
43992         * config.make.in (install_root): Default to $(DESTDIR).
43993
43994 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43995
43996         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43997
43998 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43999
44000         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
44001
44002         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
44003         containing directory rather than embedding absolute directory names.
44004
44005         * scripts/check-local-headers.sh: Rewritten using awk.
44006         Match by word, not by line.  Print error messages for matches.
44007         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
44008
44009         * Makerules [shlib-lds-flags empty]:
44010         ($(common-objpfx)libc_pic.opts): New target.
44011         ($(common-objpfx)libc_pic.os.clean): New target.
44012         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
44013
44014         * config.make.in (OBJCOPY): New variable.
44015         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
44016         * configure: Regenerated.
44017
44018         * config.make.in (use-default-link): New variable.
44019         * configure.in (use_default_link): Grok --with-default-link to set it.
44020         * configure: Regenerated.
44021         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
44022         (shlib-lds, shlib-lds-flags): Define to empty.
44023
44024         * Makerules (shlib-lds): New variable.
44025         (shlib-lds-flags): New variable.
44026         (build-shlib, build-moduile, build-module-asneeded): Use it.
44027         ($(common-objpfx)libc.so): Use $(shlib-lds).
44028         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
44029         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
44030
44031         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
44032         DT_FLAGS/DT_FLAGS_1 with zero flags.
44033
44034         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
44035         linker script munging.
44036
44037 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
44038
44039         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
44040         as 128-bit value.
44041         * crypt/sha512.c (sha512_process_block): Perform total addition using
44042         128-bit if possible.
44043         (__sha512_finish_ctx): Likewise.
44044         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
44045         as 64-bit value.
44046         * crypt/sha256.c (SWAP64): Define.
44047         (sha256_process_block): Perform total addition using 64-bit if
44048         possible.
44049         (__sha256_finish_ctx): Likewise.
44050
44051 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
44052
44053         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
44054         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44055         * nscd/hstcache.c (cache_addhst): Likewise.
44056         * nscd/grpcache.c (cache_addgr): Likewise.
44057         * nscd/aicache.c (addhstaiX): Likewise
44058         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44059
44060 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44061
44062         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44063         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44064         * nscd/hstcache.c (cache_addhst): Likewise.
44065         * nscd/grpcache.c (cache_addgr): Likewise.
44066         * nscd/aicache.c (addhstaiX): Likewise
44067
44068 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44069
44070         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44071         domain only when needed.
44072
44073 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44074
44075         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44076         is always restored.
44077
44078 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44079
44080         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44081         are re-adding the entry.
44082         * nscd/servicescache.c (cache_addserv): Likewise.
44083
44084 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44085
44086         * sysdeps/generic/dl-irel.h: fix protection against multiple
44087         inclusions.
44088         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44089
44090 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44091
44092         [BZ #12935]
44093         * malloc/memusage.sh: Fix quoting in message.
44094         * debug/xtrace.sh: Likewise.
44095
44096         * configure.in: Remove support for --experimental-malloc option, make
44097         it the default.
44098         * config.make.in: Likewise.
44099         * malloc/Makefile: Likewise.
44100
44101 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44102
44103         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44104         two-byte characters.
44105
44106 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44107
44108         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44109         AC_CACHE_CHECK invocation.
44110         * configure: Regenerated.
44111
44112         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44113
44114 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44115
44116         [BZ #12350]
44117         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44118         bit from old_res_options.
44119
44120         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44121
44122         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44123         value type for setfct.
44124
44125 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44126
44127         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44128         __gettimeofday instead of gettimeofday.
44129
44130 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44131
44132         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44133
44134 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44135
44136         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44137
44138         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44139         info.
44140
44141 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44142
44143         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44144         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44145         strcpy-sse2-unaligned strncpy-sse2-unaligned
44146         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44147         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44148         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44149         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44150         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44151         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44152         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44153         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44154         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44155         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44156         (STRCPY): Support SSE2 and SSSE3 versions.
44157
44158 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44159
44160         [BZ #12874]
44161         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44162         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44163         kernels which artificially limit size of requests.
44164
44165 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44166
44167         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44168         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44169         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44170         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44171         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44172         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44173         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44174         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44175         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44176         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44177         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44178         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44179         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44180         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44181         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44182         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44183         Enable unaligned load optimization for Intel Core i3, i5 and i7
44184         processors.
44185         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44186         Define.
44187         (index_Fast_Unaligned_Load): Define.
44188         (HAS_FAST_UNALIGNED_LOAD): Define.
44189
44190 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44191
44192         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44193
44194 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44195
44196         [BZ #12907]
44197         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44198         until it is clear that the information is realy needed.
44199         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44200
44201 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44202
44203         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44204
44205 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44206
44207         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44208         /sys/devices/system/cpu/online if it is usable.
44209
44210         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44211         reading the information from the /proc filesystem to once a second.
44212
44213 2011-06-21  Andreas Jaeger  <aj@suse.de>
44214
44215         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44216         NULL after inclusion of kernel headers.
44217
44218 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44219
44220         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44221         calls to internal_setent.
44222
44223         [BZ #12885]
44224         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44225         addresses using gethostbyname4_r ignore IPv4 addresses.
44226
44227         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44228         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44229
44230         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44231
44232 2011-06-20  David S. Miller  <davem@davemloft.net>
44233
44234         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44235         inclusions.
44236         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44237
44238         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44239         (elf_irel): Use it.
44240         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44241         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44242         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44243         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44244         * sysdeps/x86_64/dl-irel.h: Likewise.
44245
44246         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44247         * elf/dl-sym.c: Likewise.
44248
44249 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44250
44251         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44252         need to dereference resplen2.
44253
44254 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44255
44256         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44257
44258 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44259
44260         * Makeconfig: Define vardbdir and inst_vardbdir.
44261         * nss/Makefile: Add rules to install db-Makefile.
44262
44263         * nss/nss_db/db-XXX.c: Cleanup.
44264
44265         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44266         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44267         GLIBC_PRIVATE.
44268         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44269         * nss/makedb.c: Implement -g option to specify that value strings
44270         are generated and should not be added to table iterated over for
44271         get*ent calls.
44272         * nss/nss_db/db-initgroups.c: New file.
44273
44274         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44275         interface.
44276
44277         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44278         (internal_getgrouplist): Adjust to name change.
44279         Update use_initgroups_entry if this is not the first call.
44280         * nss/databases.def: Add initgroups entry.
44281
44282         * nss/makedb.c (compute_tables): Check result of multiple hash table
44283         sizes to minimize maximum chain length.
44284
44285 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44286
44287         * Versions.def: Add entry for libnss_db.
44288         * shlib-versions: Likewise.
44289         * nss/Makefile: Add rules to build libnss_db.
44290         * nss/Versions: Add libnss_db information.  Organize libnss_files
44291         entries better.
44292         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44293         makedb progra.  Some minor improvements to generate smaller files.
44294         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44295         here from...
44296         * nss/makedb.c: ...here.
44297         Improve database format to be smaller and require less memory at
44298         runtime.
44299         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44300         db anymore.
44301         * nss/nss_db/db-netgrp.c: Likewise.
44302         * nss/nss_db/db-open.c: Likewise.
44303         * nss/nss_files/flies-XXX.x: Adjust comments.
44304         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44305         * nss/nss_files/files-grp.c: Likewise.
44306         * nss/nss_files/files-hosts.c: Likewise.
44307         * nss/nss_files/files-network.c: Likewise.
44308         * nss/nss_files/files-proto.c: Likewise.
44309         * nss/nss_files/files-pwd.c: Likewise.
44310         * nss/nss_files/files-rpc.c: Likewise.
44311         * nss/nss_files/files-service.c: Likewise.
44312         * nss/nss_files/files-sgrp.c: Likewise.
44313         * nss/nss_files/files-spwd.c: Likewise.
44314         * nss/nss_db/db-alias.c: Removed.
44315         * nss/nss_db/dummy-db.h: Removed.
44316
44317 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44318
44319         * nss/makedb.c: Rewritten to not use database library.
44320         * nss/Makefile: Update to build new makedb program.
44321
44322 2011-06-14  Andreas Jaeger  <aj@suse.de>
44323
44324         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44325         memset declaration.
44326
44327 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44328
44329         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44330         tmpbuf.
44331
44332 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44333
44334         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44335         * elf/Makefile ($(objpfx)ld.so): Likewise.
44336
44337         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44338         Don't list ld.so twice in dependencies.
44339
44340         * posix/bug-regex31.c: Include <stdlib.h>.
44341
44342         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44343
44344         * nis/nss_compat/compat-spwd.c
44345         (getspent_next_nss_netgr): Remove unused variable.
44346         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44347
44348         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44349         nonmembers" output to use the right array.
44350
44351         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44352
44353         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44354
44355         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44356         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44357         * catgets/gencat.c (read_input_file): Likewise.
44358         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44359
44360         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44361         variable definition inside #if's controlling its use.
44362
44363         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44364
44365         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44366
44367         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44368
44369         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44370         unreachable code.
44371
44372         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44373
44374         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44375         * configure: Regenerated.
44376
44377         * Makerules: Revert last change.
44378         * elf/Makefile: Likewise.
44379
44380 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44381
44382         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44383         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44384         (reloc-link): Likewise.
44385
44386 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44387
44388         * elf/Makefile: Add rules to build pldd.
44389         * elf/pldd.c: New file.
44390         * elf/pldd-xx.c: New file.
44391
44392 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44393
44394         * version.h: Update for 2.15 development version.
44395
44396 2011-06-07  David S. Miller  <davem@davemloft.net>
44397
44398         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
44399         ifuncs.
44400         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
44401         elf_machine_lazy_rel): Likewise.
44402         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44403         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
44404         elf_machine_lazy_rel): Likewise.
44405         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
44406         dl_hwcap via passed in argument.
44407         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
44408         Likewise.
44409
44410 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44411
44412         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
44413
44414 2011-06-06  Roland McGrath  <roland@hack.frob.com>
44415
44416         [BZ #12849]
44417         * manual/fdl-1.1.texi: New file, verbatim from:
44418         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
44419         * manual/lgpl-2.1.texi: New file, verbatim from:
44420         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
44421         * manual/Makefile (licenses): New variable, list those new file names.
44422         (texis): Use it.
44423         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
44424
44425         * manual/fdl.texi: File removed.
44426         * manual/lesser.texi: File removed.
44427         * manual/libc.texinfo (Copying, Documentation License):
44428         Use new @include file names, put @appendix directive before @include.
44429
44430 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
44431
44432         [BZ #12841]
44433         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
44434         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
44435         (mq_open): Add __NTH.
44436
44437 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
44438
44439         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44440         Assume Intel Core i3/i5/i7 processor if AVX is available.
44441
44442 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44443
44444         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44445         typo.
44446
44447 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44448
44449         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44450         memory.  Use alloca_account.  Fix memory leak when retrying.
44451
44452 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44453
44454         * version.h (RELEASE): Bump for 2.14 release.
44455         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44456
44457         * config.make.in (RANLIB): Remove entry.
44458
44459 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44460
44461         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44462         (libc.pot): Work around missing support for .ksh extension in xgettext.
44463
44464         [BZ #12684]
44465         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44466         if both request failed.
44467         (send_dg): In case of server errors clear resplen or *resplen2.
44468
44469         [BZ #12454]
44470         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44471         when there are multiple maps.
44472         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44473         (_dl_fini): Remove test here.
44474
44475         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44476
44477 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44478
44479         [BZ #12350]
44480         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44481         bit from old_res_options.
44482         (gaih_inet): Likewise.
44483
44484         [BZ #11099]
44485         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44486         as signed.
44487
44488         * resolv/res_init.c (res_setoptions): Make the code more compact.
44489
44490         [BZ #11558]
44491         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44492         set RES_USEVC.
44493
44494         [BZ #11634]
44495         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44496
44497         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44498
44499         [BZ #11781]
44500         * malloc/malloc.h: Declare malloc hook variables as volatile.
44501
44502         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44503         in last patch.
44504
44505         [BZ #11799]
44506         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44507         raise in the comment.
44508         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44509         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44510         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44511
44512 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44513
44514         [BZ #12811]
44515         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44516         grow the buffers more if it already has to be sufficient.
44517         (build_wcs_upper_buffer): Likewise.
44518         * posix/regexec.c (check_matching): Likewise.
44519         (clean_state_log_if_needed): Likewise.
44520         (extend_buffers): Don't enlarge buffers beyond size of the input
44521         buffer.
44522         Patches mostly by Emil Wojak <emil@wojak.eu>.
44523         * posix/bug-regex32.c: New file.
44524         * posix/Makefile (tests): Add bug-regex32.
44525
44526         * locale/findlocale.c (_nl_find_locale): Return right away if
44527         _nl_explode_name failed.
44528         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44529
44530         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44531
44532         * debug/xtrace.sh: Unify messages.
44533         * malloc/memusage.sh: Likewise.
44534
44535         [BZ #12813]
44536         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44537         time symbol from vDSO.  Substitute with vsyscall if not available.
44538         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44539         __vdso_time.
44540
44541         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44542         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44543         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44544         Add sendmmsg and internal_sendmmsg.
44545         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44546         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44547         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44548
44549         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44550         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44551         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44552
44553 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44554
44555         [BZ #12813]
44556         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44557         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44558         available.
44559         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44560         __vdso_getcpu.
44561
44562         [BZ #12814]
44563         * iconvdata/Makefile (tests): Add bug-iconv9.
44564         * iconvdata/bug-iconv9.c: New file.
44565
44566 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44567
44568         [BZ #12814]
44569         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44570
44571 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44572
44573         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44574         (struct user_regs_struct): Change intcs field back to cs.
44575
44576 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44577
44578         * po/ja.po: Update from translation team.
44579
44580 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44581
44582         [BZ #12795]
44583         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44584         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44585
44586 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44587
44588         * stdlib/longlong.h: Update from GCC.
44589
44590 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44591
44592         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44593         parameter name.
44594         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44595         Add parameter name.
44596         (__sysconf): Pass it down.
44597
44598 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44599
44600         [BZ #12671]
44601         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44602         some situations.
44603         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44604         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44605         add in in __libc_use_alloca calls.  Adjust callers.
44606         (glob): Use malloc in some situations.
44607
44608         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44609         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44610         pltexit.
44611
44612 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44613
44614         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44615         and CLOCK_BOOTTIME_ALARM.
44616
44617         [BZ #12782]
44618         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44619         is returned.
44620
44621         * string/_strerror.c (__strerror_r): Print negative errors as signed
44622         numbers.
44623
44624         [BZ #12777]
44625         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44626         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44627         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44628
44629         * configure.in: Fix typo in redirection and correct removal of test
44630         files in two cases.
44631
44632         [BZ #12788]
44633         * locale/setlocale.c (new_composite_name): Fix test to check for
44634         identical name of all categories.
44635
44636         [BZ #12792]
44637         * libio/filedoalloc.c (local_isatty): New function.
44638         (_IO_file_doallocate): Use local_isatty.
44639         * stdio-common/perror.c (perror): In case a new stream is used
44640         forward the stream error.
44641         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44642         error flag.
44643
44644 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44645
44646         [BZ #11869]
44647         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44648         alloca.
44649         * include/alloca.h (extend_alloca_account): Define.
44650
44651         [BZ #11857]
44652         * posix/regex.h: Fix comments with documentation of user-accessible
44653         fields after compilation and describe correct free'ing of pattern
44654         after re_compile_pattern.
44655         Patch by Reuben Thomas <rrt@sc3d.org>.
44656
44657 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44658
44659         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44660         and -mno-altivec to prevent the compiler from using Altivec and/or
44661         VSX instructions when the corresponding registers are not available.
44662
44663 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44664
44665         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44666
44667 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44668
44669         * libio/freopen.c (freopen): Use __dup2, not dup2.
44670         * libio/freopen64.c (freopen64): Likewise.
44671
44672 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44673
44674         [BZ #12775]
44675         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44676         * math/Makefile (tests): Add test-powl.
44677         (CFLAGS-test-powl.c): Define.
44678         * math/test-powl.c: New file.
44679
44680 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44681
44682         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44683
44684 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44685
44686         [BZ #11837]
44687         * iconvdata/gb18030.c: Update to GB18020-2005.
44688
44689 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44690
44691         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44692         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44693         Patch by Aharon Robbins <arnold@skeeve.com>.
44694
44695         [BZ #11892]
44696         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44697         on the stack.
44698
44699         [BZ #11895]
44700         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44701         through underflows.
44702
44703         [BZ #12766]
44704         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44705         point to strings before performing equality test for error_one_per_line
44706         mode.
44707
44708         [BZ #11697]
44709         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44710
44711         [BZ #11820]
44712         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44713         (struct user_fpregs_struct): Avoid __uint*_t types.
44714
44715         [BZ #6420]
44716         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44717         symbol info.  Use it instead of calling _dl_addr locally.
44718         (lock_and_info): New function.
44719         (tr_freehook): Call lock_and_info and pass symbol info as additional
44720         parameter to tr_where.
44721         (tr_mallochook): Likewise.
44722         (tr_reallochook): Likewise.
44723         (tr_memalignhook): Likewise.
44724
44725         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44726         used and couldn't be at all thread-safe.
44727
44728 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44729
44730         * libio/freopen.c (freopen): Don't close old file descriptor
44731         before the new one is opened.  Instead dup the new file descriptor
44732         to the old one after the new stream is created.
44733         * libio/freopen64.c (freopen64): Likewise.
44734         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44735         * libio/fileops.c (_IO_new_file_close_it): Handle new
44736         _IO_FLAGS2_NOCLOSE flag.
44737         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44738         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44739         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44740         _IO_FLAGS2_NOCLOSE flag.
44741         * include/unistd.h: Add hidden_proto for dup3.
44742         Define __have_dup3.
44743         * io/dup3.c: Define hidden symbol.
44744         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44745
44746         [BZ #7101]
44747         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44748         when an incomplete long option is used.
44749         * posix/tst-getopt_long1.c: New file.
44750         * posix/Makefile (tests): Add tst-getopt_long1.
44751
44752         [BZ #10138]
44753         * scripts/config.guess: Update from autoconf-2.68.
44754         * scripts/config.sub: Likewise.
44755
44756         [BZ #10157]
44757         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44758         tests into ...
44759         (has_cpuclock): ...this.  New function.
44760         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44761         macro here based on has_cpuclock code.
44762
44763         [BZ #10149]
44764         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44765         First byte (not low byte) is now always NUL.
44766         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44767
44768         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44769         Use non-cancelable interfaces.
44770
44771         [BZ #9809]
44772         * locale/iso-639.def: Add entry for Sorani.
44773
44774         [BZ #11901]
44775         * include/stdlib.h: Move include protection to the right place.
44776         Define abort_msg_s.  Declare __abort_msg with it.
44777         * stdlib/abort.c (__abort_msg): Adjust type.
44778         * assert/assert.c (__assert_fail_base): New function.  Majority
44779         of code from __assert_fail.  Allocate memory for __abort_msg with
44780         mmap.
44781         (__assert_fail): Now call __assert_fail_base.
44782         * assert/assert-perr.c: Remove bulk of implementation.  Use
44783         __assert_fail_base.
44784         * include/assert.hL Declare __assert_fail_base.
44785         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44786         mmap.
44787         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44788
44789 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44790
44791         [BZ #11952]
44792         [BZ #12453]
44793         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44794         until all modules are registered in the DTV.
44795         * elf/Makefile: Add rules to build and run tst-tls19.
44796         * elf/tst-tls19.c: New file.
44797         * elf/tst-tls19mod1.c: New file.
44798         * elf/tst-tls19mod2.c: New file.
44799         * elf/tst-tls19mod3.c: New file.
44800         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44801
44802         [BZ #12083]
44803         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44804         correctly.
44805
44806         [BZ #12601]
44807         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44808         two-byte sequence errors.
44809         * iconvdata/Makefile (tests): Add bug-iconv8.
44810         * iconvdata/bug-iconv8.c: New file.
44811
44812         [BZ #12626]
44813         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44814         buf2 definition.
44815
44816         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44817
44818         [BZ #12432]
44819         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44820         (dummy_getcfa): New function.
44821         (init): Get _Unwind_GetCFA address, use dummy if not found.
44822         (backtrace_helper): In recursion check, also check whether CFA changes.
44823         (__backtrace): Completely initialize arg.
44824
44825         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44826         storing incomplete byte sequence in state object.  Avoid testing for
44827         guaranteed too small input if we know there is enough data available.
44828
44829 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44830
44831         * Makeconfig (+link-pie): Indent.
44832         * Rules (binaries-pie): Define if $(have-fpie) and
44833         $(build-shared).
44834         (binaries-shared): Also filter out $(binaries-pie).
44835         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44836         * nscd/Makefile (others-pie): Add nscd.
44837         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44838         ($(objpfx)nscd): Remove command override.
44839         * login/Makefile (others-pie): Add pt_chown.
44840         ($(objpfx)pt_chown): Remove command override.
44841         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44842         remove command overrides.
44843
44844 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44845
44846         * libio/tst_putwc.c: Fix error messages.
44847
44848         [BZ #12724]
44849         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44850         currently writing and seek to current position when not.
44851         * libio/Makefile (tests): Add bug-fclose1.
44852         * libio/bug-fclose1.c: New file.
44853
44854 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44855
44856         [BZ #12511]
44857         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44858         don't set DF_1_NODELETE here.
44859         (do_lookup_x): When entering new entry test for copy relocation
44860         and if necessary set DF_1_NODELETE flag.
44861         * elf/tst-unique4.cc: New file.
44862         * elf/tst-unique4.h: New file.
44863         * elf/tst-unique4lib.cc: New file.
44864         * elf/Makefile: Add rules to build and run tst-unique4.
44865         Patch by Piotr Bury <pbury@goahead.com>.
44866
44867 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44868
44869         [BZ #12052]
44870         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44871
44872         [BZ #12625]
44873         * misc/mntent_r.c (addmntent): Flush the stream after the output
44874
44875         [BZ #12393]
44876         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44877         (is_trusted_path_normalize): Skip initial colon.  Append slash
44878         to empty buffer.  Duplicate is_trusted_path code but allow
44879         constructed patch to be prefix.
44880         (is_dst): Allow $ORIGIN followed by /.
44881         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44882         Correct testing of result of is_trusted_path_normalize
44883         (decompose_rpath): Fix warning.
44884
44885 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44886
44887         [BZ #11257]
44888         * grp/initgroups.c (internal_getgrouplist): When we found the service
44889         list through the initgroups entry in nsswitch.conf do not always
44890         continue on a successful lookup.  Don't always use the
44891         __nss_group_database value if it is set.
44892         * nss/nsswitch.conf (initgroups): Change action for successful db
44893         lookup to continue for compatibility.
44894
44895 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44896
44897         [BZ #11532]
44898         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44899         and CP774 modules.
44900         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44901         and CP774 modules.
44902         * iconvdata/tst-tables.sh: Likewise.
44903         * iconvdata/cp770.c: New file.
44904         * iconvdata/cp771.c: New file.
44905         * iconvdata/cp772.c: New file.
44906         * iconvdata/cp773.c: New file.
44907         * iconvdata/cp774.c: New file.
44908         * iconvdata/testdata/CP770: New file.
44909         * iconvdata/testdata/CP770..UTF8: New file.
44910         * iconvdata/testdata/CP771: New file.
44911         * iconvdata/testdata/CP771..UTF8: New file.
44912         * iconvdata/testdata/CP772: New file.
44913         * iconvdata/testdata/CP772..UTF8: New file.
44914         * iconvdata/testdata/CP773: New file.
44915         * iconvdata/testdata/CP773..UTF8: New file.
44916         * iconvdata/testdata/CP774: New file.
44917         * iconvdata/testdata/CP774..UTF8: New file.
44918
44919         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44920         END CHARMAP line.
44921         * iconvdata/gen-8bit-gap.sh: Likewise.
44922         * iconvdata/gen-8bit.sh: Likewise.
44923
44924         * locale/iso-639.def: Add ary entry.
44925
44926         [BZ #11258]
44927         * locale/C-translit.h.in: Add U20A1 transliteration.
44928
44929         [BZ #12178]
44930         * locale/iso-639.def: Add wae entry.
44931         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44932
44933         [BZ #12545]
44934         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44935         for n.
44936
44937         [BZ #12711]
44938         * locale/C-translit.h.in: Add entry for U20B9.
44939         Patch by pravin.d.s@gmail.com.
44940
44941 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44942
44943         [BZ #12713]
44944         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44945         ENAMETOOLONG use generic getcwd.
44946         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44947         in rtld.  Use *stat64.
44948         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44949         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44950         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44951         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44952         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44953         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44954         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44955         __fstatat64 macros.
44956         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44957         * dirent/rewinddir.c: Add libc_hidden_def.
44958         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44959         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44960
44961         * include/dirent.h (__alloc_dir): Add flags parameter.
44962         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44963         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44964         __alloc_dir.
44965         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44966         from fdopendir if O_CLOEXEC is already set.
44967
44968 2011-03-15  Alan Modra  <amodra@gmail.com>
44969
44970         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44971         l_tls_firstbyte_offset non-zero.  Save padding offset in
44972         l_tls_firstbyte_offset for later use.
44973         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44974         freeing static tls block.
44975
44976 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44977
44978         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44979         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44980         being defined by the kernel headers.
44981
44982 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44983
44984         [BZ #12734]
44985         * resolv/resolv.h: Define RES_NOTLDQUERY.
44986         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44987         no-tld-query and set RES_NOTLDQUERY.
44988         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44989         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44990         modern BIND to search name as TLD unless forbidden.
44991
44992 2011-05-07  Petr Baudis  <pasky@suse.cz>
44993             Ulrich Drepper  <drepper@gmail.com>
44994
44995         [BZ #12393]
44996         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44997         (is_trusted_path): ...to here.
44998         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44999         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
45000         using is_trusted_path_normalize() in setuid scripts.
45001
45002 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
45003
45004         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
45005         __BEGIN/__END_DECLS.
45006
45007 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
45008
45009         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
45010         NSS_STATUS_NOTFOUND if no record was found.
45011
45012 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45013
45014         * sunrpc/Makefile (headers): Add rpc/netdb.h.
45015         (headers-not-in-tirpc): Remove rpc/netdb.h
45016         * resolv/netdb.h: Revert last change.
45017
45018 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
45019
45020         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
45021         circular dependency between libgcc.a and libc.a.
45022
45023 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45024
45025         * resolv/netdb.h: Don't include <rpc/netdb.h>.
45026         * nis/Makefile: Don't install rpcsvc/*.
45027         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
45028         instead of <rpc/types.h>.
45029         (MAXHOSTNAMELEN): Define.
45030
45031 2011-05-03  Andreas Schwab  <schwab@redhat.com>
45032
45033         * elf/ldconfig.c (add_dir): Don't crash on empty path.
45034
45035 2011-04-28  Maciej Babinski  <mbabinski@google.com>
45036
45037         [BZ #12714]
45038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
45039         gethostbyname4_r when IPv6 results are possible.
45040
45041 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
45042
45043         [BZ #12723]
45044         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
45045         _PC_PIPE_BUF handling.
45046
45047 2011-04-30  Bruno Haible  <bruno@clisp.org>
45048
45049         [BZ #12717]
45050         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
45051         * resolv/netdb.h (getnameinfo): Change type of flags parameter
45052         to 'int'.
45053         * inet/getnameinfo.c (getnameinfo): Likewise.
45054
45055 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
45056
45057         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45058         to groups setting in database lookup.
45059         * nss/nsswitch.conf: Add initgroups entry.
45060
45061 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45062
45063         [BZ #12685]
45064         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45065         mode string.
45066         Patch by Eric Blake <eblake@redhat.com>.
45067
45068 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45069
45070         * sunrpc/Makefile (need-export-routines): Add svc_run.
45071         (routines): Remove svc_run.
45072         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45073         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45074         * sunrpc/svc_run.c (svc_run): Likewise.
45075         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45076
45077 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45078
45079         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45080         problem in reallocation in last patch.
45081
45082 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45083
45084         * sunrpc/Makefile: Move inclusion of Rules.
45085
45086 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45087
45088         * nss/nss_files/files-initgroups.c: New file.
45089         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45090         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45091         _nss_files_initgroups_dyn.
45092
45093 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45094
45095         * elf/elf.h (R_ARM_IRELATIVE): Define.
45096
45097 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45098
45099         * po/ru.po: Update from translation team.
45100
45101 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45102
45103         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45104         dependencies.
45105
45106 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45107
45108         [BZ #12653]
45109         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45110         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45111         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45112         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45113         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45114
45115 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45116
45117         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45118         differing bytes.
45119         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45120         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45121         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45122
45123 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45124
45125         [BZ #12420]
45126         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45127         storing it.
45128         * stdlib/bug-getcontext.c: New file.
45129         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45130
45131 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45132
45133         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45134         instructions into .machine "z9-109".
45135         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45136         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45137
45138 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45139
45140         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45141         between environment variables and auxiliary vector.
45142
45143 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45144
45145         * Makefile: Add rules to build linkobj/libc.so.
45146         * include/libc-symbols.h: Define libc_hidden_nolink.
45147         * include/rpc/auth.h: Mark functions which are to be hidden.
45148         * include/rpc/auth_des.h: Likewise.
45149         * include/rpc/auth_unix.h: Likewise.
45150         * include/rpc/clnt.h: Likewise.
45151         * include/rpc/des_crypt.h: Likewise.
45152         * include/rpc/key_prot.h: Likewise.
45153         * include/rpc/pmap_clnt.h: Likewise.
45154         * include/rpc/pmap_prot.h: Likewise.
45155         * include/rpc/pmap_rmt.h: Likewise.
45156         * include/rpc/rpc_msg.h: Likewise.
45157         * include/rpc/svc.h: Likewise.
45158         * include/rpc/svc_auth.h: Likewise.
45159         * include/rpc/xdr.h: Likewise.
45160         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45161         * nss/Makefile: Likewise.
45162         * sunrpc/Makefile: Don't install headers.  Build library with normal
45163         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45164         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45165         for the compat linking library.  Remove use of INTDEF/INTUSE.
45166         * sunrpc/auth_none.c: Likewise.
45167         * sunrpc/auth_unix.c: Likewise.
45168         * sunrpc/authdes_prot.c: Likewise.
45169         * sunrpc/authuxprot.c: Likewise.
45170         * sunrpc/clnt_gen.c: Likewise.
45171         * sunrpc/clnt_perr.c: Likewise.
45172         * sunrpc/clnt_raw.c: Likewise.
45173         * sunrpc/clnt_simp.c: Likewise.
45174         * sunrpc/clnt_tcp.c: Likewise.
45175         * sunrpc/clnt_udp.c: Likewise.
45176         * sunrpc/clnt_unix.c: Likewise.
45177         * sunrpc/des_crypt.c: Likewise.
45178         * sunrpc/des_soft.c: Likewise.
45179         * sunrpc/get_myaddr.c: Likewise.
45180         * sunrpc/key_call.c: Likewise.
45181         * sunrpc/key_prot.c: Likewise.
45182         * sunrpc/netname.c: Likewise.
45183         * sunrpc/pm_getmaps.c: Likewise.
45184         * sunrpc/pm_getport.c: Likewise.
45185         * sunrpc/pmap_clnt.c: Likewise.
45186         * sunrpc/pmap_prot.c: Likewise.
45187         * sunrpc/pmap_prot2.c: Likewise.
45188         * sunrpc/pmap_rmt.c: Likewise.
45189         * sunrpc/publickey.c: Likewise.
45190         * sunrpc/rpc_cmsg.c: Likewise.
45191         * sunrpc/rpc_common.c: Likewise.
45192         * sunrpc/rpc_dtable.c: Likewise.
45193         * sunrpc/rpc_prot.c: Likewise.
45194         * sunrpc/rpc_thread.c: Likewise.
45195         * sunrpc/rtime.c: Likewise.
45196         * sunrpc/svc.c: Likewise.
45197         * sunrpc/svc_auth.c: Likewise.
45198         * sunrpc/svc_authux.c: Likewise.
45199         * sunrpc/svc_raw.c: Likewise.
45200         * sunrpc/svc_run.c: Likewise.
45201         * sunrpc/svc_simple.c: Likewise.
45202         * sunrpc/svc_tcp.c: Likewise.
45203         * sunrpc/svc_udp.c: Likewise.
45204         * sunrpc/svc_unix.c: Likewise.
45205         * sunrpc/svcauth_des.c: Likewise.
45206         * sunrpc/xcrypt.c: Likewise.
45207         * sunrpc/xdr.c: Likewise.
45208         * sunrpc/xdr_array.c: Likewise.
45209         * sunrpc/xdr_float.c: Likewise.
45210         * sunrpc/xdr_intXX_t.c: Likewise.
45211         * sunrpc/xdr_mem.c: Likewise.
45212         * sunrpc/xdr_rec.c: Likewise.
45213         * sunrpc/xdr_ref.c: Likewise.
45214         * sunrpc/xdr_sizeof.c: Likewise.
45215         * sunrpc/xdr_stdio.c: Likewise.
45216
45217 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45218
45219         [BZ #12650]
45220         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45221         * sysdeps/ia64/dl-tls.h: Likewise.
45222         * sysdeps/powerpc/dl-tls.h: Likewise.
45223         * sysdeps/s390/dl-tls.h: Likewise.
45224         * sysdeps/sh/dl-tls.h: Likewise.
45225         * sysdeps/sparc/dl-tls.h: Likewise.
45226         * sysdeps/x86_64/dl-tls.h: Likewise.
45227         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45228
45229 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45230
45231         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45232         rpath element also skip the following colon.
45233         (expand_dynamic_string_token): Add is_path parameter and pass
45234         down to DL_DST_REQUIRED and _dl_dst_substitute.
45235         (decompose_rpath): Call expand_dynamic_string_token with
45236         non-zero is_path.  Ignore empty rpaths.
45237         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45238         with zero is_path.
45239
45240 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45241
45242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45243         Make cancelable.
45244
45245 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45246
45247         [BZ #12655]
45248         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45249         Patch by Filipe David Manana <fdmanana@apache.org>.
45250
45251 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45252
45253         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45254         Maintain aligned stack.
45255         (CHECK_RSP): Remove unused macro.
45256
45257 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45258
45259         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45260         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45261
45262 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45263
45264         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45265
45266         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45267
45268 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45269
45270         [BZ #12518]
45271         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45272         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45273         * sysdeps/x86_64/memmove.c: New file.
45274         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45275         (memcpy): Renamed to ...
45276         (__new_memcpy): This.
45277         (memcpy): Provide GLIBC_2_14 memcpy.
45278         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45279         (memcpy): Provide GLIBC_2_2_5 memcpy.
45280
45281 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45282
45283         [BZ #12631]
45284         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45285
45286 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45287
45288         * misc/syncfs.c: New file.
45289         * misc/Makefile (routines): Add syncfs.
45290         * posix/unistd.h: Declare syncfs.
45291         * sysdeps/unix/syscalls.list: Add syncfs.
45292
45293 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45294
45295         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45296         open_by_handle_at.
45297         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45298         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45299         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45300         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45301         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45302         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45303         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45304
45305 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45306
45307         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45308         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45309         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45310         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45311         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45312         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45313         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45314
45315         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45316         sync_file_range.c with -fexceptions.
45317         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45318         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45319         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45320         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45321         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45322         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45323         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45324         sync_file_range as cancellation point
45325         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45326         now a wrapper around __call_sync_file_range with cancellation handling.
45327         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45328         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45329         function name to __call_sync_file_range.
45330         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45331         Add call_sync_file_range.
45332
45333 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45334
45335         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45336         bits/timex.h.
45337
45338 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45339
45340         * iconv/iconv.h: Fix typo in comment.
45341         * io/fcntl.h: Likewise.
45342         * libio/stdio.h: Likewise.
45343         * posix/spawn.h: Likewise.
45344         * posix/unistd.h: Likewise.
45345         * stdlib/stdlib.h: Likewise.
45346         * time/time.h: Likewise.
45347         * wcsmbs/wchar.h: Likewise.
45348
45349         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45350         open_by_handle): Add.
45351         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45352         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45353         Augment a few comments.
45354         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45355         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45356         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45357         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45358         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45359         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45360         open_by_handle.
45361
45362         * io/fcntl.h (AT_EMPTY_PATH): Define.
45363
45364 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45365
45366         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45367         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45368         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45369         to...
45370         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45371         * Versions.def: Add GLIBC_2.14.
45372         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45373         Export.
45374
45375 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45376
45377         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45378         round counter.
45379         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45380
45381 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45382
45383         [BZ #12597]
45384         * string/test-strncmp.c (do_page_test): New function.
45385         (check2): Likewise.
45386         (test_main): Call check2.
45387         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45388
45389 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45390
45391         [BZ #12587]
45392         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45393         Handle cache information in CPU leaf 4.
45394         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45395
45396 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45397
45398         [BZ #12583]
45399         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
45400         character representation.
45401         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
45402
45403 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
45404
45405         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45406         END(__isnan) to END(__isnanf) to match function entry point/label
45407         EALIGN(__isnanf,...).
45408
45409 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
45410
45411         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
45412
45413 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
45414
45415         [BZ #12510]
45416         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
45417         copy from the symbol referenced in the relocation to initialize the
45418         used variable.
45419         Patch by Piotr Bury <pbury@goahead.com>.
45420         * elf/Makefile: Add rules to build and tst-unique3.
45421         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
45422         * elf/tst-unique3.cc: New file.
45423         * elf/tst-unique3.h: New file.
45424         * elf/tst-unique3lib.cc: New file.
45425         * elf/tst-unique3lib2.cc: New file.
45426
45427         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
45428
45429 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
45430
45431         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
45432         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
45433         to _start.
45434
45435 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
45436
45437         * elf/dl-load.c (_dl_map_object): If we are looking for the first
45438         to-be-loaded object along a path to loader is ld.so.
45439
45440 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45441             Ulrich Drepper  <drepper@gmail.com>
45442
45443         * sysdeps/x86_64/memset.S: After aligning destination, code
45444         branches to different locations depending on the value of
45445         misalignment, when multiarch is enabled. Fix this.
45446
45447 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45448
45449         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45450         Set _x86_64_preferred_memory_instruction for AMD processsors.
45451         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45452         Set bit_Prefer_SSE_for_memop for AMD processors.
45453
45454 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45455
45456         * libio/fmemopen.c (fmemopen): Optimize a bit.
45457
45458 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45459
45460         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45461
45462 2011-03-03  Roland McGrath  <roland@redhat.com>
45463
45464         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45465
45466 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45467
45468         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45469         __bzero_ultra1 instead of __memset_ultra1.
45470
45471 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45472             Ulrich Drepper  <drepper@gmail.com>
45473
45474         [BZ #12509]
45475         * include/link.h (struct link_map): Add l_orig_initfini.
45476         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45477         returning unsuccessfully.
45478         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45479         close of a file loaded at startup, restore the original l_initfini
45480         list.
45481         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45482         list, store the pointer.
45483         * elf/Makefile ($(objpfx)noload-mem): New rule.
45484         (noload-ENV): Define.
45485         (tests): Add $(objpfx)noload-mem.
45486         * elf/noload.c: Include <memcheck.h>.
45487         (main): Call mtrace.  Close all opened handles.
45488
45489 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45490
45491         [BZ #12454]
45492         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45493         dependencies are missing.
45494
45495 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45496
45497         Fix __if_freereq crash: Unlike the generic version which uses free,
45498         Hurd needs munmap.
45499         * sysdeps/mach/hurd/ifreq.h: New file.
45500
45501 2011-01-27  Petr Baudis  <pasky@suse.cz>
45502             Ulrich Drepper  <drepper@gmail.com>
45503
45504         [BZ 12445]#
45505         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45506         to extend_alloca().
45507         * stdio-common/bug23.c: New file.
45508         * stdio-common/Makefile (tests): Add bug23.
45509
45510 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45511             Ulrich Drepper  <drepper@gmail.com>
45512
45513         [BZ #12489]
45514         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45515         before performing relro protection.  At old place add assertion
45516         to make sure nothing changed.
45517
45518 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45519             Glauber de Oliveira Costa  <glommer@gmail.com>
45520
45521         * elf/elf.h: Add new ARM TLS relocs.
45522
45523 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45524
45525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45526         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45527         cast from r3.
45528         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45529         'tests' variable.
45530         * sysdeps/wordsize-64/tst-writev.c: New file.
45531
45532 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45533
45534         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45535         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45536         insns in _dl_start to prevent a TOC reference before relocs are
45537         resolved.
45538
45539 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45540
45541         [BZ #12469]
45542         * Makeconfig: Remove RANLIB definition.
45543         * Makerules: Don't use RANLIB.
45544         * aclocal.m4: Remove ranlib test.
45545         * configure.in: No need to check for ranlib.
45546         * elf/rtld-Rules: Don't use RANLIB.
45547
45548 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45549
45550         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45551         protection macro.
45552         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45553         inclusion protection macro.
45554
45555         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45556         SIGRTMIN and SIGRTMAX and print information in that case only when
45557         SIGRTMIN is defined.
45558
45559 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45560
45561         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45562         arginfo fn returning -1.
45563
45564         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45565         and thousands string is zero terminated.
45566
45567 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45568
45569         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45570         sysdeps/unix/sysv/linux/bits/socket.h.
45571
45572 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45573
45574         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45575         (__CPU_COUNT): Remove old macros.
45576         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45577         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45578         (__CPU_ALLOC, __CPU_FREE): Add macros.
45579         (__sched_cpualloc, __sched_cpufree): Add declarations.
45580
45581 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45582
45583         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45584         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45585         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45586         (readdhstai): Return value of addhstaiX call.
45587         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45588         (addgrbyX): Return value returned by cache_addgr.
45589         (readdgrbyname): Return value returned by addgrbyX.
45590         (readdgrbygid): Likewise.
45591         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45592         (addpwbyX): Return value returned by cache_addpw.
45593         (readdpwbyname): Return value returned by addhstbyX.
45594         (readdpwbyuid): Likewise.
45595         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45596         (addservbyX): Return value returned by cache_addserv.
45597         (readdservbyname): Return value returned by addservbyX:
45598         (readdservbyport): Likewise.
45599         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45600         (addhstbyX): Return value returned by cache_addhst.
45601         (readdhstbyname): Return value returned by addhstbyX.
45602         (readdhstbyaddr): Likewise.
45603         (readdhstbynamev6): Likewise.
45604         (readdhstbyaddrv6): Likewise.
45605         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45606         (readdinitgroups): Return value returned by addinitgroupsX.
45607         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45608         (prune_cache): Keep track of timeout value of re-added entries.
45609         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45610         * nscd/nscd.h: Adjust prototypes of readd* functions.
45611
45612 2011-02-04  Roland McGrath  <roland@redhat.com>
45613
45614         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45615         (nis_stats): Likewise.
45616         * nis/nis_modify.c (nis_modify): Likewise.
45617         * nis/nis_remove.c (nis_remove): Likewise.
45618         * nis/nis_add.c (nis_add): Likewise.
45619
45620         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45621
45622         * posix/fnmatch_loop.c: Add some consts.
45623
45624         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45625
45626 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45627
45628         [BZ #12460]
45629         * config.make.in (config-cflags-novzeroupper): Define.
45630         * configure.in: Substitute libc_cv_cc_novzeroupper.
45631         * elf/Makefile (AVX-CFLAGS): Define.
45632         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45633         (CFLAGS-tst-auditmod4a.c): Likewise.
45634         (CFLAGS-tst-auditmod4b.c): Likewise.
45635         (CFLAGS-tst-auditmod6b.c): Likewise.
45636         (CFLAGS-tst-auditmod6c.c): Likewise.
45637         (CFLAGS-tst-auditmod7b.c): Likewise.
45638         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45639
45640 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45641
45642         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45643         function to the callback.
45644         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45645
45646 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45647
45648         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45649         of errno.
45650
45651 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45652
45653         [BZ #11724]
45654         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45655         of constructors.
45656         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45657         of destructors.
45658         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45659
45660         [BZ #11724]
45661         * elf/Makefile: Add rules to build and run new test.
45662         * elf/tst-initorder.c: New file.
45663         * elf/tst-initorder.exp: New file.
45664         * elf/tst-initordera1.c: New file.
45665         * elf/tst-initordera2.c: New file.
45666         * elf/tst-initordera3.c: New file.
45667         * elf/tst-initordera4.c: New file.
45668         * elf/tst-initorderb1.c: New file.
45669         * elf/tst-initorderb2.c: New file.
45670         * elf/tst-order-a1.c: New file.
45671         * elf/tst-order-a2.c: New file.
45672         * elf/tst-order-a3.c: New file.
45673         * elf/tst-order-a4.c: New file.
45674         * elf/tst-order-b1.c: New file.
45675         * elf/tst-order-b2.c: New file.
45676         * elf/tst-order-main.c: New file.
45677         New test case by George Gensure <werkt0@gmail.com>.
45678
45679 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45680
45681         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45682         decoding ACE if AI_CANONIDN.
45683
45684 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45685
45686         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45687
45688 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45689
45690         * version.h (RELEASE): Bump for 2.13 release.
45691         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45692
45693         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45694
45695         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45696         MADV_NOHUGEPAGE.
45697         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45698         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45699         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45700         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45701         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45702         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45703
45704         * posix/getconf.c: Update copyright year.
45705         * catgets/gencat.c: Likewise.
45706         * csu/version.c: Likewise.
45707         * debug/catchsegv.sh: Likewise.
45708         * debug/xtrace.sh: Likewise.
45709         * elf/ldconfig.c: Likewise.
45710         * elf/ldd.bash.in: Likewise.
45711         * elf/sprof.c (print_version): Likewise.
45712         * iconv/iconv_prog.c: Likewise.
45713         * iconv/iconvconfig.c: Likewise.
45714         * locale/programs/locale.c: Likewise.
45715         * locale/programs/localedef.c: Likewise.
45716         * malloc/memusage.sh: Likewise.
45717         * malloc/mtrace.pl: Likewise.
45718         * nscd/nscd.c (print_version): Likewise.
45719         * nss/getent.c: Likewise.
45720
45721         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45722         PF_CAIF, and PF_ALG.
45723         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45724
45725 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45726
45727         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45728         (modules-names): Use them.
45729         (ifunc-test-modules, ifunc-pie-tests): Define.
45730         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45731         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45732         (test-extras): Likewise.
45733         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45734         $(compile-command.c).
45735         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45736         (all-built-dso): Define.
45737         (check-textrel.out, check-execstack.out): Depend on it.
45738
45739         * configure.in: Don't override --enable-multi-arch.
45740
45741 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45742
45743         [BZ #6812]
45744         * nscd/hstcache.c (tryagain): Define.
45745         (cache_addhst): Return tryagain not notfound for temporary errors.
45746         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45747         failed.
45748
45749 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45750
45751         [BZ #10563]
45752         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45753         to make the syscall.
45754         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45755
45756         [BZ #12378]
45757         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45758         and fall back to matching as normal character if the string ends before
45759         the matching ']' is found.  This is what POSIX requires.
45760         * posix/testfnm.c: Adjust test result.
45761         * posix/globtest.sh: Adjust test result.  Add new test.
45762         * posix/tst-fnmatch.input: Likewise.
45763         * posix/tst-fnmatch2.c: Add new test.
45764
45765 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45766
45767         * elf/Makefile (check-execstack): Revert last change.  Depend on
45768         check-execstack.h.
45769         (check-execstack.h): New target.
45770         (generated): Add check-execstack.h.
45771         * elf/check-execstack.c: Include "check-execstack.h".
45772         (main): Revert last change.
45773         (handle_file): Return zero if GNU_STACK is absent and
45774         DEFAULT_STACK_PERMS doesn't include PF_X.
45775
45776 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45777
45778         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45779         in child fails because the descriptor is already closed.
45780         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45781         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45782         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45783
45784         [BZ #12397]
45785         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45786         syscall.
45787
45788         [BZ #10484]
45789         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45790         temporary buffer used to handle multi lookups locally.
45791         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45792
45793 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45794
45795         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45796         loader is ld.so.
45797
45798 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45799
45800         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45801         alignment for SSE2.
45802
45803 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45804
45805         [BZ #12394]
45806         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45807         characters.  When rounding increased number of integer digits recompute
45808         number of groups.
45809         * stdio-common/tst-grouping.c: New file.
45810         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45811
45812 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45813
45814         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45815         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45816
45817         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45818         void.
45819         * bits/select.h: Likewise.
45820
45821 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45822
45823         * po/ja.po: Update from translation team.
45824
45825 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45826
45827         [BZ #11155]
45828         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45829         implementation just like for lxstat, fxstatat, et al.
45830
45831 2010-12-27  Jim Meyering  <meyering@redhat.com>
45832
45833         [BZ #12348]
45834         * posix/regexec.c (build_trtable): Return failure indication upon
45835         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45836
45837 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45838
45839         [BZ #12201]
45840         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45841         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45842         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45843         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45844
45845         [BZ #12207]
45846         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45847
45848         [BZ #12204]
45849         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45850         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45851
45852 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45853
45854         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45855         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45856         script has SORT_BY_INIT_PRIORITY.
45857         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45858         NO_CTORS_DTORS_SECTIONS is defined.
45859         * elf/soinit.c: Likewise.
45860         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45861         NO_CTORS_DTORS_SECTIONS is defined.
45862         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45863         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45864         * sysdeps/sh/init-first.c: Likewise.
45865         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45866
45867 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45868
45869         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45870         always use the slow path.
45871
45872 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45873
45874         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45875         similar rule which adds the sysdep directories to the header search in
45876         order to pick up the correct platform stackinfo.h.
45877         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45878         perform test if it is, otherwise return successfully without testing.
45879         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45880         DEFAULT_STACK_PERMS define in stackinfo.h.
45881         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45882         defined in stackinfo.h.
45883         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45884         DEFAULT_STACK_PERMS defined in stackinfo.h.
45885         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45886         * sysdeps/ia64/stackinfo.h: Likewise.
45887         * sysdeps/s390/stackinfo.h: Likewise.
45888         * sysdeps/sh/stackinfo.h: Likewise.
45889         * sysdeps/sparc/stackinfo.h: Likewise.
45890         * sysdeps/x86_64/stackinfo.h: Likewise.
45891         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45892         PF_X for powerpc64.  Retain PF_X for powerpc32.
45893
45894 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45895
45896         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45897         accurately.
45898         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45899         GETDENTS_64BIT_ALIGNED.
45900
45901 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45902
45903         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45904
45905 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45906
45907         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45908         _GNU_SOURCE.
45909
45910         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45911         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45912         Remove __restrict.
45913         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45914         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45915
45916 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45917
45918         [BZ #11655]
45919         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45920         are initialized.
45921
45922 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45923
45924         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45925
45926 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45927
45928         * po/it.po: Update from translation team.
45929
45930 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45931
45932         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45933         unused codes.
45934
45935 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45936
45937         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45938
45939 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45940
45941         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45942         specially.
45943         (gaih_getanswer_slice): Likewise.
45944
45945 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45946
45947         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45948
45949 2010-05-31  Petr Baudis  <pasky@suse.cz>
45950
45951         [BZ #11149]
45952         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45953         silently even in the chroot mode.
45954
45955 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45956
45957         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45958         last patch a bit.  Pretty printing
45959
45960 2010-05-31  Petr Baudis <pasky@suse.cz>
45961
45962         [BZ #10085]
45963         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45964         initialization of skip_initgroups_dyn.
45965
45966 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45967
45968         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45969         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45970
45971 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45972
45973         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45974
45975 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45976
45977         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45978         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45979         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45980         ($(objpfx)tst-fnmatch-mem): New rule.
45981         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45982         * posix/tst-fnmatch.c (main): Call mtrace.
45983
45984 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45985
45986         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45987         Support Intel processor model 6 and model 0x2c.
45988
45989 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45990
45991         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45992           signed comparison.
45993
45994 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45995
45996         [BZ #12205]
45997         * string/test-strncasecmp.c (check_result): New function.
45998         (do_one_test): Use it.
45999         (check1): New function.
46000         (test_main): Use it.
46001         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
46002         Support strcasecmp and strncasecmp.
46003
46004 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
46005
46006         [BZ #12194]
46007         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
46008         * sysdeps/x86_64/bits/byteswap.h: Likewise.
46009
46010 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
46011
46012         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
46013         IFUNC support.
46014         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46015         memset-x86-64.
46016         * sysdeps/x86_64/multiarch/bzero.S: New file.
46017         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
46018         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
46019         * sysdeps/x86_64/multiarch/memset.S: New file.
46020         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
46021         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46022         Set bit_Prefer_SSE_for_memop for Intel processors.
46023         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
46024         Define.
46025         (index_Prefer_SSE_for_memop): Define.
46026         (HAS_PREFER_SSE_FOR_MEMOP): Define.
46027
46028 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
46029
46030         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
46031         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
46032
46033 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
46034
46035         [BZ #12191]
46036         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46037         (__x86_64_raw_data_cache_size_half): Likewise.
46038         (__x86_64_raw_shared_cache_size): Likewise.
46039         (__x86_64_raw_shared_cache_size_half): Likewise.
46040
46041         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46042         (__x86_64_raw_data_cache_size_half): Likewise.
46043         (__x86_64_raw_shared_cache_size): Likewise.
46044         (__x86_64_raw_shared_cache_size_half): Likewise.
46045         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
46046         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
46047         and __x86_64_raw_shared_cache_size_half.  Round
46048         __x86_64_data_cache_size_half, __x86_64_data_cache_size
46049         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
46050         to multiple of 256 bytes.
46051
46052 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
46053
46054         [BZ #12167]
46055         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
46056         of inacessible symlinks.  Verify result of symlink before returning it.
46057         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46058         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46059
46060 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46061
46062         * math/math.h (isinf): Fix typo in comment.
46063
46064 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46065
46066         * po/da.po: Update from translation team.
46067
46068 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46069
46070         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46071         is added to the list.
46072
46073 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46074             Ulrich Drepper  <drepper@gmail.com>
46075
46076         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46077         the global list here.  Move code to...
46078         (_dl_add_to_namespace_list): ...here.  New function.
46079         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46080         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46081         * elf/dl-load.c (lose): Don't remove the element from the list.
46082         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46083         (_dl_map_object): Likewise.
46084
46085 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46086
46087         [BZ #12159]
46088         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46089         into all bytes of SSE register.
46090         Patch by Richard Li <richardpku@gmail.com>.
46091
46092 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46093
46094         [BZ #12140]
46095         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46096         perturbing.
46097
46098 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46099
46100         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46101         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46102         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46103         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46105         submachine.
46106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46107
46108 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46109
46110         * include/dlfcn.h (__RTLD_SECURE): Define.
46111         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46112         mode & __RTLD_SECURE instead.
46113         (open_path): Rename preloaded parameter to secure.
46114         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46115         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46116         * elf/dl-deps.c (openaux): Likewise.
46117         * elf/rtld.c (struct map_args): Remove is_preloaded.
46118         (map_doit): Don't use it.
46119         (dl_main): Likewise.
46120         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46121         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46122
46123 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46124
46125         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46126         (sysd-rules-targets): Remove duplicates.
46127         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46128         rtld-%.$o dependency.
46129
46130 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46131
46132         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46133         _dl_map_object do it.
46134
46135 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46136
46137         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46138         fast fma builtins, define the macros in the C99 standard.
46139         (FP_FAST_FMAF): Likewise.
46140         (FP_FAST_FMAL): Likewise.
46141         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46142
46143         * bits/mathdef.h: Update copyright year.
46144         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46145
46146 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46147
46148         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46149         builtins, define the macros in the C99 standard.
46150         (FP_FAST_FMAF): Likewise.
46151         (FP_FAST_FMAL): Likewise.
46152         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46153         multiply/add.
46154         (FP_FAST_FMAF): Likewise.
46155
46156 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46157
46158         [BZ #3268]
46159         * math/libm-test.inc (fma_test): Some new testcases.
46160         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46161         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46162         y and infinite z.  Do multiplication by C already in long double.
46163         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46164         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46165         y and infinite z.  Do bitwise or of inexact bit into u.d.
46166         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46167         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46168         * sysdeps/i386/fpu/s_fma.S: Removed.
46169         * sysdeps/i386/fpu/s_fmal.S: Removed.
46170
46171 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46172
46173         [BZ #3268]
46174         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46175         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46176         computation is not scheduled after fetestexcept.  Fix value
46177         of minimum denormal long double.
46178
46179 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46180
46181         [BZ #3268]
46182         * math/libm-test.inc (fma_test): Add some more tests.
46183         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46184         correctly.
46185
46186 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46187
46188         * scripts/data/localplt-s390-linux-gnu.data: New file.
46189         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46190
46191 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46192
46193         [BZ #3268]
46194         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46195         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46196         instead of dbl-64.
46197         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46198         inlines.
46199         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46200         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46201         if one of x and y is very large and the other is subnormal.
46202         * sysdeps/s390/fpu/s_fmaf.c: New file.
46203         * sysdeps/s390/fpu/s_fma.c: New file.
46204         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46205         * sysdeps/powerpc/fpu/s_fma.S: New file.
46206         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46207         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46208         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46209
46210 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46211
46212         [BZ #3268]
46213         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46214         fma tests.
46215         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46216         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46217         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46218         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46219         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46220         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46221         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46222
46223 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46224
46225         [BZ #12078]
46226         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46227         * posix/bug-regex31.input: Add test case.
46228
46229 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46230
46231         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46232         * posix/bug-regex31.input: New file.
46233
46234         [BZ #12078]
46235         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46236         (parse_sub_exp): Fix last change, use postorder.
46237
46238         * posix/bug-regex31.c: New file.
46239         * posix/Makefile: Add rules to build and run bug-regex31.
46240
46241         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46242
46243         [BZ #12078]
46244         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46245
46246         [BZ #12108]
46247         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46248         to have entries in sys_siglist.
46249
46250         [BZ #12093]
46251         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46252         be NULL.
46253
46254 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46255
46256         [BZ #3268]
46257         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46258         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46259         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46260         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46261         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46262         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46263         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46264         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46265         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46266         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46267         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46268         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46269         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46270         * math/ftestexcept.c (fetestexcept): Likewise.
46271         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46272         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46273         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46274         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46275         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46276         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46277         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46278
46279 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46280
46281         [BZ #12107]
46282         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46283         newline.
46284
46285 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46286
46287         * string/bug-strstr1.c: New file.
46288         * string/Makefile: Add rules to build and run bug-strstr1.
46289
46290 2010-10-05  Eric Blake  <eblake@redhat.com>
46291
46292         [BZ #12092]
46293         * string/str-two-way.h (two_way_long_needle): Always clear memory
46294         when skipping input due to the shift table.
46295
46296 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46297
46298         [BZ #12005]
46299         * malloc/mcheck.c: Handle large requests.
46300
46301         [BZ #12077]
46302         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46303         for strncmp and strncasecmp.
46304         * string/stratcliff.c: Add tests for strcmp and strncmp.
46305         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46306
46307 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46308
46309         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46310         __set_fpscr.
46311
46312 2010-09-30  Andreas Jaeger  <aj@suse.de>
46313
46314         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46315         (CGROUP_SUPER_MAGIC): Define.
46316         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46317         Handle btrfs and cgroup file systems.
46318         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46319         Likewise.
46320
46321 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46322
46323         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46324         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46325
46326 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46327
46328         [BZ #12067]
46329         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46330         trying to locate the ELF header.
46331
46332 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46333
46334         [BZ #11611]
46335         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46336         Mask out sign-bit copies when constructing f_fsid.
46337
46338 2010-09-24  Petr Baudis <pasky@suse.cz>
46339
46340         * debug/stack_chk_fail_local.c: Add missing licence exception.
46341         * debug/warning-nop.c: Likewise.
46342
46343 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46344
46345         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46346         implementing getdents64 using getdents syscall, set d_type if
46347         __ASSUME_GETDENTS32_D_TYPE.
46348
46349 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46350
46351         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46352         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46353
46354 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46355
46356         [BZ #12037]
46357         * posix/unistd.h: Undo change of feature selection for ftruncate from
46358         2010-01-11.
46359
46360 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46361
46362         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46363         detection.
46364
46365 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46366
46367         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46368         fanotify_mark.
46369         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46370
46371 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46372
46373         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46374         variables after CHECK_SP call.
46375         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46376
46377 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46378             Ulrich Drepper  <drepper@redhat.com>
46379
46380         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46381         re-relocationg ld.so.
46382         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46383         _dl_init_paths call.
46384         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46385         here anymore.
46386
46387 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46388
46389         * resolv/res_init.c (__res_vinit): Count the default server we added.
46390
46391 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46392             Ulrich Drepper  <drepper@redhat.com>
46393
46394         [BZ #11968]
46395         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46396         (____longjmp_chk): Use %ebx for saving value across system call.
46397         Add unwind info.
46398
46399 2010-09-06  Andreas Schwab  <schwab@redhat.com>
46400
46401         * manual/Makefile: Don't mix pattern rules with normal rules.
46402
46403 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
46404
46405         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
46406         operation.
46407         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
46408         * libio/iofopncook.c (_IO_cookie_init): Likewise.
46409         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
46410         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
46411         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46412         Likewise.
46413
46414 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
46415
46416         [BZ #11979]
46417         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
46418         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
46419
46420 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
46421
46422         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
46423         * sysdeps/x86_64/addmul_1.S: Likewise.
46424         * sysdeps/x86_64/lshift.S: Likewise.
46425         * sysdeps/x86_64/mul_1.S: Likewise.
46426         * sysdeps/x86_64/rshift.S: Likewise.
46427         * sysdeps/x86_64/sub_n.S: Likewise.
46428         * sysdeps/x86_64/submul_1.S: Likewise.
46429
46430 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46431
46432         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
46433         Define __sched_param instead of SCHED_* and sched_param when
46434         <bits/sched.h> is included with __need_schedparam defined.
46435         * bits/sched.h [__need_schedparam]
46436         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
46437         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
46438         (__defined_schedparam): Define to 1.
46439         (__sched_param): New structure, identical to sched_param.
46440         (__need_schedparam): Undefine.
46441
46442 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46443
46444         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46445         (epoll_create1): Declare.
46446
46447         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46448
46449 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46450
46451         [BZ #7066]
46452         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46453         shifting retval into place.
46454
46455 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46456
46457         * nis/rpcsvc/nis.h: Update copyright notice.
46458         * nis/rpcsvc/nis.x: Likewise.
46459         * nis/rpcsvc/nis_callback.h: Likewise.
46460         * nis/rpcsvc/nis_callback.x: Likewise.
46461         * nis/rpcsvc/nis_object.x: Likewise.
46462         * nis/rpcsvc/nis_tags.h: Likewise.
46463         * nis/rpcsvc/yp.h: Likewise.
46464         * nis/rpcsvc/yp.x: Likewise.
46465         * nis/rpcsvc/ypupd.h: Likewise.
46466         * nis/yp_xdr.c: Likewise.
46467         * nis/ypupdate_xdr.c: Likewise.
46468
46469         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46470         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46471         (pmap_getport): Use __libc_rpc_getport.
46472         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46473         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46474         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46475
46476 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46477
46478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46479         fanotify_mark.
46480
46481 2010-08-27  Roland McGrath  <roland@redhat.com>
46482
46483         * sysdeps/i386/i686/multiarch/Makefile
46484         (CFLAGS-varshift.c): New variable.
46485
46486 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46487
46488         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46489         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46490
46491         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46492
46493         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46494
46495 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46496
46497         * sysdeps/x86_64/strlen.S: Unroll the loop.
46498         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46499         strlen-sse2 strlen-sse2-bsf.
46500         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46501         __strlen_no_bsf if bit_Slow_BSF is set.
46502         (__strlen_sse42): Removed.
46503         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46504         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46505
46506 2010-08-25  Roland McGrath  <roland@redhat.com>
46507
46508         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46509         * sysdeps/x86_64/multiarch/varshift.c: New file.
46510         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46511         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46512         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46513         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46514
46515 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46516
46517         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46518         strlen-sse2 strlen-sse2-bsf.
46519         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46520         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46521         (__strlen_sse2): Removed.
46522         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46523         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46524         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46525         bit_Slow_BSF for Atom.
46526         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46527         (index_Slow_BSF): Define.
46528         (HAS_SLOW_BSF): Define.
46529
46530 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46531
46532         [BZ #10851]
46533         * resolv/res_init.c (__res_vinit): When no server address at all
46534         is given default to loopback.
46535
46536 2010-08-24  Roland McGrath  <roland@redhat.com>
46537
46538         * configure.in: Remove config-name.h generation.
46539         * configure: Regenerated.
46540         * config-name.in: File removed.
46541         * scripts/config-uname.sh: New file.
46542         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46543         ($(objdir)config-name.h): New target.
46544
46545         * sunrpc/rpc_parse.h: Avoid nested comment.
46546
46547 2010-08-24  Richard Henderson  <rth@redhat.com>
46548             Ulrich Drepper  <drepper@redhat.com>
46549             H.J. Lu  <hongjiu.lu@intel.com>
46550
46551         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46552         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46553         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46554         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46555         _mm_alignr_epi8 with _mm_loadu_si128.
46556         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46557         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46558         (__m128i_shift_right): Removed.
46559         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46560         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46561         * sysdeps/x86_64/multiarch/varshift.h: New file.
46562         * sysdeps/x86_64/multiarch/varshift.S: New file.
46563
46564 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46565
46566         * configure.in: Move assembler checks to before sysdep dir checking.
46567
46568 2010-08-20  Petr Baudis  <pasky@suse.cz>
46569
46570         * LICENSES: Sync the sunrpc license.
46571
46572 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46573
46574         * sunrpc/auth_des.c: Update copyright notice once again.
46575         * sunrpc/auth_none.c: Likewise.
46576         * sunrpc/auth_unix.c: Likewise.
46577         * sunrpc/authdes_prot.c: Likewise.
46578         * sunrpc/authuxprot.c: Likewise.
46579         * sunrpc/bindrsvprt.c: Likewise.
46580         * sunrpc/clnt_gen.c: Likewise.
46581         * sunrpc/clnt_perr.c: Likewise.
46582         * sunrpc/clnt_raw.c: Likewise.
46583         * sunrpc/clnt_simp.c: Likewise.
46584         * sunrpc/clnt_tcp.c: Likewise.
46585         * sunrpc/clnt_udp.c: Likewise.
46586         * sunrpc/clnt_unix.c: Likewise.
46587         * sunrpc/des_crypt.c: Likewise.
46588         * sunrpc/des_soft.c: Likewise.
46589         * sunrpc/get_myaddr.c: Likewise.
46590         * sunrpc/getrpcport.c: Likewise.
46591         * sunrpc/key_call.c: Likewise.
46592         * sunrpc/key_prot.c: Likewise.
46593         * sunrpc/openchild.c: Likewise.
46594         * sunrpc/pm_getmaps.c: Likewise.
46595         * sunrpc/pm_getport.c: Likewise.
46596         * sunrpc/pmap_clnt.c: Likewise.
46597         * sunrpc/pmap_prot.c: Likewise.
46598         * sunrpc/pmap_prot2.c: Likewise.
46599         * sunrpc/pmap_rmt.c: Likewise.
46600         * sunrpc/rpc/auth.h: Likewise.
46601         * sunrpc/rpc/auth_unix.h: Likewise.
46602         * sunrpc/rpc/clnt.h: Likewise.
46603         * sunrpc/rpc/des_crypt.h: Likewise.
46604         * sunrpc/rpc/key_prot.h: Likewise.
46605         * sunrpc/rpc/netdb.h: Likewise.
46606         * sunrpc/rpc/pmap_clnt.h: Likewise.
46607         * sunrpc/rpc/pmap_prot.h: Likewise.
46608         * sunrpc/rpc/pmap_rmt.h: Likewise.
46609         * sunrpc/rpc/rpc.h: Likewise.
46610         * sunrpc/rpc/rpc_des.h: Likewise.
46611         * sunrpc/rpc/rpc_msg.h: Likewise.
46612         * sunrpc/rpc/svc.h: Likewise.
46613         * sunrpc/rpc/svc_auth.h: Likewise.
46614         * sunrpc/rpc/types.h: Likewise.
46615         * sunrpc/rpc/xdr.h: Likewise.
46616         * sunrpc/rpc_clntout.c: Likewise.
46617         * sunrpc/rpc_cmsg.c: Likewise.
46618         * sunrpc/rpc_common.c: Likewise.
46619         * sunrpc/rpc_cout.c: Likewise.
46620         * sunrpc/rpc_dtable.c: Likewise.
46621         * sunrpc/rpc_hout.c: Likewise.
46622         * sunrpc/rpc_main.c: Likewise.
46623         * sunrpc/rpc_parse.c: Likewise.
46624         * sunrpc/rpc_parse.h: Likewise.
46625         * sunrpc/rpc_prot.c: Likewise.
46626         * sunrpc/rpc_sample.c: Likewise.
46627         * sunrpc/rpc_scan.c: Likewise.
46628         * sunrpc/rpc_scan.h: Likewise.
46629         * sunrpc/rpc_svcout.c: Likewise.
46630         * sunrpc/rpc_tblout.c: Likewise.
46631         * sunrpc/rpc_util.c: Likewise.
46632         * sunrpc/rpc_util.h: Likewise.
46633         * sunrpc/rpcinfo.c: Likewise.
46634         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46635         * sunrpc/rpcsvc/key_prot.x: Likewise.
46636         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46637         * sunrpc/rpcsvc/mount.x: Likewise.
46638         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46639         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46640         * sunrpc/rpcsvc/rex.x: Likewise.
46641         * sunrpc/rpcsvc/rstat.x: Likewise.
46642         * sunrpc/rpcsvc/rusers.x: Likewise.
46643         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46644         * sunrpc/rpcsvc/spray.x: Likewise.
46645         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46646         * sunrpc/rtime.c: Likewise.
46647         * sunrpc/svc.c: Likewise.
46648         * sunrpc/svc_auth.c: Likewise.
46649         * sunrpc/svc_authux.c: Likewise.
46650         * sunrpc/svc_raw.c: Likewise.
46651         * sunrpc/svc_run.c: Likewise.
46652         * sunrpc/svc_simple.c: Likewise.
46653         * sunrpc/svc_tcp.c: Likewise.
46654         * sunrpc/svc_udp.c: Likewise.
46655         * sunrpc/svc_unix.c: Likewise.
46656         * sunrpc/svcauth_des.c: Likewise.
46657         * sunrpc/xcrypt.c: Likewise.
46658         * sunrpc/xdr.c: Likewise.
46659         * sunrpc/xdr_array.c: Likewise.
46660         * sunrpc/xdr_float.c: Likewise.
46661         * sunrpc/xdr_mem.c: Likewise.
46662         * sunrpc/xdr_rec.c: Likewise.
46663         * sunrpc/xdr_ref.c: Likewise.
46664         * sunrpc/xdr_sizeof.c: Likewise.
46665         * sunrpc/xdr_stdio.c: Likewise.
46666
46667         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46668         handling.
46669
46670 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46671
46672         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46673
46674 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46675
46676         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46677         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46678         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46679         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46680         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46681         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46682         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46683         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46684         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46685         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46686         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46687         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46688         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46689         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46690
46691 2010-07-26  Anton Blanchard  <anton@samba.org>
46692
46693         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46694         * malloc/arena.c (heap_trim): Likewise.
46695
46696 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46697
46698         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46699         here.  Not...
46700         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46701         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46702
46703 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46704
46705         * sysdeps/i386/elf/Makefile: New file.
46706
46707 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46708
46709         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46710         from fanotify_init.
46711         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46712         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46713
46714 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46715
46716         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46717         of strncasecmp_l.
46718         * sysdeps/multiarch/strcmp.S: Likewise.
46719
46720 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46721
46722         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46723         strncase_l-nonascii.
46724         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46725         Add strncase_l-ssse3.
46726         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46727         * sysdeps/x86_64/strcmp.S: Likewise.
46728         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46729         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46730         * sysdeps/x86_64/strncase.S: New file.
46731         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46732         * sysdeps/x86_64/strncase_l.S: New file.
46733         * string/Makefile (strop-tests): Add strncasecmp.
46734         * string/test-strncasecmp.c: New file.
46735
46736         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46737         warning.
46738
46739         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46740         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46741
46742 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46743
46744         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46745
46746 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46747
46748         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46749         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46750         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46751
46752 2010-05-01  Alan Modra  <amodra@gmail.com>
46753
46754         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46755         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46756         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46757         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46758         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46759         tidying.  Don't tail-call __sigjmp_save for static lib.
46760         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46761         save location.
46762         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46763         (CALL_MCOUNT): Add eh info, and nop after bl.
46764         (TAIL_CALL_SYSCALL_ERROR): New macro.
46765         (PSEUDO_RET): Use it.
46766         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46767         Correct save location of integer regs and cr.
46768         (_dl_profile_resolve): Correct cr save location.  Delete nops
46769         after bl when SHARED.  Reduce cfi size a little by better
46770         placement of cfi directives.
46771         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46772         make a stack frame.  Instead use parm save area as a temp.
46773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46774         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46776         Don't make a stack frame for parent, use parm save area.
46777         Increase child stack frame to 112 bytes.  Don't save unused reg,
46778         and adjust reg usage.  Set up cfi on error recovery and
46779         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46781         (__makecontext): Add dummy nop after jump to exit.
46782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46783         Use correct parm save area and cr save, reduce stack frame.
46784         Correct cfi for possible PSEUDO_RET frame setup.
46785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46786         Branch to local label emitted by PSEUDO_RET rather than
46787         __syscall_error.
46788
46789 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46790
46791         [BZ #11904]
46792         * locale/programs/locale.c (print_assignment): New function.
46793         (show_locale_vars): Use it.
46794
46795 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46796
46797         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46798         field.
46799         (struct statfs64): Likewise.
46800         (_STATFS_F_FLAGS): Define.
46801         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46802         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46803         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46804         (ST_VALID): Define locally.
46805         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46806         __statvfs_getflags, use the provided value.
46807         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46808         __ASSUME_STATFS_F_FLAGS.
46809
46810         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46811
46812         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46813         Add sys/fanotify.h.
46814         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46815         fanotify_mask for GLIBC_2.13.
46816         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46817         fanotify_init and fanotify_mark.
46818         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46819         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46820
46821         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46822         Add prlimit.
46823         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46824         prlimit64 for GLIBC_2.13.
46825         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46826         prlimit64.
46827         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46828         syscall.
46829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46830         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46831         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46832         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46833         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46834         add prlimit alias.
46835         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46836
46837         [BZ #11903]
46838         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46839         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46840
46841         * nss/Makefile: Add rules to build and run tst-nss-test1.
46842         * shlib-versions: Add entry for libnss_test1.
46843         * nss/nss_test1.c: New file.
46844         * nss/tst-nss-test1.c: New file.
46845
46846         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46847         (__nss_configure_lookup): Set appropriate entry in
46848         __nss_configure_lookup to true.
46849         * nss/nsswitch.h: Define enum with indeces of databases in
46850         databases and __nss_database_custom arrays.  Declare
46851         __nss_database_custom.
46852         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46853         to avoid using nscd when custom rules are installed.
46854         * nss/getXXbyYY_r.c: Likewise.
46855         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46856
46857         * nss/nss_files/files-parse.c: Whitespace fixes.
46858
46859 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46860
46861         [BZ #11883]
46862         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46863         * posix/fnmatch_loop.c: Likewise.
46864
46865 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46866
46867         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46868         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46869         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46870         * Versions.def [GLIBC_2.13]: Add.
46871
46872 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46873
46874         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46875         Also fail if tpwd after pwuid call is NULL.
46876
46877 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46878
46879         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46880         when converting to ms.
46881
46882 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46883
46884         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46885         EOPNOTSUPP errors with ENOTTY.
46886         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46887         EOPNOTSUPP errors with ENOTTY.
46888
46889 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46890
46891         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46892         Add strcasecmp_l-ssse3.
46893         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46894         strcasecmp.
46895         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46896         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46897         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46898
46899 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46900
46901         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46902
46903         * string/Makefile (strop-tests): Add strcasecmp.
46904         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46905         strcasecmp_l-nonascii.
46906         (gen-as-const-headers): Add locale-defines.sym.
46907         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46908         * sysdeps/x86_64/strcasecmp.S: New file.
46909         * sysdeps/x86_64/strcasecmp_l.S: New file.
46910         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46911         * sysdeps/x86_64/locale-defines.sym: New file.
46912         * string/test-strcasecmp.c: New file.
46913
46914         * string/test-strcasestr.c: Test both ends of the range of characters.
46915         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46916
46917 2010-07-29  Roland McGrath  <roland@redhat.com>
46918
46919         [BZ #11856]
46920         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46921
46922 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46923
46924         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46925         for ld.so.
46926
46927 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46928
46929         * manual/memory.texi (Malloc Tunable Parameters): Document
46930         M_PERTURB.
46931
46932 2010-07-26  Roland McGrath  <roland@redhat.com>
46933
46934         [BZ #11840]
46935         * configure.in (-fgnu89-inline check): Set and substitute
46936         gnu89_inline, not libc_cv_gnu89_inline.
46937         * configure: Regenerated.
46938         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46939
46940 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46941
46942         * string/test-strnlen.c: New file.
46943         * string/Makefile (strop-tests): Add strnlen.
46944         * string/tester.c (test_strnlen): Add a few more test cases.
46945         * string/tst-strlen.c: Better error reporting.
46946
46947         * sysdeps/x86_64/strnlen.S: New file.
46948
46949 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46950
46951         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46952         lower-latency instructions.
46953
46954 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46955
46956         * string/test-strcasestr.c: New file.
46957         * string/test-strstr.c: New file.
46958         * string/Makefile (strop-tests): Add strstr and strcasestr.
46959         * string/str-two-way.h: Don't undefine MAX.
46960         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46961
46962 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46963
46964         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46965         strcasestr-nonascii.
46966         (CFLAGS-strcasestr-nonascii.c): Define.
46967         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46968         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46969         Remove unused attribute.
46970
46971 2010-07-20  Roland McGrath  <roland@redhat.com>
46972
46973         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46974         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46975         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46976         like LD_HWCAP_MASK can disable hwcaps.
46977
46978 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46979
46980         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46981
46982 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46983
46984         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46985         call in strcasestr.
46986         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46987         __strcasestr_sse42_nonascii.
46988         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46989         strcasestr-nonascii.c.
46990         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46991
46992 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46993
46994         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46995         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46996         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46997         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46998
46999 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
47000
47001         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
47002         fcntl.
47003
47004 2010-07-06  Andreas Schwab  <schwab@redhat.com>
47005
47006         [BZ #11577]
47007         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
47008         dl_signal_cerror.
47009
47010 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
47011
47012         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
47013         _PC_PIPE_BUF using F_GETPIPE_SZ.
47014
47015 2010-07-05  Roland McGrath  <roland@redhat.com>
47016
47017         * manual/arith.texi (Rounding Functions): Fix rint description
47018         implicit in round description.
47019
47020 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
47021
47022         * elf/Makefile: Fix linking for a few tests to make recent linker
47023         happy.
47024
47025 2010-06-30  Andreas Schwab  <schwab@redhat.com>
47026
47027         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
47028         $(common-objpfx)libc_nonshared.a.
47029
47030 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
47031
47032         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
47033         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
47034         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47035         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47036         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
47037         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
47038         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47039         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
47041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
47042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
47043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
47045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
47047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
47048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
47049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
47050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
47052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
47054         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
47055         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
47056         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47057         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47058         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47059         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47060         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47061         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47062         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47063         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47064         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47065         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47080
47081 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47082
47083         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47084         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47085         * string/memmove.c (memmove): Renamed to ...
47086         (MEMMOVE): ...this.  Default to memmove.
47087         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47088         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47089         (END_CHK): Define.
47090         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47091         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47092         mempcpy-ssse3-back memmove-ssse3-back.
47093         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47094         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47095         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47096         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47097         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47098         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47099         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47100         * sysdeps/x86_64/multiarch/memmove.c: New file.
47101         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47102         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47103         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47104         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47105         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47106         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47107         Define.
47108         (index_Fast_Copy_Backward): Define.
47109         (HAS_ARCH_FEATURE): Define.
47110         (HAS_FAST_REP_STRING): Define.
47111         (HAS_FAST_COPY_BACKWARD): Define.
47112
47113 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47114
47115         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47116         Restore proper fallback handling.
47117
47118 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47119
47120         [BZ #11701]
47121         * posix/group_member.c (__group_member): Correct checking loop.
47122
47123         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47124         OOM in getpwuid_r correctly.  Return error number when the caller
47125         should return, otherwise -1.
47126         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47127         call returning > 0 value.
47128         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47129
47130 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47131
47132         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47133         libc_nonshared.a from targets in modules-names.
47134
47135 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47136
47137         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47138         requires it.
47139
47140 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47141
47142         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47143         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47144         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47145         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47146
47147 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47148
47149         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47150
47151 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47152
47153         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47154         and F_GETPIPE_SZ.
47155         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47157         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47158         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47159         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47160         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47161
47162 2010-06-14  Roland McGrath  <roland@redhat.com>
47163
47164         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47165
47166 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47167
47168         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47169         __REDIRECT followed by __THROW.
47170         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47171         * posix/getopt.h (getopt): Likewise.
47172
47173 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47174
47175         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47176         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47177         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47178         in AT_FLAGS.
47179         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47180         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47181
47182 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47183
47184         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47185
47186 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47187
47188         [BZ #11640]
47189         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47190         Properly check family and model.
47191
47192 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47193
47194         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47195
47196 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47197
47198         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47199
47200 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47201
47202         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47203         symbol reference.
47204
47205 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47206
47207         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47208         symbol reference.
47209
47210 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47211
47212         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47213         and internal_recvmmsg.
47214         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47215         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47216         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47217         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47218
47219         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47220         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47221         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47222
47223 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47224
47225         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47226
47227 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47228
47229         POWER7 optimizations.
47230         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47231         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47232
47233 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47234
47235         * version.h: Update for 2.13 development version.
47236
47237 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47238
47239         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47240         exceptions.  Return 0.
47241
47242 2010-05-07  Roland McGrath  <roland@redhat.com>
47243
47244         * elf/ldconfig.c (main): Add a const.
47245
47246 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47247
47248         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47249         (args_options): Add no-idn option.
47250         (ahosts_keys_int): Add idn_flags to ai_flags.
47251         (parse_option): Handle 'i' option to clear idn_flags.
47252
47253         * malloc/malloc.c (_int_free): Possible race in the most recently
47254         added check.  Only act on the data if no current modification
47255         happened.
47256
47257 See ChangeLog.17 for earlier changes.