Move architecture cases out of sysdeps/unix/sysv/linux/configure.ac.
[platform/upstream/glibc.git] / ChangeLog
1 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
4         individual architectures.
5         * sysdeps/unix/sysv/linux/configure: Regenerated.
6         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
7         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
8         * sysdeps/unix/sysv/linux/powerpc/configure.ac
9         (ldd_rewrite_script): Define variable.
10         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
11         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
12         file.
13         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
14         generated file.
15         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
16         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
17         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
18         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
19         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
20         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
21         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
22         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
23
24 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25
26         [BZ #17084]
27         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
28         Rename member __data.d to __data.__elision_data.
29
30 2014-06-24  Wilco  <wdijkstr@arm.com>
31
32         * NEWS: Add 16918 to fixed bug list.
33
34 2014-06-24  Wilco  <wdijkstr@arm.com>
35
36         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
37
38 2014-06-24  Wilco  <wdijkstr@arm.com>
39
40         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
41         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
42         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
43         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
44         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
45         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
46         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
47         Use _FPU_MASK_RM.
48
49 2014-06-24  Wilco  <wdijkstr@arm.com>
50
51         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
52
53 2014-06-24  Wilco  <wdijkstr@arm.com>
54
55         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
56         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
57         * sysdeps/arm/fesetround.c (fesetround): Remove space.
58         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
59
60 2014-06-24  Wilco  <wdijkstr@arm.com>
61
62         [BZ #16918]
63         * sysdeps/arm/feupdateenv.c (feupdateenv):
64         Rewrite to reduce FPSCR accesses and fix return value.
65
66 2014-06-24  Wilco  <wdijkstr@arm.com>
67
68         * sysdeps/arm/fclrexcpt.c (feclearexcept):
69         Optimize to avoid unnecessary FPSCR writes.
70         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
71         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
72         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
73         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
74
75 2014-06-24  Wilco  <wdijkstr@arm.com>
76
77         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
78         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
79         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
80         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
81         Call libc_fetestexcept_vfp.
82         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
83         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
84         __SOFTFP__ ifdef so that they can be built for softfp.
85
86 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
87
88         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
89         argument type signed char.
90
91         * Makerules (check-abi): Dump diff of symlist if the test
92         fails.
93
94 2014-06-23  Roland McGrath  <roland@hack.frob.com>
95
96         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
97         using abort.
98
99         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
100         Remove unused variable ST.
101
102 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
103
104         [BZ #16354]
105         [BZ #17061]
106         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
107         small arguments before calling __expm1.
108         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
109         small arguments before calling __expm1f.
110         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
111         small arguments before calling __expm1l.
112         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
113         Likewise.
114         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
115         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
116         spurious underflow for some cosh tests.
117         * math/auto-libm-test-out: Regenerated.
118         * sysdeps/i386/fpu/libm-test-ulps: Update.
119
120         [BZ #17050]
121         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
122         (__ieee754_y1): Set errno if return value overflows.
123         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
124         (__ieee754_y1f): Set errno if return value overflows.
125         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
126         (__ieee754_y1l): Set errno if return value overflows.
127         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
128         (__ieee754_y1l): Set errno if return value overflows.
129         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
130         * math/auto-libm-test-out: Regenerated.
131
132         * math/gen-auto-libm-tests.c: Document use of
133         ignore-zero-inf-sign.
134         (input_flag_type): Add value flag_ignore_zero_inf_sign.
135         (input_flags): Add ignore-zero-inf-sign.
136         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
137         * math/gen-libm-test.pl (generate_testfile): Handle
138         ignore-zero-inf-sign.
139         * math/auto-libm-test-in: Mark some cpow tests with
140         ignore-zero-inf-sign and some with xfail-rounding.
141         * math/auto-libm-test-out: Regenerated.
142         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
143         * sysdeps/i386/fpu/libm-test-ulps: Update.
144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
145
146         [BZ #16315]
147         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
148         overflowing or underflowing operations take place with sign of
149         result.
150         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
151         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
152         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
153         (__ieee754_pow): Recompute overflowing and underflowing results in
154         original rounding mode.
155         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
156         (__powl_helper): Allow negative argument X and scale negated value
157         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
158         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
159         overflowing or underflowing operations take place with sign of
160         result.
161         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
162         Include <math.h>.
163         * math/auto-libm-test-in: Add more tests of pow.
164         * math/auto-libm-test-out: Regenerated.
165         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
166         (pow_tonearest_test_data): Remove.
167         (pow_test_tonearest): Likewise.
168         (pow_towardzero_test_data): Likewise.
169         (pow_test_towardzero): Likewise.
170         (pow_downward_test_data): Likewise.
171         (pow_test_downward): Likewise.
172         (pow_upward_test_data): Likewise.
173         (pow_test_upward): Likewise.
174         (main): Don't call removed functions.
175         * sysdeps/i386/fpu/libm-test-ulps: Update.
176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
177
178 2014-06-23  Roland McGrath  <roland@hack.frob.com>
179
180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
181         Moved ...
182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
184         Moved ...
185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
187         Moved ...
188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
190         Moved ...
191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
193         File removed.
194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
195         File removed.
196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
197         File removed.
198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
199         File removed.
200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
201         File removed.
202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
203         File removed.
204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
205         File removed.
206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
207         File removed.
208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
209         File removed.
210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
211         File removed.
212         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
213         File removed.
214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
215         File removed.
216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
217         Moved ...
218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
220         Moved ...
221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
222         ... here.
223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
224         Moved ...
225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
227         Moved ...
228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
230         Moved ...
231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
233         Moved ...
234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
236         Moved ...
237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
239         Moved ...
240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
242         Moved ...
243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
246         ... here.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
248         Moved ...
249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
251         Moved ...
252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
253         ... here.
254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
255         Moved ...
256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
257         ... here.
258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
259         Moved ...
260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
261         ... here.
262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
263         Moved ...
264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
266         Moved ...
267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
271         Moved ...
272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
273         ... here.
274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
275         Moved ...
276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
277         ... here.
278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
279         Moved ...
280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
282         Moved ...
283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
285         Moved ...
286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
288         Moved ...
289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
291         Moved ...
292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
293         ... here.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
295         Moved ...
296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
298         Moved ...
299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
301         Moved ...
302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
304         Moved ...
305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
309         Moved ...
310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
312         Moved ...
313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
315         Moved ...
316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
317         ... here.
318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
319         Moved ...
320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
321         ... here.
322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
323         Moved ...
324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
325         ... here.
326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
327         Moved ...
328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
330         Moved ...
331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
333         Moved ...
334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
336         Moved ...
337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
338         ... here.
339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
340         Moved ...
341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
342         ... here.
343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
344         Moved ...
345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
346         ... here.
347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
348         Moved ...
349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
351         Moved ...
352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
353
354 2014-06-23  Will Newton  <will.newton@linaro.org>
355             Wilco  <wdijkstr@arm.com>
356
357         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
358         implementation.  Include get-rounding-mode.h.
359         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
360         [!libc_feholdsetround_noex_ctx]: Define
361         libc_feholdsetround_noex_ctx.
362         [!libc_feholdsetround_noexf_ctx]: Define
363         libc_feholdsetround_noexf_ctx.
364         [!libc_feholdsetround_noexl_ctx]: Define
365         libc_feholdsetround_noexl_ctx.
366         (libc_feholdsetround_ctx): New function.
367         (libc_feresetround_ctx): New function.
368         (libc_feholdsetround_noex_ctx): New function.
369         (libc_feresetround_noex_ctx): New function.
370
371 2014-06-23  Roland McGrath  <roland@hack.frob.com>
372
373         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
374         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
375         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
376         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
377         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
378         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
379
380         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
381         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
382         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
383         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
384         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
385         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
386         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
387         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
388         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
389         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
390         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
391         Moved ...
392         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
393         ... here.
394         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
395         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
396         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
397         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
398         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
399         Moved ...
400         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
401         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
402         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
403         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
404         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
405         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
406         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
407         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
408         Moved ...
409         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
410         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
411         Moved ...
412         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
413         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
414         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
415         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
416         Moved ...
417         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
418         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
419         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
420         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
421         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
422         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
423         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
424         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
425         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
426         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
427         Moved ...
428         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
429         ... here.
430         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
431         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
432         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
433         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
434         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
435         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
436         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
437         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
438         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
439         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
440         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
441         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
442         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
443         Moved ...
444         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
445         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
446         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
447         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
448         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
449         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
450         Moved ...
451         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
452         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
453         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
454         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
455         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
456
457         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
458         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
459         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
460         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
461         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
462         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
463         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
464         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
465         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
466         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
467         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
468         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
469         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
470         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
471         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
472         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
473         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
474         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
475         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
476         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
477         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
478         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
479         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
480         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
481         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
482         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
483         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
484         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
485
486 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
487
488         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
489         (FALLOC_FL_COLLAPSE_RANGE): New macro.
490         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
491         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
492         (IPV6_PMTUDISC_INTERFACE): Likewise.
493         (IPV6_PMTUDISC_OMIT): Likewise.
494
495 2014-06-23  Andreas Schwab  <schwab@suse.de>
496
497         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
498         Remove unused errout label.
499
500 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
501
502         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
503         macro: hardware supports Vector Crypto instructions.
504
505 2014-06-23  Will Newton  <will.newton@linaro.org>
506
507         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
508         rather than __builtin_expect.
509
510         * elf/dl-lookup.c (undefined_msg): Remove variable.
511         (_dl_lookup_symbol_x): Replace undefined_msg with string
512         literal.
513
514         * elf/dl-lookup.c (do_lookup_unique): New function.
515         (do_lookup_x): Move STB_GNU_UNIQUE handling code
516         to a separate function.
517
518 2014-06-23  Andreas Schwab  <schwab@suse.de>
519
520         [BZ #17079]
521         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
522         before reading the next line.
523
524 2014-06-23  Will Newton  <will.newton@linaro.org>
525
526         * test-skeleton.c (signal_handler): Use printf and %m
527         rather than perror.  Use printf rather than fprintf to
528         stderr.  Use puts rather than fputs to stderr.
529         (main): Likewise.
530
531 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
532
533         * nscd/nscd.c (thread_info_t): Remove typedef.
534         (thread_info): Remove variable.
535
536 2014-06-21  Allan McRae  <allan@archlinux.org>
537
538         * NEWS: Mention CVE-2014-4043.
539
540 2014-06-20  Roland McGrath  <roland@hack.frob.com>
541
542         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
543         * nptl/smp.h: ... here.
544
545         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
546
547         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
548         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
549         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
550         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
551
552         * nptl/allocatestack.c: Include <stack-aliasing.h>.
553         * nptl/stack-aliasing.h: New file.
554         * sysdeps/i386/i686/stack-aliasing.h: New file.
555         * sysdeps/i386/i686/nptl/Makefile: File removed.
556         * sysdeps/x86_64/stack-aliasing.h: New file.
557         * sysdeps/x86_64/nptl/Makefile
558         (CFLAGS-pthread_create.c): Variable removed.
559
560         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
561         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
562         old file.
563         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
564         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
565         old file.
566
567 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
568
569         * sysdeps/unix/sysv/linux/arm/kernel-features.h
570         (__ASSUME_SIGFRAME_V2): Remove macro.
571         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
572         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
573         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
574         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
575         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
576         Declare as function.  Remove conditional macro definitions.
577         (__default_rt_sa_restorer): Likewise.
578         (__default_sa_restorer_v1): Remove declaration.
579         (__default_sa_restorer_v2): Likewise.
580         (__default_rt_sa_restorer_v1): Likewise.
581         (__default_rt_sa_restorer_v2): Likewise.
582         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
583         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
584         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
585
586 2014-06-20  Roland McGrath  <roland@hack.frob.com>
587
588         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
589         (libpthread-routines): Add sysdep.
590         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
591         * sysdeps/unix/sysv/linux/sparc/Versions
592         (libpthread: GLIBC_2.3.3): New version set.
593         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
594         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
595         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
596         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
597         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
598         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
599         Moved ...
600         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
601         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
602         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
603         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
604         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
605         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
606         * sysdeps/sparc/nptl/sem_init.c: ... here.
607         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
608         * sysdeps/sparc/nptl/sem_post.c: ... here.
609         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
610         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
611         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
612         * sysdeps/sparc/nptl/sem_wait.c: ... here.
613         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
614         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
615         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
616         (libpthread-routines): Add cpu_relax.
617         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
618         File removed.
619         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
620         (librt: GLIBC_2.3.3): New version set.
621         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
622         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
623         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
624         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
625         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
626         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
627         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
628         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
629         Moved ...
630         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
631         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
632         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
633         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
634         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
635         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
636         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
637         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
638         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
639         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
640         Moved ...
641         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
642         Update #include.
643         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
644         Moved ...
645         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
646         Update #include.
647         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
648         Moved ...
649         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
650         Update #include.
651         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
652         Moved ...
653         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
654         Update #include.
655         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
656         Moved ...
657         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
658         Update #include.
659         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
660         Moved ...
661         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
662         Update #include.
663         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
664         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
665         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
666         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
667         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
668         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
669         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
670         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
671         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
672         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
673         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
674         Moved ...
675         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
676         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
677         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
678         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
679         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
680
681 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
682
683         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
684         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
685         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
686         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
687         * nscd/nscd.c: Likewise.
688         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
689         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
690         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
691         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
692
693         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
694         <kernel-features.h>.
695         (init_mq_netlink): Remove conditional have_sock_cloexec
696         definitions.  Remove code conditional on have_sock_cloexec < 0.
697         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
698         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
699         * sysdeps/unix/sysv/linux/opensock.c: Do not include
700         <kernel-features.h>.
701         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
702         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
703
704 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
705
706         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
707         Add tests for memset_chk and memset.
708
709         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
710         with AVX2_Usable.
711
712 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
713
714         [BZ #16046]
715         * elf/tst-dl-iter-static.c: New file.
716         * elf/Makefile (tests-static): Add tst-dl-iter-static.
717
718         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
719         error.
720
721 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
722
723         * sysdeps/unix/sysv/linux/kernel-features.h
724         (__ASSUME_F_GETOWN_EX): Remove macro.
725         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
726         <kernel-features.h>.
727         (miss_F_GETOWN_EX): Remove variable or macro.
728         (do_fcntl): Do not check miss_F_GETOWN_EX.
729         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
730
731         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
732         Remove macro.
733         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
734         [!__ASSUME_AT_RANDOM]: Remove conditional code.
735         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
736
737         * sysdeps/unix/sysv/linux/kernel-features.h
738         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
739         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
740         [ADJ_OFFSET_SS_READ]: Make code unconditional.
741         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
742
743 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
744
745         [BZ #17075]
746         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
747         Fix calculation of the symbol's value.
748         * sysdeps/arm/tst-armtlsdescloc.c: New file.
749         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
750         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
751         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
752         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
753         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
754         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
755         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
756         (modules-names): Add `tst-armtlsdescmod',
757         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
758         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
759         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
760         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
761         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
762         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
763         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
764         ($(objpfx)tst-armtlsdescloc): New dependency.
765         ($(objpfx)tst-armtlsdescextnow): Likewise.
766         ($(objpfx)tst-armtlsdescextlazy): Likewise.
767         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
768         TLS scheme support.
769         * sysdeps/arm/configure: Regenerate.
770
771 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
772
773         * include/fcntl.h (__atfct_seterrno): Remove prototype.
774         (__atfct_seterrno_2): Likewise.
775         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
776         <kernel-features.h>.
777         (__ASSUME_ATFCTS): Do not undefine and redefine.
778         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
779         (__have_atfcts): Remove conditional definition.
780         (__fxstatat([__NR_fstatat64]: Make code unconditional.
781         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
782         unreachable if [__ASSUME_ATFCTS].
783         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
784         not undefine and redefine.
785         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
786         <kernel-features.h>.
787         (faccessat) [__NR_faccessat]: Make code unconditional.
788         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
789         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
790         <kernel-features.h>.
791         (fchmodat) [__NR_fchmodat]: Make code unconditional.
792         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
793         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
794         <kernel-features.h>.
795         (fchownat) [__NR_fchownat]: Make code unconditional.
796         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
797         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
798         <kernel-features.h>.
799         (futimesat) [__NR_futimesat]: Make code unconditional.
800         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
801         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
802         <kernel-features.h>.
803         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
804         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
805         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
806         <kernel-features.h>.
807         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
808         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
809         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
810         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
811         <kernel-features.h>.
812         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
813         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
814         * sysdeps/unix/sysv/linux/linkat.c: Do not include
815         <kernel-features.h>.
816         (linkat) [__NR_linkat]: Make code unconditional.
817         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
818         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
819         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
820         <kernel-features.h>.
821         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
822         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
823         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
824         <kernel-features.h>.
825         (mkdirat) [__NR_mkdirat]: Make code unconditional.
826         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
827         * sysdeps/unix/sysv/linux/openat.c: Do not include
828         <kernel-features.h>.
829         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
830         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
831         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
832         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
833         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
834         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
835         <kernel-features.h>.
836         (readlinkat) [__NR_readlinkat]: Make code unconditional.
837         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
838         result of INLINE_SYSCALL directly, not via int variable.
839         * sysdeps/unix/sysv/linux/renameat.c: Do not include
840         <kernel-features.h>.
841         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
842         (renameat) [__NR_renameat]: Make code unconditional.
843         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
844         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
845         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
846         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
847         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
848         (__ASSUME_ATFCTS): Do not undefine and redefine.
849         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
850         <kernel-features.h>.
851         (symlinkat) [__NR_symlinkat]: Make code unconditional.
852         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
853         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
854         <kernel-features.h>.
855         (unlinkat) [__NR_unlinkat]: Make code unconditional.
856         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
857         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
858         (__ASSUME_ATFCTS): Do not undefine and redefine.
859         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
860         <kernel-features.h>.
861         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
862         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
863         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
864         <kernel-features.h>.
865         (__xmknodat) [__NR_mknodat]: Make code unconditional.
866         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
867
868 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
869
870         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
871
872 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
873
874         [BZ #17069]
875         * posix/regcomp.c (parse_reg_exp): Deallocate partially
876         constructed tree before returning error.
877         * posix/bug-regexp36.c: Expand test case.
878
879 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
880
881         [BZ #6803]
882         * math/libm-test.inc (scalbln_test_date):
883         Add errno expectations.
884         * math/w_scalblnf.c: New File.
885         Add wrapper which checks for setting errno to ERANGE.
886         Add weak_alias for corresponding scalbln function.
887         * math/w_scalbln.c: Likewise.
888         * math/w_scalblnl.c: Likewise.
889         * math/Makefile (libm-calls): Add w_scalbln.
890         * sysdeps/ieee754/flt-32/s_scalblnf.c:
891         Remove weak_alias for corresponding scalbln function.
892         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
893         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
894         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
895         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
896         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
897         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
898         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
899         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
900         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
901         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
902         Remove long_double_symbol for scalblnl function in libm, libc.
903         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
904         Add wrapper which checks for setting errno to ERANGE.
905         Add long_double_symbol for scalblnl function in libm, libc.
906         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
907         Remove long_double_symbol for scalblnl in libm.
908         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
909         Add wrapper which checks for setting errno to ERANGE.
910         Add long_double_symbol for scalblnl function in libm.
911         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
912         Do not use wrapper because of own implementation.
913
914 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
915
916         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
917         3 bytes for __pad1 for x32.
918         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
919
920 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
921             H.J. Lu  <hongjiu.lu@intel.com>
922
923         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
924         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
925         * sysdeps/x86_64/multiarch/memset.S: Likewise.
926         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
927         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
928
929 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
930
931         [BZ #17069]
932         * posix/regcomp.c (parse_expression): Deallocate partially
933         constructed tree before returning error.
934         * posix/Makefile.c (tests): Add bug-regex36.
935         (generated): Add bug-regex36.mtrace.
936         (tests-special): Add $(objpfx)bug-regex36-mem.out
937         (bug-regex36-ENV): New variable.
938         ($(objpfx)bug-regex36-mem.out): New rule.
939         * posix/bug-regex36.c: New file.
940
941 2014-06-19  Will Newton  <will.newton@linaro.org>
942
943         * malloc/malloc.c (systrim): If extra is zero then return
944         early.
945
946 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
947
948         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
949
950 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
951
952         * sysdeps/aarch64/strchr.S: New file.
953
954 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
955
956         [BZ #17022]
957         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
958         from arguments -2 or below.
959         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
960         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
961
962 2014-06-18  Andreas Schwab  <schwab@suse.de>
963
964         [BZ #17062]
965         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
966         of a bracket expr not to run off the end of the string.
967         * posix/Makefile (tests): Add tst-fnmatch3.
968         * posix/tst-fnmatch3.c: New file.
969
970 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
971
972         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
973         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
974         [$(cross-compiling) = no]: Likewise.
975         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
976         [$(cross-compiling) = no]: Likewise.
977
978 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
979
980         [BZ #17031]
981         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
982         double, adjusted for any remainder from the high double.
983         * math/libm-test.inc (nearbyint): Add tests.
984         (rint): Likewise.
985
986 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
987
988         * nptl/sysdeps/powerpc/Makefile: Moved ...
989         * sysdeps/powerpc/nptl/Makefile: ... here.
990         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
991         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
992         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
993         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
994         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
995         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
996         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
997         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
998         * nptl/sysdeps/powerpc/tls.h: Moved ...
999         * sysdeps/powerpc/nptl/tls.h: ... here.
1000
1001 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
1002
1003         [BZ #16681]
1004         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
1005         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
1006         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
1007         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
1008         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
1009         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
1010         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
1011         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
1012         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
1013
1014 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
1015
1016         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
1017
1018 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
1019
1020         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
1021         defined operator.
1022
1023         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
1024         $TIMEOUTFACTOR.
1025
1026 2014-06-16  Florian Weimer  <fweimer@redhat.com>
1027
1028         [BZ #17058]
1029         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
1030         non-executed part of the test.
1031
1032 2014-06-16  Andreas Schwab  <schwab@suse.de>
1033
1034         * string/bits/string2.h (strdup, strndup): Update feature guard.
1035
1036 2014-06-14  David S. Miller  <davem@davemloft.net>
1037
1038         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1039
1040 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
1041
1042         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
1043         that was previously under [RESET_PID].
1044         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
1045
1046         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
1047         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
1048         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
1049         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1050         (__libc_vfork): New strong alias.
1051         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
1052
1053 2014-06-14 Andi Kleen  <ak@linux.intel.com>
1054
1055         * sysdeps/generic/elide.h: New file.
1056
1057 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1058
1059         * Makefile (installed-headers): Adjust path of pthread.h header.
1060
1061 2014-06-13  Roland McGrath  <roland@hack.frob.com>
1062
1063         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
1064         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
1065         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
1066         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
1067
1068         * nptl/sysdeps/s390/Makefile: Moved ...
1069         * sysdeps/s390/nptl/Makefile: ... here.
1070         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
1071         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
1072         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
1073         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
1074         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
1075         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
1076         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
1077         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
1078         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
1079         * sysdeps/s390/nptl/pthreaddef.h: ... here.
1080         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
1081         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
1082         * nptl/sysdeps/s390/tls.h: Moved ...
1083         * sysdeps/s390/nptl/tls.h: ... here.
1084
1085         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
1086         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
1087
1088 2014-06-13  David S. Miller  <davem@davemloft.net>
1089
1090         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
1091         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
1092         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
1093         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
1094         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
1095         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
1096         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
1097         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
1098         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
1099         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
1100         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1101         Remove RESET_PID cpp guards.
1102         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1103         Remove RESET_PID cpp guards.
1104         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1105
1106 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1107
1108         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1109         __sp to uintptr_t.
1110
1111 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1112
1113         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1114         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1115         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1116         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1117         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1118         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1119         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1120         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1121         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1122         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1123         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1124         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1125         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1126         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1127         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1128         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1129         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1130         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1131         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1132         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1133
1134         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1135         (pthread_rwlock_rdlock): Add elision.
1136         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1137         (pthread_rwlock_wrlock): Add elision.
1138         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1139         (pthread_rwlock_trywrlock): Add elision.
1140         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1141         (pthread_rwlock_tryrdlock): Add elision.
1142         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1143         (pthread_rwlock_tryrdlock): Add elision unlock.
1144         * nptl/sysdeps/pthread/pthread.h:
1145         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1146         (PTHREAD_RWLOCK_INITIALIZER,
1147         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1148         Handle new elision field.
1149         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1150         * sysdeps/arm/nptl/bits/pthreadtypes.h
1151         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1152         * sysdeps/sh/nptl/bits/pthreadtypes.h
1153         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1154         * sysdeps/tile/nptl/bits/pthreadtypes.h
1155         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1156         * sysdeps/a/nptl/bits/pthreadtypes.h
1157         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1158         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1159         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1160         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1161         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1162         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1163         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1164         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1165         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1166         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1167         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1168         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1169         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1170         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1171         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1172         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1173         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1174         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1175         (elision_init): Set try_xbegin to zero when no RTM.
1176         * sysdeps/x86/nptl/bits/pthreadtypes.h
1177         (pthread_rwlock_t): Change __pad1 to __rwelision.
1178         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1179
1180 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1181
1182         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1183         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1184         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1185         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1186
1187 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1188
1189         [BZ #16996]
1190         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1191         that the cached result has been set before returning it.
1192
1193 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1194
1195         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1196         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1197         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1198         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1199         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1200         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1201
1202         * nptl/sysdeps/sparc/Makefile: Moved ...
1203         * sysdeps/sparc/nptl/Makefile: ... here.
1204         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1205         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1206         * nptl/sysdeps/sparc/tls.h: Moved ...
1207         * sysdeps/sparc/nptl/tls.h: ... here.
1208         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1209         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1210         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1211         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1212         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1213         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1214         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1215         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1216         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1217         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1218         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1219         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1220         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1221         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1222         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1223         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1224         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1225         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1226         Update #include.
1227         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1228         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1229         Update #include.
1230         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1231         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1232         Update #include.
1233         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1234         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1235         Update #include.
1236
1237         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1238
1239         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1240         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1241
1242         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1243         (struct list_links): Type removed.
1244         (struct thread_node, struct timer_node): Replace struct list_links
1245         with struct list_head.
1246         (list_unlink_ip): Likewise.
1247         * sysdeps/pthread/timer_routines.c
1248         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1249         (list_append, list_insbefore): Likewise.
1250         (list_init): Function removed.
1251         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1252         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1253         * sysdeps/pthread/Makefile: ... here, new file.
1254
1255         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1256         * sysdeps/nptl/Implies: ... here.
1257         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1258         * nptl/sysdeps/pthread/list.h: Moved ...
1259         * include/list.h: ... here.
1260         * nptl/sysdeps/pthread/createthread.c: Moved ...
1261         * nptl/createthread.c: ... here.
1262         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1263         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1264         * nptl/pt-longjmp.c: ... here.
1265         * nptl/sysdeps/pthread/Makefile: Moved ...
1266         * sysdeps/nptl/Makefile: ... here.
1267         * nptl/sysdeps/pthread/Subdirs: Moved ...
1268         * sysdeps/nptl/Subdirs: ... here.
1269         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1270         * sysdeps/nptl/aio_misc.h: ... here.
1271         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1272         * sysdeps/nptl/bits/libc-lock.h: ... here.
1273         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1274         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1275         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1276         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1277         * nptl/sysdeps/pthread/configure: Moved ...
1278         * sysdeps/nptl/configure: ... here.
1279         * nptl/sysdeps/pthread/configure.ac: Moved ...
1280         * sysdeps/nptl/configure.ac: ... here.
1281         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1282         * sysdeps/nptl/gai_misc.h: ... here.
1283         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1284         * sysdeps/nptl/librt-cancellation.c: ... here.
1285         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1286         * sysdeps/nptl/malloc-machine.h: ... here.
1287         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1288         * sysdeps/nptl/pthread-functions.h: ... here.
1289         * nptl/sysdeps/pthread/pthread.h: Moved ...
1290         * sysdeps/nptl/pthread.h: ... here.
1291         * nptl/sysdeps/pthread/setxid.h: Moved ...
1292         * sysdeps/nptl/setxid.h: ... here.
1293         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1294         * sysdeps/nptl/sigfillset.c: ... here.
1295         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1296         * sysdeps/nptl/tcb-offsets.h: ... here.
1297         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1298         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1299         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1300         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1301         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1302         * sysdeps/pthread/allocalim.h: ... here.
1303         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1304         * sysdeps/pthread/bits/sigthread.h: ... here.
1305         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1306         * sysdeps/pthread/flockfile.c: ... here.
1307         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1308         * sysdeps/pthread/ftrylockfile.c: ... here.
1309         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1310         * sysdeps/pthread/funlockfile.c: ... here.
1311         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1312         * sysdeps/pthread/posix-timer.h: ... here.
1313         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1314         * sysdeps/pthread/timer_create.c: ... here.
1315         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1316         * sysdeps/pthread/timer_delete.c: ... here.
1317         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1318         * sysdeps/pthread/timer_getoverr.c: ... here.
1319         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1320         * sysdeps/pthread/timer_gettime.c: ... here.
1321         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1322         * sysdeps/pthread/timer_routines.c: ... here.
1323         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1324         * sysdeps/pthread/timer_settime.c: ... here.
1325         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1326         * sysdeps/pthread/tst-timer.c: ... here.
1327         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1328         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1329
1330         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1331         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1332
1333         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1334         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1335         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1336         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1337         Update #include target.
1338         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1339         * sysdeps/i386/i686/nptl/Makefile: ... here.
1340         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1341         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1342         Update #include target.
1343         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1344         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1345         * nptl/sysdeps/i386/Makefile: Moved ...
1346         * sysdeps/i386/nptl/Makefile: ... here.
1347         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1348         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1349         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1350         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1351         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1352         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1353         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1354         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1355         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1356         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1357         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1358         * nptl/sysdeps/i386/tls.h: Moved ...
1359         * sysdeps/i386/nptl/tls.h: ... here.
1360
1361         * sysdeps/sh/Makefile [$(subdir) = csu]
1362         (gen-as-const-headers): Add tcb-offsets.sym.
1363         * nptl/sysdeps/sh/Makefile: File removed.
1364         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1365         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1366         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1367         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1368         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1369         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1370         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1371         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1372         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1373         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1374         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1375         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1376         * nptl/sysdeps/sh/tls.h: Moved ...
1377         * sysdeps/sh/nptl/tls.h: ... here.
1378         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1379         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1380         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1381         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1382         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1383         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1384         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1385         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1386         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1387         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1388         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1389         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1390         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1391         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1392         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1393         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1394         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1395         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1396         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1397         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1398         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1399         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1400         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1401         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1402         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1403         Moved ...
1404         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1405         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1406         Moved ...
1407         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1408         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1409         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1410         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1411         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1412         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1413         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1414         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1415         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1416         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1417         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1418         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1419         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1420         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1421         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1422         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1423         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1424         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1425         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1426
1427 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1428
1429         * posix/spawn_faction_addopen.c: Include string.h.
1430
1431 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1432
1433         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1434         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1435         * nptl/sysdeps/x86_64/Makefile: Moved ...
1436         * sysdeps/x86_64/nptl/Makefile: ... here.
1437         * nptl/sysdeps/x86_64/configure: Moved ...
1438         * sysdeps/x86_64/nptl/configure: ... here.
1439         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1440         * sysdeps/x86_64/nptl/configure.ac: ... here.
1441         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1442         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
1443         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
1444         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
1445         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
1446         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
1447         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
1448         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
1449         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
1450         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
1451         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
1452         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
1453         * nptl/sysdeps/x86_64/tls.h: Moved ...
1454         * sysdeps/x86_64/nptl/tls.h: ... here.
1455         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
1456         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
1457         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
1458         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
1459
1460         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
1461
1462 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1463
1464         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1465
1466 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
1467
1468         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
1469         type.
1470         [POSIX] (off_t): Likewise.
1471         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
1472         [POSIX] (S_ISBLK): Require macro.
1473         [POSIX] (S_ISCHR): Likewise.
1474         [POSIX] (S_ISDIR): Likewise.
1475         [POSIX] (S_ISFIFO): Likewise.
1476         [POSIX] (S_ISREG): Likewise.
1477         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
1478         optional-macro.
1479         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
1480         type.
1481         [POSIX] (time_t): Likewise.
1482         [POSIX] (timer_t): Likewise.
1483
1484 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1485
1486         [BZ #17048]
1487         * posix/spawn_int.h (struct __spawn_action): Make the path string
1488         non-const to support deallocation.
1489         * posix/spawn_faction_addopen.c
1490         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1491         * posix/spawn_faction_destroy.c
1492         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1493         path in all spawn_do_open actions.
1494         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1495         posix_spawn_file_actions_addopen.
1496
1497 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1498
1499         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1500         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1501         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1502         conditional code always true.
1503         (__libc_vfork): New alias.
1504
1505 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1506
1507         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1508         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1509
1510         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1511
1512         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1513         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1514
1515         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1516         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1517
1518         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1519         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1520
1521 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1522
1523         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1524         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1525         multiarch strcmp for PPC64.
1526         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1527         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1529         multiarch optimizations.
1530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1531         (__libc_ifunc_impl_list): Likewise.
1532
1533 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1534
1535         * benchtests/scripts/validate_benchout.py: New script.
1536         * benchtests/Makefile (bench-func): Call it.
1537         * benchtests/scripts/benchout.schema.json: New file.
1538
1539 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1540
1541         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1542         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1543         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1544         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1545         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1546         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1547         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1548         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1549         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1550         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1551         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1552         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1553         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1554         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1555         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1556         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1557         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1558         Moved ...
1559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1560         ... here.
1561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1562         Moved ...
1563         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1565         Moved ...
1566         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1567         ... here.
1568         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1569         Moved ...
1570         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1571         ... here.
1572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1573         Moved ...
1574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1575         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1576         Moved ...
1577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1578         ... here.
1579         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1580         Moved ...
1581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1582         ... here.
1583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1584         Moved ...
1585         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1586         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1587         Moved ...
1588         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1589         ... here.
1590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1591         Moved ...
1592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1593         ... here.
1594         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1595         Moved ...
1596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1597         ... here.
1598         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1599         Moved ...
1600         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1601         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1602         Moved ...
1603         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1604         ... here.
1605         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1606         Moved ...
1607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1608         ... here.
1609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1610         Moved ...
1611         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1612         ... here.
1613         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1614         Moved ...
1615         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1616         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1617         Moved ...
1618         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1619         ... here.
1620         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1621         Moved ...
1622         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1623         ... here.
1624         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1625         Moved ...
1626         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1627         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1628         Moved ...
1629         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1630         ... here.
1631         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1632         Moved ...
1633         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1634         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1635         Moved ...
1636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1637         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1638         Moved ...
1639         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1640         ... here.
1641         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1642         Moved ...
1643         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1644         ... here.
1645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1646         Moved ...
1647         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1648         ... here.
1649         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1650         Moved ...
1651         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1652         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1653         Moved ...
1654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1655         ... here.
1656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1657         Moved ...
1658         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1659         ... here.
1660         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1661         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1662         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1663         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1664         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1665         Moved ...
1666         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1667         ... here.
1668         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1669         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1670         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1671         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1672         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1673         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1674         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1675         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1676         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1677         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1678         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1679         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1680         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1681         Moved ...
1682         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1683         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1684         Moved ...
1685         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1686         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1687         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1688         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1689         Moved ...
1690         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1691         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1692         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1693         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1694         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1695         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1696         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1697
1698 2014-06-10  Wilco  <wdijkstr@arm.com>
1699
1700         * math/test-fenv-return.c: New file.
1701         * math/Makefile: Add new test test-fenv-return.
1702
1703 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1704
1705         [BZ #17042]
1706         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1707         when x - 1 is zero.
1708         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1709         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1710         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1711         0.0L for an argument of 1.0L.
1712         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1713         Likewise.
1714         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1715         value when x - 1 is zero.
1716         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1717         * sysdeps/i386/fpu/libm-test-ulps: Update.
1718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1719
1720 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1721
1722         [BZ #15119]
1723         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1724
1725 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1726
1727         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1728         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1729
1730 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1731
1732         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1733         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1734
1735         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1736         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1737
1738         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1739         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1740
1741         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1742         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1743
1744         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1745         if not already defined.
1746         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1747         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1748         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1749         (TLS_INIT_TP): Use it.
1750         (TLS_DEFINE_INIT_TP): New macro.
1751         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1752
1753 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1754
1755         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1756         constant.
1757         [POSIX] (IXANY): Likewise.
1758         [POSIX] (OLCUC): Likewise.
1759         [POSIX || POSIX2008] (CBAUD): Do not allow.
1760         [POSIX || POSIX2008] (DEFECHO): Likewise.
1761         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1762         [POSIX || POSIX2008] (ECHOKE): Likewise.
1763         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1764         [POSIX || POSIX2008] (EXTA): Likewise.
1765         [POSIX || POSIX2008] (EXTB): Likewise.
1766         [POSIX || POSIX2008] (FLUSHO): Likewise.
1767         [POSIX || POSIX2008] (LOBLK): Likewise.
1768         [POSIX || POSIX2008] (PENDIN): Likewise.
1769         [POSIX || POSIX2008] (SWTCH): Likewise.
1770         [POSIX || POSIX2008] (VDISCARD): Likewise.
1771         [POSIX || POSIX2008] (VDSUSP): Likewise.
1772         [POSIX || POSIX2008] (VLNEXT): Likewise.
1773         [POSIX || POSIX2008] (VREPRINT): Likewise.
1774         [POSIX || POSIX2008] (VSTATUS): Likewise.
1775         [POSIX || POSIX2008] (VWERASE): Likewise.
1776         (B*): Change to B[0123456789]*.
1777         * conform/data/time.h-data [POSIX || UNIX98]
1778         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1779         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1780         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1781         [POSIX] (tm_*): Do not allow.
1782
1783 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1784
1785         * Makefile (install): Don't set LANGUAGE.
1786         * Makefile.in (install): Likewise.
1787         * assert/Makefile (test-assert-ENV): Remove variable.
1788         (test-assert-perr-ENV): Likewise.
1789         * elf/Makefile (neededtest4-ENV): Likewise.
1790         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1791         [$(cross-compiling) = no]: Don't set LANGUAGE.
1792         * io/ftwtest-sh (LANG): Remove variable.
1793         * libio/Makefile (tst-widetext-ENV): Likewise.
1794         * manual/install.texi (Running make install): Don't refer to
1795         environment settings for make install.
1796         * INSTALL: Regenerated.
1797         * nptl/tst-tls6.sh: Don't set LANG.
1798         * posix/globtest.sh (LANG): Remove variable.
1799         * string/Makefile (tester-ENV): Likewise.
1800         (inl-tester-ENV): Likewise.
1801         (noinl-tester-ENV): Likewise.
1802         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1803         [$(cross-compiling) = no]: Don't set LANGUAGE.
1804         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1805         without explicit environment settings.
1806
1807 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1808
1809         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1810         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1811         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1812         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1813
1814 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1815
1816         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1817         other files in the crypt directory.
1818         * crypt/crypt.c: Remove duplicate includes.
1819         * crypt/crypt-entry.c: Likewise.
1820         * crypt/crypt_util.c: Likewise.
1821
1822 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1823
1824         * Makeconfig (run-program-env): New variable.
1825         (run-program-prefix-before-env): Likewise.
1826         (run-program-prefix-after-env): Likewise.
1827         (run-program-prefix): Define in terms of new variables.
1828         (built-program-cmd-before-env): New variable.
1829         (built-program-cmd-after-env): Likewise.
1830         (built-program-cmd): Define in terms of new variables.
1831         (test-program-prefix-before-env): New variable.
1832         (test-program-prefix-after-env): Likewise.
1833         (test-program-prefix): Define in terms of new variables.
1834         (test-program-cmd-before-env): New variable.
1835         (test-program-cmd-after-env): Likewise.
1836         (test-program-cmd): Define in terms of new variables.
1837         * Rules (make-test-out): Use $(run-program-env).
1838         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1839         (help): Do not mention environment variables.  Mention
1840         --timeoutfactor option.
1841         (timeoutfactor): New variable.
1842         (blacklist_exports): Remove function.
1843         (exports): Remove variable.
1844         (command): Do not include ${exports}.
1845         * manual/install.texi (Configuring and compiling): Do not mention
1846         test wrappers preserving environment variables.  Mention that last
1847         assignment to a variable must take precedence.
1848         * INSTALL: Regenerated.
1849         * benchtests/Makefile (run-bench): Use $(run-program-env).
1850         * catgets/Makefile ($(objpfx)test1.cat): Use
1851         $(built-program-cmd-before-env), $(run-program-env) and
1852         $(built-program-cmd-after-env).
1853         ($(objpfx)test2.cat): Do not specify environment variables
1854         explicitly.
1855         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1856         $(run-program-env) and $(built-program-cmd-after-env).
1857         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1858         $(run-program-env) and $(test-program-cmd-after-env).
1859         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1860         explicitly.
1861         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1862         run_program_env and test_program_cmd_after_env arguments.
1863         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1864         * elf/tst-pathopt.sh: Use run_program_env argument.
1865         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1866         $(test-wrapper-env) and $(run-program-env).
1867         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1868         run_program_env arguments.
1869         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1870         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1871         $(test-program-prefix-before-env), $(run-program-env) and
1872         $(test-program-prefix-after-env).
1873         ($(objpfx)tst-gettext2.out): Likewise.
1874         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1875         run_program_env and test_program_prefix_after_env arguments.
1876         * intl/tst-gettext2.sh: Likewise.
1877         * intl/tst-gettext4.sh: Do not set environment variables
1878         explicitly.
1879         * intl/tst-gettext6.sh: Likewise.
1880         * intl/tst-translit.sh: Likewise.
1881         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1882         $(test-program-prefix-before-env), $(run-program-env) and
1883         $(test-program-prefix-after-env).
1884         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1885         run_program_env and test_program_prefix_after_env arguments.
1886         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1887         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1888         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1889         explicitly with each use of ${test_wrapper_env}.
1890         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1891         $(test-program-prefix-before-env), $(run-program-env) and
1892         $(test-program-prefix-after-env).
1893         * posix/tst-getconf.sh: Do not set environment variables
1894         explicitly.
1895         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1896         run_program_env and test_program_prefix_after_env arguments.
1897         * stdio-common/tst-printf.sh: Do not set environment variables
1898         explicitly.
1899         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1900         $(test-program-prefix-before-env), $(run-program-env) and
1901         $(test-program-prefix-after-env).
1902         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1903         run_program_env and test_program_prefix_after_env arguments.
1904         Split $test calls into $test_pre and $test.
1905         * timezone/Makefile (build-testdata): Use
1906         $(built-program-cmd-before-env), $(run-program-env) and
1907         $(built-program-cmd-after-env).
1908
1909 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1910
1911         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1912         strlen for non SHARED builds.
1913
1914 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1915
1916         * nptl/allocatestack.c (check_list): Inlined function...
1917         (__reclaim_stacks): ... here.
1918
1919 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1920
1921         [BZ #15698]
1922         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1923         memory overrun.
1924
1925 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1926
1927         * Rules (make-test-out): Include
1928         LOCPATH=$(common-objpfx)localedata in default environment.
1929         * debug/Makefile (tst-chk1-ENV): Remove variable.
1930         (tst-chk2-ENV): Likewise.
1931         (tst-chk3-ENV): Likewise.
1932         (tst-chk4-ENV): Likewise.
1933         (tst-chk5-ENV): Likewise.
1934         (tst-chk6-ENV): Likewise.
1935         (tst-lfschk1-ENV): Likewise.
1936         (tst-lfschk2-ENV): Likewise.
1937         (tst-lfschk3-ENV): Likewise.
1938         (tst-lfschk4-ENV): Likewise.
1939         (tst-lfschk5-ENV): Likewise.
1940         (tst-lfschk6-ENV): Likewise.
1941         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1942         (tst-iconv7-ENV): Likewise.
1943         * intl/Makefile (LOCPATH-ENV): Likewise.
1944         (tst-codeset-ENV): Likewise.
1945         (tst-gettext3-ENV): Likewise.
1946         (tst-gettext5-ENV): Likewise.
1947         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1948         (tst-fopenloc-ENV): Likewise.
1949         (tst-fgetws-ENV): Remove variable.
1950         (tst-ungetwc1-ENV): Likewise.
1951         (tst-ungetwc2-ENV): Likewise.
1952         (bug-ungetwc2-ENV): Likewise.
1953         (tst-swscanf-ENV): Likewise.
1954         (bug-ftell-ENV): Likewise.
1955         (tst-fgetwc-ENV): Likewise.
1956         (tst-fseek-ENV): Likewise.
1957         (tst-ftell-partial-wide-ENV): Likewise.
1958         (tst-ftell-active-handler-ENV): Likewise.
1959         (tst-ftell-append-ENV): Likewise.
1960         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1961         (tst-regexloc-ENV): Likewise.
1962         (bug-regex1-ENV): Likewise.
1963         (tst-regex-ENV): Likewise.
1964         (tst-regex2-ENV): Likewise.
1965         (bug-regex5-ENV): Likewise.
1966         (bug-regex6-ENV): Likewise.
1967         (bug-regex17-ENV): Likewise.
1968         (bug-regex18-ENV): Likewise.
1969         (bug-regex19-ENV): Likewise.
1970         (bug-regex20-ENV): Likewise.
1971         (bug-regex22-ENV): Likewise.
1972         (bug-regex23-ENV): Likewise.
1973         (bug-regex25-ENV): Likewise.
1974         (bug-regex26-ENV): Likewise.
1975         (bug-regex30-ENV): Likewise.
1976         (bug-regex32-ENV): Likewise.
1977         (bug-regex33-ENV): Likewise.
1978         (bug-regex34-ENV): Likewise.
1979         (bug-regex35-ENV): Likewise.
1980         (tst-rxspencer-ENV): Likewise.
1981         (tst-rxspencer-no-utf8-ENV): Likewise.
1982         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1983         (tst-sscanf-ENV): Likewise.
1984         (tst-swprintf-ENV): Likewise.
1985         (tst-swscanf-ENV): Likewise.
1986         (test-vfprintf-ENV): Likewise.
1987         (scanf13-ENV): Likewise.
1988         (bug14-ENV): Likewise.
1989         (tst-grouping-ENV): Likewise.
1990         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1991         (tst-strtod3-ENV): Likewise.
1992         (tst-strtod4-ENV): Likewise.
1993         (tst-strtod5-ENV): Likewise.
1994         (testmb2-ENV): Likewise./
1995         * string/Makefile (tst-strxfrm-ENV): Likewise.
1996         (tst-strxfrm2-ENV): Likewise.
1997         (bug-strcoll1-ENV): Likewise.
1998         (test-strcasecmp-ENV): Likewise.
1999         (test-strncasecmp-ENV): Likewise.
2000         * time/Makefile (tst-strptime-ENV): Likewise.
2001         (tst-ftime_l-ENV): Likewise.
2002         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
2003         (tst-mbrtowc-ENV): Likewise.
2004         (tst-wcrtomb-ENV): Likewise.
2005         (tst-mbrtowc2-ENV): Likewise.
2006         (tst-c16c32-1-ENV): Likewise.
2007         (tst-mbsnrtowcs-ENV): Likewise.
2008
2009 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
2010
2011         * manual/resource.texi (How to get information about the memory
2012         subsystem?): Fix typo.
2013         Reported by Peon de la Parra Ivan <peon@keba.com>
2014
2015 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
2016
2017         [BZ #16882]
2018         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
2019         (pthread_spin_lock): Branch out of spin loop to proper location.
2020         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
2021         (pthread_spin_lock): Likewise.
2022
2023         * nptl/tst-spin4.c: New test.
2024         * nptl/Makefile (tests): Add tst-spin4.
2025
2026 2014-06-03  Andreas Schwab  <schwab@suse.de>
2027
2028         [BZ #15946]
2029         * resolv/res_send.c (send_dg): Reload file descriptor after
2030         calling reopen.
2031
2032 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
2033
2034         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
2035
2036 2014-06-03  Richard Henderson  <rth@redhat.com>
2037
2038         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
2039         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
2040         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
2041         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
2042         in the SAVE_PID block.
2043         (__libc_vfork): New alias.
2044         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
2045
2046         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
2047         child in registers, not on the stack.  Remove RESET_PID conditionals.
2048         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
2049
2050 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2051
2052         * sysdeps/aarch64/libm-test-ulps: Regenerate.
2053
2054 2014-06-03  Wilco  <wdijkstr@arm.com>
2055
2056         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
2057         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
2058         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2059         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
2060         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
2061         Likewise.
2062
2063 2014-06-03  Wilco  <wdijkstr@arm.com>
2064
2065         * sysdeps/aarch64/fpu/math_private.h
2066         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
2067         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
2068         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
2069         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2070         Fix declarations.
2071
2072 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2073
2074         * crypt/crypt-private.h: Include ufc-crypt.h.
2075         (__b64_from_24bit): Declare extern.
2076         * crypt/crypt_util.c(__b64_from_24bit): New function.
2077         (b64t): New static const variable.
2078         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
2079         (b64t): Remove variable.
2080         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
2081         * crypt/sha256-crypt.c: Include crypt-private.h.
2082         (b64t): Remove variable.
2083         (__sha256_crypt_r): Remove b64_from_24bit and replace
2084         with __b64_from_24bit.
2085         * crypt/sha512-crypt.c: Likewise.
2086
2087 2014-06-02  Roland McGrath  <roland@hack.frob.com>
2088
2089         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
2090         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
2091         Label the code __libc_vfork rather than __vfork.
2092         [!NOT_IN_libc] (vfork): Define as weak alias.
2093         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
2094         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
2095         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
2096
2097 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2098
2099         * malloc/malloc.c (malloc_info): Fix format specifier for
2100         n_mmaps.
2101
2102 2014-06-02  Wilco  <wdijkstr@arm.com>
2103
2104         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2105         FPCR write.
2106
2107 2014-06-02  Wilco  <wdijkstr@arm.com>
2108
2109         [BZ #17009]
2110         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2111         Rewrite to reduce FPCR/FPSR accesses.
2112
2113 2014-06-01  David S. Miller  <davem@davemloft.net>
2114
2115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2116
2117 2014-05-31  David S. Miller  <davem@davemloft.net>
2118
2119         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2120         to occur in round to nearest mode when |x| >= 2.0
2121
2122 2014-05-30  Richard Henderson  <rth@twiddle.net>
2123
2124         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2125         (PSEUDO_RET_NOERRNO): Remove.
2126         (ret): Don't redefine.
2127         (ret_NOERRNO): Define in terms of ret.
2128         (ret_ERRVAL): Likewise.
2129
2130         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2131         use of PSEUDO_RET; perform the error check directly.
2132
2133 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2134
2135         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2136         with __int128_t.
2137
2138 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2139
2140         * malloc/malloc (malloc_info): Fix formatting.
2141
2142 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2143             Roland McGrath  <roland@hack.frob.com>
2144
2145         * malloc/malloc (malloc_info): Also print mmapped statistics.
2146
2147 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2148
2149         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2150         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2151
2152 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2153
2154         * malloc/malloc.c (malloc_info): Inline mi_arena.
2155
2156 2014-05-29  Richard Henderson  <rth@twiddle.net>
2157
2158         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2159         Remove comma before expanding ASM_ARGS_##nr.
2160         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2161         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2162         of ASM_ARGS_##nr.
2163         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2164         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2165         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2166         (ASM_ARGS_1): Add leading comma.
2167
2168         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2169         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2170         to __errno_location.
2171         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2172         Remove the expected plt for __errno_location.
2173
2174         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2175         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2176         call to __read_tp.
2177
2178         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2179         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2180         it and break it down.
2181         (DOCARGS_0, DOCARGS_1): Do nothing.
2182         (DOCARGS_2): Update to store into the new stack frame.
2183         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2184         (UNDOCARGS_1): Update to restore from the new stack frame.
2185         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2186         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2187
2188         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2189         (SINGLE_THREAD_P): New parameter for result regno.
2190         (PSEUDO): Update to match; use cbz instead of beq.
2191
2192         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2193         Use ENTRY to define the _nocancel entry point.  Share the syscall
2194         and syscall error check paths with the cancel path.
2195         (PSEUDO_END): New.
2196
2197         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2198         whitespace; tabs before and after asm mnemonics.
2199
2200 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2201
2202         [BZ #15132]
2203         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2204         Call fstat64 or stat64 internally, depending on arguments passed.
2205         Replace stat buffer argument with file descriptor argument.
2206         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2207         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2208         Pass fd to __internal_statvfs instead of calling fstat64.
2209         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2210         Pass fd to __internal_statvfs64 instead of calling fstat64.
2211         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2212         Pass -1 to __internal_statvfs instead of calling stat64.
2213         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2214         Pass -1 to __internal_statvfs64 instead of calling stat64.
2215
2216 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2217
2218         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2219         that was previously under [RESET_PID].
2220         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2221
2222         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2223         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2224
2225 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2226
2227         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2228
2229         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2230         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2231
2232 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2233
2234         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2235
2236 2014-05-27  Andreas Schwab  <schwab@suse.de>
2237
2238         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2239         TLS_INIT_TP macro.
2240         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2241         * elf/rtld.c (init_tls, dl_main): Likewise.
2242         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2243         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2244         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2245         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2246         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2247         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2248         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2249         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2250         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2251         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2252         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2253         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2254         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2255         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2256         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2257         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2258         * sysdeps/generic/tls.h: Update description.
2259
2260 2014-05-27  Will Newton  <will.newton@linaro.org>
2261
2262         [BZ #16990]
2263         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2264         and restore r2 rather than just restoring.
2265
2266 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2267
2268         [BZ #16724]
2269         * libio/tst-ftell-append.c: New test case.
2270         * libio/Makefile (tests): Add test case.
2271         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2272         append mode.
2273         * libio/wfileops.c (do_ftell_wide): Likewise.
2274
2275 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2276
2277         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2278
2279         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2280         ...
2281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2283         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2284         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2285         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2286         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2287         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2288         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2289         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2290         Moved ...
2291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2292         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2293         Moved ...
2294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2295         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2296         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2297         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2298         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2299         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2300         ...
2301         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2302         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2303         Moved ...
2304         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2305         here.
2306         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2307         ...
2308         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2309         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2310         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2311
2312         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2313         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2314         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2315         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2316
2317         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2318         merge into ...
2319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2320         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2321         ...
2322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2323         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2324         ...
2325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2326         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2327         Moved ...
2328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2329         here.
2330         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2331         Moved ...
2332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2333         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2334         Moved ...
2335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2336
2337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2338         conditional [RESET_PID].
2339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2340         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2341         removed.
2342         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2343         removed.
2344
2345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2346         <tcb-offsets.h>.
2347         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2348         (__libc_vfork): New strong alias.
2349         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2350         removed.
2351         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2352         Removed.
2353
2354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2355         <tcb-offsets.h>.
2356         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2357         (__libc_vfork): New strong alias.
2358         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2359         removed.
2360         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2361         removed.
2362
2363 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2364
2365         * malloc/malloc.c (mi_arena): New function.
2366         (malloc_info): Remove nested function mi_arena. Call non-nosted
2367         function mi_arena.
2368
2369 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2370
2371         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2372         by insrwi.
2373         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2374         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2375         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2376         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2377         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2378         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2379         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2380
2381 2014-05-26  Andreas Schwab  <schwab@suse.de>
2382
2383         [BZ #16984]
2384         * locale/programs/repertoire.c (repertoire_read): Add slash
2385         between I18NPATH element and file name.
2386         * locale/programs/locfile.c (locfile_read): Likewise.
2387
2388 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2389
2390         * nptl/pthread_mutexattr_settype.c
2391         (__pthread_mutexattr_settype):
2392         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2393
2394 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2395
2396         * nptl/tst-mutex5 (do_test):
2397         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2398
2399 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2400
2401         * benchtests/README: Document 'init' directive.
2402         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2403         BENCH_INIT.
2404         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2405         (parse_file): Recognize 'init' directive.
2406
2407 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2408
2409         [BZ #16796]
2410         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2411         alignment of struct pthread.
2412
2413 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2414
2415         [BZ #16878]
2416         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2417         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2418         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2419         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2420
2421 2014-05-25  Richard Henderson  <rth@twiddle.net>
2422
2423         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2424         (SINGLE_THREAD_P_PIC): Remove.
2425         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2426         (SINGLE_THREAD_P_PIC): Remove.
2427
2428         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2429         branch to syscall error ...
2430         (PSEUDO): ... here.
2431         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2432         from __local_syscall_error to .Lsyscall_error.
2433         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2434         (SYSCALL_ERROR): Update label name.
2435
2436         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2437         Do not use DOARGS/UNDOARGS.
2438         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2439         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2440         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2441         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2442         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
2443
2444         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
2445         block comment.
2446
2447         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
2448         define if !NOT_IN_libc.
2449         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
2450         define with non-default symbol versions.
2451
2452 2014-05-23  Richard Henderson  <rth@twiddle.net>
2453
2454         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
2455         (vfork, __vfork): Define via compat_symbol.
2456
2457         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
2458         [!HAVE_IFUNC] (vfork_compat): Remove.
2459         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
2460
2461 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2462
2463         [BZ #16978]
2464         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
2465         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
2466         variable.
2467
2468 2014-05-23  Richard Henderson  <rth@twiddle.net>
2469
2470         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
2471         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
2472         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
2473         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
2474
2475         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
2476         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
2477         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
2478         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
2479         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
2480         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
2481         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
2482         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
2483         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
2484         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2485         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2486         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2487         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2488         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2489         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2490         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2491         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2492         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2493         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2494         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2495         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2496         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2497         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2498         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2499         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2500         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2501         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2502         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2503         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2504         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2505         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2506         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2507         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2508         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2509         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2510         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2511         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2512         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2513         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2514         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2515         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2516         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2517         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2518         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2519         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2520         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2521         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2522         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2523         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2524         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2525         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2526         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2527         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2528         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2529         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2530         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2531
2532         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2533         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2534         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2535         before exiting on error.
2536         (__libc_vfork): New strong alias.
2537         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2538         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2539
2540         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2541         that was previously under [RESET_PID].
2542         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2543
2544         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2545
2546 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2547
2548         [BZ #16977]
2549         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2550         value when x - 1 is zero.
2551         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2552         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2553         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2554         0.0L for an argument of 1.0L.
2555         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2556         Likewise.
2557         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2558         value when x - 1 is zero.
2559         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2560         * sysdeps/i386/fpu/libm-test-ulps: Update.
2561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2562
2563 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2564
2565         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2566         alphasort and versionsort.
2567
2568 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2569
2570         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2571         macro.
2572         [copysignf]: Likewise.
2573
2574 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2575
2576         * crypt/md5-crypt.c: Fix formatting.
2577
2578 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2579
2580         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2581         (b64_from_24bit): New function.
2582
2583 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2584
2585         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2586         libc_hidden_builtin_def to ifunc.
2587         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2588         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2589
2590 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2591
2592         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2593         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2594
2595 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2596
2597         * nscd/Depend (linuxthreads): Remove.
2598         (nptl): Add.
2599         * resolv/Depend (linuxthreads): Remove.
2600         * rt/Depend (linuxthreads): Remove.
2601
2602         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2603         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2604         $(common-objpfx)elf/.
2605         (link-libc-before-gnulib): Likewise.
2606         (elfobjdir): Remove variable.
2607         * Makefile (install): Use $(elf-objpfx) instead of
2608         $(common-objpfx)elf/.
2609         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2610         $(elfobjdir)/.
2611         (link-libc-deps): Likewise.
2612         ($(common-objpfx)libc.so): Likewise.
2613         ($(common-objpfx)linkobj/libc.so): Likewise.
2614         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2615         instead of $(common-objpfx)elf/.
2616         (symbolic-link-list): Likewise.
2617         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2618         [$(cross-compiling) = no]: Likewise.
2619         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2620         $(elfobjdir)/.
2621         (static-gnulib-arch): Likewise.
2622         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2623         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2624         $(common-objpfx)elf/.
2625
2626 2014-05-21  Richard Henderson  <rth@redhat.com>
2627
2628         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2629         (SINGLE_THREAD_P): Use the correct width load.  Fold
2630         into the ldr offset.
2631
2632         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2633         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2634
2635 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2636
2637         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2638         (libgcc_s_resume): Use __attribute_used__.
2639         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2640         Likewise.
2641
2642 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2643
2644         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2645         optimization when used with float constants.
2646
2647         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2648
2649 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2650
2651         [BZ #16915]
2652         * locale/nl_langinfo_l.c: Make direct reference to every
2653         _nl_current_CATEGORY symbol.
2654         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2655         (tests-static): Add tst-langinfo-static.
2656         (tests-special): Add tst-langinfo-static.out.
2657         ($(objpfx)tst-langinfo.out): Redirect output.
2658         ($(objpfx)tst-langinfo-static.out): New.
2659         * localedata/tst-langinfo.sh: Send output to stdout.
2660         * localedata/tst-langinfo-static.c: New file.
2661
2662         [BZ #16965]
2663         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2664         when the shift amount is modulo the limb size.
2665
2666 2014-05-20  Richard Henderson  <rth@redhat.com>
2667
2668         [BZ #16967]
2669         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2670         Change type of sa_flags from unsigned int to int.
2671
2672         [BZ #16966]
2673         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2674
2675         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2676
2677 2014-05-20  Will Newton  <will.newton@linaro.org>
2678
2679         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2680         Test the return value of the system call in the nocancel case.
2681
2682 2014-05-20  Will Newton  <will.newton@linaro.org>
2683             Yvan Roux  <yvan.roux@linaro.org>
2684
2685         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2686         #include of asm/ptrace.h.
2687         (PTRACE_GET_THREAD_AREA): Remove #undef.
2688         (PTRACE_GETHBPREGS): Likewise.
2689         (PTRACE_SETHBPREGS): Likewise.
2690         (struct user_regs_struct): New structure.
2691         (struct user_fpsimd_struct): New structure.
2692         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2693         #include of asm/ptrace.h and second #include of sys/user.h.
2694         (PTRACE_GET_THREAD_AREA): Remove #undef.
2695         (PTRACE_GETHBPREGS): Likewise.
2696         (PTRACE_SETHBPREGS): Likewise.
2697         (ELF_NGREG): Use new struct user_regs_struct.
2698         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2699
2700 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2701
2702         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2703         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2704
2705 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2706
2707         [BZ #16958]
2708         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2709         membar to avoid block loads/stores to overlap previous stores.
2710
2711 2014-05-17  Richard Henderson  <rth@redhat.com>
2712
2713         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2714         Create the __##syscall_name##_nocancel entry point.
2715         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2716         Remove; let the sysdep-cancel.h code create it.
2717
2718 2014-05-17  David S. Miller  <davem@davemloft.net>
2719
2720         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2721         Protect with __USE_GNU.
2722         (TIOCSET_TEMPT): Likewise.
2723         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2724         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2725         these are already provided in bits/ioctl-types.h
2726
2727 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2728
2729         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2730         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2731
2732         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2733         Use wait4 regardless of [__NR_waitpid].
2734
2735 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2736
2737         PR libgcc/60166
2738         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2739         (_FP_NANSIGN_Q): Set the quiet bit.
2740
2741 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2742
2743         * benchtests/Makefile
2744         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2745         not $(common-objpfx)math/libm.so.
2746         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2747         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2748         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2749         $(common-objpfx)dlfcn/libdl.so.
2750         ($(objpfx)tst-audit8): Depend on $(libm), not
2751         $(common-objpfx)math/libm.so.
2752         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2753         not $(common-objpfx)dlfcn/libdl.so.
2754         * math/Makefile
2755         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2756         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2757         [$(build-shared) = yes].
2758         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2759         $(common-objpfx)nptl/libpthread.so.
2760         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2761         $(common-objpfx)math/libm.so$(libm.so-version) or
2762         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2763         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2764         $(common-objpfx)dlfcn/libdl.so.
2765         * setjmp/Makefile (link-libm): Remove variable.
2766         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2767         * stdio-common/Makefile (link-libm): Remove variable.
2768         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2769         * stdlib/Makefile (link-libm): Remove variable.
2770         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2771         ($(objpfx)tst-strtod-round): Likewise.
2772         ($(objpfx)tst-tininess): Likewise.
2773         ($(objpfx)tst-strtod-underflow): Likewise.
2774         ($(objpfx)tst-strtod6): Likewise.
2775         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2776         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2777         $(common-objpfx)dlfcn/libdl.so.
2778
2779 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2780
2781         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2782         BSD terminal modes definitions.
2783
2784 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2785
2786         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2787         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2788
2789         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2790         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2791         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2792         Don't do #include_next.
2793         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2794         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2795         Don't do #include_next.
2796         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2797         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2798         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2799         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2800
2801 2014-05-16  Allan McRae  <allan@archlinux.org>
2802
2803         * po/sv.po: Update Swedish translation from translation project.
2804
2805         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2806         in sed expression.
2807
2808 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2809
2810         [BZ #16917]
2811         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2812         errno if the TIOCGPTN ioctl fails with an error different than
2813         EINVAL.
2814         * login/tst-ptsname.c: New file.
2815         * login/Makefile (tests): Add tst-ptsname.
2816
2817         [BZ #16943]
2818         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2819         and prlimit64.
2820
2821 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2822
2823         [BZ #16849]
2824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2825         herrno to return EAI_AGAIN.
2826
2827 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2828
2829         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2830         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2831         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2832         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2833         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2834         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2835         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2836         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2837         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2838         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2839         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2840         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2841         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2842         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2843         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2844         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2845         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2846         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2847         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2848         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2849         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2850         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2851         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2852         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2853         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2854         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2855         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2856         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2857         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2858         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2859         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2860         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2861         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2862         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2863         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2864         Moved ...
2865         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2866         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2867         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2868         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2869         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2870         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2871         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2872         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2873         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2874         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2875         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2876         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2877         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2878         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2879         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2881         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2882         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2883         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2884         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2885         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2886         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2887         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2889         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2890         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2891         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2893         Moved ...
2894         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2895         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2896         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2898         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2899         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2900         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2901         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2902         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2903         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2904         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2905         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2906         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2907         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2908         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2909         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2910         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2911         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2912         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2913         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2914         Moved ...
2915         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2916         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2917         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2918
2919         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2920         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2921         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2922         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2923         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2924         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2925         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2926         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2927         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2928         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2929         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2930         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2931         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2932         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2933         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2934         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2935         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2936         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2937         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2938         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2939         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2940         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2941         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2942         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2943         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2944         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2945         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2946         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2947         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2948         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2949         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2950
2951         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2952         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2953
2954         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2955         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2956         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2957         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2958         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2959         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2960         Moved ...
2961         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2962         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2963         Moved ...
2964         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2965         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2966         Moved ...
2967         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2968         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2969         Moved ...
2970         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2971         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2972         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2973         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2974         Moved ...
2975         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2976         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2977         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2978         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2979         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2980         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2981         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2982         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2983         Moved ...
2984         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2985         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2986         Moved ...
2987         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2988         ... here.
2989         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2990         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2991         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2992         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2993         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2994         Moved ...
2995         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2996         ... here.
2997         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2998         Moved ...
2999         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
3000         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
3001         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
3002         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
3003         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
3004         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3005         Moved ...
3006         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
3007         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3008         Moved ...
3009         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
3010         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
3011         Moved ...
3012         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
3013         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3014         Moved ...
3015         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
3016         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
3017         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
3018         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3019         Moved ...
3020         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
3021         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
3022         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
3023         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
3024         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
3025         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
3026         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
3027         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3028         Moved ...
3029         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
3030         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3031         Moved ...
3032         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3033         ... here.
3034         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
3035         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
3036         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
3037         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
3038         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3039         Moved ...
3040         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3041         ... here.
3042         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3043         Moved ...
3044         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
3045         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
3046         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
3047         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
3048         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
3049         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
3050         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
3051         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
3052         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
3053         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
3054         Moved ...
3055         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
3056         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
3057         Moved ...
3058         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
3059         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
3060         Moved ...
3061         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
3062         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
3063         Moved ...
3064         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
3065         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
3066         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
3067         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
3068         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
3069         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
3070         Moved ...
3071         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
3072         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
3073         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
3074         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
3075         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
3076         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
3077         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
3078         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
3079         Moved ...
3080         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
3081         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3082         Moved ...
3083         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3084         ... here.
3085         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
3086         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
3087         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
3088         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
3089         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3090         Moved ...
3091         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3092         ... here.
3093         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
3094         Moved ...
3095         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
3096         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
3097         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
3098         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
3099         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
3100         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3101         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3102         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3103         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3104         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3105         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3106
3107         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3108         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3109
3110         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3111         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3112
3113         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3114         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3115         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3116         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3117         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3118         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3119         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3120         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3121         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3122         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3123         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3124         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3125         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3126         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3127         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3128         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3129         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3130         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3131         Moved ...
3132         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3133         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3134         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3135         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3136         Moved ...
3137         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3138         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3139         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3140         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3141         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3142         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3143         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3144         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3145         Moved ...
3146         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3147         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3148         Moved ...
3149         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3150         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3151         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3152         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3153         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3154         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3155         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3156         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3157         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3158         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3159         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3160         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3161         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3162         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3163         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3164         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3165         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3166
3167         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3168         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3169         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3170         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3171         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3172
3173         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3174         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3175         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3176         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3177         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3178         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3179         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3180         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3181         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3182         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3183
3184         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3185         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3186
3187         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3188         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3189         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3190         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3191         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3192         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3193         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3194         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3195         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3196         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3197         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3198         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3199         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3200         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3201         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3202         Update #include.
3203         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3204         Likewise.
3205         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3206         Likewise.
3207         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3208         Likewise.
3209         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3210         Likewise.
3211         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3212         Likewise.
3213         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3214         Likewise.
3215         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3216         Likewise.
3217         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3218         Likewise.
3219         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3220         Likewise.
3221         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3222         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3223         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3224         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3225         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3226         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3227         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3228         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3229         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3230         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3231         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3232         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3233         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3234         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3235         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3236
3237         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3238         that was previously under [RESET_PID].
3239         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3240         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3241         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3242
3243         * sysdeps/i386/nptl/Implies: New file.
3244         * sysdeps/x86_64/nptl/Implies: New file.
3245         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3246         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3247         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3248         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3249
3250         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3251         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3252         (__libc_vfork): New strong alias.
3253         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3254         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3255
3256         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3257         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3258         (__libc_vfork): New strong alias.
3259         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3260         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3261
3262         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3263         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3264         (__libc_vfork): New strong alias.
3265         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3266         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3267         * nptl/pt-vfork.c: New file.
3268         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3269         (libpthread: GLIBC_2.20): New version set (empty).
3270
3271 2014-05-14  Will Newton  <will.newton@linaro.org>
3272
3273         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3274         rather than #if.
3275
3276 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3277
3278         [BZ #16564]
3279         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3280         arguments with exponent 65 or above.
3281         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3282         arguments 0x1p113L or above.
3283         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3284         to arguments 0x1p107L or above.
3285         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3286         positive arguments with exponent 65 or above.
3287         * math/auto-libm-test-in: Add more tests of log1p.
3288         * math/auto-libm-test-out: Regenerated.
3289
3290         [BZ #16928]
3291         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3292         non-finite arguments is +0.
3293         * math/s_cacosf.c (__cacosf): Likewise.
3294         * math/s_cacosl.c (__cacosl): Likewise.
3295         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3296         * sysdeps/i386/fpu/libm-test-ulps: Update.
3297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3298
3299         [BZ #16927]
3300         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3301         value.
3302         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3303         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3304         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3305         for explicit high bit of mantissa when testing for argument equal
3306         to 1.
3307         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3308         * sysdeps/i386/fpu/libm-test-ulps: Update.
3309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3310
3311         [BZ #16516]
3312         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3313         (__erf): Scale by 16 instead of 8 in potentially underflowing
3314         case.  Ensure exception if result actually underflows.
3315         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3316         (__erff): Scale by 16 instead of 8 in potentially underflowing
3317         case.  Ensure exception if result actually underflows.
3318         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
3319         (efx8): Remove variable.
3320         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3321         case.  Ensure exception if result actually underflows.
3322         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3323         (efx8): Remove variable.
3324         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3325         case.  Ensure exception if result actually underflows.
3326         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3327         (efx8): Remove variable.
3328         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3329         case.  Ensure exception if result actually underflows.
3330         * math/auto-libm-test-in: Add more tests of erf.
3331         * math/auto-libm-test-out: Regenerated.
3332
3333 2014-05-14  Andreas Schwab  <schwab@suse.de>
3334
3335         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3336         Remove code conditionalized on USE___THREAD.
3337
3338         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3339         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3340         not definedness.
3341
3342 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3343
3344         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3345         Define unconditionally.
3346         (__ASSUME_O_CLOEXEC): Likewise.
3347         (__ASSUME_SOCK_CLOEXEC): Likewise.
3348         (__ASSUME_IN_NONBLOCK): Likewise.
3349         (__ASSUME_PIPE2): Likewise.
3350         (__ASSUME_EVENTFD2): Likewise.
3351         (__ASSUME_SIGNALFD4): Likewise.
3352         (__ASSUME_DUP3): Likewise.
3353         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3354         (__ASSUME_DUP3): Do not define.
3355         (__ASSUME_EVENTFD2): Likewise.
3356         (__ASSUME_IN_NONBLOCK): Likewise.
3357         (__ASSUME_O_CLOEXEC): Likewise.
3358         (__ASSUME_PIPE2): Likewise.
3359         (__ASSUME_SIGNALFD4): Likewise.
3360         (__ASSUME_SOCK_CLOEXEC): Likewise.
3361         (__ASSUME_UTIMES): Undefine.
3362         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3363         (__ASSUME_UTIMES): Do not define.
3364         (__ASSUME_O_CLOEXEC): Likewise.
3365         (__ASSUME_SOCK_CLOEXEC): Likewise.
3366         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3367         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3368         0x020621].
3369         (__ASSUME_PIPE2): Likewise.
3370         (__ASSUME_EVENTFD2): Likewise.
3371         (__ASSUME_SIGNALFD4): Likewise.
3372         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3373         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3374         Do not define.
3375         (__ASSUME_EVENTFD2): Likewise.
3376         (__ASSUME_SIGNALFD4): Likewise.
3377         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3378         (__ASSUME_32BITUIDS): Likewise.
3379         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3380         (__ASSUME_IPC64): Likewise.
3381         (__ASSUME_ST_INO_64_BIT): Likewise.
3382         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3383         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3384         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3385         (__ASSUME_UTIMES): Do not define.
3386         (__ASSUME_PSELECT): Likewise.
3387         (__ASSUME_PPOLL): Likewise.
3388         (__ASSUME_O_CLOEXEC): Likewise.
3389         (__ASSUME_SOCK_CLOEXEC): Likewise.
3390         (__ASSUME_IN_NONBLOCK): Likewise.
3391         (__ASSUME_PIPE2): Likewise.
3392         (__ASSUME_EVENTFD2): Likewise.
3393         (__ASSUME_SIGNALFD4): Likewise.
3394         (__ASSUME_DUP3): Likewise.
3395         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3396         (__ASSUME_UTIMES): Likewise.
3397         (__ASSUME_O_CLOEXEC): Likewise.
3398         (__ASSUME_SOCK_CLOEXEC): Likewise.
3399         (__ASSUME_IN_NONBLOCK): Likewise.
3400         (__ASSUME_PIPE2): Likewise.
3401         (__ASSUME_EVENTFD2): Likewise.
3402         (__ASSUME_SIGNALFD4): Likewise.
3403         (__ASSUME_DUP3): Likewise.
3404         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3405         (__ASSUME_UTIMES): Likewise.
3406         (__ASSUME_O_CLOEXEC): Likewise.
3407         (__ASSUME_SOCK_CLOEXEC): Likewise.
3408         (__ASSUME_IN_NONBLOCK): Likewise.
3409         (__ASSUME_PIPE2): Likewise.
3410         (__ASSUME_EVENTFD2): Likewise.
3411         (__ASSUME_SIGNALFD4): Likewise.
3412         (__ASSUME_DUP3): Likewise.
3413         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3414         Likewise.
3415         (__ASSUME_UTIMES): Likewise.
3416         (__ASSUME_EVENTFD2): Likewise.
3417         (__ASSUME_SIGNALFD4): Likewise.
3418         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3419         (__ASSUME_O_CLOEXEC): Likewise.
3420         (__ASSUME_SOCK_CLOEXEC): Likewise.
3421         (__ASSUME_IN_NONBLOCK): Likewise.
3422         (__ASSUME_PIPE2): Likewise.
3423         (__ASSUME_EVENTFD2): Likewise.
3424         (__ASSUME_SIGNALFD4): Likewise.
3425         (__ASSUME_DUP3): Likewise.
3426         (__ASSUME_UTIMES): Undefine.
3427
3428         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3429         feclearexcept.  Remove symbol versioning code.
3430         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3431         symbol versioning code.
3432         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3433         symbol versioning code.
3434         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3435         feupdateenv.  Remove symbol versioning code.
3436         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3437         fegetexceptflag.  Remove symbol versioning code.
3438         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3439         fesetexceptflag.  Remove symbol versioning code.
3440         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3441         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3442         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
3443         (__posix_fadvise64_l32): Remove prototype.
3444         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
3445         code.
3446
3447 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3448
3449         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
3450         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
3451         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
3452         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
3453
3454 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
3455
3456         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
3457         current working directory
3458
3459 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3460
3461         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
3462         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
3463         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
3464         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
3465         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
3466         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
3467         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
3468         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
3469         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
3470         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
3471         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
3472         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
3473         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
3474         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
3475         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
3476         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
3477         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
3478         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
3479         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
3480         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
3481         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
3482         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
3483         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
3484         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3485         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3486         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3487         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3488         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3489         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3490         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3491         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3492         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3493         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3494         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3495         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3496         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3497         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3498         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3499         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3500         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3501         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3502         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3503
3504         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3505         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3506
3507         * sysdeps/unix/sysv/linux/arm/Makefile
3508         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3509         Add rt-aeabi_unwind_cpp_pr1.
3510         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3511         Add nptl-aeabi_unwind_cpp_pr1.
3512         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3513         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3514         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3515         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3516         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3517         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3518
3519         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3520         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3521         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3522         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3523
3524         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3525         Deconditionalize the code that was previously under [RESET_PID].
3526         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3527
3528         * sysdeps/generic/exit-thread.h: New file.
3529         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3530         * include/unistd.h (__exit_thread): Remove declaration.
3531         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3532         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3533         * csu/libc-start.c: Include <exit-thread.h>.
3534         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3535         * nptl/pthread_create.c: Include <exit-thread.h>.
3536         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3537         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3538         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3539         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3540         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3541         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3542         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3543         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3544         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3545         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3546         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3547         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3548         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3549         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3550         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3551         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3552         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3553
3554 2014-05-13  Andreas Schwab  <schwab@suse.de>
3555
3556         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3557
3558 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3559
3560         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3561         (__ASSUME_UTIMES): Do not condition on kernel version.
3562         (__ASSUME_PSELECT): Define unconditionally.
3563         (__ASSUME_PPOLL): Likewise.
3564         (__ASSUME_ATFCTS): Likewise.
3565         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3566         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3567         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3568         (__ASSUME_UTIMENSAT): Define unconditionally.
3569         (__ASSUME_PRIVATE_FUTEX): Likewise.
3570         (__ASSUME_FALLOCATE): Likewise.
3571         (__ASSUME_O_CLOEXEC): Likewise.
3572         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3573         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3574         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3575         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3576         (__ASSUME_IN_NONBLOCK): Likewise.
3577         (__ASSUME_PIPE2): Likewise.
3578         (__ASSUME_EVENTFD2): Likewise.
3579         (__ASSUME_SIGNALFD4): Likewise.
3580         (__ASSUME_DUP3): Likewise.
3581         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3582         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3583         (__ASSUME_AT_RANDOM): Likewise.
3584         (__ASSUME_PREADV): Likewise.
3585         (__ASSUME_PWRITEV): Likewise.
3586         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3587         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3588         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3589         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3590         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3591         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3592         (__ASSUME_O_CLOEXEC): Define unconditionally.
3593         (__ASSUME_PSELECT): Do not undefine conditionally.
3594         (__ASSUME_PPOLL): Likewise.
3595         (__ASSUME_ATFCTS): Likewise.
3596         (__ASSUME_SET_ROBUST_LIST): Likewise.
3597         (__ASSUME_UTIMENSAT): Likewise.
3598         (__ASSUME_FDATASYNC): Define unconditionally.
3599         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3600         (__ASSUME_SIGFRAME_V2): Likewise.
3601         )__ASSUME_EVENTFD2): Likewise.
3602         (__ASSUME_SIGNALFD4): Likewise.
3603         (__ASSUME_PSELECT): Do not undefine conditionally.
3604         (__ASSUME_PPOLL): Likewise.
3605         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3606         (__ASSUME_PSELECT): Define unconditionally.
3607         (__ASSUME_PPOLL): Likewise.
3608         (__ASSUME_O_CLOEXEC): Likewise.
3609         (__ASSUME_SOCK_CLOEXEC): Likewise.
3610         (__ASSUME_IN_NONBLOCK): Likewise.
3611         (__ASSUME_PIPE2): Likewise.
3612         (__ASSUME_EVENTFD2): Likewise.
3613         (__ASSUME_SIGNALFD4): Likewise.
3614         (__ASSUME_DUP3): Likewise.
3615         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3616         (__ASSUME_O_CLOEXEC): Likewise.
3617         (__ASSUME_SOCK_CLOEXEC): Likewise.
3618         (__ASSUME_IN_NONBLOCK): Likewise.
3619         (__ASSUME_PIPE2): Likewise.
3620         (__ASSUME_EVENTFD2): Likewise.
3621         (__ASSUME_SIGNALFD4): Likewise.
3622         (__ASSUME_DUP3): Likewise.
3623         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3624         (__ASSUME_EVENTFD2): Likewise.
3625         (__ASSUME_SIGNALFD4): Likewise.
3626         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3627
3628 2014-05-12  Andreas Schwab  <schwab@suse.de>
3629
3630         [BZ #16932]
3631         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3632         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3633         than maximum RPC packet size.
3634         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3635         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3636         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3637         (_nss_nis_getservbyport_r): Likewise.
3638
3639 2014-05-12  Will Newton  <will.newton@linaro.org>
3640
3641         * malloc/Makefile (tests): Add tst-mallopt.
3642         * malloc/tst-mallopt.c: New file.
3643
3644 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3645
3646         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3647         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3648
3649 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3650
3651         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3652         (tst-tlsmod6.so): Likewise.
3653
3654 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3655
3656         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3657
3658 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3659
3660         [BZ #16064]
3661         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3662         and <dl-procinfo.h>.
3663         (__fegetenv): Save SSE state in envp->__eip if supported.
3664         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3665         envp->__eip if supported.
3666         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3667         and <dl-procinfo.h>.
3668         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3669         __data_offset and __data_selector in environment to 0.  Set SSE
3670         state if supported.
3671         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3672         test-fenv-sse.
3673         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3674         -mfpmath=sse.
3675         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3676
3677 2014-05-09  Will Newton  <will.newton@linaro.org>
3678
3679         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3680         and libc_relro_required for ARM.
3681         * sysdeps/arm/preconfigure: Regenerate.
3682
3683 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3684             Stefan Liebler  <stli@linux.vnet.ibm.com>
3685
3686         * config.make.in (enable-lock-elision): New Makefile variable.
3687         * configure.ac: Likewise.
3688         * configure: Regenerate.
3689         * sysdeps/s390/configure.ac:
3690         Add check for gcc transactions support.
3691         * sysdeps/s390/configure: Regenerate.
3692         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3693         Build elision files if enabled.
3694         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3695         Add lock elision support for s390.
3696         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3697         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3698         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3699         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3700         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3701         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3702         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3703         Likewise.
3704         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3705         Likewise.
3706         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3707         Likewise.
3708         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3709         Likewise.
3710         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3711         (__lll_timedlock_elision, __lll_lock_elision)
3712         (__lll_unlock_elision, __lll_trylock_elision)
3713         (lll_timedlock_elision, lll_lock_elision)
3714         (lll_unlock_elision, lll_trylock_elision): Add.
3715         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3716         (pthread_mutex_t): Add lock elision support for s390.
3717
3718 2014-05-14  Wilco  <wdijkstr@arm.com>
3719
3720         * sysdeps/arm/fclrexcpt.c: Cleanup.
3721         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3722         * sysdeps/arm/feenablxcpt.c: Cleanup.
3723         * sysdeps/arm/fegetenv.c: Cleanup.
3724         * sysdeps/arm/fegetexcept.c: Cleanup.
3725         * sysdeps/arm/fegetround.c: Cleanup.
3726         * sysdeps/arm/feholdexcpt.c: Cleanup.
3727         * sysdeps/arm/fesetenv.c: Cleanup.
3728         * sysdeps/arm/fesetround.c: Cleanup.
3729         * sysdeps/arm/feupdateenv.c: Cleanup.
3730         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3731         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3732         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3733         * sysdeps/arm/ftestexcept.c: Cleanup.
3734         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3735         * sysdeps/arm/setfpucw.c: Cleanup.
3736
3737 2014-05-09  Will Newton  <will.newton@linaro.org>
3738
3739         * sysdeps/arm/armv7/strcmp.S: New file.
3740         * NEWS: Mention addition of ARMv7 optimized strcmp.
3741
3742 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3743
3744         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3745         look for %.ac rather than %.in.
3746
3747         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3748         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3749         * sysdeps/mach/hurd/configure: Regenerated.
3750         * sysdeps/unix/sysv/linux/configure: Regenerated.
3751
3752         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3753
3754 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3755
3756         [BZ# 16922]
3757         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3758         (LONG_SUB): Ditto.
3759         (PTR_SUB): Ditto.
3760
3761 2014-05-07  Andreas Schwab  <schwab@suse.de>
3762
3763         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3764         when skipping over non-matching result from nscd.
3765
3766 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3767
3768         [BZ #16876]
3769         * nptl/sockperf.c (client): Check socket return value.
3770
3771         [BZ #16877]
3772         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3773         nscd security class.
3774
3775 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3776
3777         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3778         * sysdeps/arm/unwind.h: ... here.
3779
3780 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3781
3782         [BZ# 16916]
3783         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3784         Define.
3785
3786 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3787
3788         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3789         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3790         multiarch strncpy for PPC64.
3791         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3792         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3793         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3794         multiarch optimizations.
3795         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3796         (__libc_ifunc_impl_list): Likewise.
3797         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3798         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3799         multiarch stpncpy for PPC64.
3800         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3801         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3802
3803 2014-05-06  Andreas Schwab  <schwab@suse.de>
3804
3805         [BZ #16912]
3806         * gmon/mcount.c (_MCOUNT_DECL): Use
3807         atomic_compare_and_exchange_bool_acq instead of
3808         catomic_compare_and_exchange_bool_acq.
3809
3810 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3811
3812         * elf/Makefile (others, install-bin): Remove pldd.
3813         (pldd-modules): Variable removed.
3814         ($(objpfx)pldd): Target removed.
3815         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3816         (others, install-bin): Append pldd here.
3817         ($(objpfx)pldd): New target.
3818
3819         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3820         to 0, so the first #if test emitted later doesn't see it undefined.
3821         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3822         * sysdeps/gnu/errlist.c: Regenerated.
3823
3824 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3825
3826         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3827         [libc_hidden_builtin_def]: Define to empty value.
3828         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3829         [libc_hidden_builtin_def]: Likewise.
3830         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3831         [libc_hidden_builtin_def]: Likewise.
3832         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3833         [libc_hidden_builtin_def]: Likewise.
3834         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3835         __redirect_memcpy and define ifunc as default hidden symbol.
3836         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3837         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3838
3839 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3840
3841         * locale/iso-4217.def: Reintroduce XDR currency.
3842
3843 2014-05-04  Allan McRae  <allan@archlinux.org>
3844
3845         * po/eo.po: Update Esperanto translation from translation project.
3846
3847 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3848
3849         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3850         and FEATURE_INDEX_MAX to 1.
3851         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3852
3853 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3854
3855         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3856         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3857         * iconvdata/big5.c (ONE_DIRECTION): Define.
3858         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3859         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3860         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3861         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3862         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3863         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3864         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3865         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3866         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3867         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3868         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3869         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3870         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3871         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3872         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3873         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3874         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3875         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3876         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3877         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3878         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3879         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3880         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3881         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3882         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3883         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3884         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3885         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3886         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3887         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3888         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3889         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3890         * iconvdata/johab.c (ONE_DIRECTION): Define.
3891         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3892         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3893         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3894         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3895         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3896         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3897         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3898         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3899         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3900         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3901
3902 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3903
3904         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3905         (_IO_JUMPS_OFFSET): Define to 0.
3906
3907         * nptl/sysdeps/pthread/bits/libc-lock.h
3908         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3909         (__libc_lock_define_initialized_recursive): Always define using
3910         initializer.  Modern compilers treat uninitialized (implicit zero) and
3911         explicit zero initializers the same (i.e. put the datum in bss).
3912
3913 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3914
3915         * nscd/nscd-client.h: Include <string.h>.
3916
3917 2014-05-01  David S. Miller  <davem@davemloft.net>
3918
3919         [BZ #16885]
3920         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3921         multiple zero bytes exist at the end of a string.
3922         Reported by Aurelien Jarno <aurelien@aurel32.net>
3923
3924         * string/test-strcmp.c (check): Add explicit test for situations where
3925         there are multiple zero bytes after the first.
3926
3927 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3928
3929         [BZ #16890]
3930         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3931         when compiling wprintf.
3932         * stdio-common/tstdiomisc.c (t3): New function.
3933         (main): Call it.
3934
3935 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3936
3937         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3938         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3939         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3940         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3941
3942 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3943
3944         * stdlib/longlong.h: Updated from GCC.
3945
3946 2014-05-01  Will Newton  <will.newton@linaro.org>
3947             Bernard Ogden  <bernie.ogden@linaro.org>
3948
3949         * NEWS: Update fixed bug list.
3950
3951         [BZ #15119]
3952         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3953
3954 2014-04-30  David S. Miller  <davem@davemloft.net>
3955
3956         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3957         (libc_feholdexcept_setround_sparc_ctx): New function.
3958         (libc_fesetenv_sparc_ctx): Likewise.
3959         (libc_feupdateenv_sparc_ctx): Likewise.
3960         (libc_feholdsetround_sparc_ctx): Likewise.
3961         (libc_feholdexcept_setround_ctx): Define.
3962         (libc_feholdexcept_setroundf_ctx): Likewise.
3963         (libc_feholdexcept_setroundl_ctx): Likewise.
3964         (libc_fesetenv_ctx): Likewise.
3965         (libc_fesetenvf_ctx): Likewise.
3966         (libc_fesetenvl_ctx): Likewise.
3967         (libc_feupdateenv_ctx): Likewise.
3968         (libc_feupdateenvf_ctx): Likewise.
3969         (libc_feupdateenvl_ctx): Likewise.
3970         (libc_feresetround_ctx): Likewise.
3971         (libc_feresetroundf_ctx): Likewise.
3972         (libc_feresetroundl_ctx): Likewise.
3973         (libc_feholdsetround_ctx): Likewise.
3974         (libc_feholdsetroundf_ctx): Likewise.
3975         (libc_feholdsetroundl_ctx): Likewise.
3976
3977         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3978         with __USE_GNU instead of XOPEN cpp guards.
3979
3980         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3981         0.
3982
3983         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3984         with XOPEN cpp guards.
3985
3986 2014-04-30  Julian Brown  <julian@codesourcery.com>
3987
3988         [BZ #16888]
3989         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3990         handling.
3991
3992 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3993
3994         [BZ #9894]
3995         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3996         Change to 2.6.32.
3997         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3998         * sysdeps/unix/sysv/linux/configure: Regenerated.
3999         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
4000         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
4001         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
4002         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
4003         * README: Update reference to required Linux kernel version.
4004         * manual/install.texi (Linux): Update reference to required Linux
4005         kernel headers version.
4006         * INSTALL: Regenerated.
4007
4008         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
4009         header inclusion.
4010         [POSIX] (limits.h): Likewise.
4011         [POSIX] (math.h): Likewise.
4012         [POSIX] (sys/wait.h): Likewise.
4013         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
4014         function.
4015         [POSIX] (stddef.h): Do not allow header inclusion.
4016
4017 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4018
4019         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
4020
4021 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
4022
4023         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
4024         Return immediately after lll_futex_wake.
4025
4026 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4027
4028         [BZ #16791]
4029         * nscd/nscd-client.h (datahead_init_common): Initialize entire
4030         structure.
4031         (datahead_init_pos): Call datahead_init_common early.
4032         (datahead_init_neg): Likewise.
4033
4034         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
4035         datahead_init_neg): New functions.
4036         * nscd/aicache.c (addhstaiX): Use them.
4037         * nscd/grpcache.c (cache_addgr): Likewise.
4038         * nscd/hstcache.c (cache_addhst): Likewise.
4039         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4040         * nscd/netgroupcache.c (do_notfound): Likewise.
4041         (addgetnetgrentX): Likewise.
4042         (addinnetgrX): Likewise.
4043         * nscd/pwdcache.c (cache_addpw): Likewise.
4044         * nscd/servicescache.c (cache_addserv): Likewise.
4045
4046 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4047             Atsushi Onoe  <atsushi@onoe.org>
4048
4049         [BZ #14308]
4050         [BZ #12994]
4051         [BZ #13651]
4052         * resolv/res_query.c (__libc_res_nsearch): Return if at least
4053         one response is valid.
4054         * resolv/res_send.c (send_dg): Check for validity of other
4055         response if the current response is a referral.
4056
4057 2014-04-29  Steve Ellcey  <sellcey@mips.com>
4058
4059         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
4060
4061 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
4062
4063         [BZ #16823]
4064         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
4065         Always divide by positive zero when computing -Inf result.
4066         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
4067         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
4068
4069 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4070
4071         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
4072         FPSCR if value do not change.
4073         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4074         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
4075         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
4076         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
4077         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
4078         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
4079         function.
4080
4081 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
4082
4083         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
4084         * sysdeps/unix/sysv/linux/hppa: Move directory from
4085         ports/systeps/unix/sysv/linux/hppa.
4086         * README: Update listing for hppa-*-linux-gnu.
4087
4088 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
4089
4090         [BZ #16754]
4091         * manual/stdio.texi (Hook functions): Fix types of stream hook
4092         functions.
4093         [BZ #16854]
4094         * socket/sys/socket.h: Fix typo in comment.
4095
4096 2014-04-28  Wilco  <wdijkstr@arm.com>
4097
4098         * sysdeps/arm/fenv_private.h: New file.
4099         * sysdeps/arm/math_private.h: New file.
4100         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4101
4102 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4103
4104         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4105         with __int128_t.
4106         (La_x86_64_retval): Likewise.
4107
4108 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4109
4110         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4111         fpsr if value didn't change.
4112         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4113         to fpcr if value didn't change.
4114         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4115         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4116         fpsr or fpcr if value didn't change.
4117         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4118         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4119         fpcr if value didn't change.
4120         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4121         to fpsr if value didn't change.
4122
4123 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4124
4125         * nptl/tst-sem3.c: Use test-skeleton.c
4126         (main): Rename to do_test.  Use return instead of
4127         exit.
4128         * nptl/tst-sem4.c: Use test-skeleton.c
4129         (main): Rename to do_test.
4130
4131 2014-04-22  David S. Miller  <davem@davemloft.net>
4132
4133         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4134         (struct sigaction): New struct member __glibc_reserved0, change
4135         type of sa_flags to int.
4136
4137 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4138
4139         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4140         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4141
4142 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4143
4144         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4145         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4146
4147 2014-04-22  Will Newton  <will.newton@linaro.org>
4148             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4149
4150         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4151         (__longjmp): Add longjmp and longjmp_target SystemTap
4152         probes.
4153         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4154         (__sigsetjmp): Add setjmp SystemTap probe.
4155
4156 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4157
4158         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4159         match manual order.
4160
4161 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4162
4163         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4164
4165         * sysdeps/powerpc/fpu/fenv_private.h
4166         (libc_feholdexcept_setroundl_ctx): Define to
4167         libc_feholdexcept_setround_ppc_ctx.
4168         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4169         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4170         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4171         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4172
4173 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4174
4175         * sysdeps/aarch64/math-tests.h: New file.
4176
4177 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4178
4179         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4180         New.
4181         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4182         Check and set bit_AVX2_Usable.
4183         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4184         macro.
4185         (bit_AVX2): Likewise.
4186         (index_AVX2_Usable): Likewise.
4187         (CPUID_AVX2): Likewise.
4188         (HAS_AVX2): Likewise.
4189
4190 2014-04-17  Will Newton  <will.newton@linaro.org>
4191
4192         * manual/setjmp.texi (System V contexts): Add note that
4193         calling setcontext on a context created by a call to a
4194         signal handler is undefined.  Update text to note that
4195         setcontext from a signal handler is possible but not
4196         recommended.
4197
4198         [BZ #16629]
4199         * stdlib/tst-setcontext.c: Include signal.h.
4200         (main): Check that the signal stack before and
4201         after swapcontext is the same.
4202
4203         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4204         Re-implement to restore registers in user code and avoid
4205         rt_sigreturn system call.
4206
4207 2014-04-17  Wilco  <wdijkstr@arm.com>
4208
4209         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4210         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4211         * math/test-fenv.c: Skip exception trap tests on targets which only
4212         support non-stop mode.
4213
4214 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4215             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4216
4217         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4218         (libc_feholdsetround_aarch64_ctx)
4219         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4220         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4221         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4222         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4223         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4224         (libc_feresetround_noexl_ctx): Define.
4225
4226 2014-04-16  Richard Henderson  <rth@redhat.com>
4227
4228         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4229
4230         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4231         unwind tables.
4232
4233         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4234         const from the non-libc, non-ldso copy.
4235
4236         * sysdeps/alpha/libm-test-ulps: Regenerate.
4237
4238 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4239             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4240
4241         * sysdeps/aarch64/fpu/math_private.h: New file.
4242
4243 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4244
4245         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4246
4247 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4248
4249         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4250         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4251         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4252         Intel MPX bound registers before _dl_profile_fixup.
4253         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4254         registers after _dl_profile_fixup.  Save and restore bound
4255         registers bnd0/bnd1 when calling _dl_call_pltexit.
4256         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4257         (LR_BND_OFFSET): Likewise.
4258         (LRV_BND0_OFFSET): Likewise.
4259         (LRV_BND1_OFFSET): Likewise.
4260
4261 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4262
4263         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4264         to...
4265         * sysdeps/mach/hurd/i386/tls.h: ... here.
4266         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4267         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4268         fields.
4269
4270 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4271
4272         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4273
4274 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4275
4276         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4277
4278 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4279
4280         [BZ #14770]
4281         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4282         * sysdeps/s390/configure: Regenerate.
4283
4284         [BZ #16824]
4285         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4286         Set round-to-nearest internally to reduce error accumulation.
4287
4288 2014-04-16  Alan Modra  <amodra@gmail.com>
4289
4290         [BZ #16740]
4291         [BZ #16619]
4292         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4293         * math/libm-test.inc (frexp_test_data): Add tests.
4294         * NEWS: Update fixed bug list.
4295
4296 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4297
4298         * benchtests/Makefile: Depend on libraries in build directory.
4299         (bench-math): Separate out math tests.
4300         (bench-pthread): Separate out pthread tests.
4301         (bench): Include math and pthread tests.
4302
4303 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4304
4305         [BZ #16831]
4306         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4307         _dl_debug_initialize.
4308
4309         * configure.ac: Remove SELinux header check.
4310         * configure: Regenerate.
4311         * nscd/selinux.c (perms): Array of const char* to permission names.
4312         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4313         default policy. Call string_to_security_class and string_to_av_perm to
4314         translate strings. Enforce default policy and call avs_has_perm with
4315         results of translated strings.
4316
4317 2014-04-13  David S. Miller  <davem@davemloft.net>
4318
4319         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4320
4321 2014-04-12  Allan McRae  <allan@archlinux.org>
4322
4323         [BZ #16838]
4324         * manual/string.texi (Collation Functions): Fix qsort argument
4325         order in example.
4326         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4327
4328 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4329
4330         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4331         Make the test a no-op if there are no exceptions defined.
4332
4333 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4334
4335         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4336         enable-hardcoded-path-in-tests
4337
4338 2014-04-11  Will Newton  <will.newton@linaro.org>
4339
4340         * benchtests/Makefile (extra-objs): Add json-lib.o.
4341         (bench-func): Tidy up JSON output.
4342         * benchtests/bench-skeleton.c: Include json-lib.h.
4343         (main): Use JSON library functions to do output of
4344         benchmark results.
4345         * benchtests/bench-timing-type.c (main): Output the
4346         timing type simply, leaving formatting to the user.
4347         * benchtests/json-lib.c: New file.
4348         * benchtests/json-lib.h: Likewise.
4349
4350 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4351
4352         [BZ #15215]
4353         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4354         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4355         memory barriers.  Add comments.
4356         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4357         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4358         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4359         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4360         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4361         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4362
4363 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4364
4365         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4366         * sysdeps/s390/s390-64/configure.ac: ... this ...
4367         * sysdeps/s390/configure.ac: ... to here.
4368         * sysdeps/s390/s390-32/configure: Delete file.
4369         * sysdeps/s390/s390-64/configure: Delete file.
4370         * sysdeps/s390/configure: Regenerate.
4371
4372 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4373
4374         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4375
4376 2014-04-11  Will Newton  <will.newton@linaro.org>
4377
4378         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4379         to zero if it is not defined elsewhere.  (mtrim): Test
4380         the value of MALLOC_DEBUG with #if rather than #ifdef.
4381
4382 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4383
4384         * benchtests/pthread_once-inputs: New file.
4385         * benchtests/pthread_once-source.c: New file.
4386         * benchtests/README: Update documentation.
4387
4388 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4389             H.J. Lu  <hongjiu.lu@intel.com>
4390
4391         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4392         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4393         * sysdeps/x86_64/configure: Regenerated.
4394         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4395         macro.
4396         (REGISTER_SAVE_RAX): Likewise.
4397         (REGISTER_SAVE_RCX): Likewise.
4398         (REGISTER_SAVE_RDX): Likewise.
4399         (REGISTER_SAVE_RSI): Likewise.
4400         (REGISTER_SAVE_RDI): Likewise.
4401         (REGISTER_SAVE_R8): Likewise.
4402         (REGISTER_SAVE_R9): Likewise.
4403         (REGISTER_SAVE_BND0): Likewise.
4404         (REGISTER_SAVE_BND1): Likewise.
4405         (REGISTER_SAVE_BND2): Likewise.
4406         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4407         bound registers when calling _dl_fixup.
4408
4409 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4410
4411         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4412         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4413         of its definition.
4414         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4415         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4416         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4417         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4418         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4419         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4420         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4421
4422 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4423
4424         [BZ #15514]
4425         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4426         pathconf(_PC_NAME_MAX).
4427
4428 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4429
4430         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4431         Remove macro usage.
4432         (__PTHREAD_SPINS): Move definition to ...
4433         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4434         (__PTHREAD_SPINS): ... here.
4435         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4436         (__PTHREAD_SPIN): Likewise.
4437         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4438         (__PTHREAD_SPIN): Likewise.
4439         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4440         (__PTHREAD_SPIN): Likewise.
4441         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4442         (__PTHREAD_SPIN): Likewise.
4443         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
4444         (__PTHREAD_SPIN): Likewise.
4445         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
4446         (__PTHREAD_SPIN): Likewise.
4447         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
4448         (__PTHREAD_SPIN): Likewise.
4449         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
4450         (__PTHREAD_SPIN): Likewise.
4451         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
4452         (__PTHREAD_SPIN): Likewise.
4453         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
4454         (__PTHREAD_SPIN): Likewise.
4455         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
4456         (__PTHREAD_SPIN): Likewise.
4457         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
4458         (__PTHREAD_SPIN): Likewise.
4459
4460         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4461         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
4462         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
4463         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
4464         imply folder.
4465         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
4466         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4467         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
4468         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
4469         correct imply path.
4470         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
4471         strlen symbol for non multi-arch builds.
4472         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
4473         missing hidden_def and weak_alias.
4474
4475 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
4476
4477         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
4478
4479 2014-04-07  Will Newton  <will.newton@linaro.org>
4480
4481         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
4482         and contents.  [!_LIBC] Remove #ifndef and contents.
4483         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
4484         * string/memccpy.c (__memccpy): Use ANSI prototype.
4485         * string/memfrob.c (memfrob): Likewise.
4486         * string/strcoll.c (STRCOLL): Likewise.
4487         * string/strlen.c (strlen): Likewise.
4488         * string/strtok.c (STRTOK): Likewise.
4489         * string/strcat.c: Remove unused #include of memcopy.h.
4490         (strcat): Use ANSI prototype.
4491         * string/strchr.c: Remove unused #include of memcopy.h.
4492         (strchr): Use ANSI prototype.
4493         * string/strcmp.c: Remove unused #include of memcopy.h.
4494         (strcmp): Use ANSI prototype.
4495         * string/strcpy.c: Remove unused #include of memcopy.h.
4496         (strcpy): Use ANSI prototype.
4497
4498 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4499
4500         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4501         * config.make.in (config-extra-cppflags): Set it from
4502         libc_extra_cppflags.
4503         * configure.ac (libc_extra_cflags): Make it accumulate over
4504         configure fragments.
4505         (libc_extra_cppflags): New flag.
4506         * configure. Regenerate.
4507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4508         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4509         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4511
4512         [BZ #16815]
4513         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4514         result for FE_DOWNWARD rounding mode.
4515         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4516         Likewise.
4517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4518
4519 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4520
4521         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4522         in function argument name.
4523
4524 2014-04-03  David Svoboda  <svoboda@cert.org>
4525
4526         [BZ #5666]
4527         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4528         explicitly.
4529
4530 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4531
4532         * elf/dl-unmap-segments.h: New file.
4533         * sysdeps/generic/ldsodefs.h
4534         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4535         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4536         * elf/dl-fptr.c: Likewise.
4537         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4538         * sysdeps/aarch64/tlsdesc.c: Likewise.
4539         * sysdeps/arm/tlsdesc.c: Likewise.
4540         * sysdeps/i386/tlsdesc.c: Likewise.
4541         * sysdeps/tile/dl-runtime.c: Likewise.
4542         * sysdeps/x86_64/tlsdesc.c: Likewise.
4543         * elf/dl-load.h: New file.
4544         * elf/dl-load.c: Include it.
4545         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4546         Macros moved to dl-load.h.
4547         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4548         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4549         Use _dl_unmap_segments in place of __munmap.
4550         Break out segment-mapping loop into ...
4551         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4552
4553 2014-04-03  Will Newton  <will.newton@linaro.org>
4554
4555         * elf/dl-lookup.c (do_lookup_x): Remove comment
4556         referring to nested function and move variable
4557         declarations down to before first use.
4558
4559 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4560
4561         [BZ #16799]
4562         [BZ #16800]
4563         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4564         with 0 numerator.
4565         * math/s_catanf.c (__catanf): Likewise.
4566         * math/s_catanh.c (__catanh): Likewise.
4567         * math/s_catanhf.c (__catanhf): Likewise.
4568         * math/s_catanhl.c (__catanhl): Likewise.
4569         * math/s_catanl.c (__catanl): Likewise.
4570         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4571         by positive zero when computing -Inf result.
4572         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4573         (catanh_test): Likewise.
4574         * sysdeps/i386/fpu/libm-test-ulps: Update.
4575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4576
4577         [BZ #16789]
4578         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4579         instead of using underflowing value in computing result.
4580         * math/s_clog10.c (__clog10): Likewise.
4581         * math/s_clog10f.c (__clog10f): Likewise.
4582         * math/s_clog10l.c (__clog10l): Likewise.
4583         * math/s_clogf.c (__clogf): Likewise.
4584         * math/s_clogl.c (__clogl): Likewise.
4585         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4586         (clog10_test): Likewise.
4587         * sysdeps/i386/fpu/libm-test-ulps: Update.
4588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4589
4590 2014-04-02  Alan Modra  <amodra@gmail.com>
4591
4592         [BZ #16739]
4593         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4594         output when value is near a power of two.  Use int64_t for lx and
4595         remove casts.  Use decimal rather than hex exponent constants.
4596         Don't use long double multiplication when double will suffice.
4597         * math/libm-test.inc (nextafter_test_data): Add tests.
4598         * NEWS: Add 16739 and 16786 to bug list.
4599
4600         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4601
4602         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4603
4604 2014-04-01  Will Newton  <will.newton@linaro.org>
4605
4606         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4607         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4608
4609 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4610
4611         [BZ #13347]
4612         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4613         * nptl/tst-setuid2.c: New file.
4614         * nptl/Makefile (xtests): Add tst-setuid2.
4615
4616 2014-04-01  Alan Modra  <amodra@gmail.com>
4617
4618         [BZ #16786]
4619         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4620
4621 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4622
4623         [BZ #6803]
4624         [BZ #6804]
4625         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4626         set errno as appropriate.
4627         * math/w_scalbf.c (__scalbf): Likewise.
4628         * math/w_scalbl.c (__scalbl): Likewise.
4629         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4630         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4631         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4632         Add more NaN tests.
4633
4634         [BZ #16349]
4635         * math/w_atan2.c: Include <errno.h>.
4636         (__atan2): Set errno for result underflowing to zero.
4637         * math/w_atan2f.c: Include <errno.h>.
4638         (__atan2f): Set errno for result underflowing to zero.
4639         * math/w_atan2l.c: Include <errno.h>.
4640         (__atan2l): Set errno for result underflowing to zero.
4641         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4642         tests.
4643         * math/auto-libm-test-out: Regenerated.
4644
4645 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4646
4647         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4648         Encode instruction correctly in little endian.
4649         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4650         Likewise.
4651         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4652         Likewise.
4653         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4654         Likewise.
4655         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4656         Likewise.
4657
4658 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4659
4660         [BZ #9894]
4661         * sysdeps/unix/sysv/linux/kernel-features.h
4662         [__sparc__ && !__arch64__ && !__sparc_v9__]
4663         (__ASSUME_SET_ROBUST_LIST): Do not define.
4664         [__sparc__ && !__arch64__ && !__sparc_v9__]
4665         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4666         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4667         Likewise.
4668         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4669         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4670         (__ASSUME_REQUEUE_PI): Likewise.
4671         (__ASSUME_SET_ROBUST_LIST): Likewise.
4672         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4673         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4674         Undefine.
4675         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4676         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4677         Likewise.
4678         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4679         Likewise.
4680         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4681         Likewise.
4682         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4683         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4684         Undefine.
4685         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4686         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4687         Likewise.
4688
4689         [BZ #16648]
4690         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4691         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4692         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4693
4694 2014-03-31  Will Newton  <will.newton@linaro.org>
4695
4696         * benchtests/Makefile (bench): Add ffs and ffsll to list
4697         of tests.
4698         * benchtests/ffs-inputs: New file.
4699         * benchtests/ffsll-inputs: Likewise.
4700
4701 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4702
4703         [BZ #16770]
4704         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4705         too large before casting to int.
4706         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4707         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4708         * math/libm-test.inc (scalb_test_data): Add more tests.
4709
4710 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4711
4712         * benchtests/Makefile (DETAILED_OPT): New make option.
4713         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4714         set.
4715         * benchtests/bench-skeleton.c: Include stdbool.h.
4716         (main): Store and print timings per input.
4717         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4718         member to each argument value.
4719         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4720         (_print_arg_data): Initialize per-input timing to 0.
4721
4722         * benchtests/Makefile (timing-type): New binary.
4723         (bench-clean): Also remove bench-timing-type.
4724         (bench): New target for timing-type.
4725         (bench-func): Print output in JSON format.
4726         * benchtests/bench-skeleton.c (main): Print output in JSON
4727         format.
4728         * benchtests/bench-timing-type.c: New file.
4729         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4730         (TIMING_PRINT_STATS): Remove.
4731         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4732         name separately.
4733
4734         * benchtests/bench-modf.c: Remove.
4735         * benchtests/modf-inputs: New inputs file.
4736
4737 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4738
4739         [BZ #16362]
4740         * math/s_clog10.c (M_PI_LOG10E): New macro.
4741         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4742         imaginary parts are 0.
4743         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4744         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4745         imaginary parts are 0.
4746         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4747         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4748         imaginary parts are 0.
4749         * math/libm-test.inc (clog10_test_data): Update expected results
4750         for when real and imaginary parts are 0.
4751
4752 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4753
4754         * elf/dl-load.c: Finish conversion of __builtin_expect into
4755         __glibc_{un}likely.
4756
4757 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4758
4759         [BZ #16348]
4760         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4761         1+x for argument with exponent below -67.
4762         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4763         Likewise.
4764         * math/auto-libm-test-in: Add more tests of exp.
4765         * math/auto-libm-test-out: Regenerated.
4766
4767 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4768
4769         [BZ #16759]
4770         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4771         (nscd_getnetgrent): Use it.
4772
4773         [BZ #16760]
4774         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4775         of stpcpy.
4776
4777 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4778
4779         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4780         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4781         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4782         (lll_robust_unlock): Remove out of line section. Use cfi
4783         intrinsics.
4784         (LLL_STUB_UNWIND_INFO*): Remove.
4785         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4786         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4787         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4788         (lll_robust_unlock): Remove out of line section. Use cfi
4789         intrinsics.
4790         (LLL_STUB_UNWIND_INFO*): Remove.
4791
4792 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4793
4794         [BZ #16758]
4795         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4796         blank values.
4797
4798 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4799
4800         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4801
4802 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4803
4804         [BZ #16198]
4805         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4806         fnstenv.
4807         * math/test-fenv-preserve.c: New file.
4808         * math/Makefile (tests): Add test-fenv-preserve.
4809
4810 2014-03-26  Will Newton <will.newton@linaro.org>
4811
4812         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4813
4814 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4815
4816         * scripts/versionlist.awk: Partition the version sets and emit all
4817         GLIBC_* (sorted) before all others (sorted).
4818
4819 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4820
4821         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4822         GLIBC_2.2.5 version.
4823
4824 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4825
4826         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4827         calls.
4828
4829         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4830         previous change.
4831
4832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4833
4834 2014-03-25  Andreas Schwab  <schwab@suse.de>
4835
4836         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4837         label to be used after in6ailist is initialized.
4838
4839 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4840
4841         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4842         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4843
4844 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4845
4846         [BZ #16357]
4847         [BZ #16599]
4848         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4849         min_plus_half.
4850         (fp_formats): Update initializers.
4851         (init_fp_formats): Initialize new field.
4852         (output_for_one_input_case): Allow underflow for results up to
4853         min_plus_half.
4854         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4855         * math/auto-libm-test-in: Don't mark some underflows from asin and
4856         atanh as spurious.
4857         * math/auto-libm-test-out: Regenerated.
4858         * sysdeps/i386/fpu/libm-test-ulps: Update.
4859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4860
4861 2014-03-25  Andreas Schwab  <schwab@suse.de>
4862
4863         * libio/Makefile (tst-ftell-partial-wide-ENV)
4864         (tst-ftell-active-handler-ENV): Define.
4865
4866 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4867
4868         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4869
4870 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4871
4872         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4873
4874 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4875
4876         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4877         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4878         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4879
4880 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4881
4882         [BZ #16634]
4883         * elf/dl-load.c (open_verify): Add mode parameter.
4884         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4885         (open_path): Change from boolean 'secure' to complete flag 'mode'
4886         (_dl_map_object): Adjust.
4887         * elf/Makefile (tests): Add tst-dlopen-aout.
4888         * elf/tst-dlopen-aout.c: New test.
4889
4890 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4891
4892         [BZ #16714]
4893         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4894         (struct stat): Rename member pad0 to __glibc_reserved0.
4895
4896         [BZ #16712]
4897         * sysdeps/s390/s390-32/bits/wordsize.h
4898         (__WORDSIZE32_SIZE_ULONG): New define.
4899         * sysdeps/s390/s390-64/bits/wordsize.h
4900         (__WORDSIZE32_SIZE_ULONG): Likewise.
4901         * sysdeps/generic/stdint.h (SIZE_MAX):
4902         Define as UL if __WORDSIZE32_SIZE_ULONG.
4903
4904         [BZ #16713]
4905         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4906         (__glibc_reserved0): New variable.
4907         (sa_flags): Change type to int.
4908
4909         * posix/Makefile (before-compile): Use += before-compile instead
4910         of a :=.
4911
4912         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4913         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4914
4915 2014-03-20  Andreas Schwab  <schwab@suse.de>
4916
4917         [BZ #16743]
4918         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4919         non-matching result from nscd.
4920
4921 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4922
4923         * scripts/bench.py: Moved to ...
4924         * benchtests/scripts/bench.py: ... here.
4925         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4926
4927 2014-03-24  Andreas Schwab  <schwab@suse.de>
4928
4929         [BZ #16002]
4930         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4931         alloca_account and account alloca use for struct in6ailist.
4932
4933 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4934
4935         [BZ #16284]
4936         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4937         rounding mode to recompute results that overflow to infinity or
4938         underflow to zero.
4939         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4940         bug 16284.
4941         * math/auto-libm-test-out: Regenerated.
4942         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4943         (ccosh_test): Likewise.
4944         (csin_test_data): Use plus_oflow.
4945         (csin_test): Use ALL_RM_TEST.
4946         (csinh_test_data): Use plus_oflow.
4947         (csinh_test): Use ALL_RM_TEST.
4948         * sysdeps/i386/fpu/libm-test-ulps: Update.
4949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4950
4951 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4952
4953         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4954         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4955         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4956
4957         [BZ #16731]
4958         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4959         when x - 1 is zero.
4960         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4961         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4962         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4963         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4964         argument is 1.
4965         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4966         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4967         zero.
4968         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4969         * sysdeps/i386/fpu/libm-test-ulps: Update.
4970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4971
4972 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4973
4974         * scripts/bench.pl: Remove file.
4975         * scripts/bench.py: New benchmark script.
4976         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4977         * benchtests/README: Mention python dependency.
4978         * scripts/pylintrc: New file.
4979         * scripts/pylint: New file.
4980
4981         * bits/mathdef.h: Use #ifdef instead of #if.
4982         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4983         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4984         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4985         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4986         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4987         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4988
4989 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4990             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4991
4992         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4993         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4994         and strpbrk-ppc64 objects.
4995         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4996         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4997         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4998         multiarch strpbrk for POWER7.
4999         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
5000         multiarch strpbrk for PPC64.
5001         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
5002         ifunc selector.
5003         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
5004         strpbrk for POWER7.
5005
5006 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5007
5008         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
5009         (atan_test): Likewise.
5010         (atanh_test_data): Use NO_TEST_INLINE for two tests.
5011         (atanh_test): Use ALL_RM_TEST.
5012         (atan2_test_data): Likewise.
5013         (cabs_test): Likewise.
5014         (cacosh_test): Likewise.
5015         (carg_test): Likewise.
5016         (casin_test): Likewise.
5017         (casinh_test): Likewise.
5018         (cbrt_test): Likewise.
5019         (csqrt_test): Likewise.
5020         (erf_test): Likewise.
5021         (erfc_test): Likewise.
5022         (pow10_test): Likewise.
5023         (exp2_test): Likewise.
5024         (hypot_test): Likewise.
5025         (j0_test): Likewise.
5026         (j1_test): Likewise.
5027         (lgamma_test): Likewise.
5028         (gamma_test): Likewise.
5029         (sincos_test): Likewise.
5030         (tanh_test): Likewise.
5031         (y0_test): Likewise.
5032         (y1_test): Likewise.
5033         * sysdeps/i386/fpu/libm-test-ulps: Update.
5034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5035
5036 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5037
5038         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
5039         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
5040         and strcspn-ppc64 objects.
5041         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5042         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
5043         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
5044         multiarch strcspn for POWER7.
5045         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
5046         multiarch strcspn for PPC64.
5047         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
5048         ifunc selector.
5049         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
5050         strcspn for POWER7.
5051
5052 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5053
5054         * math/gen-libm-test.pl (generate_testfile): Expect only function
5055         name as argument to AUTO_TESTS_* and pass results for all rounding
5056         modes to parse_args.
5057         (parse_auto_input): Separate inputs of automatic tests from
5058         outputs before storing in %auto_tests.
5059         * math/libm-test.inc (acos_test_data): Update call to
5060         AUTO_TESTS_f_f.
5061         (acos_test): Use ALL_RM_TEST.
5062         (acos_tonearest_test_data): Remove.
5063         (acos_test_tonearest): Likewise.
5064         (acos_towardzero_test_data): Likewise.
5065         (acos_test_towardzero): Likewise.
5066         (acos_downward_test_data): Likewise.
5067         (acos_test_downward): Likewise.
5068         (acos_upward_test_data): Likewise.
5069         (acos_test_upward): Likewise.
5070         (acosh_test_data): Update call to AUTO_TESTS_f_f.
5071         (asin_test_data): Likewise.
5072         (asin_test): Use ALL_RM_TEST.
5073         (asin_tonearest_test_data): Remove.
5074         (asin_test_tonearest): Likewise.
5075         (asin_towardzero_test_data): Likewise.
5076         (asin_test_towardzero): Likewise.
5077         (asin_downward_test_data): Likewise.
5078         (asin_test_downward): Likewise.
5079         (asin_upward_test_data): Likewise.
5080         (asin_test_upward): Likewise.
5081         (asinh_test_data): Update call to AUTO_TESTS_f_f.
5082         (atan_test_data): Likewise.
5083         (atanh_test_data): Likewise.
5084         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
5085         (cabs_test_data): Update call to AUTO_TESTS_c_f.
5086         (carg_test_data): Likewise.
5087         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
5088         (ccos_test_data): Update call to AUTO_TESTS_c_c.
5089         (ccosh_test_data): Likewise.
5090         (cexp_test_data): Likewise.
5091         (clog_test_data): Likewise.
5092         (clog10_test_data): Likewise.
5093         (cos_test_data): Update call to AUTO_TESTS_f_f.
5094         (cos_test): Use ALL_RM_TEST.
5095         (cos_tonearest_test_data): Remove.
5096         (cos_test_tonearest): Likewise.
5097         (cos_towardzero_test_data): Likewise.
5098         (cos_test_towardzero): Likewise.
5099         (cos_downward_test_data): Likewise.
5100         (cos_test_downward): Likewise.
5101         (cos_upward_test_data): Likewise.
5102         (cos_test_upward): Likewise.
5103         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5104         (cosh_test): Use ALL_RM_TEST.
5105         (cosh_tonearest_test_data): Remove.
5106         (cosh_test_tonearest): Likewise.
5107         (cosh_towardzero_test_data): Likewise.
5108         (cosh_test_towardzero): Likewise.
5109         (cosh_downward_test_data): Likewise.
5110         (cosh_test_downward): Likewise.
5111         (cosh_upward_test_data): Likewise.
5112         (cosh_test_upward): Likewise.
5113         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5114         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5115         (ctan_test_data): Likewise.
5116         (ctan_test): Use ALL_RM_TEST.
5117         (ctan_tonearest_test_data): Remove.
5118         (ctan_test_tonearest): Likewise.
5119         (ctan_towardzero_test_data): Likewise.
5120         (ctan_test_towardzero): Likewise.
5121         (ctan_downward_test_data): Likewise.
5122         (ctan_test_downward): Likewise.
5123         (ctan_upward_test_data): Likewise.
5124         (ctan_test_upward): Likewise.
5125         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5126         (ctanh_test): Use ALL_RM_TEST.
5127         (ctanh_tonearest_test_data): Remove.
5128         (ctanh_test_tonearest): Likewise.
5129         (ctanh_towardzero_test_data): Likewise.
5130         (ctanh_test_towardzero): Likewise.
5131         (ctanh_downward_test_data): Likewise.
5132         (ctanh_test_downward): Likewise.
5133         (ctanh_upward_test_data): Likewise.
5134         (ctanh_test_upward): Likewise.
5135         (erf_test_data): Update call to AUTO_TESTS_f_f.
5136         (erfc_test_data): Likewise.
5137         (exp_test_data): Likewise.
5138         (exp_test): Use ALL_RM_TEST.
5139         (exp_tonearest_test_data): Remove.
5140         (exp_test_tonearest): Likewise.
5141         (exp_towardzero_test_data): Likewise.
5142         (exp_test_towardzero): Likewise.
5143         (exp_downward_test_data): Likewise.
5144         (exp_test_downward): Likewise.
5145         (exp_upward_test_data): Likewise.
5146         (exp_test_upward): Likewise.
5147         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5148         (exp10_test): Use ALL_RM_TEST.
5149         (exp10_tonearest_test_data): Remove.
5150         (exp10_test_tonearest): Likewise.
5151         (exp10_towardzero_test_data): Likewise.
5152         (exp10_test_towardzero): Likewise.
5153         (exp10_downward_test_data): Likewise.
5154         (exp10_test_downward): Likewise.
5155         (exp10_upward_test_data): Likewise.
5156         (exp10_test_upward): Likewise.
5157         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5158         (expm1_test_data): Likewise.
5159         (expm1_test): Use ALL_RM_TEST.
5160         (expm1_tonearest_test_data): Remove.
5161         (expm1_test_tonearest): Likewise.
5162         (expm1_towardzero_test_data): Likewise.
5163         (expm1_test_towardzero): Likewise.
5164         (expm1_downward_test_data): Likewise.
5165         (expm1_test_downward): Likewise.
5166         (expm1_upward_test_data): Likewise.
5167         (expm1_test_upward): Likewise.
5168         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5169         (fma_test): Use ALL_RM_TEST.
5170         (fma_towardzero_test_data): Remove.
5171         (fma_test_towardzero): Likewise.
5172         (fma_downward_test_data): Likewise.
5173         (fma_test_downward): Likewise.
5174         (fma_upward_test_data): Likewise.
5175         (fma_test_upward): Likewise.
5176         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5177         (j0_test_data): Update call to AUTO_TESTS_f_f.
5178         (j1_test_data): Likewise.
5179         (jn_test_data): Update call to AUTO_TESTS_if_f.
5180         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5181         (log_test_data): Update call to AUTO_TESTS_f_f.
5182         (log10_test_data): Likewise.
5183         (log1p_test_data): Likewise.
5184         (log2_test_data): Likewise.
5185         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5186         (pow_tonearest_test_data): Likewise.
5187         (sin_test_data): Update call to AUTO_TESTS_f_f.
5188         (sin_test): Use ALL_RM_TEST.
5189         (sin_tonearest_test_data): Remove.
5190         (sin_test_tonearest): Likewise.
5191         (sin_towardzero_test_data): Likewise.
5192         (sin_test_towardzero): Likewise.
5193         (sin_downward_test_data): Likewise.
5194         (sin_test_downward): Likewise.
5195         (sin_upward_test_data): Likewise.
5196         (sin_test_upward): Likewise.
5197         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5198         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5199         (sinh_test): Use ALL_RM_TEST.
5200         (sinh_tonearest_test_data): Remove.
5201         (sinh_test_tonearest): Likewise.
5202         (sinh_towardzero_test_data): Likewise.
5203         (sinh_test_towardzero): Likewise.
5204         (sinh_downward_test_data): Likewise.
5205         (sinh_test_downward): Likewise.
5206         (sinh_upward_test_data): Likewise.
5207         (sinh_test_upward): Likewise.
5208         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5209         (sqrt_test): Use ALL_RM_TEST.
5210         (sqrt_tonearest_test_data): Remove.
5211         (sqrt_test_tonearest): Likewise.
5212         (sqrt_towardzero_test_data): Likewise.
5213         (sqrt_test_towardzero): Likewise.
5214         (sqrt_downward_test_data): Likewise.
5215         (sqrt_test_downward): Likewise.
5216         (sqrt_upward_test_data): Likewise.
5217         (sqrt_test_upward): Likewise.
5218         (tan_test_data): Update call to AUTO_TESTS_f_f.
5219         (tan_test): Use ALL_RM_TEST.
5220         (tan_tonearest_test_data): Remove.
5221         (tan_test_tonearest): Likewise.
5222         (tan_towardzero_test_data): Likewise.
5223         (tan_test_towardzero): Likewise.
5224         (tan_downward_test_data): Likewise.
5225         (tan_test_downward): Likewise.
5226         (tan_upward_test_data): Likewise.
5227         (tan_test_upward): Likewise.
5228         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5229         (tgamma_test_data): Likewise.
5230         (y0_test_data): Likewise.
5231         (y1_test_data): Likewise.
5232         (yn_test_data): Update call to AUTO_TESTS_if_f.
5233         (main): Do not call removed functions.
5234
5235 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5236
5237         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5238         (ldexp_test_data): Remove.
5239         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5240         scalbn_test_data.
5241         (scalb_test): Use ALL_RM_TEST.
5242
5243 2014-03-19  Andreas Schwab  <schwab@suse.de>
5244
5245         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5246
5247 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5248
5249         [BZ #16649]
5250         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5251         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5252         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5253         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5254         (__ASSUME_PREADV): Undefine.
5255         (__ASSUME_PWRITEV): Likewise.
5256
5257 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5258
5259         * bits/mman-linux.h: Add comment about non-Linux use.
5260         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5261         bits/mman-linux.h resting place.
5262
5263         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5264         * bits/mman-linux.h: ... here.
5265
5266 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5267
5268         * conform/conformtest.pl: Add standard definition when calling C
5269         preprocessor on data files.
5270         (checknamespace): Remove unused variable.
5271
5272 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5273
5274         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5275         minus_oflow, plus_uflow and minus_uflow in expected results.
5276         * math/libm-test.inc (scalbn_test_data): Add more tests of
5277         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5278         minus_uflow.
5279         (scalbn_test): Use ALL_RM_TEST.
5280         (scalbln_test_data): Add more tests of negative arguments.  Use
5281         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5282         (scalbln_test): Use ALL_RM_TEST.
5283
5284 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5285
5286         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5287
5288 2014-03-18  Will Newton  <will.newton@linaro.org>
5289
5290         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5291         inaccurate comment.
5292
5293 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5294
5295         * Makerules [!subdir] (check-abi): Exit with error status if a
5296         test failed.
5297
5298 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5299
5300         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5301         for rint.  Include results for all rounding modes.
5302         (nearbyint_test): Use ALL_RM_TEST.
5303         (rint_test_data): Include all tests used for nearbyint.
5304
5305 2014-03-17  Will Newton  <will.newton@linaro.org>
5306
5307         * nptl/sysdeps/pthread/pthread.h: Revert previous
5308         change.
5309
5310         * sysdeps/generic/ldsodefs.h: Revert previous
5311         change.
5312
5313         * libio/genops.c: Revert previous change.
5314         * libio/libioP.h: Likewise.
5315         * stdio-common/vfprintf.c: Likewise.
5316
5317         * sysdeps/generic/math_private.h: Revert previous
5318         change.
5319
5320         * sysdeps/generic/math_private.h: Check whether
5321         HAVE_RM_CTX is defined with #ifdef rather
5322         than #if.
5323
5324         * argp/argp-fmtstream.h: Check whether
5325         __STRICT_ANSI__ is defined with #ifdef rather
5326         than #if.
5327         * argp/argp.h: Likewise.
5328
5329         * libio/genops.c: Check whether
5330         _IO_JUMPS_OFFSET is defined with #ifdef rather
5331         than #if.
5332         * libio/libioP.h: Likewise.
5333         * stdio-common/vfprintf.c: Likewise.
5334
5335         * sysdeps/generic/ldsodefs.h: Check whether
5336         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5337         than #if.
5338
5339         * nptl/sysdeps/pthread/pthread.h: Check
5340         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5341         its value.
5342
5343 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5344
5345         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5346         setting O_APPEND.
5347         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5348         test case.
5349
5350         [BZ #16680]
5351         * libio/fileops.c (_IO_file_open): Seek to end of file but
5352         don't cache the offset.
5353         (get_file_offset): Remove function.
5354         (do_ftell): Use cached offset when available.
5355         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5356         don't cache the offset.
5357         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5358         case.
5359         (do_one_test): Call it.
5360         (do_ftell_test): Fix up expected old offset for a+ mode.
5361         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5362         available.
5363
5364         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5365         up test status with function return status.
5366         (do_write_test): Likewise.
5367         (do_append_test): Likewise.
5368
5369         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5370         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5371         Remove.
5372
5373 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5374
5375         * math/gen-libm-test.pl (parse_args): Handle results specified for
5376         each rounding mode separately.
5377         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5378         tests and results from lrint_tonearest_test_data,
5379         lrint_towardzero_test_data, lrint_downward_test_data and
5380         lrint_upward_test_data.
5381         (lrint_test): Use ALL_RM_TEST.
5382         (lrint_tonearest_test_data): Remove.
5383         (lrint_test_tonearest): Likewise.
5384         (lrint_towardzero_test_data): Likewise.
5385         (lrint_test_towardzero): Likewise.
5386         (lrint_downward_test_data): Likewise.
5387         (lrint_test_downward): Likewise.
5388         (lrint_upward_test_data): Likewise.
5389         (lrint_test_upward): Likewise.
5390         (llrint_test_data): Merge in per-rounding-mode tests and results
5391         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5392         llrint_downward_test_data and llrint_upward_test_data.
5393         (llrint_test): Use ALL_RM_TEST.
5394         (llrint_tonearest_test_data): Remove.
5395         (llrint_test_tonearest): Likewise.
5396         (llrint_towardzero_test_data): Likewise.
5397         (llrint_test_towardzero): Likewise.
5398         (llrint_downward_test_data): Likewise.
5399         (llrint_test_downward): Likewise.
5400         (llrint_upward_test_data): Likewise.
5401         (llrint_test_upward): Likewise.
5402         (rint_test_data): Merge in per-rounding-mode tests and results
5403         from rint_tonearest_test_data, rint_towardzero_test_data,
5404         rint_downward_test_data and rint_upward_test_data.  Add
5405         per-rounding-mode results for tests not in those arrays.
5406         (rint_test): Use ALL_RM_TEST.
5407         (rint_tonearest_test_data): Remove.
5408         (rint_test_tonearest): Likewise.
5409         (rint_towardzero_test_data): Likewise.
5410         (rint_test_towardzero): Likewise.
5411         (rint_downward_test_data): Likewise.
5412         (rint_test_downward): Likewise.
5413         (rint_upward_test_data): Likewise.
5414         (rint_test_upward): Likewise.
5415         (main): Don't call removed functions.
5416
5417 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5418
5419         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5420         "Compiled on ..." crapola.  It is anti-useful.
5421
5422 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5423
5424         * scripts/evaluate-test.sh: Handle fourth argument to determine
5425         whether test run should stop on failure.
5426         * Makeconfig (stop-on-test-failure): New variable.
5427         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5428         $(stop-on-test-failure).
5429         * Makefile (tests): Give a summary of results from testing and
5430         exit with failure status if they include an ERROR or FAIL.
5431         (xtests): Likewise.
5432         * manual/install.texi (Configuring and compiling): Mention
5433         stop-on-test-failure=y.
5434         * INSTALL: Regenerated.
5435
5436 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5437
5438         * scripts/versionlist.awk: New file.
5439         * Makerules [$(build-shared) = yes]
5440         (postclean-generated): Add Versions.def, not Versions.def.v and
5441         Versions.def.v.i.
5442         ($(common-objpfx)Versions.def.v.i): Target removed.
5443         ($(common-objpfx)Versions.def): New target.
5444         ($(common-objpfx)Versions.all): Depend on that rather that
5445         $(common-objpfx)Versions.def.v.
5446         * Versions.def: File removed.
5447
5448         * Makeconfig (+gccwarn): Add -Wundef.
5449         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
5450         a dl-sysdep.h breaking its contract.
5451         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
5452         * include/stackinfo.h: New file.
5453         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
5454         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
5455         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
5456         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
5457         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
5458         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
5459         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5460         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5461         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5462         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5463         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5464         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
5465         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5466         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5467         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5468
5469 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5470
5471         [BZ #16707]
5472         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
5473         implementation.
5474         * math/libm-test.inc (round_test_data): Add more tests.
5475
5476         [BZ #16706]
5477         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
5478         implementation.
5479         * math/libm-test.inc (nearbyint_test_data): Add more tests.
5480
5481         [BZ #16701]
5482         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
5483         implementation.
5484         * math/libm-test.inc (ceil_test_data): Add more tests.
5485
5486         * math/libm-test.inc (trunc_test_data): Add more tests related to
5487         BZ#16414.
5488
5489 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5490
5491         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5492         with #if rather than #ifdef.
5493         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5494
5495 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5496
5497         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5498         first.  Disable AVX-512 GCC support if assembler doesn't support
5499         it.
5500         * sysdeps/x86_64/configure: Regenerated.
5501
5502 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5503
5504         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5505         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5506         (__old_pthread_attr_setstack): Likewise.
5507         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5508         [!_STACK_GROWS_DOWN]: Likewise.
5509
5510 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5511
5512         * config.make.in (have-bash2): Delete.
5513         * configure.ac (libc_cv_have_bash2): Delete.
5514         * configure: Regenerate.
5515         * elf/Makefile (common-ldd-rewrite): Rename to ...
5516         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5517         (sh-ldd-rewrite): Delete.
5518         (bash-ldd-rewrite): Delete.
5519         (have-bash2): Delete checks.
5520         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5521         ldd-rewrite.
5522
5523         * config.make.in (have-ksh): Delete.
5524         (KSH): Delete.
5525         * configure.ac (libc_cv_have_ksh): Delete.
5526         * configure: Regenerate.
5527
5528         * elf/Makefile: Delete $(have-ksh) check.
5529         ($(objpfx)sotruss): Change KSH to BASH.
5530         * elf/sotruss.ksh: Rename to ...
5531         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5532         function style to match POSIX.  Drop ksh vim mode setting.
5533
5534         * manual/time.texi (Specifying the Time Zone with TZ): Change
5535         Tuesday to Thursday.
5536
5537         * debug/tst-longjmp_chk2.c: Update header comment.
5538         (stackoverflow_handler): Add comment.  Call assert on pass value.
5539
5540 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5541
5542         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5543         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5544         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5545         (La_x86_64_vector): Add zmm.
5546         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5547         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5548         ($(objpfx)tst-audit10): New target.
5549         ($(objpfx)tst-audit10.out): Likewise.
5550         (tst-audit10-ENV): New.
5551         (AVX512-CFLAGS): Likewise.
5552         (CFLAGS-tst-audit10.c): Likewise.
5553         (CFLAGS-tst-auditmod10a.c): Likewise.
5554         (CFLAGS-tst-auditmod10b.c): Likewise.
5555         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5556         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5557         * sysdeps/x86_64/configure: Regenerated.
5558         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5559         AVX-512 zmm register support.
5560         (_dl_x86_64_save_sse): Likewise.
5561         (_dl_x86_64_restore_sse): Likewise.
5562         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5563         size vector registers.
5564         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5565         (ZMM_SIZE): Likewise.
5566         * sysdeps/x86_64/tst-audit10.c: New file.
5567         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5568         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5569
5570 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5571
5572         * configure.ac (HAVE_EHDR_START): New check.
5573         * configure: Regenerated.
5574         * config.h.in (HAVE_EHDR_START): New #undef.
5575         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5576         assuming the lowest-addressed segment maps the start of the file.
5577
5578 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5579
5580         * INSTALL: Regenerated.
5581
5582 2014-03-13  Will Newton  <will.newton@linaro.org>
5583
5584         * manual/setjmp.texi (System V contexts): Improve
5585         clarity and grammar of documentation.
5586
5587 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5588
5589         [BZ #16381]
5590         * elf/Makefile (tests): Add tst-pie2.
5591         (tests-pie): Add tst-pie2.
5592         * elf/tst-pie2.c: New file.
5593         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5594         for ET_EXEC.
5595         * elf/rtld.c (map_doit): Load executable as lt_executable.
5596         (dl_main): Likewise.
5597
5598 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5599
5600         [BZ #16642]
5601         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5602         (__ASSUME_PSELECT): Undefine.
5603
5604 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5605
5606         [BZ #16689]
5607         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5608         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5609         static build.
5610         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5611         selector for static builds.
5612
5613 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5614
5615         [BZ #16695]
5616         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5617         key in the buffer.
5618
5619 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5620
5621         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5622         IFUNC selector for static builds.
5623
5624 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5625
5626         * sysdeps/mips/math_private.h [__mips_hard_float]
5627         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5628         libc_feresetround_mips_ctx.
5629         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5630         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5631         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5632
5633         [BZ #16677]
5634         * math/s_nextafter.c (__nextafter): Do not return value from
5635         overflowing computation.
5636         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5637         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5638         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5639         Likewise.
5640         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5641         Likewise.
5642         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5643         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5644
5645 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5646
5647         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5648         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5649         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5650         the new mov targetting sp.
5651
5652 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5653
5654         [BZ #16683]
5655         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5656         Define it for static builds as well.
5657         (NO_BZERO_IMPL): Likewise.
5658
5659 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5660
5661         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5662         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5663         multiarch strspn for PPC64.
5664         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5665         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5666         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5667         (__libc_ifunc_impl_list): Likewise.
5668         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5669         multiarch optimizations
5670         * string/strspn.c (strspn): Using macro to redefine symbol name.
5671
5672 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5673             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5674
5675         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5676         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5677         multiarch strncat for PPC64.
5678         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5679         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5680         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5681         (__libc_ifunc_impl_list): Likewise.
5682         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5683         multiarch optimizations
5684
5685 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5686
5687         [BZ #16639]
5688         * nscd/nscd.service: Make service type forking.
5689
5690 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5691
5692         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5693         sign in non default rounding modes.
5694         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5695
5696 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5697
5698         * math/libm-test.inc (ALL_RM_TEST): New macro.
5699         (ceil_test): Use ALL_RM_TEST.
5700         (cimag_test): Likewise.
5701         (conj_test): Likewise.
5702         (copysign_test): Likewise.
5703         (cproj_test): Likewise.
5704         (creal_test): Likewise.
5705         (fabs_test): Likewise.
5706         (floor_test): Likewise.
5707         (fmax_test): Likewise.
5708         (fmin_test): Likewise.
5709         (fmod_test): Likewise.
5710         (fpclassify_test): Likewise.
5711         (frexp_test): Likewise.
5712         (ilogb_test): Likewise.
5713         (isfinite_test): Likewise.
5714         (finite_test): Likewise.
5715         (isgreater_test): Likewise.
5716         (isgreaterequal_test): Likewise.
5717         (isinf_test): Likewise.
5718         (isless_test): Likewise.
5719         (islessequal_test): Likewise.
5720         (islessgreater_test): Likewise.
5721         (isnan_test): Likewise.
5722         (isnormal_test): Likewise.
5723         (issignaling_test): Likewise.
5724         (isunordered_test): Likewise.
5725         (logb_test): Likewise.
5726         (logb_downward_test_data): Remove.
5727         (logb_test_downward): Likewise.
5728         (lround_test): Use ALL_RM_TEST.
5729         (llround_test): Likewise.
5730         (modf_test): Likewise.
5731         (nexttoward_test): Likewise.
5732         (remainder_test): Likewise.
5733         (drem_test): Likewise.
5734         (remainder_tonearest_test_data): Likewise.
5735         (remainder_test_tonearest): Likewise.
5736         (drem_test_tonearest): Likewise.
5737         (remainder_towardzero_test_data): Likewise.
5738         (remainder_test_towardzero): Likewise.
5739         (drem_test_towardzero): Likewise.
5740         (remainder_downward_test_data): Likewise.
5741         (remainder_test_downward): Likewise.
5742         (drem_test_downward): Likewise.
5743         (remainder_upward_test_data): Likewise.
5744         (remainder_test_upward): Likewise.
5745         (drem_test_upward): Likewise.
5746         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5747         (round_test): Use ALL_RM_TEST.
5748         (signbit_test): Likewise.
5749         (trunc_test): Likewise.
5750         (significand_test): Likewise.
5751         (main): Don't call removed functions.
5752
5753 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5754
5755         [BZ #16674]
5756         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5757         || __USE_XOPEN2K8].
5758         (ILL_ILLOPN): Likewise.
5759         (ILL_ILLADR): Likewise.
5760         (ILL_ILLTRP): Likewise.
5761         (ILL_PRVOPC): Likewise.
5762         (ILL_PRVREG): Likewise.
5763         (ILL_COPROC): Likewise.
5764         (ILL_BADSTK): Likewise.
5765         (FPE_INTDIV): Likewise.
5766         (FPE_INTOVF): Likewise.
5767         (FPE_FLTDIV): Likewise.
5768         (FPE_FLTOVF): Likewise.
5769         (FPE_FLTUND): Likewise.
5770         (FPE_FLTRES): Likewise.
5771         (FPE_FLTINV): Likewise.
5772         (FPE_FLTSUB): Likewise.
5773         (SEGV_MAPERR): Likewise.
5774         (SEGV_ACCERR): Likewise.
5775         (BUS_ADRALN): Likewise.
5776         (BUS_ADRERR): Likewise.
5777         (BUS_OBJERR): Likewise.
5778         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5779         (TRAP_TRACE): Likewise.
5780         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5781         __USE_XOPEN2K8].
5782         (CLD_KILLED): Likewise.
5783         (CLD_DUMPED): Likewise.
5784         (CLD_TRAPPED): Likewise.
5785         (CLD_STOPPED): Likewise.
5786         (CLD_CONTINUED): Likewise.
5787         (POLL_IN): Likewise.
5788         (POLL_OUT): Likewise.
5789         (POLL_MSG): Likewise.
5790         (POLL_ERR): Likewise.
5791         (POLL_PRI): Likewise.
5792         (POLL_HUP): Likewise.
5793         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5794         Likewise.
5795         (ILL_ILLOPN): Likewise.
5796         (ILL_ILLADR): Likewise.
5797         (ILL_ILLTRP): Likewise.
5798         (ILL_PRVOPC): Likewise.
5799         (ILL_PRVREG): Likewise.
5800         (ILL_COPROC): Likewise.
5801         (ILL_BADSTK): Likewise.
5802         (FPE_INTDIV): Likewise.
5803         (FPE_INTOVF): Likewise.
5804         (FPE_FLTDIV): Likewise.
5805         (FPE_FLTOVF): Likewise.
5806         (FPE_FLTUND): Likewise.
5807         (FPE_FLTRES): Likewise.
5808         (FPE_FLTINV): Likewise.
5809         (FPE_FLTSUB): Likewise.
5810         (SEGV_MAPERR): Likewise.
5811         (SEGV_ACCERR): Likewise.
5812         (BUS_ADRALN): Likewise.
5813         (BUS_ADRERR): Likewise.
5814         (BUS_OBJERR): Likewise.
5815         (BUS_MCEERR_AR): Likewise.
5816         (BUS_MCEERR_AO): Likewise.
5817         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5818         (TRAP_TRACE): Likewise.
5819         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5820         __USE_XOPEN2K8].
5821         (CLD_KILLED): Likewise.
5822         (CLD_DUMPED): Likewise.
5823         (CLD_TRAPPED): Likewise.
5824         (CLD_STOPPED): Likewise.
5825         (CLD_CONTINUED): Likewise.
5826         (POLL_IN): Likewise.
5827         (POLL_OUT): Likewise.
5828         (POLL_MSG): Likewise.
5829         (POLL_ERR): Likewise.
5830         (POLL_PRI): Likewise.
5831         (POLL_HUP): Likewise.
5832         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5833         (ILL_ILLOPN): Likewise.
5834         (ILL_ILLADR): Likewise.
5835         (ILL_ILLTRP): Likewise.
5836         (ILL_PRVOPC): Likewise.
5837         (ILL_PRVREG): Likewise.
5838         (ILL_COPROC): Likewise.
5839         (ILL_BADSTK): Likewise.
5840         (FPE_INTDIV): Likewise.
5841         (FPE_INTOVF): Likewise.
5842         (FPE_FLTDIV): Likewise.
5843         (FPE_FLTOVF): Likewise.
5844         (FPE_FLTUND): Likewise.
5845         (FPE_FLTRES): Likewise.
5846         (FPE_FLTINV): Likewise.
5847         (FPE_FLTSUB): Likewise.
5848         (SEGV_MAPERR): Likewise.
5849         (SEGV_ACCERR): Likewise.
5850         (BUS_ADRALN): Likewise.
5851         (BUS_ADRERR): Likewise.
5852         (BUS_OBJERR): Likewise.
5853         (BUS_MCEERR_AR): Likewise.
5854         (BUS_MCEERR_AO): Likewise.
5855         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5856         (TRAP_TRACE): Likewise.
5857         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5858         __USE_XOPEN2K8].
5859         (CLD_KILLED): Likewise.
5860         (CLD_DUMPED): Likewise.
5861         (CLD_TRAPPED): Likewise.
5862         (CLD_STOPPED): Likewise.
5863         (CLD_CONTINUED): Likewise.
5864         (POLL_IN): Likewise.
5865         (POLL_OUT): Likewise.
5866         (POLL_MSG): Likewise.
5867         (POLL_ERR): Likewise.
5868         (POLL_PRI): Likewise.
5869         (POLL_HUP): Likewise.
5870         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5871         Likewise.
5872         (ILL_ILLOPN): Likewise.
5873         (ILL_ILLADR): Likewise.
5874         (ILL_ILLTRP): Likewise.
5875         (ILL_PRVOPC): Likewise.
5876         (ILL_PRVREG): Likewise.
5877         (ILL_COPROC): Likewise.
5878         (ILL_BADSTK): Likewise.
5879         (ILL_BADIADDR): Likewise.
5880         (ILL_BREAK): Likewise.
5881         (FPE_INTDIV): Likewise.
5882         (FPE_INTOVF): Likewise.
5883         (FPE_FLTDIV): Likewise.
5884         (FPE_FLTOVF): Likewise.
5885         (FPE_FLTUND): Likewise.
5886         (FPE_FLTRES): Likewise.
5887         (FPE_FLTINV): Likewise.
5888         (FPE_FLTSUB): Likewise.
5889         (FPE_DECOVF): Likewise.
5890         (FPE_DECDIV): Likewise.
5891         (FPE_DECERR): Likewise.
5892         (FPE_INVASC): Likewise.
5893         (FPE_INVDEC): Likewise.
5894         (SEGV_MAPERR): Likewise.
5895         (SEGV_ACCERR): Likewise.
5896         (SEGV_PSTKOVF): Likewise.
5897         (BUS_ADRALN): Likewise.
5898         (BUS_ADRERR): Likewise.
5899         (BUS_OBJERR): Likewise.
5900         (BUS_MCEERR_AR): Likewise.
5901         (BUS_MCEERR_AO): Likewise.
5902         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5903         (TRAP_TRACE): Likewise.
5904         (TRAP_BRANCH): Likewise.
5905         (TRAP_HWBKPT): Likewise.
5906         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5907         __USE_XOPEN2K8].
5908         (CLD_KILLED): Likewise.
5909         (CLD_DUMPED): Likewise.
5910         (CLD_TRAPPED): Likewise.
5911         (CLD_STOPPED): Likewise.
5912         (CLD_CONTINUED): Likewise.
5913         (POLL_IN): Likewise.
5914         (POLL_OUT): Likewise.
5915         (POLL_MSG): Likewise.
5916         (POLL_ERR): Likewise.
5917         (POLL_PRI): Likewise.
5918         (POLL_HUP): Likewise.
5919         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5920         (ILL_ILLOPN): Likewise.
5921         (ILL_ILLADR): Likewise.
5922         (ILL_ILLTRP): Likewise.
5923         (ILL_PRVOPC): Likewise.
5924         (ILL_PRVREG): Likewise.
5925         (ILL_COPROC): Likewise.
5926         (ILL_BADSTK): Likewise.
5927         (FPE_INTDIV): Likewise.
5928         (FPE_INTOVF): Likewise.
5929         (FPE_FLTDIV): Likewise.
5930         (FPE_FLTOVF): Likewise.
5931         (FPE_FLTUND): Likewise.
5932         (FPE_FLTRES): Likewise.
5933         (FPE_FLTINV): Likewise.
5934         (FPE_FLTSUB): Likewise.
5935         (SEGV_MAPERR): Likewise.
5936         (SEGV_ACCERR): Likewise.
5937         (BUS_ADRALN): Likewise.
5938         (BUS_ADRERR): Likewise.
5939         (BUS_OBJERR): Likewise.
5940         (BUS_MCEERR_AR): Likewise.
5941         (BUS_MCEERR_AO): Likewise.
5942         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5943         (TRAP_TRACE): Likewise.
5944         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5945         __USE_XOPEN2K8].
5946         (CLD_KILLED): Likewise.
5947         (CLD_DUMPED): Likewise.
5948         (CLD_TRAPPED): Likewise.
5949         (CLD_STOPPED): Likewise.
5950         (CLD_CONTINUED): Likewise.
5951         (POLL_IN): Likewise.
5952         (POLL_OUT): Likewise.
5953         (POLL_MSG): Likewise.
5954         (POLL_ERR): Likewise.
5955         (POLL_PRI): Likewise.
5956         (POLL_HUP): Likewise.
5957         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5958         (ILL_ILLOPN): Likewise.
5959         (ILL_ILLADR): Likewise.
5960         (ILL_ILLTRP): Likewise.
5961         (ILL_PRVOPC): Likewise.
5962         (ILL_PRVREG): Likewise.
5963         (ILL_COPROC): Likewise.
5964         (ILL_BADSTK): Likewise.
5965         (FPE_INTDIV): Likewise.
5966         (FPE_INTOVF): Likewise.
5967         (FPE_FLTDIV): Likewise.
5968         (FPE_FLTOVF): Likewise.
5969         (FPE_FLTUND): Likewise.
5970         (FPE_FLTRES): Likewise.
5971         (FPE_FLTINV): Likewise.
5972         (FPE_FLTSUB): Likewise.
5973         (SEGV_MAPERR): Likewise.
5974         (SEGV_ACCERR): Likewise.
5975         (BUS_ADRALN): Likewise.
5976         (BUS_ADRERR): Likewise.
5977         (BUS_OBJERR): Likewise.
5978         (BUS_MCEERR_AR): Likewise.
5979         (BUS_MCEERR_AO): Likewise.
5980         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5981         (TRAP_TRACE): Likewise.
5982         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5983         __USE_XOPEN2K8].
5984         (CLD_KILLED): Likewise.
5985         (CLD_DUMPED): Likewise.
5986         (CLD_TRAPPED): Likewise.
5987         (CLD_STOPPED): Likewise.
5988         (CLD_CONTINUED): Likewise.
5989         (POLL_IN): Likewise.
5990         (POLL_OUT): Likewise.
5991         (POLL_MSG): Likewise.
5992         (POLL_ERR): Likewise.
5993         (POLL_PRI): Likewise.
5994         (POLL_HUP): Likewise.
5995         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5996         (ILL_ILLOPN): Likewise.
5997         (ILL_ILLADR): Likewise.
5998         (ILL_ILLTRP): Likewise.
5999         (ILL_PRVOPC): Likewise.
6000         (ILL_PRVREG): Likewise.
6001         (ILL_COPROC): Likewise.
6002         (ILL_BADSTK): Likewise.
6003         (FPE_INTDIV): Likewise.
6004         (FPE_INTOVF): Likewise.
6005         (FPE_FLTDIV): Likewise.
6006         (FPE_FLTOVF): Likewise.
6007         (FPE_FLTUND): Likewise.
6008         (FPE_FLTRES): Likewise.
6009         (FPE_FLTINV): Likewise.
6010         (FPE_FLTSUB): Likewise.
6011         (SEGV_MAPERR): Likewise.
6012         (SEGV_ACCERR): Likewise.
6013         (BUS_ADRALN): Likewise.
6014         (BUS_ADRERR): Likewise.
6015         (BUS_OBJERR): Likewise.
6016         (BUS_MCEERR_AR): Likewise.
6017         (BUS_MCEERR_AO): Likewise.
6018         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6019         (TRAP_TRACE): Likewise.
6020         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6021         __USE_XOPEN2K8].
6022         (CLD_KILLED): Likewise.
6023         (CLD_DUMPED): Likewise.
6024         (CLD_TRAPPED): Likewise.
6025         (CLD_STOPPED): Likewise.
6026         (CLD_CONTINUED): Likewise.
6027         (POLL_IN): Likewise.
6028         (POLL_OUT): Likewise.
6029         (POLL_MSG): Likewise.
6030         (POLL_ERR): Likewise.
6031         (POLL_PRI): Likewise.
6032         (POLL_HUP): Likewise.
6033         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
6034         (ILL_ILLOPN): Likewise.
6035         (ILL_ILLADR): Likewise.
6036         (ILL_ILLTRP): Likewise.
6037         (ILL_PRVOPC): Likewise.
6038         (ILL_PRVREG): Likewise.
6039         (ILL_COPROC): Likewise.
6040         (ILL_BADSTK): Likewise.
6041         (ILL_DBLFLT): Likewise.
6042         (ILL_HARDWALL): Likewise.
6043         (FPE_INTDIV): Likewise.
6044         (FPE_INTOVF): Likewise.
6045         (FPE_FLTDIV): Likewise.
6046         (FPE_FLTOVF): Likewise.
6047         (FPE_FLTUND): Likewise.
6048         (FPE_FLTRES): Likewise.
6049         (FPE_FLTINV): Likewise.
6050         (FPE_FLTSUB): Likewise.
6051         (SEGV_MAPERR): Likewise.
6052         (SEGV_ACCERR): Likewise.
6053         (BUS_ADRALN): Likewise.
6054         (BUS_ADRERR): Likewise.
6055         (BUS_OBJERR): Likewise.
6056         (BUS_MCEERR_AR): Likewise.
6057         (BUS_MCEERR_AO): Likewise.
6058         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6059         (TRAP_TRACE): Likewise.
6060         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6061         __USE_XOPEN2K8].
6062         (CLD_KILLED): Likewise.
6063         (CLD_DUMPED): Likewise.
6064         (CLD_TRAPPED): Likewise.
6065         (CLD_STOPPED): Likewise.
6066         (CLD_CONTINUED): Likewise.
6067         (POLL_IN): Likewise.
6068         (POLL_OUT): Likewise.
6069         (POLL_MSG): Likewise.
6070         (POLL_ERR): Likewise.
6071         (POLL_PRI): Likewise.
6072         (POLL_HUP): Likewise.
6073         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
6074         (ILL_ILLOPN): Likewise.
6075         (ILL_ILLADR): Likewise.
6076         (ILL_ILLTRP): Likewise.
6077         (ILL_PRVOPC): Likewise.
6078         (ILL_PRVREG): Likewise.
6079         (ILL_COPROC): Likewise.
6080         (ILL_BADSTK): Likewise.
6081         (FPE_INTDIV): Likewise.
6082         (FPE_INTOVF): Likewise.
6083         (FPE_FLTDIV): Likewise.
6084         (FPE_FLTOVF): Likewise.
6085         (FPE_FLTUND): Likewise.
6086         (FPE_FLTRES): Likewise.
6087         (FPE_FLTINV): Likewise.
6088         (FPE_FLTSUB): Likewise.
6089         (SEGV_MAPERR): Likewise.
6090         (SEGV_ACCERR): Likewise.
6091         (BUS_ADRALN): Likewise.
6092         (BUS_ADRERR): Likewise.
6093         (BUS_OBJERR): Likewise.
6094         (BUS_MCEERR_AR): Likewise.
6095         (BUS_MCEERR_AO): Likewise.
6096         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6097         (TRAP_TRACE): Likewise.
6098         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6099         __USE_XOPEN2K8].
6100         (CLD_KILLED): Likewise.
6101         (CLD_DUMPED): Likewise.
6102         (CLD_TRAPPED): Likewise.
6103         (CLD_STOPPED): Likewise.
6104         (CLD_CONTINUED): Likewise.
6105         (POLL_IN): Likewise.
6106         (POLL_OUT): Likewise.
6107         (POLL_MSG): Likewise.
6108         (POLL_ERR): Likewise.
6109         (POLL_PRI): Likewise.
6110         (POLL_HUP): Likewise.
6111         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6112         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6113
6114         [BZ #16670]
6115         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6116         before #include of <time.h>.
6117         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6118         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6119         (test-xfail-UNIX98/sched.h/conform): Likewise.
6120
6121 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6122
6123         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6124         error absence of trapping exception support.
6125         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6126
6127 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6128
6129         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6130         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6131         * timezone/Makefile (testdata): Move definition above include of
6132         Rules.
6133         (test-zones): New variable.
6134         (tests-special): Add zone files.
6135         (build-testdata): Use $(evaluate-test).
6136
6137         * elf/Makefile (tests-special): Rename tests to end with .out.
6138         ($(objpfx)noload-mem): Likewise.
6139         ($(objpfx)tst-leaks1-mem): Likewise.
6140         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6141         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6142         $(objpfx)test-iconvconfig.out.
6143         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6144         set -e inside subshell and redirect output to file.
6145         * iconvdata/Makefile (generated): Rename tests to end with .out.
6146         Correct type.
6147         (tests-special): Rename tests to end with .out.
6148         ($(objpfx)mtrace-tst-loading): Likewise.
6149         * intl/Makefile (generated): Likewise.
6150         (tests-special): Likewise.
6151         ($(objpfx)mtrace-tst-gettext): Likewise.
6152         * misc/Makefile (generated): Likewise.
6153         (tests-special): Likewise.
6154         ($(objpfx)tst-error1-mem): Likewise.
6155         * nptl/Makefile (tests-special): Likewise.
6156         ($(objpfx)tst-stack3-mem): Likewise.
6157         (generated): Likewise.
6158         * posix/Makefile (generated): Likewise.
6159         (tests-special): Likewise.
6160         (xtests-special): Likewise.
6161         ($(objpfx)tst-fnmatch-mem): Likewise.
6162         ($(objpfx)bug-regex2-mem): Likewise.
6163         ($(objpfx)bug-regex14-mem): Likewise.
6164         ($(objpfx)bug-regex21-mem): Likewise.
6165         ($(objpfx)bug-regex31-mem): Likewise.
6166         ($(objpfx)tst-vfork3-mem): Likewise.
6167         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6168         ($(objpfx)tst-pcre-mem): Likewise.
6169         ($(objpfx)tst-boost-mem): Likewise.
6170         ($(objpfx)bug-ga2-mem): Likewise.
6171         ($(objpfx)bug-glob2-mem): Likewise.
6172         * resolv/Makefile (generate): Likewise.
6173         (tests-special): Likewise.
6174         (xtests-special): Likewise.
6175         (generated): Likewise.
6176         ($(objpfx)mtrace-tst-leaks): Likewise.
6177         ($(objpfx)mtrace-tst-leaks2): Likewise.
6178
6179         * scripts/merge-test-results.sh: New file.
6180         * Makefile (tests-special-notdir): New variable.
6181         (tests): Run merge-test-results.sh.
6182         (xtests): Likewise.
6183         * Rules (tests-special-notdir): New variable.
6184         (xtests-special-notdir): Likewise.
6185         (tests): Run merge-test-results.sh
6186         (xtests): Likewise.
6187
6188         * Makeconfig (test-xfail-name): New variable.
6189         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6190         compute variable name for expected failures.
6191         * conform/Makefile (conformtest-headers-data): New variable.
6192         (conformtest-standards): Likewise.
6193         (conformtest-headers-ISO): Likewise.
6194         (conformtest-headers-ISO99): Likewise.
6195         (conformtest-headers-ISO11): Likewise.
6196         (conformtest-headers-POSIX): Likewise.
6197         (conformtest-headers-XPG3): Likewise.
6198         (conformtest-headers-XPG4): Likewise.
6199         (conformtest-headers-UNIX98): Likewise.
6200         (conformtest-headers-XOPEN2K): Likewise.
6201         (conformtest-headers-POSIX2008): Likewise.
6202         (conformtest-headers-XOPEN2K8): Likewise.
6203         (conformtest-header-list-base): Likewise.
6204         (conformtest-header-list-tests): Likewise.
6205         (conformtest-header-base): Likewise.
6206         (conformtest-header-tests): Likewise.
6207         (tests-special): Add $(conformtest-header-list-tests).  If
6208         [$(fast-check) && !$(cross-compiling)], add
6209         $(conformtest-header-tests) instead of
6210         $(objpfx)run-conformtest.out.
6211         (generated): Add $(conformtest-header-list-base).  If
6212         [$(fast-check) && !$(cross-compiling)], add
6213         $(conformtest-header-base).  Remove previous setting.
6214         ($(conformtest-header-list-tests)): New target.
6215         (test-xfail-run-conformtest): Remove variable.
6216         ($(objpfx)run-conformtest.out): Remove target.
6217         (test-xfail-ISO11/complex.h/conform): New variable.
6218         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6219         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6220         (test-xfail-XPG3/varargs.h/conform): Likewise.
6221         (test-xfail-XPG4/varargs.h/conform): Likewise.
6222         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6223         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6224         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6225         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6226         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6227         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6228         (test-xfail-XPG3/ftw.h/conform): Likewise.
6229         (test-xfail-XPG3/grp.h/conform): Likewise.
6230         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6231         (test-xfail-XPG3/limits.h/conform): Likewise.
6232         (test-xfail-XPG3/pwd.h/conform): Likewise.
6233         (test-xfail-XPG3/search.h/conform): Likewise.
6234         (test-xfail-XPG3/signal.h/conform): Likewise.
6235         (test-xfail-XPG3/stdio.h/conform): Likewise.
6236         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6237         (test-xfail-XPG3/string.h/conform): Likewise.
6238         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6239         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6240         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6241         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6242         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6243         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6244         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6245         (test-xfail-XPG3/termios.h/conform): Likewise.
6246         (test-xfail-XPG3/time.h/conform): Likewise.
6247         (test-xfail-XPG3/unistd.h/conform): Likewise.
6248         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6249         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6250         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6251         (test-xfail-XPG4/netdb.h/conform): Likewise.
6252         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6253         (test-xfail-XPG4/signal.h/conform): Likewise.
6254         (test-xfail-XPG4/stdio.h/conform): Likewise.
6255         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6256         (test-xfail-XPG4/stropts.h/conform): Likewise.
6257         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6258         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6259         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6260         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6261         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6262         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6263         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6264         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6265         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6266         (test-xfail-XPG4/termios.h/conform): Likewise.
6267         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6268         (test-xfail-XPG4/unistd.h/conform): Likewise.
6269         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6270         (test-xfail-POSIX/sched.h/conform): Likewise.
6271         (test-xfail-POSIX/signal.h/conform): Likewise.
6272         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6273         (test-xfail-POSIX/tar.h/conform): Likewise.
6274         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6275         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6276         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6277         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6278         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6279         (test-xfail-UNIX98/sched.h/conform): Likewise.
6280         (test-xfail-UNIX98/signal.h/conform): Likewise.
6281         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6282         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6283         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6284         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6285         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6286         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6287         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6288         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6289         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6290         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6291         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6292         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6293         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6294         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6295         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6296         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6297         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6298         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6299         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6300         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6301         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6302         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6303         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6304         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6305         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6306         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6307         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6308         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6309         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6310         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6311         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6312         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6313         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6314         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6315         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6316         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6317         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6318         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6319         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6320         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6321         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6322         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6323         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6324         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6325         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6326         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6327         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6328         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6329         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6330         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6331         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6332         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6333         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6334         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6335         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6336         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6337         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6338         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6339         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6340         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6341         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6342         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6343         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6344         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6345         (conformtest-cc-flags): Likewise.
6346         ($(conformtest-header-tests): New target.
6347         * conform/check-header-lists.sh: New file.
6348         * conform/run-conformtest.sh: Remove.
6349
6350         * conform/conformtest.pl: Allow ' and \ in values given for
6351         constants.
6352         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6353         inclusion.
6354         [POSIX] (sys/types.h): Likewise.
6355         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6356         inclusion.
6357         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6358         inclusion.
6359         * conform/data/signal.h-data (SIGIO): Remove expectation.
6360         [XPG3] (SIGBUS): Do not expect.
6361         [POSIX || XPG3] (SIGPOLL): Likewise.
6362         [POSIX || XPG3] (SIGPROF): Likewise.
6363         [POSIX || XPG3] (SIGSYS): Likewise.
6364         [XPG3] (SIGTRAP): Likewise.
6365         [POSIX || XPG3] (SIGURG): Likewise.
6366         [POSIX || XPG3] (SIGVTALRM): Likewise.
6367         [POSIX || XPG3] (SIGXCPU): Likewise.
6368         [POSIX || XPG3] (SIGXFSZ): Likewise.
6369         [POSIX] (SA_SIGINFO): Expect.
6370         [XPG3] (siginfo_t): Do not expect type or contents.
6371         [POSIX] (si_pid): Do not expect element.
6372         [POSIX] (si_uid): Likewise.
6373         [POSIX] (si_addr): Likewise.
6374         [POSIX] (si_status): Likewise.
6375         [POSIX] (si_band): Likewise.
6376         [XPG4] (si_value): Likewise.
6377         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6378         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6379         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6380         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6381         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6382         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6383         [POSIX || XPG3] (ILL_COPROC): Likewise.
6384         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6385         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6386         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6387         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6388         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6389         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6390         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6391         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6392         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6393         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6394         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6395         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6396         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6397         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6398         [POSIX || XPG3] (CLD_EXITED): Likewise.
6399         [POSIX || XPG3] (CLD_KILLED): Likewise.
6400         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6401         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6402         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6403         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6404         [POSIX || XPG3] (POLL_IN): Likewise.
6405         [POSIX || XPG3] (POLL_OUT): Likewise.
6406         [POSIX || XPG3] (POLL_MSG): Likewise.
6407         [POSIX || XPG3] (POLL_ERR): Likewise.
6408         [POSIX || XPG3] (POLL_PRI): Likewise.
6409         [POSIX || XPG3] (POLL_HUP): Likewise.
6410         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6411         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6412         (SIG*): Do not allow.
6413         [XPG3] (si_*): Likewise.
6414         [XPG3] (SI_*): Likewise.
6415         [XPG3 || XPG4] (sigev_*): Likewise.
6416         [XPG3 || XPG4] (SIGEV_*): Likewise.
6417         [XPG3 || XPG4] (sival_*): Likewise.
6418         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6419         [POSIX || XPG3] (BUS_*): Likewise.
6420         [POSIX || XPG3] (CLD_*): Likewise.
6421         [POSIX || XPG3] (FPE_*): Likewise.
6422         [POSIX || XPG3] (ILL_*): Likewise.
6423         [POSIX || XPG3] (POLL_*): Likewise.
6424         [POSIX || XPG3] (SEGV_*): Likewise.
6425         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6426         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6427         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6428         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6429         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6430         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6431         Specify type and value.
6432         (TVERSLEN): Likewise.
6433         (REGTYPE): Likewise.
6434         (AREGTYPE): Likewise.
6435         (LNKTYPE): Likewise.
6436         (SYMTYPE): Likewise.
6437         (CHRTYPE): Likewise.
6438         (BLKTYPE): Likewise.
6439         (DIRTYPE): Likewise.
6440         (FIFOTYPE): Likewise.
6441         (CONTTYPE): Likewise.
6442         (TSUID): Likewise.
6443         (TSGID): Likewise.
6444         (TSVTX): Likewise.
6445         (TUREAD): Likewise.
6446         (TUWRITE): Likewise.
6447         (TUEXEC): Likewise.
6448         (TGREAD): Likewise.
6449         (TGWRITE): Likewise.
6450         (TGEXEC): Likewise.
6451         (TOREAD): Likewise.
6452         (TOWRITE): Likewise.
6453         (TOEXEC): Likewise.
6454         [POSIX] (TSVTX): Expect constant.
6455
6456 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
6457
6458         * Makefile (tests): Change dependencies to ....
6459         (tests-special): ... additions to this variable.
6460         (tests): Depend on $(tests-special).
6461         * Makerules (check-abi-list): New variable.
6462         (check-abi): Depend on $(check-abi-list).
6463         [$(subdir) = elf] (tests-special): Add
6464         $(objpfx)check-abi-libc.out.
6465         [$(build-shared) = yes && subdir] (tests-special): Add
6466         $(check-abi-list).
6467         [$(build-shared) = yes && subdir] (tests): Do not depend on
6468         check-abi.
6469         * Rules (tests): Depend on $(tests-special).
6470         (xtests): Depend on $(xtests-special).
6471         * catgets/Makefile (tests): Change dependencies to ....
6472         (tests-special): ... additions to this variable.
6473         * conform/Makefile (tests): Change dependencies to ....
6474         (tests-special): ... additions to this variable.
6475         * elf/Makefile (tests): Change dependencies to ....
6476         (tests-special): ... additions to this variable.
6477         * grp/Makefile (tests): Change dependencies to ....
6478         (tests-special): ... additions to this variable.
6479         * iconv/Makefile (xtests): Change dependencies to ....
6480         (xtests-special): ... additions to this variable.
6481         * iconvdata/Makefile (tests): Change dependencies to ....
6482         (tests-special): ... additions to this variable.
6483         * intl/Makefile (tests): Change dependencies to ....
6484         (tests-special): ... additions to this variable.  Also add
6485         $(objpfx)tst-gettext.out.
6486         * io/Makefile (tests): Change dependencies to ....
6487         (tests-special): ... additions to this variable.
6488         * libio/Makefile (tests): Change dependencies to ....
6489         (tests-special): ... additions to this variable.
6490         * malloc/Makefile (tests): Change dependencies to ....
6491         (tests-special): ... additions to this variable.
6492         * misc/Makefile (tests): Change dependencies to ....
6493         (tests-special): ... additions to this variable.
6494         * nptl/Makefile (tests): Change dependencies to ....
6495         (tests-special): ... additions to this variable.
6496         * nptl_db/Makefile (tests): Change dependencies to ....
6497         (tests-special): ... additions to this variable.
6498         * posix/Makefile (tests): Change dependencies to ....
6499         (tests-special): ... additions to this variable.
6500         (xtests): Change dependencies to ....
6501         (xtests-special): ... additions to this variable.
6502         * resolv/Makefile (tests): Change dependencies to ....
6503         (tests-special): ... additions to this variable.
6504         (xtests): Change dependencies to ....
6505         (xtests-special): ... additions to this variable.
6506         * stdio-common/Makefile (tests): Change dependencies to ....
6507         (tests-special): ... additions to this variable.
6508         (do-tst-unbputc): Remove target.
6509         (do-tst-printf): Likewise.
6510         * stdlib/Makefile (tests): Change dependencies to ....
6511         (tests-special): ... additions to this variable.
6512         * string/Makefile (tests): Change dependencies to ....
6513         (tests-special): ... additions to this variable.
6514         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6515         (tests-special): ... additions to this variable.
6516
6517         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6518         whole file.
6519         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6520         whole file.
6521         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6522         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6523
6524         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6525         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6526         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6527         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6528         * conform/data/libgen.h-data [XPG3]: Likewise.
6529         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6530         * conform/data/ndbm.h-data [XPG3]: Likewise.
6531         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6532         * conform/data/netdb.h-data [XPG3]: Likewise.
6533         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6534         * conform/data/poll.h-data [XPG3]: Likewise.
6535         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6536         * conform/data/strings.h-data [XPG3]: Likewise.
6537         * conform/data/stropts.h-data [XPG3]: Likewise.
6538         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6539         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6540         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6541         Likewise.
6542         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6543         * conform/data/sys/time.h-data [XPG3]: Likewise.
6544         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6545         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6546         * conform/data/sys/un.h-data [XPG3]: Likewise.
6547         * conform/data/syslog.h-data [XPG3]: Likewise.
6548         * conform/data/ucontext.h-data [XPG3]: Likewise.
6549         * conform/data/utmpx.h-data [XPG3]: Likewise.
6550         * conform/data/varargs.h-data [UNIX98]: Enable file.
6551
6552         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6553
6554         * math/libm-test.inc (struct test_f_f_data): Move expected results
6555         into structure for each rounding mode.
6556         (struct test_ff_f_data): Likewise.
6557         (struct test_ff_f_data_nexttoward): Likewise.
6558         (struct test_fi_f_data): Likewise.
6559         (struct test_fl_f_data): Likewise.
6560         (struct test_if_f_data): Likewise.
6561         (struct test_fff_f_data): Likewise.
6562         (struct test_c_f_data): Likewise.
6563         (struct test_f_f1_data): Likewise.
6564         (struct test_fF_f1_data): Likewise.
6565         (struct test_ffI_f1_data): Likewise.
6566         (struct test_c_c_data): Likewise.
6567         (struct test_cc_c_data): Likewise.
6568         (struct test_f_i_data): Likewise.
6569         (struct test_ff_i_data): Likewise.
6570         (struct test_f_l_data): Likewise.
6571         (struct test_f_L_data): Likewise.
6572         (struct test_fFF_11_data): Likewise.
6573         (RM_): New macro.
6574         (RM_FE_DOWNWARD): Likewise.
6575         (RM_FE_TONEAREST): Likewise.
6576         (RM_FE_TOWARDZERO): Likewise.
6577         (RM_FE_UPWARD): Likewise.
6578         (RUN_TEST_LOOP_f_f): Update references to expected results.
6579         (RUN_TEST_LOOP_2_f): Likewise.
6580         (RUN_TEST_LOOP_fff_f): Likewise.
6581         (RUN_TEST_LOOP_c_f): Likewise.
6582         (RUN_TEST_LOOP_f_f1): Likewise.
6583         (RUN_TEST_LOOP_fF_f1): Likewise.
6584         (RUN_TEST_LOOP_fI_f1): Likewise.
6585         (RUN_TEST_LOOP_ffI_f1): Likewise.
6586         (RUN_TEST_LOOP_c_c): Likewise.
6587         (RUN_TEST_LOOP_cc_c): Likewise.
6588         (RUN_TEST_LOOP_f_i): Likewise.
6589         (RUN_TEST_LOOP_f_i_tg): Likewise.
6590         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6591         (RUN_TEST_LOOP_f_b): Likewise.
6592         (RUN_TEST_LOOP_f_b_tg): Likewise.
6593         (RUN_TEST_LOOP_f_l): Likewise.
6594         (RUN_TEST_LOOP_f_L): Likewise.
6595         (RUN_TEST_LOOP_fFF_11): Likewise.
6596         * math/gen-libm-test.pl (parse_args): Output four copies of
6597         expected results for each test.
6598
6599         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6600         (__ASSUME_UTIMES): Remove.
6601         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6602         (__ASSUME_UTIMES): Likewise.
6603
6604         * math/gen-auto-libm-tests.c: Update comment on output format.
6605         (output_for_one_input_case): Generate before-rounding and
6606         after-rounding information as conditions on output flags not
6607         floating-point format.
6608         * math/auto-libm-test-out: Regenerated.
6609         * math/gen-libm-test.pl (cond_value): New function.
6610         (or_cond_value): Use cond_value.
6611         (generate_testfile): Handle conditional exceptions.
6612
6613 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6614
6615         * math/libm-test.inc (max_valid_error): New variable.
6616         (init_max_error): Take new argument specifying whether function
6617         results are exactly determined.  Set max_valid_error and bound
6618         other variables for errors based on this argument.
6619         (set_max_error): Do not record results above max_valid_error.
6620         (check_float_internal): Only accept errors of up to 0.5ulps if
6621         also at most max_valid_error.
6622         (START): Take new argument EXACT and pass it to init_max_error.
6623         (acos_test): Update call to START.
6624         (acos_test_tonearest): Likewise.
6625         (acos_test_towardzero): Likewise.
6626         (acos_test_downward): Likewise.
6627         (acos_test_upward): Likewise.
6628         (acosh_test): Likewise.
6629         (asin_test): Likewise.
6630         (asin_test_tonearest): Likewise.
6631         (asin_test_towardzero): Likewise.
6632         (asin_test_downward): Likewise.
6633         (asin_test_upward): Likewise.
6634         (asinh_test): Likewise.
6635         (atan_test): Likewise.
6636         (atanh_test): Likewise.
6637         (atan2_test): Likewise.
6638         (cabs_test): Likewise.
6639         (cacos_test): Likewise.
6640         (cacosh_test): Likewise.
6641         (carg_test): Likewise.
6642         (casin_test): Likewise.
6643         (casinh_test): Likewise.
6644         (catan_test): Likewise.
6645         (catanh_test): Likewise.
6646         (cbrt_test): Likewise.
6647         (ccos_test): Likewise.
6648         (ccosh_test): Likewise.
6649         (ceil_test): Likewise.
6650         (cexp_test): Likewise.
6651         (cimag_test): Likewise.
6652         (clog_test): Likewise.
6653         (clog10_test): Likewise.
6654         (conj_test): Likewise.
6655         (copysign_test): Likewise.
6656         (cos_test): Likewise.
6657         (cos_test_tonearest): Likewise.
6658         (cos_test_towardzero): Likewise.
6659         (cos_test_downward): Likewise.
6660         (cos_test_upward): Likewise.
6661         (cosh_test): Likewise.
6662         (cosh_test_tonearest): Likewise.
6663         (cosh_test_towardzero): Likewise.
6664         (cosh_test_downward): Likewise.
6665         (cosh_test_upward): Likewise.
6666         (cpow_test): Likewise.
6667         (cproj_test): Likewise.
6668         (creal_test): Likewise.
6669         (csin_test): Likewise.
6670         (csinh_test): Likewise.
6671         (csqrt_test): Likewise.
6672         (ctan_test): Likewise.
6673         (ctan_test_tonearest): Likewise.
6674         (ctan_test_towardzero): Likewise.
6675         (ctan_test_downward): Likewise.
6676         (ctan_test_upward): Likewise.
6677         (ctanh_test): Likewise.
6678         (ctanh_test_tonearest): Likewise.
6679         (ctanh_test_towardzero): Likewise.
6680         (ctanh_test_downward): Likewise.
6681         (ctanh_test_upward): Likewise.
6682         (erf_test): Likewise.
6683         (erfc_test): Likewise.
6684         (exp_test): Likewise.
6685         (exp_test_tonearest): Likewise.
6686         (exp_test_towardzero): Likewise.
6687         (exp_test_downward): Likewise.
6688         (exp_test_upward): Likewise.
6689         (exp10_test): Likewise.
6690         (exp10_test_tonearest): Likewise.
6691         (exp10_test_towardzero): Likewise.
6692         (exp10_test_downward): Likewise.
6693         (exp10_test_upward): Likewise.
6694         (pow10_test): Likewise.
6695         (exp2_test): Likewise.
6696         (expm1_test): Likewise.
6697         (expm1_test_tonearest): Likewise.
6698         (expm1_test_towardzero): Likewise.
6699         (expm1_test_downward): Likewise.
6700         (expm1_test_upward): Likewise.
6701         (fabs_test): Likewise.
6702         (fdim_test): Likewise.
6703         (floor_test): Likewise.
6704         (fma_test): Likewise.
6705         (fma_test_towardzero): Likewise.
6706         (fma_test_downward): Likewise.
6707         (fma_test_upward): Likewise.
6708         (fmax_test): Likewise.
6709         (fmin_test): Likewise.
6710         (fmod_test): Likewise.
6711         (fpclassify_test): Likewise.
6712         (frexp_test): Likewise.
6713         (hypot_test): Likewise.
6714         (ilogb_test): Likewise.
6715         (isfinite_test): Likewise.
6716         (finite_test): Likewise.
6717         (isgreater_test): Likewise.
6718         (isgreaterequal_test): Likewise.
6719         (isinf_test): Likewise.
6720         (isless_test): Likewise.
6721         (islessequal_test): Likewise.
6722         (islessgreater_test): Likewise.
6723         (isnan_test): Likewise.
6724         (isnormal_test): Likewise.
6725         (issignaling_test): Likewise.
6726         (isunordered_test): Likewise.
6727         (j0_test): Likewise.
6728         (j1_test): Likewise.
6729         (jn_test): Likewise.
6730         (ldexp_test): Likewise.
6731         (lgamma_test): Likewise.
6732         (gamma_test): Likewise.
6733         (lrint_test): Likewise.
6734         (lrint_test_tonearest): Likewise.
6735         (lrint_test_towardzero): Likewise.
6736         (lrint_test_downward): Likewise.
6737         (lrint_test_upward): Likewise.
6738         (llrint_test): Likewise.
6739         (llrint_test_tonearest): Likewise.
6740         (llrint_test_towardzero): Likewise.
6741         (llrint_test_downward): Likewise.
6742         (llrint_test_upward): Likewise.
6743         (log_test): Likewise.
6744         (log10_test): Likewise.
6745         (log1p_test): Likewise.
6746         (log2_test): Likewise.
6747         (logb_test): Likewise.
6748         (logb_test_downward): Likewise.
6749         (lround_test): Likewise.
6750         (llround_test): Likewise.
6751         (modf_test): Likewise.
6752         (nearbyint_test): Likewise.
6753         (nextafter_test): Likewise.
6754         (nexttoward_test): Likewise.
6755         (pow_test): Likewise.
6756         (pow_test_tonearest): Likewise.
6757         (pow_test_towardzero): Likewise.
6758         (pow_test_downward): Likewise.
6759         (pow_test_upward): Likewise.
6760         (remainder_test): Likewise.
6761         (drem_test): Likewise.
6762         (remainder_test_tonearest): Likewise.
6763         (drem_test_tonearest): Likewise.
6764         (remainder_test_towardzero): Likewise.
6765         (drem_test_towardzero): Likewise.
6766         (remainder_test_downward): Likewise.
6767         (drem_test_downward): Likewise.
6768         (remainder_test_upward): Likewise.
6769         (drem_test_upward): Likewise.
6770         (remquo_test): Likewise.
6771         (rint_test): Likewise.
6772         (rint_test_tonearest): Likewise.
6773         (rint_test_towardzero): Likewise.
6774         (rint_test_downward): Likewise.
6775         (rint_test_upward): Likewise.
6776         (round_test): Likewise.
6777         (scalb_test): Likewise.
6778         (scalbn_test): Likewise.
6779         (scalbln_test): Likewise.
6780         (signbit_test): Likewise.
6781         (sin_test): Likewise.
6782         (sin_test_tonearest): Likewise.
6783         (sin_test_towardzero): Likewise.
6784         (sin_test_downward): Likewise.
6785         (sin_test_upward): Likewise.
6786         (sincos_test): Likewise.
6787         (sinh_test): Likewise.
6788         (sinh_test_tonearest): Likewise.
6789         (sinh_test_towardzero): Likewise.
6790         (sinh_test_downward): Likewise.
6791         (sinh_test_upward): Likewise.
6792         (sqrt_test): Likewise.
6793         (sqrt_test_tonearest): Likewise.
6794         (sqrt_test_towardzero): Likewise.
6795         (sqrt_test_downward): Likewise.
6796         (sqrt_test_upward): Likewise.
6797         (tan_test): Likewise.
6798         (tan_test_tonearest): Likewise.
6799         (tan_test_towardzero): Likewise.
6800         (tan_test_downward): Likewise.
6801         (tan_test_upward): Likewise.
6802         (tanh_test): Likewise.
6803         (tgamma_test): Likewise.
6804         (trunc_test): Likewise.
6805         (y0_test): Likewise.
6806         (y1_test): Likewise.
6807         (yn_test): Likewise.
6808         (significand_test): Likewise.
6809
6810         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6811         individual tests in comment.
6812         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6813         (prev_max_error): New variable.
6814         (prev_real_max_error): Likewise.
6815         (prev_imag_max_error): Likewise.
6816         (compare_ulp_data): Don't refer to test names in comment.
6817         (find_test_ulps): Remove function.
6818         (find_function_ulps): Likewise.
6819         (find_complex_function_ulps): Likewise.
6820         (init_max_error): Take function name as argument.  Look up ulps
6821         for that function.
6822         (print_ulps): Remove function.
6823         (print_max_error): Use prev_max_error instead of calling
6824         find_function_ulps.
6825         (print_complex_max_error): Use prev_real_max_error and
6826         prev_imag_max_error instead of calling find_complex_function_ulps.
6827         (check_float_internal): Take max_ulp parameter instead of calling
6828         find_test_ulps.  Don't call print_ulps.
6829         (check_float): Update call to check_float_internal.
6830         (check_complex): Update calls to check_float_internal.
6831         (START): Pass argument to init_max_error.
6832         * math/gen-libm-test.pl (%results): Don't include "kind"
6833         information.
6834         (parse_ulps): Don't handle ulps of individual tests.
6835         (print_ulps_file): Likewise.
6836         (output_ulps): Likewise.
6837         * math/README.libm-test: Update.
6838         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6839         individual tests.
6840         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6841         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6842         * sysdeps/arm/libm-test-ulps: Likewise.
6843         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6844         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6845         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6846         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6847         * sysdeps/microblaze/libm-test-ulps: Likewise.
6848         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6849         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6850         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6851         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6852         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6853         * sysdeps/sh/libm-test-ulps: Likewise.
6854         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6855         * sysdeps/tile/libm-test-ulps: Likewise.
6856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6857
6858 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6859
6860         * math/libm-test.inc (print_complex_max_error): Check separately
6861         whether real and imaginary errors are within allowed range and
6862         pass 0 to print_complex_function_ulps instead of value within
6863         allowed range.
6864
6865 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6866
6867         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6868         formatting.
6869         (get_handles_fopen): Likewise.
6870         (do_write_test): Likewise.
6871
6872         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6873
6874         * libio/fileops.c (do_ftell): Use cached offset when
6875         available.
6876         * libio/iofwide.c (do_ftell_wide): Likewise.
6877         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6878         _IO_file_attach.
6879         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6880
6881         [BZ #16532]
6882         * libio/libioP.h (get_file_offset): New function.
6883         * libio/fileops.c (get_file_offset): Likewise.
6884         (do_ftell): Likewise.
6885         (_IO_new_file_seekoff): Split out ftell logic.
6886         * libio/wfileops.c (do_ftell_wide): Likewise.
6887         (_IO_wfile_seekoff): Split out ftell logic.
6888         * libio/tst-ftell-active-handler.c: New test case.
6889         * libio/Makefile (tests): Add it.
6890
6891 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6892
6893         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6894         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6895
6896 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6897
6898         [BZ #16639]
6899         * nscd/connections.c (nscd_init): Call do_exit.
6900         (start_threads): Call do_exit and notify_parent.
6901         (begin_drop_privileges): Call do_exit.
6902         (finish_drop_privileges): Likewise.
6903         * nscd/selinux.c (preserve_capabilities): Likewise.
6904         (install_real_capabilities): Likewise.
6905         (nscd_selinux_enabled): Likewise.
6906         (avc_create_thread): Likewise.
6907         (avc_alloc_lock): Likewise.
6908         (nscd_avc_init): Likewise.
6909         * nscd/nscd.c (parent_fd): New static variable.
6910         (main): Create a pipe between parent and child processes.
6911         Skip closing parent_fd.
6912         (monitor_child): New function.
6913         (do_exit): Likewise.
6914         (notify_parent): Likewise.
6915         * nscd/nscd.h (notify_parent): Likewise.
6916         (do_exit): Likewise.
6917
6918 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6919
6920         * malloc/malloc.c (__libc_calloc): Revert last change.
6921
6922 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6923
6924         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6925
6926 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6927
6928         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6929         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6930         implementation.
6931         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6932         (__libc_ifunc_impl_list): Likewise.
6933         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6934         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6935         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6936         * string/strrchr.c: Define STRRCHR.
6937
6938 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6939
6940         * benchtest/bench-strtok.c (simple_strtok): Delete.
6941         (strtok_string): Use as benchmark.
6942         * string/strtok (STRTOK): New macro.
6943
6944 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6945
6946         * manual/threads.texi: Add header and standard comments to all
6947         functions.
6948
6949         * elf/dl-lookup.c (check_match): New function.
6950         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6951         (do_lookup_x): Remove nested function check_match. Use non-nested
6952         function check_match.
6953
6954 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6955
6956         * csu/Makefile (generated, before-compile): Use += rather than =.
6957         * catgets/Makefile (generated, generated-dirs): Likewise.
6958         * debug/Makefile (generated): Likewise.
6959         * dlfcn/Makefile (generated): Likewise.
6960         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6961         * iconvdata/Makefile (before-compile, generated): Likewise.
6962         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6963         * libio/Makefile (generated): Likewise.
6964         * malloc/Makefile (generated): Likewise.
6965         * manual/Makefile (generated, generated-dirs): Likewise.
6966         * misc/Makefile (generated): Likewise.
6967         * posix/Makefile (generated): Likewise.
6968         * resolv/Makefile (generated): Likewise.
6969         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6970         * timezone/Makefile (generated, generated-dirs): Likewise.
6971
6972         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6973
6974 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6975
6976         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6977         power8 implementation.
6978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6979         file: POWER8 llround ifunc implementation.
6980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6981         (__lllround): Add POWER8 implementation.
6982         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6983         POWER8 llround implementation.
6984
6985         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6986         power8 implementation.
6987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6988         file: POWER8 llrint ifunc implementation.
6989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6990         Add POWER8 implementation.
6991         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6992         POWER8 llrint implementation.
6993
6994         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6995         power8 implementation.
6996         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6997         file: POWER8 finite ifunc implementation.
6998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6999         Add POWER8 implementation.
7000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
7001         Likewise.
7002         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
7003         POWER8 finite implementation.
7004         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
7005
7006         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
7007         power8 implementation.
7008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
7009         file: POWER8 isinf ifunc implementation.
7010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
7011         POWER8 implementation.
7012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
7013         Likewise.
7014         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
7015         isinf implementation.
7016         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
7017
7018         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
7019         (INIT_ARCH): Add hwcap2 initialization.
7020         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
7021         power8 implementation.
7022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
7023         file: POWER8 isnan ifunc implementation.
7024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
7025         POWER8 implementation.
7026         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
7027         Likewise.
7028         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
7029         isnan implementation.
7030         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
7031
7032 2014-02-27  Joey Ye  <joey.ye@arm.com>
7033
7034         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
7035         (_FP_NANFRAC_Q): Set to zero.
7036
7037 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7038
7039         [BZ #16623]
7040         * math/auto-libm-test-in: New test inputs.
7041         * math/auto-libm-test-out: Regenerate.
7042         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
7043         and DA.
7044         (__cos): Likewise.
7045         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
7046
7047 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
7048
7049         * scripts/evaluate-test.sh: Take new argument indicating whether
7050         failure is expected.
7051         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
7052         indicating whether failure is expected.
7053         * conform/Makefile (test-xfail-run-conformtest): New variable.
7054         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
7055         level.
7056         * posix/Makefile (test-xfail-annexc): New variable.
7057         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
7058
7059 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
7060
7061         * argp/Makefile: Include Makeconfig immediately after defining
7062         subdir.
7063         * assert/Makefile: Likewise.
7064         * benchtests/Makefile: Likewise.
7065         * catgets/Makefile: Likewise.
7066         * conform/Makefile: Likewise.
7067         * crypt/Makefile: Likewise.
7068         * csu/Makefile: Likewise.
7069         (all): Remove target.
7070         * ctype/Makefile: Include Makeconfig immediately after defining
7071         subdir.
7072         * debug/Makefile: Likewise.
7073         * dirent/Makefile: Likewise.
7074         * dlfcn/Makefile: Likewise.
7075         * gmon/Makefile: Likewise.
7076         * gnulib/Makefile: Likewise.
7077         * grp/Makefile: Likewise.
7078         * gshadow/Makefile: Likewise.
7079         * hesiod/Makefile: Likewise.
7080         * hurd/Makefile: Likewise.
7081         (all): Remove target.
7082         * iconvdata/Makefile: Include Makeconfig immediately after
7083         defining subdir.
7084         * inet/Makefile: Likewise.
7085         * intl/Makefile: Likewise.
7086         * io/Makefile: Likewise.
7087         * libio/Makefile: Likewise.
7088         (all): Remove target.
7089         * locale/Makefile: Include Makeconfig immediately after defining
7090         subdir.
7091         * login/Makefile: Likewise.
7092         * mach/Makefile: Likewise.
7093         (all): Remove target.
7094         * malloc/Makefile: Include Makeconfig immediately after defining
7095         subdir.
7096         (all): Remove target.
7097         * manual/Makefile: Include Makeconfig immediately after defining
7098         subdir.
7099         * math/Makefile: Likewise.
7100         * misc/Makefile: Likewise.
7101         * nis/Makefile: Likewise.
7102         * nss/Makefile: Likewise.
7103         * po/Makefile: Likewise.
7104         (all): Remove target.
7105         * posix/Makefile: Include Makeconfig immediately after defining
7106         subdir.
7107         * pwd/Makefile: Likewise.
7108         * resolv/Makefile: Likewise.
7109         * resource/Makefile: Likewise.
7110         * rt/Makefile: Likewise.
7111         * setjmp/Makefile: Likewise.
7112         * shadow/Makefile: Likewise.
7113         * signal/Makefile: Likewise.
7114         * socket/Makefile: Likewise.
7115         * soft-fp/Makefile: Likewise.
7116         * stdio-common/Makefile: Likewise.
7117         * stdlib/Makefile: Likewise.
7118         * streams/Makefile: Likewise.
7119         * string/Makefile: Likewise.
7120         * sunrpc/Makefile: Likewise.
7121         (all): Remove target.
7122         * sysvipc/Makefile: Include Makeconfig immediately after defining
7123         subdir.
7124         * termios/Makefile: Likewise.
7125         * time/Makefile: Likewise.
7126         * timezone/Makefile: Likewise.
7127         (all): Remove target.
7128         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7129         subdir.
7130         * wctype/Makefile: Likewise.
7131
7132 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7133
7134         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7135         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7136         (libc_feholdexcept_setround_mips): Ditto.
7137         (libc_feholdsetround): New.
7138         (libc_feholdsetroundf): New.
7139         (libc_feholdsetroundl): New.
7140         (libc_feupdateenv_test_mips): New.
7141         (libc_feupdateenv_test): New.
7142         (libc_feupdateenv_testf): New.
7143         (libc_feupdateenv_testl): New.
7144         (libc_feresetround): New.
7145         (libc_feresetroundf): New.
7146         (libc_feresetroundl): New.
7147         (libc_fetestexcept_mips): New.
7148         (libc_fetestexcept): New.
7149         (libc_fetestexceptf): New.
7150         (libc_fetestexceptl): New.
7151         (HAVE_RM_CTX): New.
7152         (libc_feholdexcept_setround_mips_ctx): New.
7153         (libc_feholdexcept_setround_ctx): New.
7154         (libc_feholdexcept_setroundf_ctx): New.
7155         (libc_feholdexcept_setroundl_ctx): New.
7156         (libc_fesetenv_mips_ctx): New.
7157         (libc_fesetenv_ctx): New.
7158         (libc_fesetenv_ctxf): New.
7159         (libc_fesetenv_ctxl): New.
7160         (libc_feupdateenv_mips_ctx): New.
7161         (libc_feupdateenv_ctx): New.
7162         (libc_feupdateenvf_ctx): New.
7163         (libc_feupdateenvl_ctx): New.
7164         (libc_feholdsetround_mips_ctx): New.
7165         (libc_feholdsetround_ctx): New.
7166         (libc_feholdsetroundf_ctx): New.
7167         (libc_feholdsetroundl_ctx): New.
7168         (libc_feresetround_mips_ctx): New.
7169         (libc_feresetround_ctx): New.
7170         (libc_feresetroundf_ctx): New.
7171         (libc_feresetroundl_ctx): New.
7172
7173 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7174
7175         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7176
7177         * manual/ipc.texi: New file.
7178         * manual/Makefile (chapters): Add ipc.
7179         * manual/job.texi: Add "Inter-Process Communication" to next.
7180         * manual/process.texi: Add "Inter-Process Communication" to prev.
7181
7182 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7183
7184         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7185
7186 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7187
7188         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7189
7190         * manual/arith.texi: Fix spaces after sentences.
7191         * manual/charset.texi: Likewise.
7192         * manual/errno.texi: Likewise.
7193         * manual/install.texi: Likewise.
7194         * manual/llio.texi: Likewise.
7195         * manual/locale.texi: Likewise.
7196         * manual/maint.texi: Likewise.
7197         * manual/math.texi: Likewise.
7198         * manual/memory.texi: Likewise.
7199         * manual/message.texi: Likewise.
7200         * manual/probes.texi: Likewise.
7201         * manual/resource.texi: Likewise.
7202         * manual/signal.texi: Likewise.
7203         * manual/socket.texi: Likewise.
7204         * manual/stdio.texi: Likewise.
7205         * manual/string.texi: Likewise.
7206         * manual/time.texi: Likewise.
7207         * manual/users.texi: Likewise.
7208
7209 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7210
7211         [BZ #16632]
7212         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7213         _DEFAULT_SOURCE is defined.
7214
7215 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7216             Carlos O'Donell  <carlos@redhat.com>
7217
7218         [BZ #16613]
7219         * elf/dl-tls.c (_dl_count_modids): New function.
7220         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7221         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7222         audit library and increment generation counter.
7223         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7224         * elf/tst-audit9.c: New file.
7225         * elf/tst-auditmod9a.c: New file.
7226         * elf/tst-auditmod9b.c: New file.
7227         * elf/Makefile: Add rules to build and run tst-audit9.
7228
7229 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7230
7231         [BZ #15347]
7232         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7233
7234 2014-02-25  Will Newton  <will.newton@linaro.org>
7235
7236         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7237         (__longjmp): Restore sp and lr before restoring callee
7238         saved registers.  Add longjmp and longjmp_target
7239         SystemTap probe point.
7240         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7241         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7242         Define to zero to match jmpbuf layout.
7243         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7244         (__sigsetjmp): Save sp and lr before saving callee
7245         saved registers.  Add setjmp SystemTap probe point.
7246
7247 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7248
7249         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7250
7251 2014-02-24  Andreas Schwab  <schwab@suse.de>
7252
7253         [BZ #15804]
7254         * elf/pldd.c (wait_for_ptrace_stop): New function.
7255         (main): Call it after attaching.
7256
7257 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7258
7259         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7260         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7261         Versions files is now verboten.
7262         * hurd/Versions (libc: GLIBC_2.0):
7263         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7264         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7265         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7266         * mach/Versions: Likewise.
7267
7268         * csu/Versions: Remove unused %include.
7269         * resolv/Versions: Likewise.
7270
7271 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7272
7273         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7274         ($(objpfx)check-local-headers.out): Likewise.
7275         ($(objpfx)begin-end-check.out): Likewise.
7276         * Makerules (check-abi-%.out): Likewise.
7277         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7278         ($(objpfx)test2.cat): Likewise.
7279         ($(objpfx)de/libc.cat): Likewise.
7280         ($(objpfx)test-gencat.out): Likewise.
7281         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7282         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7283         ($(objpfx)noload-mem): Likewise.
7284         ($(objpfx)tst-pathopt.out): Likewise.
7285         ($(objpfx)tst-rtld-load-self.out): Likewise.
7286         ($(objpfx)tst-array1-cmp.out): Likewise.
7287         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7288         ($(objpfx)tst-array2-cmp.out): Likewise.
7289         ($(objpfx)tst-array3-cmp.out): Likewise.
7290         ($(objpfx)tst-array4-cmp.out): Likewise.
7291         ($(objpfx)tst-array5-cmp.out): Likewise.
7292         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7293         ($(objpfx)check-textrel.out): Likewise.
7294         ($(objpfx)check-execstack.out): Likewise.
7295         ($(objpfx)check-localplt.out): Likewise.
7296         ($(objpfx)order2-cmp.out): Likewise.
7297         ($(objpfx)tst-leaks1-mem): Likewise.
7298         ($(objpfx)tst-leaks1-static-mem): Likewise.
7299         ($(objpfx)tst-initorder-cmp.out): Likewise.
7300         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7301         ($(objpfx)tst-unused-dep.out): Likewise.
7302         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7303         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7304         * iconv/Makefile (test-iconvconfig): Likewise.
7305         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7306         ($(objpfx)iconv-test.out): Likewise.
7307         ($(objpfx)tst-tables.out): Likewise.
7308         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7309         ($(objpfx)tst-gettext.out): Likewise.
7310         ($(objpfx)tst-translit.out): Likewise.
7311         ($(objpfx)tst-gettext2.out): Likewise.
7312         ($(objpfx)tst-gettext4.out): Likewise.
7313         ($(objpfx)tst-gettext6.out): Likewise.
7314         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7315         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7316         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7317         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7318         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7319         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7320         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7321         ($(objpfx)wordexp-tst.out): Likewise.
7322         ($(objpfx)annexc.out): Likewise.
7323         ($(objpfx)tst-fnmatch-mem): Likewise.
7324         ($(objpfx)bug-regex2-mem): Likewise.
7325         ($(objpfx)bug-regex14-mem): Likewise.
7326         ($(objpfx)bug-regex21-mem): Likewise.
7327         ($(objpfx)bug-regex31-mem): Likewise.
7328         ($(objpfx)tst-vfork3-mem): Likewise.
7329         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7330         ($(objpfx)tst-pcre-mem): Likewise.
7331         ($(objpfx)tst-boost-mem): Likewise.
7332         ($(objpfx)tst-getconf.out): Likewise.
7333         ($(objpfx)bug-ga2-mem): Likewise.
7334         ($(objpfx)bug-glob2-mem): Likewise.
7335         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7336         ($(objpfx)mtrace-tst-leaks2): Likewise.
7337         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7338         ($(objpfx)tst-printf.out): Likewise.
7339         ($(objpfx)tst-setvbuf1.out): Likewise.
7340         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7341         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7342         ($(objpfx)tst-fmtmsg.out): Likewise.
7343         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7344         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7345
7346         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7347         * bits/sigaction.h [__USE_MISC]: Likewise.
7348         * bits/waitstatus.h: Update #endif comments.
7349         * ctype/ctype.h: Likewise.
7350         * dirent/dirent.h: Likewise.
7351         [__USE_MISC]: Remove redundant conditionals.
7352         * grp/grp.h: Update #endif comments.
7353         [__USE_GNU]: Remove redundant conditionals.
7354         [__USE_MISC]: Likewise.
7355         * inet/netinet/in.h [__USE_GNU]: Likewise.
7356         * io/sys/stat.h [__USE_MISC]: Likewise.
7357         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7358         * libio/bits/stdio.h: Update #endif comments.
7359         [__USE_MISC]: Remove redundant conditionals.
7360         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7361         * libio/stdio.h: Update #endif comments.
7362         [__USE_MISC]: Remove redundant conditionals.
7363         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7364         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7365         * math/math.h: Update #else and #endif comments.
7366         [__USE_MISC]: Remove redundant conditionals.
7367         * misc/sys/uio.h: Update #endif comments.
7368         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7369         * posix/glob.h [__USE_MISC]: Likewise.
7370         * posix/sys/types.h: Update #endif comments.
7371         [__USE_MISC]: Remove redundant conditionals.
7372         * posix/sys/wait.h: Update #endif comments.
7373         [__USE_MISC]: Remove redundant conditionals.
7374         * posix/unistd.h: Update #endif comments.
7375         [__USE_MISC]: Remove redundant conditionals.
7376         * pwd/pwd.h [__USE_GNU]: Likewise.
7377         [__USE_MISC]: Likewise.
7378         * resolv/netdb.h [__USE_GNU]: Likewise.
7379         * signal/signal.h: Update #endif comments.
7380         [__USE_MISC]: Remove redundant conditionals.
7381         * stdlib/stdlib.h: Update #else and #endif comments.
7382         [__USE_MISC]: Remove redundant conditionals.
7383         [__USE_GNU]: Likewise.
7384         * string/bits/string2.h [__USE_MISC]: Likewise.
7385         * string/string.h: Update #endif comments.
7386         [__USE_MISC]: Remove redundant conditionals.
7387         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7388         Likewise.
7389         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7390         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7391         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7392         Likewise.
7393         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7394         Likewise.
7395         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7396         comments.
7397         [__USE_MISC]: Remove redundant conditionals.
7398         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7399         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7400         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7401         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7402         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7403         Likewise.
7404         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7405         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7406         Likewise.
7407         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7408         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7409         Likewise.
7410         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7411         Likewise.
7412         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7413         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7414         Likewise.
7415         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7416         Likewise.
7417         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7418         * sysdeps/x86/bits/string.h: Update #endif comments.
7419         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7420         conditionals.
7421         * time/sys/time.h: Update #endif comments.
7422         * time/time.h: Likewise.
7423         [__USE_MISC]: Remove redundant conditionals.
7424
7425 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7426
7427         [BZ #16600]
7428         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7429
7430 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7431
7432         * Versions.def (librt): Add GLIBC_2.17.
7433
7434 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7435
7436         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7437         synonym for _SYS_AUXV_H to allow direct inclusion.
7438         * sysdeps/sparc/bits/hwcap.h: Likewise.
7439         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7440         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7441         * sysdeps/sparc/sysdep.h: Likewise.
7442
7443 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7444
7445         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
7446
7447 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7448
7449         * benchtests/bench-strrchr.c: Print length instead of position.
7450
7451 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
7452
7453         [BZ #16611]
7454         * sysdeps/unix/sysv/linux/kernel-features.h
7455         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
7456         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
7457         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
7458         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
7459         Likewise.
7460         [__i386__ || __powerpc__ || __sh__ || __sparc__]
7461         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7462         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
7463         (__ASSUME_SENDMMSG): Define instead of using previous
7464         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
7465         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7466         (__ASSUME_SENDMMSG_SYSCALL): Define.
7467         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7468         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
7469         Likewise.
7470         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7471         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7472         Likewise.
7473         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7474         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7475         Likewise.
7476         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
7477         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7478         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7479         [__ASSUME_SENDMMSG]: Change conditionals to
7480         [__ASSUME_SENDMMSG_SOCKETCALL].
7481         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7482         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
7483         Define.
7484         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7485         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7486         Likewise.
7487         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7488         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7489         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7490         [!__ASSUME_SENDMMSG]: Change conditional to
7491         [!__ASSUME_SENDMMSG_SOCKETCALL].
7492         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7493         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7494         Define.
7495
7496         [BZ #16610]
7497         * sysdeps/unix/sysv/linux/kernel-features.h
7498         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7499         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7500         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7501         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7502         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7503         [__i386__ || __sparc__]
7504         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7505         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7506         (__ASSUME_RECVMMSG): Define instead of using previous
7507         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7508         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7509         (__ASSUME_RECVMMSG_SYSCALL): Define.
7510         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7511         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7512         Likewise.
7513         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7514         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7515         Likewise.
7516         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7517         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7518         Likewise.
7519         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7520         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7521         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7522         [__ASSUME_RECVMMSG]: Change condition to
7523         [__ASSUME_RECVMMSG_SOCKETCALL].
7524         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7525         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7526         Define.
7527         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7528         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7529         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7530         Likewise.
7531         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7532         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7533         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7534         [!__ASSUME_RECVMMSG]: Change condition to
7535         [!__ASSUME_RECVMMSG_SOCKETCALL].
7536         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7537         (__ASSUME_RECVMMSG_SYSCALL): Define.
7538
7539         [BZ #16609]
7540         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7541         __powerpc__ || __s390__ || __sh__ || __sparc__]
7542         (__ASSUME_SOCKETCALL): Define.
7543         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7544         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7545         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7546         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7547         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7548         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7549         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7550         (__ASSUME_ACCEPT4): Define instead of using previous
7551         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7552         __powerpc__ || __sparc__ || __s390__)] condition.
7553         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7554         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7555         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7556         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7557         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7558         [!__ASSUME_ACCEPT4]: Change condition to
7559         [!__ASSUME_ACCEPT4_SOCKETCALL].
7560         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7561         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7562         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7563         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7564         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7565         __ASSUME_ACCEPT4_SYSCALL.
7566         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7567         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7568         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7569         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7570         __ASSUME_ACCEPT4_SYSCALL.
7571         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7572         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7573         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7574         [__ASSUME_ACCEPT4]: Change condition to
7575         [__ASSUME_ACCEPT4_SOCKETCALL].
7576         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7577         (__ASSUME_SOCKETCALL): Define.
7578         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7579         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7580         (__ASSUME_SOCKETCALL): Define.
7581         (__ASSUME_ACCEPT4): Remove.
7582         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7583         Define.
7584         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7585         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7586         Likewise.
7587         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7588         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7589
7590         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7591         macro.
7592         (HWCAP_ARM_LPAE): Likewise.
7593         (HWCAP_ARM_EVTSTRM): Likewise.
7594         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7595         Add vpfd32, lpae and evtstrm.
7596         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7597         Increase to 22.
7598
7599 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7600
7601         * math/auto-libm-test-in: Add tests of clog10.
7602         * math/auto-libm-test-out: Regenerated.
7603         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7604         * sysdeps/i386/fpu/libm-test-ulps: Update.
7605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7606
7607 2014-02-18  Andreas Schwab  <schwab@suse.de>
7608
7609         [BZ #16574]
7610         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7611         Store non-zero if the second buffer was newly allocated.
7612         (send_dg): Likewise.
7613         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7614         to send_vc and send_dg.
7615         (res_nsend): Pass NULL for ansp2_malloced.
7616         * resolv/res_query.c (__libc_res_nquery): Add parameter
7617         answerp2_malloced and pass it down to __libc_res_nsend.
7618         (res_nquery): Pass additional NULL to __libc_res_nquery.
7619         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7620         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7621         second answer buffer if answerp2_malloced was set.
7622         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7623         (__libc_res_nquerydomain): Add parameter
7624         answerp2_malloced and pass it down to __libc_res_nquery.
7625         (res_nquerydomain): Pass additional NULL to
7626         __libc_res_nquerydomain.
7627         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7628         additional NULL to __libc_res_nsend and __libc_res_nquery.
7629         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7630         additional NULL to __libc_res_nsearch.
7631         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7632         parameter of __libc_res_nsearch to check for separately allocated
7633         second buffer.
7634         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7635         __libc_res_nquery.
7636         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7637         additional NULL to __libc_res_nquery.
7638         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7639         __libc_res_nsearch.
7640         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7641         * include/resolv.h: Update prototypes of __libc_res_nquery,
7642         __libc_res_nsearch, __libc_res_nsend.
7643
7644 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7645
7646         * math/auto-libm-test-in: Add tests of fma.
7647         * math/auto-libm-test-out: Regenerated.
7648         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7649         (fma_towardzero_test_data): Likewise.
7650         (fma_downward_test_data): Likewise.
7651         (fma_upward_test_data): Likewise.
7652         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7653         mpc_mode.
7654         (rounding_modes): Add values for new field.
7655         (func_calc_method): Add value mpfr_fff_f.
7656         (func_calc_desc): Add mpfr_fff_f union field.
7657         (test_function): Add field exact_args.
7658         (FUNC): Add macro argument EXACT_ARGS.
7659         (FUNC_mpfr_f_f): Update call to FUNC.
7660         (FUNC_mpfr_f_f): Likewise.
7661         (FUNC_mpfr_ff_f): Likewise.
7662         (FUNC_mpfr_if_f): Likewise.
7663         (FUNC_mpc_c_f): Likewise.
7664         (FUNC_mpc_c_c): Likewise.
7665         (test_functions): Add fma.  Update calls to FUNC.
7666         (handle_input_arg): Add argument exact_args.
7667         (add_test): Update call to handle_input_arg.
7668         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7669         (output_for_one_input_case): Update call to calc_generic_results.
7670         Recalculate exact zero results in each rounding mode.
7671
7672         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7673         non-negative before setting low bit.
7674         * math/auto-libm-test-in: Mark one asin test possibly having
7675         spurious underflow.
7676         * math/auto-libm-test-out: Regenerated.
7677         * sysdeps/i386/fpu/libm-test-ulps: Update.
7678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7679
7680 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7681
7682         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7683         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7684         ports/sysdeps/unix/sysv/linux/microblaze.
7685         * README: Add missing listing for microblaze*-*-linux-gnu.
7686
7687 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7688
7689         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7690         * sysdeps/unix/sysv/linux/ia64: Move directory from
7691         ports/sysdeps/unix/sysv/linux/ia64.
7692         * README: Update listing for ia64-*-linux-gnu.
7693
7694 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7695             Joseph Myers  <joseph@codesourcery.com>
7696
7697         * Makeconfig (test-name): New variable.
7698         (evaluate-test): Likewise.
7699         * Makerules (do-test-clean): Remove .test-result files.
7700         (common-mostlyclean): Likewise.
7701         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7702         * scripts/evaluate-test.sh: New file.
7703
7704 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7705
7706         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7707         separate $(objpfx)tst-fopenloc-cmp.out and
7708         $(objpfx)tst-fopenloc-mem.out targets.
7709         (tests): Update dependencies.
7710         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7711         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7712         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7713         (tst-rxspencer-no-utf8-ARGS): New variable.
7714         (tst-rxspencer-no-utf8-ENV): Likewise.
7715         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7716         instead of $(objpfx)tst-rxspencer-mem.
7717         ($(objpfx)tst-rxspencer-mem): Change target to
7718         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7719         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7720         * posix/tst-rxspencer-no-utf8.c: New file.
7721
7722         * elf/Makefile ($(objpfx)order.out): Remove rule.
7723         [$(run-built-tests) = yes] (tests): Depend on
7724         $(objpfx)order-cmp.out.
7725         ($(objpfx)order-cmp.out): New rule.
7726         [$(run-built-tests) = yes] (tests): Depend on
7727         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7728         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7729         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7730         $(objpfx)tst-array5-static-cmp.out.
7731         ($(objpfx)tst-array1.out): Remove rule.
7732         ($(objpfx)tst-array1-cmp.out): New rule.
7733         ($(objpfx)tst-array1-static.out): Remove rule.
7734         ($(objpfx)tst-array1-static-cmp.out): New rule.
7735         ($(objpfx)tst-array2.out): Remove rule.
7736         ($(objpfx)tst-array2-cmp.out): New rule.
7737         ($(objpfx)tst-array3.out): Remove rule.
7738         ($(objpfx)tst-array3-cmp.out): New rule.
7739         ($(objpfx)tst-array4.out): Remove rule.
7740         ($(objpfx)tst-array4-cmp.out): New rule.
7741         ($(objpfx)tst-array5.out): Remove rule.
7742         ($(objpfx)tst-array5-cmp.out): New rule.
7743         ($(objpfx)tst-array5-static.out): Remove rule.
7744         ($(objpfx)tst-array5-static-cmp.out): New rule.
7745         [$(run-built-tests) = yes] (tests): Depend on
7746         $(objpfx)order2-cmp.out.
7747         ($(objpfx)order2.out): Remove rule.
7748         ($(objpfx)order2-cmp.out): New rule.
7749         ($(objpfx)tst-initorder.out): Remove rule.
7750         [$(run-built-tests) = yes] (tests): Depend on
7751         $(objpfx)tst-initorder-cmp.out.
7752         ($(objpfx)tst-initorder-cmp.out): New rule.
7753         ($(objpfx)tst-initorder2.out): Remove rule.
7754         [$(run-built-tests) = yes] (tests): Depend on
7755         $(objpfx)tst-initorder2-cmp.out.
7756         ($(objpfx)tst-initorder2-cmp.out): New rule.
7757         [$(run-built-tests) = yes] (tests): Depend on
7758         $(objpfx)tst-unused-dep-cmp.out.
7759         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7760         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7761         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7762         on $(objpfx)tst-setvbuf1-cmp.out.
7763         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7764         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7765         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7766         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7767         ($(objpfx)tst-svc.out): Remove rule.
7768         ($(objpfx)tst-svc-cmp.out): New rule.
7769
7770 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7771
7772         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7773         * ctype/ctype.h [__USE_MISC]: Likewise.
7774         * dirent/dirent.h [__USE_MISC]: Likewise.
7775         * grp/grp.h [__USE_MISC]: Likewise.
7776         * io/fcntl.h [__USE_MISC]: Likewise.
7777         * io/sys/stat.h [__USE_MISC]: Likewise.
7778         * libio/stdio.h [__USE_MISC]: Likewise.
7779         * posix/unistd.h [__USE_MISC]: Likewise.
7780         * pwd/pwd.h [__USE_MISC]: Likewise.
7781         * stdlib.h [__USE_MISC]: Likewise.
7782         * string/bits/string2.h [__USE_MISC]: Likewise.
7783         * string/string.h [__USE_MISC]: Likewise.
7784         * time/time.h [__USE_MISC]: Likewise.
7785
7786 2014-02-13  Andreas Schwab  <schwab@suse.de>
7787
7788         [BZ #16574]
7789         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7790         second answer buffer if it was separately allocated.
7791
7792 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7793
7794         * sysdeps/mips/math-tests.h: Include <features.h>.
7795         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7796         (ROUNDING_TESTS_long_double): Do not define.
7797         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7798         (EXCEPTION_TESTS_long_double): Likewise.
7799         * sysdeps/mips/mips64/libm-test-ulps: Update.
7800
7801         * include/features.h (__USE_BSD): Remove macro definitions.
7802         (__USE_SVID): Likewise.
7803         (_BSD_SOURCE): Likewise.
7804         (_SVID_SOURCE): Likewise.
7805         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7806         from definition of _DEFAULT_SOURCE.
7807         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7808         [_DEFAULT_SOURCE].
7809         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7810         * bits/mman.h [__USE_BSD]: Likewise.
7811         * bits/termios.h [__USE_BSD]: Likewise.
7812         * bits/waitstatus.h [__USE_BSD]: Likewise.
7813         * ctype/ctype.h [__USE_SVID]: Likewise.
7814         * dirent/dirent.h [__USE_BSD]: Likewise.
7815         * grp/grp.h [__USE_SVID]: Likewise.
7816         [__USE_BSD]: Likewise.
7817         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7818         * io/fcntl.h [__USE_BSD]: Likewise.
7819         * io/ftw.h [__USE_BSD]: Likewise.
7820         * io/sys/stat.h [__USE_BSD]: Likewise.
7821         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7822         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7823         * libio/stdio.h [__USE_SVID]: Likewise.
7824         [__USE_BSD]: Likewise.
7825         * math/math.h [__USE_SVID]: Likewise.
7826         [__USE_BSD]: Likewise.
7827         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7828         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7829         * misc/search.h [__USE_SVID]: Likewise.
7830         * misc/sys/mman.h [__USE_BSD]: Likewise.
7831         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7832         * misc/sys/uio.h [__USE_BSD]: Likewise.
7833         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7834         * posix/glob.h [__USE_BSD]: Likewise.
7835         * posix/regex.h [__USE_BSD]: Likewise.
7836         * posix/sys/types.h [__USE_BSD]: Likewise.
7837         [__USE_SVID]: Likewise.
7838         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7839         * posix/sys/wait.h [__USE_BSD]: Likewise.
7840         [__USE_SVID]: Likewise.
7841         * posix/unistd.h [__USE_BSD]: Likewise.
7842         [__USE_SVID]: Likewise.
7843         * pwd/pwd.h [__USE_SVID]: Likewise.
7844         * resolv/netdb.h [__USE_BSD]: Likewise.
7845         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7846         * signal/signal.h [__USE_BSD]: Likewise.
7847         [__USE_SVID]: Likewise.
7848         * socket/sys/socket.h [__USE_BSD]: Likewise.
7849         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7850         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7851         [__USE_SVID]: Likewise.
7852         * string/bits/string2.h [__USE_BSD]: Likewise.
7853         [__USE_SVID]: Likewise.
7854         * string/bits/string3.h [__USE_BSD]: Likewise.
7855         * string/endian.h [__USE_BSD]: Likewise.
7856         * string/string.h [__USE_SVID]: Likewise.
7857         [__USE_BSD]: Likewise.
7858         * string/strings.h [__USE_BSD]: Likewise.
7859         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7860         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7861         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7862         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7863         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7864         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7865         Likewise.
7866         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7867         Likewise.
7868         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7869         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7870         Likewise.
7871         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7872         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7873         Likewise.
7874         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7875         Likewise.
7876         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7877         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7878         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7879         Likewise.
7880         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7881         Likewise.
7882         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7883         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7884         * termios/termios.h [__USE_BSD]: Likewise.
7885         * time/sys/time.h [__USE_BSD]: Likewise.
7886         * time/time.h [__USE_BSD]: Likewise.
7887         [__USE_SVID]: Likewise.
7888
7889         * Makefile (subdir_targets): Remove subdir_lint.out.
7890
7891         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7892         (do-tst-printf): Likewise.
7893         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7894         $(objpfx)tst-printf.out.
7895
7896         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7897
7898         * Makerules (check-abi-%): Change target to
7899         $(objpfx)check-abi-%.out.
7900         (check-abi target): Update dependencies.
7901         (check-abi-pattern variable): Redirect output of diff to $@.
7902         (check-abi variable): Likewise.
7903         * elf/Makefile (check-abi): Update dependencies.
7904
7905         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7906         unused.
7907         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7908         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7909         subnormal range.
7910         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7911         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7912         value has largest subnormal exponent.
7913         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7914         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7915         * sysdeps/aarch64/soft-fp/sfp-machine.h
7916         (_FP_TININESS_AFTER_ROUNDING): New macro.
7917         * sysdeps/alpha/soft-fp/sfp-machine.h
7918         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7919         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7920         Likewise.
7921         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7922         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7923         * sysdeps/mips/soft-fp/sfp-machine.h
7924         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7925         * sysdeps/powerpc/soft-fp/sfp-machine.h
7926         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7927         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7928         Likewise.
7929         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7930         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7931         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7932         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7933         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7934         Likewise.
7935
7936 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7937
7938         [BZ #16545]
7939         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7940         model 1.
7941
7942 2014-02-12  Richard Henderson  <rth@redhat.com>
7943
7944         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7945         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7946         * sysdeps/unix/sysv/linux/alpha: Move directory from
7947         ports/sysdeps/unix/sysv/linux/alpha.
7948         * README: Update listing for alpha-*-linux-gnu.
7949
7950 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7951
7952         * include/features.h: Update comment documenting feature test
7953         macros.
7954         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7955         _DEFAULT_SOURCE.
7956         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7957         (_SVID_SOURCE): Likewise.
7958         (_DEFAULT_SOURCE): Update description of default features.
7959         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7960         with _GNU_SOURCE.
7961         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7962         (S_ISVTX): Likewise.
7963         * manual/math.texi (Mathematical Constants): Likewise.
7964         * manual/signal.texi (Interrupted Primitives): Likewise.
7965         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7966         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7967         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7968         Don't refer to _SVID_SOURCE in warning text.
7969
7970         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7971
7972         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7973         already defined.
7974         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7975         * sysdeps/mips/dl-lookup.c: Remove.
7976         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7977
7978 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7979
7980         [BZ #16447]
7981         * math/auto-libm-test-in: Add testcase for expl.
7982         * math/auto-libm-test-out: Regenerate.
7983         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7984         calculation of unsafe.
7985         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7986
7987 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7988
7989         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7990         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7991         ports/sysdeps/unix/sysv/linux/aarch64.
7992         * README: Update listing for aarch64*-*-linux-gnu.
7993
7994 2014-02-11  Will Newton  <will.newton@linaro.org>
7995
7996         * manual/probes.texi (Mathematical Function Probes): Use
7997         "triggered" instead of "hit".
7998
7999         * manual/probes.texi (Internal Probes): Add documentation
8000         of setjmp, longjmp and longjmp_target probes.
8001
8002         * include/stap-probe.h: Add comment about probe argument
8003         format.
8004
8005         * malloc/mtrace.c (attribute_hidden): Remove unused macro
8006         definition.  (tr_where, tr_freehook, tr_mallochook,
8007         tr_reallochook, tr_memalignhook): Use ANSI protoype.
8008
8009 2014-02-11  David S. Miller  <davem@davemloft.net>
8010
8011         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
8012         processing int_tests.
8013
8014 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
8015
8016         * sysdeps/mips: Move directory from ports/sysdeps/mips.
8017         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
8018         * sysdeps/unix/sysv/linux/mips: Move directory from
8019         ports/sysdeps/unix/sysv/linux/mips.
8020         * README: Update listing for mips-*-linux-gnu and
8021         mips64-*-linux-gnu.
8022
8023 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
8024
8025         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
8026         * sysdeps/unix/sysv/linux/m68k: Move directory from
8027         ports/sysdeps/unix/sysv/linux/m68k.
8028         * README: Update listing for m68k-*-linux-gnu.
8029
8030 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
8031
8032         * sysdeps/tile: Move directory from ports/sysdeps/tile.
8033         * sysdeps/unix/sysv/linux/generic: Move directory from
8034         ports/sysdeps/unix/sysv/linux/generic.
8035         * sysdeps/unix/sysv/linux/tile: Move directory from
8036         ports/sysdeps/unix/sysv/linux/tile.
8037         * README: Update listing for tile*-*-linux-gnu.
8038
8039 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
8040
8041         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
8042         __builtin_expect.
8043         * benchtests/bench-memmem.c (simple_memmem): Likewise.
8044         * catgets/open_catalog.c (__open_catalog): Likewise.
8045         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
8046         * debug/confstr_chk.c: Likewise.
8047         * debug/fread_chk.c (__fread_chk): Likewise.
8048         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
8049         * debug/getgroups_chk.c: Likewise.
8050         * debug/mbsnrtowcs_chk.c: Likewise.
8051         * debug/mbsrtowcs_chk.c: Likewise.
8052         * debug/mbstowcs_chk.c: Likewise.
8053         * debug/memcpy_chk.c: Likewise.
8054         * debug/memmove_chk.c: Likewise.
8055         * debug/mempcpy_chk.c: Likewise.
8056         * debug/memset_chk.c: Likewise.
8057         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
8058         * debug/strcat_chk.c (__strcat_chk): Likewise.
8059         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
8060         * debug/strncat_chk.c (__strncat_chk): Likewise.
8061         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
8062         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
8063         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
8064         * debug/wcpncpy_chk.c: Likewise.
8065         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
8066         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
8067         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
8068         * debug/wcsncpy_chk.c: Likewise.
8069         * debug/wcsnrtombs_chk.c: Likewise.
8070         * debug/wcsrtombs_chk.c: Likewise.
8071         * debug/wcstombs_chk.c: Likewise.
8072         * debug/wmemcpy_chk.c: Likewise.
8073         * debug/wmemmove_chk.c: Likewise.
8074         * debug/wmempcpy_chk.c: Likewise.
8075         * debug/wmemset_chk.c: Likewise.
8076         * dirent/scandirat.c (SCANDIRAT): Likewise.
8077         * dlfcn/dladdr1.c (dladdr1): Likewise.
8078         * dlfcn/dladdr.c (dladdr): Likewise.
8079         * dlfcn/dlclose.c (dlclose_doit): Likewise.
8080         * dlfcn/dlerror.c (__dlerror): Likewise.
8081         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8082         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8083         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8084         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
8085         * dlfcn/dlsym.c (dlsym_doit): Likewise.
8086         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
8087         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
8088         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
8089         Likewise.
8090         * elf/dl-conflict.c: Likewise.
8091         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
8092         * elf/dl-dst.h: Likewise.
8093         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
8094         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
8095         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
8096         * elf/dl-init.c (call_init, _dl_init): Likewise.
8097         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
8098         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
8099         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
8100         Likewise.
8101         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8102         Likewise.
8103         * elf/dl-minimal.c (__libc_memalign): Likewise.
8104         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8105         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8106         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8107         * elf/dl-sym.c (do_sym): Likewise.
8108         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8109         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8110         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8111         * elf/dl-writev.h (_dl_writev): Likewise.
8112         * elf/ldconfig.c (search_dir): Likewise.
8113         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8114         (dl_main): Likewise.
8115         * elf/setup-vdso.h (setup_vdso): Likewise.
8116         * grp/compat-initgroups.c (compat_call): Likewise.
8117         * grp/fgetgrent.c (fgetgrent): Likewise.
8118         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8119         * grp/putgrent.c (putgrent): Likewise.
8120         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8121         Likewise.
8122         * hurd/hurdinit.c: Likewise.
8123         * iconvdata/8bit-gap.c (struct): Likewise.
8124         * iconvdata/ansi_x3.110.c : Likewise.
8125         * iconvdata/big5.c : Likewise.
8126         * iconvdata/big5hkscs.c : Likewise.
8127         * iconvdata/cp1255.c: Likewise.
8128         * iconvdata/cp1258.c : Likewise.
8129         * iconvdata/cp932.c : Likewise.
8130         * iconvdata/euc-cn.c: Likewise.
8131         * iconvdata/euc-jisx0213.c : Likewise.
8132         * iconvdata/euc-jp.c: Likewise.
8133         * iconvdata/euc-jp-ms.c : Likewise.
8134         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8135         * iconvdata/gb18030.c : Likewise.
8136         * iconvdata/gbbig5.c (const): Likewise.
8137         * iconvdata/gbgbk.c: Likewise.
8138         * iconvdata/gbk.c : Likewise.
8139         * iconvdata/ibm1364.c : Likewise.
8140         * iconvdata/ibm930.c : Likewise.
8141         * iconvdata/ibm932.c: Likewise.
8142         * iconvdata/ibm933.c : Likewise.
8143         * iconvdata/ibm935.c : Likewise.
8144         * iconvdata/ibm937.c : Likewise.
8145         * iconvdata/ibm939.c : Likewise.
8146         * iconvdata/ibm943.c: Likewise.
8147         * iconvdata/iso_11548-1.c: Likewise.
8148         * iconvdata/iso-2022-cn.c : Likewise.
8149         * iconvdata/iso-2022-cn-ext.c : Likewise.
8150         * iconvdata/iso-2022-jp-3.c: Likewise.
8151         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8152         * iconvdata/iso-2022-kr.c : Likewise.
8153         * iconvdata/iso646.c (gconv_end): Likewise.
8154         * iconvdata/iso_6937-2.c : Likewise.
8155         * iconvdata/iso_6937.c : Likewise.
8156         * iconvdata/iso8859-1.c: Likewise.
8157         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8158         * iconvdata/shift_jisx0213.c : Likewise.
8159         * iconvdata/sjis.c : Likewise.
8160         * iconvdata/t.61.c : Likewise.
8161         * iconvdata/tcvn5712-1.c : Likewise.
8162         * iconvdata/tscii.c: Likewise.
8163         * iconvdata/uhc.c : Likewise.
8164         * iconvdata/unicode.c (gconv_end): Likewise.
8165         * iconvdata/utf-16.c (gconv_end): Likewise.
8166         * iconvdata/utf-32.c (gconv_end): Likewise.
8167         * iconvdata/utf-7.c (base64): Likewise.
8168         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8169         * iconv/gconv_close.c (__gconv_close): Likewise.
8170         * iconv/gconv_open.c (__gconv_open): Likewise.
8171         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8172         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8173         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8174         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8175         (ucs4le_internal_loop_single): Likewise.
8176         * iconv/iconv.c (iconv): Likewise.
8177         * iconv/iconv_close.c: Likewise.
8178         * iconv/loop.c (SINGLE): Likewise.
8179         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8180         * include/atomic.h: Likewise.
8181         * inet/inet6_option.c (option_alloc): Likewise.
8182         * intl/bindtextdom.c (set_binding_values): Likewise.
8183         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8184         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8185         * intl/localealias.c (read_alias_file): Likewise.
8186         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8187         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8188         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8189         * libio/fmemopen.c (fmemopen): Likewise.
8190         * libio/iofgets.c (_IO_fgets): Likewise.
8191         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8192         * libio/iofgetws.c (fgetws): Likewise.
8193         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8194         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8195         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8196         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8197         * locale/findlocale.c (_nl_find_locale): Likewise.
8198         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8199         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8200         Likewise.
8201         * locale/setlocale.c (setlocale): Likewise.
8202         * login/programs/pt_chown.c (main): Likewise.
8203         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8204         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8205         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8206         (mmap, mmap64, mremap, munmap): Likewise.
8207         * math/e_exp2l.c: Likewise.
8208         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8209         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8210         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8211         * math/s_catan.c (__catan): Likewise.
8212         * math/s_catanf.c (__catanf): Likewise.
8213         * math/s_catanh.c (__catanh): Likewise.
8214         * math/s_catanhf.c (__catanhf): Likewise.
8215         * math/s_catanhl.c (__catanhl): Likewise.
8216         * math/s_catanl.c (__catanl): Likewise.
8217         * math/s_ccosh.c (__ccosh): Likewise.
8218         * math/s_ccoshf.c (__ccoshf): Likewise.
8219         * math/s_ccoshl.c (__ccoshl): Likewise.
8220         * math/s_cexp.c (__cexp): Likewise.
8221         * math/s_cexpf.c (__cexpf): Likewise.
8222         * math/s_cexpl.c (__cexpl): Likewise.
8223         * math/s_clog10.c (__clog10): Likewise.
8224         * math/s_clog10f.c (__clog10f): Likewise.
8225         * math/s_clog10l.c (__clog10l): Likewise.
8226         * math/s_clog.c (__clog): Likewise.
8227         * math/s_clogf.c (__clogf): Likewise.
8228         * math/s_clogl.c (__clogl): Likewise.
8229         * math/s_csin.c (__csin): Likewise.
8230         * math/s_csinf.c (__csinf): Likewise.
8231         * math/s_csinh.c (__csinh): Likewise.
8232         * math/s_csinhf.c (__csinhf): Likewise.
8233         * math/s_csinhl.c (__csinhl): Likewise.
8234         * math/s_csinl.c (__csinl): Likewise.
8235         * math/s_csqrt.c (__csqrt): Likewise.
8236         * math/s_csqrtf.c (__csqrtf): Likewise.
8237         * math/s_csqrtl.c (__csqrtl): Likewise.
8238         * math/s_ctan.c (__ctan): Likewise.
8239         * math/s_ctanf.c (__ctanf): Likewise.
8240         * math/s_ctanh.c (__ctanh): Likewise.
8241         * math/s_ctanhf.c (__ctanhf): Likewise.
8242         * math/s_ctanhl.c (__ctanhl): Likewise.
8243         * math/s_ctanl.c (__ctanl): Likewise.
8244         * math/w_pow.c: Likewise.
8245         * math/w_powf.c: Likewise.
8246         * math/w_powl.c: Likewise.
8247         * math/w_scalb.c (sysv_scalb): Likewise.
8248         * math/w_scalbf.c (sysv_scalbf): Likewise.
8249         * math/w_scalbl.c (sysv_scalbl): Likewise.
8250         * misc/error.c (error_tail): Likewise.
8251         * misc/pselect.c (__pselect): Likewise.
8252         * nis/nis_callback.c (__nis_create_callback): Likewise.
8253         * nis/nis_call.c (__nisfind_server): Likewise.
8254         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8255         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8256         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8257         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8258         * nis/nis_lookup.c (nis_lookup): Likewise.
8259         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8260         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8261         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8262         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8263         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8264         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8265         * nis/nss_compat/compat-initgroups.c (add_group)
8266         (internal_getgrent_r): Likewise.
8267         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8268         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8269         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8270         (internal_getspnam_r): Likewise.
8271         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8272         (_nss_nis_getaliasbyname_r): Likewise.
8273         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8274         (_nss_nis_getntohost_r): Likewise.
8275         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8276         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8277         (_nss_nis_getgrgid_r): Likewise.
8278         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8279         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8280         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8281         (_nss_nis_gethostbyname4_r): Likewise.
8282         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8283         (initgroups_netid): Likewise.
8284         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8285         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8286         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8287         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8288         (_nss_nis_getprotobynumber_r): Likewise.
8289         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8290         (_nss_nis_getsecretkey): Likewise.
8291         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8292         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8293         (_nss_nis_getpwuid_r): Likewise.
8294         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8295         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8296         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8297         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8298         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8299         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8300         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8301         Likewise.
8302         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8303         (_nss_nisplus_getntohost_r): Likewise.
8304         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8305         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8306         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8307         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8308         Likewise.
8309         * nis/nss_nisplus/nisplus-initgroups.c
8310         (_nss_nisplus_initgroups_dyn): Likewise.
8311         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8312         (_nss_nisplus_getnetbyaddr_r): Likewise.
8313         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8314         (_nss_nisplus_getprotobynumber_r): Likewise.
8315         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8316         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8317         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8318         Likewise.
8319         * nis/nss_nisplus/nisplus-service.c
8320         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8321         (_nss_nisplus_getservbyport_r): Likewise.
8322         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8323         (_nss_nisplus_getspnam_r): Likewise.
8324         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8325         Likewise.
8326         * nscd/aicache.c (addhstaiX): Likewise.
8327         * nscd/cache.c (cache_search, prune_cache): Likewise.
8328         * nscd/connections.c (register_traced_file, send_ro_fd)
8329         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8330         (main_loop_epoll): Likewise.
8331         * nscd/grpcache.c (addgrbyX): Likewise.
8332         * nscd/hstcache.c (addhstbyX): Likewise.
8333         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8334         * nscd/mem.c (gc, mempool_alloc): Likewise.
8335         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8336         (addinnetgrX): Likewise.
8337         * nscd/nscd-client.h (__nscd_acquire_maplock)
8338         (__nscd_drop_map_ref): Likewise.
8339         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8340         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8341         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8342         Likewise.
8343         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8344         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8345         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8346         (__nscd_get_map_ref): Likewise.
8347         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8348         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8349         Likewise.
8350         * nscd/pwdcache.c (addpwbyX): Likewise.
8351         * nscd/selinux.c (preserve_capabilities): Likewise.
8352         * nscd/servicescache.c (addservbyX): Likewise.
8353         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8354         * posix/fnmatch.c (fnmatch): Likewise.
8355         * posix/getopt.c (_getopt_internal_r): Likewise.
8356         * posix/glob.c (glob, glob_in_dir): Likewise.
8357         * posix/wordexp.c (exec_comm_child): Likewise.
8358         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8359         (getanswer_r, gaih_getanswer_slice): Likewise.
8360         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8361         * resolv/res_init.c: Likewise.
8362         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8363         * resolv/res_query.c (__libc_res_nquery): Likewise.
8364         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8365         Likewise.
8366         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8367         * stdio-common/perror.c (perror): Likewise.
8368         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8369         * stdio-common/tmpnam.c (tmpnam): Likewise.
8370         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8371         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8372         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8373         Likewise.
8374         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8375         * stdlib/putenv.c (putenv): Likewise.
8376         * stdlib/setenv.c (__add_to_environ): Likewise.
8377         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8378         * stdlib/strtol_l.c (INTERNAL): Likewise.
8379         * string/memmem.c (memmem): Likewise.
8380         * string/strerror.c (strerror): Likewise.
8381         * string/strnlen.c (__strnlen): Likewise.
8382         * string/test-memmem.c (simple_memmem): Likewise.
8383         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8384         * sunrpc/pm_getport.c (__get_socket): Likewise.
8385         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8386         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8387         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8388         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8389         Likewise.
8390         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8391         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8392         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8393         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8394         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8395         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8396         Likewise.
8397         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8398         Likewise.
8399         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8400         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8401         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8402         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8403         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8404         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8405         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8406         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8407         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8408         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8409         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8410         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8411         Likewise.
8412         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8413         Likewise.
8414         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8415         Likewise.
8416         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8417         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8418         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8419         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8420         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8421         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8422         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8423         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8424         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8425         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8426         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8427         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8428         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8429         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8430         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8431         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8432         Likewise.
8433         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8434         Likewise.
8435         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8436         Likewise.
8437         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8438         Likewise.
8439         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8440         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8441         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8442         Likewise.
8443         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
8444         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
8445         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8446         * sysdeps/posix/sleep.c: Likewise.
8447         * sysdeps/posix/tempname.c: Likewise.
8448         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
8449         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8450         Likewise.
8451         * sysdeps/powerpc/powerpc32/dl-machine.h
8452         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
8453         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8454         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8455         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
8456         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
8457         Likewise.
8458         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
8459         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
8460         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8461         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
8462         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8463         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
8464         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
8465         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
8466         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8467         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
8468         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
8469         (elf_machine_lazy_rel): Likewise.
8470         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8471         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
8472         (elf_machine_lazy_rel): Likewise.
8473         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
8474         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
8475         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
8476         * sysdeps/unix/grantpt.c (grantpt): Likewise.
8477         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
8478         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
8479         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8480         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8481         Likewise.
8482         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8483         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8484         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8485         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8486         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8487         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8488         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8489         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8490         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8491         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8492         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8493         Likewise.
8494         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8495         (__posix_fallocate64_l64): Likewise.
8496         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8497         (posix_fallocate): Likewise.
8498         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8499         Likewise.
8500         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8501         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8502         (getifaddrs_internal): Likewise.
8503         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8504         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8505         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8506         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8507         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8508         (__posix_fallocate64_l64): Likewise.
8509         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8510         Likewise.
8511         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8512         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8513         (__get_clockfreq): Likewise.
8514         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8515         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8516         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8517         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8518         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8519         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8520         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8521         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8522         Likewise.
8523         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8524         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8525         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8526         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8527         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8528         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8529         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8530         Likewise.
8531         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8532         (posix_fallocate): Likewise.
8533         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8534         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8535         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8536         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8537         (elf_machine_rela, elf_machine_rela_relative)
8538         (elf_machine_lazy_rel): Likewise.
8539         * time/asctime.c (asctime_internal): Likewise.
8540         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8541         * time/tzset.c (__tzset_parse_tz): Likewise.
8542         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8543         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8544         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8545         * wcsmbs/wcsmbsload.h: Likewise.
8546
8547         [BZ #15894]
8548         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8549
8550         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8551         (arena_get2): Remove THREAD_STATS conditionals.
8552         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8553         (__malloc_stats, int): Likewise.
8554
8555 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8556
8557         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8558         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8559
8560         * manual/setjmp.texi: Fix typos/grammar errors.
8561
8562         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8563         Only return early when n is <= 0.  Delete unused return statement.
8564
8565         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8566         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8567         * debug/tst-longjmp_chk3.c: New file.
8568
8569         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8570         (test_main): Replace code with set_fortify_handler call.
8571         * debug/test-strcpy_chk.c: Likewise.
8572         * debug/tst-chk1.c: Likewise.
8573         * debug/tst-longjmp_chk.c: Likewise.
8574         * test-skeleton.c: Include fcntl.h & paths.h
8575         (set_fortify_handler): Define.
8576
8577         * debug/tst-longjmp_chk.c: Add header comment and include
8578         ../test-skeleton.c.
8579         (do_test): Mark static.
8580         (TEST_FUNCTION): Define.
8581
8582         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8583         (IP_PMTUDISC_INTERFACE): Likewise.
8584         (IP_MULTICAST_IF): Likewise.
8585         (IP_MULTICAST_TTL): Likewise.
8586         (IP_MULTICAST_LOOP): Likewise.
8587         (IP_ADD_MEMBERSHIP): Likewise.
8588         (IP_DROP_MEMBERSHIP): Likewise.
8589         (IP_UNBLOCK_SOURCE): Likewise.
8590         (IP_BLOCK_SOURCE): Likewise.
8591         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8592         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8593         (IP_MSFILTER): Likewise.
8594         (MCAST_JOIN_GROUP): Likewise.
8595         (MCAST_BLOCK_SOURCE): Likewise.
8596         (MCAST_UNBLOCK_SOURCE): Likewise.
8597         (MCAST_LEAVE_GROUP): Likewise.
8598         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8599         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8600         (MCAST_MSFILTER): Likewise.
8601         (IP_MULTICAST_ALL): Likewise.
8602         (IP_UNICAST_IF): Likewise.
8603
8604         * timezone/Makefile: Delete $(have-ksh) check.
8605         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8606         * timezone/tzselect.ksh: Add +x mode bits.
8607
8608         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8609         (ANON_INODE_FS_MAGIC): Likewise.
8610         (BDEVFS_MAGIC): Likewise.
8611         (BINFMTFS_MAGIC): Likewise.
8612         (BTRFS_TEST_MAGIC): Likewise.
8613         (CRAMFS_MAGIC_WEND): Likewise.
8614         (DEBUGFS_MAGIC): Likewise.
8615         (ECRYPTFS_SUPER_MAGIC): Likewise.
8616         (EXT3_SUPER_MAGIC): Likewise.
8617         (EXT4_SUPER_MAGIC): Likewise.
8618         (FUTEXFS_SUPER_MAGIC): Likewise.
8619         (HOSTFS_SUPER_MAGIC): Likewise.
8620         (HUGETLBFS_MAGIC): Likewise.
8621         (MINIX3_SUPER_MAGIC): Likewise.
8622         (MTD_INODE_FS_MAGIC): Likewise.
8623         (NILFS_SUPER_MAGIC): Likewise.
8624         (OPENPROM_SUPER_MAGIC): Likewise.
8625         (PIPEFS_MAGIC): Likewise.
8626         (PSTOREFS_MAGIC): Likewise.
8627         (QNX6_SUPER_MAGIC): Likewise.
8628         (RAMFS_MAGIC): Likewise.
8629         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8630         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8631         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8632         (SECURITYFS_MAGIC): Likewise.
8633         (SELINUX_MAGIC): Likewise.
8634         (SMACK_MAGIC): Likewise.
8635         (SOCKFS_MAGIC): Likewise.
8636         (SQUASHFS_MAGIC): Likewise.
8637         (STACK_END_MAGIC): Likewise.
8638         (TMPFS_MAGIC): Likewise.
8639         (USBDEVICE_SUPER_MAGIC): Likewise.
8640         (V9FS_MAGIC): Likewise.
8641         (XENFS_SUPER_MAGIC): Likewise.
8642         (CRAMFS_MAGIC): Fix typo in comment.
8643         (EXT2_SUPER_MAGIC): Update comment.
8644         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8645
8646 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8647
8648         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8649         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8650         * sysdeps/unix/sysv/linux/arm: Move directory from
8651         ports/sysdeps/unix/sysv/linux/arm.
8652         * README: Update listing for arm-*-linux-gnueabi.
8653
8654         * README: Remove mention of am33.
8655
8656 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8657
8658         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8659         than the comma operator, to avoid "rhs of comma has no effect"
8660         compiler warnings.
8661         (__sigfillset, __sigandset, __sigorset): Likewise.
8662         * include/signal.h (__sigemptyset): Likewise.
8663         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8664
8665 2014-02-07  Allan McRae  <allan@archlinux.org>
8666
8667         * version.h (RELEASE): Set to "development".
8668         (VERSION): Set to "2.19.90"
8669         * NEWS: Add 2.20 section.
8670
8671 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8672
8673         [BZ #16529]
8674         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8675
8676 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8677
8678         * manual/contrib.texi: Update entry for Carlos O'Donell,
8679         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8680
8681 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8682
8683         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8684
8685         * sysdeps/unix/sysv/linux/kernel-features.h
8686         [__LINUX_KERNEL_VERSION >= 0x020621]
8687         (__ASSUME_PROC_PID_TASK_COMM): Define.
8688
8689 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8690
8691         [BZ #16398]
8692         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8693         conversion when destination buffer does not have enough space.
8694         * libio/tst-ftell-partial-wide.c: New test case.
8695         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8696
8697         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8698         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8699         Leonard and Allan McRae.
8700
8701 2014-02-04  David S. Miller  <davem@davemloft.net>
8702
8703         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8704         32-bit.
8705
8706 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8707
8708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8709         New file
8710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8711         New file
8712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8713         New file.
8714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8715         New file.
8716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8717         New file.
8718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8719         New file.
8720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8721         New file.
8722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8723         New file.
8724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8725         New file.
8726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8727         New file.
8728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8729         New file.
8730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8731         New file.
8732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8733         New file.
8734
8735 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8736
8737         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8738         * shlib-versions: Likewise.
8739
8740 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8741             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8742
8743         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8744         (abilist-pattern): New variable, set to %-le.abilist.
8745
8746         * Makerules (abilist-pattern): New variable.
8747         (vpath): Use $(abilist-pattern) in place of %.abilist.
8748         (check-abi-% pattern rule): Likewise.
8749         (check-abi, update-abi): Likewise.
8750
8751 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8752
8753         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8754
8755 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8756
8757         * manual/startup.texi: Add next, previous, and top entries for
8758         the `Program Arguments' and `Environment Variables' nodes.
8759
8760 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8761
8762         * manual/macros.texi: Add comments before MTASC-safety macros.
8763
8764         * manual/users.texi: Document MTASC-safety properties.
8765
8766         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8767         (pthread_getspecific, pthread_setspecific): Format with
8768         @deftypefun, and add @safety note.
8769         * manual/signal.texi: Move comments that analyze the above
8770         functions to their home place.
8771
8772 2014-02-03  Allan McRae  <allan@archlinux.org>
8773
8774         * po/sl.po: Update Slovenian translation from translation project.
8775
8776 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8777
8778         * manual/time.texi (timegm): Add missing blank after @c.
8779         Reported by Joseph Myers <joseph@codesourcery.com>.
8780
8781 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8782
8783         * manual/check-safety.sh: New.
8784         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8785
8786         * manual/terminal.texi: Document MTASC-safety properties.
8787
8788         * manual/filesys.texi: Document MTASC-safety properties.
8789
8790         * manual/errno.texi: Document MTASC-safety properties.
8791
8792         * manual/intro.texi: Document safety identifiers and
8793         conditionals.
8794
8795         * manual/string.texi (wcstok): Fix prototype.
8796         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8797
8798         * manual/time.texi: Document MTASC-safety properties.
8799
8800         * manual/string.texi: Document MTASC-safety properties.
8801
8802         * manual/threads.texi: Document MTASC-safety properties.
8803
8804         * manual/stdio.texi: Document MTASC-safety properties.
8805
8806         * manual/syslog.texi: Document MTASC-safety properties.
8807
8808         * manual/sysinfo.texi: Document MTASC-safety properties.
8809
8810         * manual/startup.texi: Document MTASC-safety properties.
8811
8812         * manual/socket.texi: Document MTASC-safety properties.
8813
8814         * manual/signal.texi: Document MTASC-safety properties.
8815
8816 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8817
8818         * manual/setjmp.texi: Document MTASC-safety properties.
8819
8820         * manual/search.texi: Document MTASC-safety properties.
8821
8822         * manual/resource.texi: Document MTASC-safety properties.
8823
8824         * manual/process.texi: Document MTASC-safety properties.
8825
8826         * manual/platform.texi: Document MTASC-safety properties.
8827
8828         * manual/pipe.texi: Document MTASC-safety properties.
8829
8830         * manual/pattern.texi: Document MTASC-safety properties.
8831
8832         * manual/message.texi: Document MTASC-safety properties.
8833
8834         [BZ #12751]
8835         * manual/memory.texi: Document MTASC-safety properties.
8836
8837         * manual/math.texi: Document MTASC-safety properties.
8838
8839         * manual/locale.texi: Document MTASC-safety properties.
8840
8841         * manual/llio.texi: Document MTASC-safety properties.
8842
8843         * manual/libdl.texi: New.
8844
8845         * manual/lang.texi: Document MTASC-safety properties.
8846
8847         * manual/job.texi: Document MTASC-safety properties.
8848
8849         * manual/getopt.texi: Document MTASC-safety properties.
8850
8851         * manual/ctype.texi: Document MTASC-safety properties.
8852
8853 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8854
8855         [BZ #16046]
8856         * csu/libc-tls.c (static_map): Remove variable.
8857         (__libc_setup_tls): Use main executable's link map for TLS data.
8858         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8859         casing for LM_ID_BASE and GL(dl_nns).
8860         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8861         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8862         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8863         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8864         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8865         member.
8866         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8867         l_phnum members.
8868
8869 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8870
8871         * manual/debug.texi: Document MTASC-safety properties.
8872
8873 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8874
8875         [BZ #16510]
8876         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8877         of __x86_64__ when disabling x87 inline functions.
8878
8879 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8880
8881         * manual/charset.texi: Document MTASC-safety properties.
8882
8883         * manual/crypt.texi: Document MTASC-safety properties.
8884
8885         * manual/conf.texi: Document MTASC-safety properties.
8886
8887         * manual/arith.texi: Document MTASC-safety properties.
8888
8889         * manual/argp.texi: Document MTASC-safety properties.
8890
8891         * manual/macros.texi: Introduce macros to document multi
8892         thread, asynchronous signal and asynchronous cancellation
8893         safety properties.
8894         * manual/intro.texi: Introduce the properties themselves.
8895
8896 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8897
8898         * sysdeps/sh/sh4/Makefile: New file.
8899
8900 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8901
8902         * math/gen-libm-test.pl ($srcdir): New variable.
8903         ($auto_input): Use it.
8904
8905 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8906
8907         [BZ #16506]
8908         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8909         access beyond array bounds when parsing netgroups file.
8910
8911         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8912         the old buffer before realloc.
8913
8914 2014-01-27  Allan McRae  <allan@archlinux.org>
8915
8916         * po/fr.po: Update French translation from translation project.
8917
8918 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8919
8920         * sysdeps/sh/libm-test-ulps: Regenerate.
8921
8922 2014-01-24  David S. Miller  <davem@davemloft.net>
8923
8924         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8925
8926 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8927
8928         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8929         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8930
8931 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8932
8933         [BZ #16474]
8934         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8935         string pointers after reallocation.
8936
8937 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8938
8939         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8940         __SH4A__ instead of __SH_FPU_ANY__.
8941
8942 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8943
8944         * sysdeps/sh/fpu_control.h: New file.
8945         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8946         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8947         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8948         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8949         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8950         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8951         * sysdeps/sh/sys/ucontext.h: Remove.
8952         * sysdeps/sh/sys: Remove directory.
8953
8954 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8955
8956         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8957         s390/sys/ucontext.h.
8958         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8959         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8960
8961 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8962
8963         [BZ #15605]
8964         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8965
8966 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8967
8968         [BZ#16431]
8969         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8970         Adjust the vDSO correctly for internal calls.
8971         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8972
8973 2014-01-20  Allan McRae  <allan@archlinux.org>
8974
8975         * po/ca.po: Update Catalan translation from translation project.
8976
8977 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8978
8979         * sysdeps/s390/sotruss-lib.c: New file.
8980
8981 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8982
8983         [BZ#16430]
8984         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8985         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8986         local calls issues by not having a PLT stub required for IFUNC calls.
8987         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8988
8989 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8990
8991         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8992         * math/test-fpucw-static.c: Likewise.
8993
8994 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8995
8996         [BZ #16453]
8997         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8998
8999 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9000
9001         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
9002         implementation for powerpc.
9003
9004 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
9005
9006         [BZ #14782]
9007         * sysdeps/posix/system.c (__libc_system): Do not enable
9008         asynchronous cancellation.
9009
9010 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9011
9012         [BZ #16427]
9013         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
9014         handling only for numbers special also in the IEEE case.
9015
9016 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9017
9018         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9019
9020 2014-01-11  Allan McRae  <allan@archlinux.org>
9021
9022         * po/bg.po: Update Bulgarian translation from translation project.
9023
9024         * po/de.po: Update German translation from translation project.
9025
9026 2014-01-10  Roland McGrath  <roland@hack.frob.com>
9027
9028         * sysdeps/generic/gcc-compat.h: New file.
9029
9030 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9031
9032         * benchtests/asin-inputs: Correct slow inputs.
9033         * benchtests/acos-inputs: Likewise.
9034
9035 2014-01-10  Allan McRae  <allan@archlinux.org>
9036
9037         * po:sv.po: Update Swedish translation from translation project.
9038
9039         * po/vi.po: Update Vietnamese translation from translation project.
9040
9041         * po/eo.po: Update Esperanto translation from translation project.
9042
9043         * po/cs.po: Update Czech translation from translation project.
9044
9045         * po/nl.po: Update Dutch translation from translation project.
9046
9047         * po/pl.po: Update Polish translation from translation project.
9048
9049         * po/ru.po: Update Russian translation from translation project.
9050
9051         * po/uk.po: Update Ukrainian translation from translation project.
9052
9053 2014-01-08  Brooks Moses  <bmoses@google.com>
9054
9055         * elf/dl-load.c: Fix comment typo.
9056
9057 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
9058
9059         * po/header.pot: Rename to...
9060         * po/pot.header: ... this.
9061         * po/Makefile: Use pot.header.
9062
9063 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
9064             Maxim Kuvyrkov  <maxim@kugelworks.com>
9065
9066         [BZ #16394]
9067         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
9068         SRC and DEST against LEN.
9069
9070 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9071
9072         [BZ #16414]
9073         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
9074         implementation.
9075         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
9076
9077 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9078
9079         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9080
9081 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
9082
9083         [BZ #16408]
9084         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
9085         for large positive arguments.
9086
9087 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
9088
9089         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9090
9091         * math/auto-libm-test-in: Mark various tests with
9092         xfail-rounding:ldbl-128ibm.
9093         * math/auto-libm-test-out: Regenerated.
9094
9095         [BZ #16407]
9096         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
9097         Increase overflow threshold.
9098
9099 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
9100
9101         [BZ #14286]
9102         * stdio-common/vfprintf.c: Check for integer overflow.
9103
9104 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9105
9106         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9107         the first argument and return value of __tls_get_addr_internal.
9108
9109 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9110
9111         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9112         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9113
9114 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9115
9116         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9117         * sysdeps/s390/rtld-global-offsets.sym: New file.
9118         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9119         GLIBC_2.19 symbol.
9120         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9121         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9122         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9123         ... this.
9124         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9125         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9126         ... this.
9127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9128         Regenerate.
9129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9130         Regenerate.
9131         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9132         halfs of GPRs for high_gprs contexts.
9133         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9134         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9135         field.
9136         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9137         uc_flags field.
9138         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9139         64 bit versions:
9140         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9141         for high GPRs (uc_high_gprs) and for future extensions
9142         (__reserved).
9143         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9144         for future extensions (__reserved).
9145         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9146         64 bit versions:
9147         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9148         SC_HIGHGPRS offset definition.
9149         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9150         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9151
9152         * Versions.def: Add GLIBC_2.19 for libpthread.
9153         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9154         siglongjmp for libpthread with GLIBC_2.19 symver.
9155         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9156         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9157         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9158         * sysdeps/s390/__longjmp.c: New file.
9159         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9160         * sysdeps/s390/longjmp.c: New file.
9161         * sysdeps/s390/setjmp.S: New file.
9162         * sysdeps/s390/sigjmp.S: New file.
9163         * sysdeps/s390/v1-longjmp.c: New file.
9164         * sysdeps/s390/v1-setjmp.h: New file.
9165         * sysdeps/s390/v1-sigjmp.c: New file.
9166         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9167         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9168         GLIBC_2.19 version.
9169         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9170         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9171         versioned symbols for ____longjmp_chk.
9172         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9173         Likewise.
9174         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9175         Regenerate.
9176         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9177         Regenerate.
9178         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9179         Regenerate.
9180         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9181         Regenerate.
9182         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9183         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9184         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9185         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9186         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9187         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9188         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9189         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9190         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9191         * sysdeps/s390/rtld-__longjmp.c: New file.
9192         * sysdeps/s390/rtld-setjmp.S: New file.
9193
9194 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9195
9196         [BZ #16400]
9197         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9198         Return -__logl (x) for small positive arguments without evaluating
9199         a polynomial.
9200
9201 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9202
9203         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9204         Rename to ...
9205         (__ptrace_peeksiginfo_args): ... this.
9206         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9207         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9208         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9209
9210 2014-01-06  Allan McRae  <allan@archlinux.org>
9211
9212         * inet/netinet/in.h: Fix typo in comment.
9213
9214 2014-01-05  Andreas Jaeger  <aj@suse.de>
9215
9216         * sysdeps/i386/fpu/libm-test-ulps: Update.
9217
9218 2014-01-05  Allan McRae  <allan@archlinux.org>
9219
9220         * po/libc.pot: Regenerated.
9221
9222         * malloc/memusagestat.c: Fix gettext call formatting.
9223
9224 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9225
9226         * nscd/nscd.c: Improve usage() output.
9227
9228 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9229
9230         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9231         * sysdeps/unix/sysv/linux/configure: Regenerated.
9232         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9233         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9234
9235 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9236
9237         [BZ #16390]
9238         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9239         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9240
9241 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9242
9243         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9244         extra tokens at end of #undef directive.
9245         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9246         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9247         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9248
9249 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9250
9251         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9252
9253         * math/auto-libm-test-in: Mark various tests with
9254         xfail-rounding:ldbl-128ibm.
9255         * math/auto-libm-test-out: Regenerated.
9256
9257 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9258
9259         [BZ #16386]
9260         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9261         numbers with subnormal high part when calculating exponent.
9262
9263         [BZ #16385]
9264         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9265         fabs.
9266
9267         [BZ #16384]
9268         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9269         M_LN2l.
9270         (__ieee754_acoshl): Use __log1pl not __log1p.
9271
9272 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9273
9274         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9275         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9276         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9277         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9278         (reused_arena, arena_get2): Convert to GNU style.
9279         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9280         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9281         (memalign_check, __malloc_set_state): Likewise.
9282         * malloc/mallocbug.c (main): Likewise.
9283         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9284         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9285         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9286         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9287         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9288         (__posix_memalign, malloc_info): Likewise.
9289         * malloc/malloc.h: Likewise.
9290         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9291         (mallochook, memalignhook, reallochook, mabort): Likewise.
9292         * malloc/mcheck.h: Likewise.
9293         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9294         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9295         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9296         * malloc/morecore.c (__default_morecore): Likewise.
9297         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9298         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9299         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9300         (print_and_abort): Likewise.
9301         * malloc/obstack.h: Likewise.
9302         * malloc/set-freeres.c (__libc_freeres): Likewise.
9303         * malloc/tst-mallocstate.c (main): Likewise.
9304         * malloc/tst-mtrace.c (main): Likewise.
9305         * malloc/tst-realloc.c (do_test): Likewise.
9306
9307 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9308
9309         [BZ #16366]
9310         * nscd/netgroupcache.c (do_notfound): New function.
9311         (addgetnetgrentX): Use it.
9312
9313         [BZ # 16365]
9314         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9315         NSS_STATUS_NOTFOUND.
9316
9317 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9318
9319         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9321
9322 2014-01-01  Allan McRae  <allan@archlinux.org>
9323
9324         * scripts/update-copyrights: Update configure input file suffix.
9325
9326         * NEWS: Update copyright year.
9327         * catgets/gencat.c: Likewise.
9328         * csu/version.c: Likewise.
9329         * debug/catchsegv.sh: Likewise.
9330         * debug/pcprofiledump.c: Likewise.
9331         * debug/xtrace.sh: Likewise.
9332         * elf/ldconfig.c: Likewise.
9333         * elf/ldd.bash.in: Likewise.
9334         * elf/pldd.c: Likewise.
9335         * elf/sotruss.ksh: Likewise.
9336         * elf/sprof.c: Likewise.
9337         * iconv/iconv_prog.c: Likewise.
9338         * iconv/iconvconfig.c: Likewise.
9339         * locale/programs/locale.c: Likewise.
9340         * locale/programs/localedef.c: Likewise.
9341         * login/programs/pt_chown.c: Likewise.
9342         * malloc/memusage.sh: Likewise.
9343         * malloc/memusagestat.c: Likewise.
9344         * malloc/mtrace.pl: Likewise.
9345         * manual/libc.texinfo: Likewise.
9346         * nscd/nscd.c: Likewise.
9347         * nss/getent.c: Likewise.
9348         * nss/makedb.c: Likewise.
9349         * posix/getconf.c: Likewise.
9350         * scripts/test-installation.pl: Likewise.
9351
9352         * All files with FSF copyright notices: Update copyright dates
9353         using scripts/update-copyrights.
9354         * intl/plural.c: Regenerated.
9355         * locale/programs/charmap-kw.h: Likewise.
9356         * locale/programs/locfile-kw.h: Likewise.
9357
9358 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9359
9360         * sysdeps/unix/sysv/linux/configure: Regenerated.
9361         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9362         the linux/fanotify.h header.
9363         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9364         HAVE_LINUX_FANOTIFY_H is defined.
9365
9366 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9367
9368         * benchtests/cos-inputs: New inputs.
9369         * benchtests/sin-inputs: Likewise.
9370
9371         * benchtests/atan-inputs: New inputs. Fix name of multiple
9372         precision fallback inputs.
9373
9374         * benchtests/atanh-inputs: New inputs.
9375         * benchtests/tanh-inputs: Likewise.
9376
9377         * benchtests/acosh-inputs: New inputs.
9378         * benchtests/asinh-inputs: Likewise.
9379
9380         * benchtests/cosh-inputs: New inputs.
9381         * benchtests/sinh-inputs: Likewise.
9382
9383         * benchtests/acos-inputs: Add more inputs.
9384         * benchtests/asin-inputs: Likewise.
9385
9386 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9387
9388         [BZ #16375]
9389         * manual/arith.texi: Fix spelling.
9390         * manual/charset.texi: Likewise.
9391         * manual/errno.texi: Likewise.
9392         * manual/filesys.texi: Likewise.
9393         * manual/lang.texi: Likewise.
9394         * manual/llio.texi: Likewise.
9395         * manual/locale.texi: Likewise.
9396         * manual/message.texi: Likewise.
9397         * manual/resource.texi: Likewise.
9398         * manual/search.texi: Likewise.
9399         * manual/setjmp.texi: Likewise.
9400         * manual/stdio.texi: Likewise.
9401         * manual/string.texi: Likewise.
9402         * manual/sysinfo.texi: Likewise.
9403         * manual/time.texi: Likewise.
9404
9405 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9406
9407         * po/sl.po: New file.
9408
9409 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9410
9411         * .gitignore: Add core/.gdbinit/.gdb_history.
9412
9413 2013-12-27  Allan McRae  <allan@archlinux.org>
9414
9415         [BZ #16369]
9416         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9417         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9418
9419 2013-12-24  Brooks Moses  <bmoses@google.com>
9420
9421         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9422         all compilers that claim C++98 compliance, not just GCC.
9423         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9424         Likewise.
9425
9426 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9427
9428         * NEWS: Restore accidentally deleted bug-fix entries.
9429
9430 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9431             Ondřej Bílka  <neleai@seznam.cz>
9432
9433         [BZ #15073]
9434         * malloc/malloc.c (_int_free): Perform sanity check only if we
9435         have_lock.
9436
9437 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9438
9439         [BZ #12986]
9440         * manual/stdio.texi (String Input Conversions): Clarify that character
9441         classes are not supported.
9442
9443 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9444
9445         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9446
9447 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
9448
9449         [BZ #16337]
9450         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9451         Calculate results for small negative arguments directly rather
9452         than using reflection formula with special underflow handling.
9453
9454         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
9455         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
9456         sysdeps/unix/bsd/bsd4.4/syscalls.list.
9457         (fchflags): Likewise.
9458         (revoke): Likewise.
9459         (setlogin): Likewise.
9460         (sigaltstack): Likewise.
9461         (wait4): Likewise.
9462         (sigblock): Remove.
9463         (sigsetmask): Likewise.
9464         (wait3): Likewise.
9465         (waitpid): Likewise.
9466         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
9467         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
9468         file.
9469         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
9470         * sysdeps/unix/bsd/Makefile: ... here.
9471         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
9472         * sysdeps/unix/bsd/Versions: ... here.
9473         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
9474         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
9475         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
9476         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
9477         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
9478         * sysdeps/unix/bsd/sigblock.c: ... here.
9479         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
9480         * sysdeps/unix/bsd/sigsetmask.c: ... here.
9481         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
9482         * sysdeps/unix/bsd/sigvec.c: ... here.
9483         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
9484         * sysdeps/unix/bsd/tcdrain.c: ... here.
9485         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9486         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9487         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9488         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9489         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9490         * sysdeps/unix/bsd/wait.c: ... here.
9491         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9492         * sysdeps/unix/bsd/wait3.c: ... here.
9493         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9494         * sysdeps/unix/bsd/waitpid.c: ... here.
9495
9496 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9497
9498         [BZ #16356]
9499         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9500         round-to-nearest for [!USE_AS_EXPM1L].
9501         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9502         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9503         more tests of exp and exp10.  Expect some exp10 tests to miss
9504         exceptions or fail in directed rounding modes.
9505         * math/auto-libm-test-out: Regenerated.
9506         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9507         (exp10_test_tonearest): New function.
9508         (exp10_towardzero_test_data): New array.
9509         (exp10_test_towardzero): New function.
9510         (exp10_downward_test_data): New array.
9511         (exp10_test_downward): New function.
9512         (exp10_upward_test_data): New array.
9513         (exp10_test_upward): New function.
9514         (main): Call the new functions.
9515         * sysdeps/i386/fpu/libm-test-ulps: Update.
9516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9517
9518 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9519
9520         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9521         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9522         * math/auto-libm-test-out: Regenerated.
9523         * math/libm-test.inc (acosh_test_data): Add more tests.
9524         (atanh_test_data): Likewise.
9525         (ceil_test_data): Likewise.
9526         (copysign_test_data): Likewise.
9527         * sysdeps/i386/fpu/libm-test-ulps: Update.
9528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9529
9530         * timezone/checktab.awk: Update from tzcode 2013i.
9531         * timezone/private.h: Likewise.
9532         * timezone/scheck.c: Likewise.
9533         * timezone/tzfile.h: Likewise.
9534         * timezone/tzselect.ksh: Likewise.
9535         * timezone/zdump.c: Likewise.
9536         * timezone/zic.c: Likewise.
9537
9538         * math/auto-libm-test-in: Add tests of cpow.
9539         * math/auto-libm-test-out: Regenerated.
9540         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9541         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9542         mpc_cc_c.
9543         (func_calc_desc): Add mpc_cc_c union field.
9544         (test_functions): Add cpow.
9545         (special_fill_2pi): New function.
9546         (special_real_inputs): Add 2pi.
9547         (calc_generic_results): Handle mpc_cc_c.
9548         * sysdeps/i386/fpu/libm-test-ulps: Update.
9549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9550
9551         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9552         csqrt, ctan and ctanh.
9553         * math/auto-libm-test-out: Regenerated.
9554         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9555         (TEST_COND_x86): Likewise.
9556         (ccos_test_data): Use AUTO_TESTS_c_c.
9557         (ccosh_test_data): Likewise.
9558         (cexp_test_data): Likewise.
9559         (clog_test_data): Likewise.
9560         (csqrt_test_data): Likewise.
9561         (ctan_test_data): Likewise.
9562         (ctan_tonearest_test_data): Likewise.
9563         (ctan_towardzero_test_data): Likewise.
9564         (ctan_downward_test_data): Likewise.
9565         (ctan_upward_test_data): Likewise.
9566         (ctanh_test_data): Likewise.
9567         (ctanh_tonearest_test_data): Likewise.
9568         (ctanh_towardzero_test_data): Likewise.
9569         (ctanh_downward_test_data): Likewise.
9570         (ctanh_upward_test_data): Likewise.
9571         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9572         mpc_c_c.
9573         (func_calc_desc): Add mpc_c_c union field.
9574         (FUNC_mpc_c_c): New macro.
9575         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9576         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9577         ctanh.
9578         (special_fill_min_subnorm_p120): New function.
9579         (special_real_inputs): Add min_subnorm_p120.
9580         (calc_generic_results): Handle mpc_c_c.
9581         * sysdeps/i386/fpu/libm-test-ulps: Update.
9582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9583
9584 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9585
9586         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9587         (do_sin_slow): New functions.
9588         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9589         (cslow2, csloww1, csloww2): Use the new functions.
9590
9591         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9592         Use M to change sign of result instead of X.  Assume X is
9593         positive.
9594         (csloww1): Likewise.
9595         (__sin): Adjust.
9596         (__cos): Adjust.
9597
9598         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9599         arguments A and DA.
9600         (__sin): Adjust.
9601         (__cos): Likewise.
9602
9603         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9604         (__cos): Likewise.
9605         (sloww1): Don't adjust sign of DX.
9606         (csloww1): Likewise.
9607         (sloww2): Use X directly and don't adjust sign of DX.
9608         (csloww2): Likewise.
9609
9610 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9611
9612         * math/auto-libm-test-in: Add tests of cabs and carg.
9613         * math/auto-libm-test-out: Regenerated.
9614         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9615         (carg_test_data): Likewise.
9616         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9617         mpc_c_f.
9618         (func_calc_desc): Add mpc_c_f union field.
9619         (test_functions): Add cabs and carg.
9620         (calc_generic_results): Handle mpc_c_f.
9621
9622         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9623         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9624         as a macro and a compat symbol.
9625         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9626         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9627         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9628         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9629         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9630         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9631         not use .hidden.
9632         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9633         Likewise.
9634         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9635         Likewise.
9636         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9637         Likewise.
9638         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9639         Likewise.
9640         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9641         Likewise.
9642         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9643         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9644         from GLIBC_2.3.2.
9645
9646 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9647
9648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9649
9650 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9651
9652         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9653         trailing whitespace removed.
9654         * scripts/config.guess: Update to version 2013-11-29.
9655         * scripts/config.sub: Update to version 2013-10-01.
9656
9657         * math/auto-libm-test-in: Add tests of sincos.
9658         * math/auto-libm-test-out: Regenerated.
9659         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9660         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9661         mpfr_f_11.
9662         (func_calc_desc): Add mpfr_f_11 union field.
9663         (test_functions): Add sincos.
9664         (calc_generic_results): Handle mpfr_f_11.
9665         * sysdeps/i386/fpu/libm-test-ulps: Update.
9666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9667
9668 2013-12-19  Andreas Schwab  <schwab@suse.de>
9669
9670         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9671         CALL_MCOUNT.
9672         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9673         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9674         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9675
9676 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9677
9678         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9679         * sysdeps/i386/fpu/libm-test-ulps: Update.
9680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9681
9682         [BZ #16293]
9683         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9684         round-to-nearest mode when using frndint.
9685         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9686         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9687         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9688         Likewise.
9689         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9690         sinh test to fail.
9691         * math/auto-libm-test-out: Regenerated.
9692         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9693         (TEST_COND_x86): Likewise.
9694         (expm1_tonearest_test_data): New array.
9695         (expm1_test_tonearest): New function.
9696         (expm1_towardzero_test_data): New array.
9697         (expm1_test_towardzero): New function.
9698         (expm1_downward_test_data): New array.
9699         (expm1_test_downward): New function.
9700         (expm1_upward_test_data): New array.
9701         (expm1_test_upward): New function.
9702         (main): Run the new test functions.
9703         * sysdeps/i386/fpu/libm-test-ulps: Update.
9704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9705
9706         * include/features.h: Update comment documenting feature test
9707         macros.  Mention _DEFAULT_SOURCE in comment.
9708         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9709         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9710         _BSD_SOURCE and _SVID_SOURCE.
9711         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9712         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9713         !_SVID_SOURCE]: Likewise.
9714         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9715         (__USE_POSIX_IMPLICITLY): Define.
9716         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9717         (_POSIX_SOURCE): Undefine and redefine.
9718         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9719         (_POSIX_C_SOURCE): Likewise.
9720         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9721         (Feature Test Macros): Update documentation of default features.
9722
9723 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9724
9725         * benchtests/Makefile: Add bench-strtok.
9726         * benchtests/bench-strtok.c: New file: strtok benchtest.
9727
9728 2013-12-19  Allan McRae  <allan@archlinux.org>
9729
9730         * manual/install.texi: Suppress menu for plain text output.
9731         * INSTALL: Regenerated.
9732
9733 2013-12-18  Brooks Moses  <bmoses@google.com>
9734
9735         [BZ #15846]
9736         * misc/getauxval.c: Include errno.h.
9737         (__getauxval): Set errno to ENOENT if the requested type is not
9738         found.
9739         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9740         don't declare with __attribute_const__.
9741         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9742         * manual/startup.texi: Document that getauxval sets errno.
9743
9744 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9745
9746         * math/auto-libm-test-in: Add tests of jn and yn.
9747         * math/auto-libm-test-out: Regenerated.
9748         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9749         (yn_test_data): Likewise.
9750         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9751         mpfr_if_f.
9752         (func_calc_desc): Add mpfr_if_f union field.
9753         (FUNC_mpfr_if_f): New macro.
9754         (test_functions): Add jn and yn.
9755         (calc_generic_results): Assert type of second input for
9756         mpfr_ff_f.  Handle mpfr_if_f.
9757         (output_for_one_input_case): Disable all checking for arguments
9758         fitting floating-point types in case of an integer argument.
9759         * sysdeps/i386/fpu/libm-test-ulps: Update.
9760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9761
9762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9763         Don't expect fegetround reference in libm.so.
9764
9765 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9766
9767         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9768         $(config-cflags-nofma).
9769
9770 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9771
9772         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9773         * math/auto-libm-test-out: Regenerated.
9774
9775         [BZ #16338]
9776         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9777         to determine exponent and adjust argument to have exponent of -1.
9778         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9779         log2.
9780         * math/auto-libm-test-out: Regenerated.
9781         * sysdeps/i386/fpu/libm-test-ulps: Update.
9782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9783
9784 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9785
9786         * manual/probes.texi: Remove cases when per-thread arenas are
9787         disabled.
9788
9789 2013-12-18  Andreas Schwab  <schwab@suse.de>
9790
9791         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9792         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9793         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9794         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9795         * sysdeps/i386/i686/multiarch/Makefile: Update.
9796         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9797
9798 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9799
9800         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9801         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9802
9803 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9804
9805         [BZ #15968]
9806         Support TZ transition times < 00:00:00.
9807         This is needed for version-3 tz-format files; it supports time
9808         stamps past 2037 for America/Godthab (the only entry in the tz
9809         database for which this change is relevant).
9810         * manual/time.texi (TZ Variable): Document transition times
9811         from -167:59:59 through -00:00:01.
9812         * time/tzset.c (tz_rule): Time of day is now signed.
9813         (__tzset_parse_tz): Parse negative time of day.
9814
9815         Document TZ transition times >= 25:00:00.
9816         * manual/time.texi (TZ Variable): Document transition times from
9817         25:00:00 through 167:59:59.  These are already supported, and this
9818         support will help with version-3 tz-format files.
9819
9820         * manual/time.texi (TZ Variable): Modernize North America example
9821         to reflect current (i.e., 2007-and-later) daylight saving rules.
9822
9823         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9824
9825 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9826
9827         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9828         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9829         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9830         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9831         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9832         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9833         * sysdeps/unix/bsd/clock.c: Likewise.
9834         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9835         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9836         * sysdeps/unix/bsd/init-posix.c: Likewise.
9837         * sysdeps/unix/bsd/poll.c: Likewise.
9838         * sysdeps/unix/bsd/ptsname.c: Likewise.
9839         * sysdeps/unix/bsd/seekdir.c: Likewise.
9840         * sysdeps/unix/bsd/setegid.c: Likewise.
9841         * sysdeps/unix/bsd/seteuid.c: Likewise.
9842         * sysdeps/unix/bsd/setgid.c: Likewise.
9843         * sysdeps/unix/bsd/setrgid.c: Likewise.
9844         * sysdeps/unix/bsd/setruid.c: Likewise.
9845         * sysdeps/unix/bsd/setsid.c: Likewise.
9846         * sysdeps/unix/bsd/setuid.c: Likewise.
9847         * sysdeps/unix/bsd/sigaction.c: Likewise.
9848         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9849         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9850         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9851         * sysdeps/unix/bsd/telldir.c: Likewise.
9852         * sysdeps/unix/bsd/times.c: Likewise.
9853         * sysdeps/unix/bsd/usleep.c: Likewise.
9854
9855         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9856         ($(objpfx)libbsd-compat.a): Remove rule.
9857
9858         * include/features.h (__FAVOR_BSD): Do not define.
9859         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9860         features conflicting with POSIX.
9861         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9862         (_BSD_SOURCE): Remove description of not being a subset of other
9863         feature test macros.
9864         * manual/job.texi (getpgrp): Do not document BSD version.
9865         (getpgid): Do not document by reference to BSD getpgrp.
9866         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9867         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9868         * signal/signal.h [__FAVOR_BSD]: Likewise.
9869         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9870         instead of making contents conditional on [__FAVOR_BSD].
9871         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9872
9873 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9874
9875         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9876
9877 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9878
9879         [BZ #16314]
9880         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9881         values below 2**-450, not 2**-500.
9882         * math/auto-libm-test-in: Don't allow spurious underflow from
9883         hypot.
9884         * math/auto-libm-test-out: Regenerated.
9885
9886         [BZ #16316]
9887         [BZ #16330]
9888         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9889         values of ha and hb and sort them after adjusting subnormal
9890         arguments.
9891         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9892         Likewise.
9893         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9894         values of ea and eb and sort them after adjusting subnormal
9895         arguments.
9896         * math/auto-libm-test-in: Do not expect some hypot tests of
9897         subnormals to fail.  Add more hypot tests.
9898         * math/auto-libm-test-out: Regenerated.
9899
9900 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9901
9902         [BZ #13304]
9903         * sysdeps/sh/s_fma.c: New file.
9904         * sysdeps/sh/s_fmaf.c: New file.
9905         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9906         version.
9907         * sysdeps/sh/Implies: Add sh/soft-fp.
9908
9909 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9910
9911         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9912         level of indirection to members `objname', `errstring', `malloced'.
9913         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9914         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9915         it as the __longjmp argument (just pass 1 instead).
9916         (_dl_catch_error): Initialize C with argument pointers and address of
9917         volatile local ERRCODE rather than copying values out of C at return.
9918
9919 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9920
9921         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9922         * math/auto-libm-test-out: Regenerated.
9923         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9924         (hypot_test_data): Likewise.
9925         (pow_test_data): Likewise.
9926         (pow_tonearest_test_data): Likewise.
9927         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9928         mpfr_ff_f.
9929         (func_calc_desc): Add mpfr_ff_f union field.
9930         (FUNC_mpfr_ff_f): New macro.
9931         (test_functions): Add atan2, hypot and pow.
9932         (special_fill_min): New function.
9933         (special_fill_minus_min): Likewise.
9934         (special_fill_min_subnorm): Likewise.
9935         (special_fill_minus_min_subnorm): Likewise.
9936         (special_real_inputs): Add min, -min, min_subnorm and
9937         -min_subnorm.
9938         (calc_generic_results): Handle mpfr_ff_f.
9939         * sysdeps/i386/fpu/libm-test-ulps: Update.
9940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9941
9942 2013-12-16  Will Newton  <will.newton@linaro.org>
9943
9944         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9945         (Aligned Memory Blocks): Add documentation for aligned_alloc
9946         and suggest it as an alternative to posix_memalign.
9947         (Hooks for Malloc): Document __memalign_hook is also called
9948         for aligned_alloc.  (Summary of Malloc): Add summary for
9949         aligned alloc.  Document __memalign_hook is also called
9950         for aligned_alloc.
9951
9952 2013-12-16  Will Newton  <will.newton@linaro.org>
9953
9954         * manual/memory.texi (Malloc Examples): Clarify default
9955         alignment documentation.  Suggest posix_memalign rather
9956         than memalign or valloc.
9957         (Aligned Memory Blocks): Remove suggestion to use memalign
9958         or valloc.  Remove obsolete comment about BSD.
9959         Document memalign errno values and mark the function obsolete.
9960         Document posix_memalign returned error codes.  Mark valloc
9961         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9962         called for posix_memalign and valloc.
9963         (Summary of Malloc): Add posix_memalign to function summary.
9964         __memalign_hook is also called for posix_memalign and valloc.
9965
9966 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9967
9968         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9969         TAYLOR_SIN.
9970         (__sin): Adjust.
9971         (__cos): Likewise.
9972         (sloww): Use mynumber union.  Expand ternary operator into
9973         if-else statements.
9974         (cslow): use mynumber union.
9975
9976 2013-12-16  Allan McRae  <allan@archlinux.org>
9977
9978         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9979         * configure: Regenerated.
9980
9981         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9982
9983         [BZ #14120]
9984         * configure.ac: Added --enable-maintainer-mode. Check for
9985         autoconf when enabled.
9986         * configure: Regenerated.
9987
9988         * nscd/nscd.service: New file.
9989         * nscd/nscd.tmpfiles: New file.
9990
9991 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9992
9993         [BZ #12100]
9994         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9995         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9996         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9997         (strstr): Add __strstr_sse2_unaligned ifunc.
9998         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9999         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
10000         (strcasestr): Remove __strcasestr_sse42 ifunc.
10001         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
10002         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
10003         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
10004
10005 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10006
10007         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
10008         * sysdeps/sh/bits/fenv.h: ... here.
10009         * sysdeps/sh/sh4/fpu/bits: Remove directory.
10010
10011 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10012
10013         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
10014
10015         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
10016         hypotf multiarch implementations.
10017         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
10018         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
10019         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
10020         multiarch hypot for PPC64.
10021         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
10022         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
10023         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
10024         multiarch hypotf for PPC64.
10025
10026         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
10027         modff multiarch implementations.
10028         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
10029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
10030         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
10031         multiarch modf for PPC64.
10032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
10033         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
10034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
10035         multiarch modff for PPC64.
10036
10037         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
10038         and logl multiarch implementations.
10039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
10040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
10041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
10042         multiarch logb for PPC64.
10043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
10044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
10045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
10046         multiarch logb for PPC64.
10047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
10048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
10049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
10050         multiarch logb for PPC64.
10051
10052         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
10053         isinff multiarch implementation.
10054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
10055         file.
10056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
10057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
10058         multiarch isinf for PPC64.
10059         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
10060         file.
10061         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
10062         multiarch isinff for PPC64.
10063
10064         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
10065         finitef multiarch implementation.
10066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
10067         file.
10068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
10069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
10070         multiarch finite for PPC64.
10071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
10072         file.
10073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
10074         multiarch finitef for PPC64.
10075
10076         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
10077         lrint multiarch implementation.
10078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
10079         file.
10080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
10081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
10082         multiarch llrint for PPC64.
10083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
10084         multiarch lrint for PPC64.
10085
10086         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
10087         copysignf multiarch implementation.
10088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
10089         file.
10090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
10091         file.
10092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
10093         multiarch copysign for PPC64.
10094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
10095         multiarch copysignf for PPC64.
10096
10097         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
10098         multiarch implementation.
10099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
10100         file.
10101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10102         file.
10103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10104         file.
10105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10106         file.
10107         multiarch llround for PPC64.
10108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10109         multiarch trunc for PPC64.
10110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10111         multiarch truncf for PPC64.
10112
10113         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10114         multiarch implementation.
10115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10116         file.
10117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10118         file.
10119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10120         file.
10121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10122         file.
10123         multiarch llround for PPC64.
10124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10125         multiarch round for PPC64.
10126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10127         multiarch roundf for PPC64.
10128
10129         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10130         multiarch implementation.
10131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10132         file.
10133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10134         file.
10135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10136         file.
10137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10138         file.
10139         multiarch llround for PPC64.
10140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10141         multiarch floor for PPC64.
10142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10143         multiarch floorf for PPC64.
10144
10145         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10146         multiarch implementation.
10147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10148         file.
10149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10150         file.
10151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10152         file.
10153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10154         file.
10155         multiarch llround for PPC64.
10156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10157         multiarch ceil for PPC64.
10158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10159         multiarch ceilf for PPC64.
10160
10161         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10162         multiarch implementation.
10163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10164         file.
10165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10166         file.
10167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10168         file.
10169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10170         multiarch llround for PPC64.
10171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10172         multiarch lround for PPC64.
10173
10174         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10175         multiarch implementation.
10176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10179         file.
10180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10183         multiarch isnan for PPC64.
10184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10185         multiarch isnanf for PPC64.
10186
10187         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10188         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10189         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10190         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10191         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10193
10194         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10195         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10196         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10197         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10198
10199         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10200         multiarch implementations.
10201         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10202         (__libc_ifunc_impl_list): Likewise.
10203         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10204         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10205         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10206         multiarch stpcpy for PPC64.
10207
10208         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10209         multiarch implementations.
10210         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10211         (__libc_ifunc_impl_list): Likewise.
10212         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10213         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10214         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10215         multiarch strcpy for PPC64.
10216
10217         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10218         redefine function name.
10219         (_wordcopy_fwd_dest_aligned): Likewise.
10220         (_wordcopy_bwd_aligned): Likewise.
10221         (_wordcopy_bwd_dest_aligned): Likewise.
10222         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10223         multiarch implementations.
10224         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10225         (__libc_ifunc_impl_list): Likewise.
10226         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10227         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10228         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10229         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10230         multiarch wcscpy for PPC64.
10231
10232         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10233         multiarch implementations.
10234         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10235         (__libc_ifunc_impl_list): Likewise.
10236         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10237         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10238         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10239         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10240         multiarch wcscpy for PPC64.
10241
10242         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10243         multiarch implementations.
10244         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10245         (__libc_ifunc_impl_list): Likewise.
10246         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10247         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10248         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10249         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10250         multiarch wcsrchr for PPC64.
10251
10252         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10253         multiarch implementations.
10254         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10255         (__libc_ifunc_impl_list): Likewise.
10256         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10257         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10258         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10259         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10260         multiarch wcschr for PPC64.
10261
10262         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10263         multiarch implementations.
10264         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10265         (__libc_ifunc_impl_list): Likewise.
10266         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10267         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10268         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10269         multiarch strchrnul for PPC64.
10270
10271         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10272         implementations.
10273         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10274         (__libc_ifunc_impl_list): Likewise.
10275         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10276         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10277         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10278         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10279         strchr for PPC64.
10280
10281         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10282         implementations.
10283         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10284         (__libc_ifunc_impl_list): Likewise.
10285         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10286         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10287         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10288         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10289         strncmp for PPC64.
10290
10291         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10292         multiarch implementations.
10293         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10294         (__libc_ifunc_impl_list): Likewise.
10295         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10296         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10297         strncasecmp for PPC64.
10298         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10299         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10300         multiarch strncasecmp_l for PPC64.
10301
10302         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10303         multiarch implementations.
10304         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10305         (__libc_ifunc_impl_list): Likewise.
10306         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10307         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10308         multiarch strcasecmp for PPC64.
10309         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10310         file.
10311         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10312         multiarch strcasecmp_l for PPC64.
10313
10314         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10315         implementations.
10316         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10317         (__libc_ifunc_impl_list): Likewise.
10318         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10319         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10320         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10321         strnlen for PPC64.
10322
10323         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10324         implementations.
10325         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10326         (__libc_ifunc_impl_list): Likewise.
10327         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10328         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10329         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10330         strlen for PPC64.
10331
10332         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10333         implementations.
10334         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10335         (__libc_ifunc_impl_list): Likewise.
10336         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10337         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10338         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10339         rawmemrchr for PPC64.
10340
10341         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10342         implementation.
10343         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10344         (__libc_ifunc_impl_list): Likewise.
10345         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10346         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10347         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10348         memrchr for PPC64.
10349
10350         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10351         implementation.
10352         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10353         (__libc_ifunc_impl_list): Likewise.
10354         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10355         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10356         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10357         memchr for PPC64.
10358
10359         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10360         implementation.
10361         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10362         (__libc_ifunc_impl_list): Likewise.
10363         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10364         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10365         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10366         mempcpy for PPC64.
10367
10368         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10369         avoid cretion of __bzero symbol.
10370         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10371         Likewise.
10372         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10373         Likewise.
10374         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10375         Likewise.
10376         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10377         multiarch implementations.
10378         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10379         (__libc_ifunc_impl_list): Likewise.
10380         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10381         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10382         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10383         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10384         bzero for PPC32.
10385         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10386         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10387         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10388         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10389         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10390         memset for PPC64.
10391         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10392
10393         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10394         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10395         implementations.
10396         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10397         (__libc_ifunc_impl_list): Likewise.
10398         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10399         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10400         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10401         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10402         memcmp for PPC64.
10403
10404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10405         multiarch for POWER/PPC64.
10406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10407         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10408         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10409         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10410         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10411         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10412         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10413         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10414         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10415         memcpy for PPC64.
10416
10417         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10418         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10419         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10420         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10421         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10422         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10423         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10424         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10425         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10426         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10427         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10428         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10429         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10430         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10431         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10439
10440 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10441
10442         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
10443
10444 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10445
10446         * benchtests/Makefile (bench): Add exp2 and log2.
10447         (LDLIBS-bench-exp2): Add -lm.
10448         (LDLIBS-bench-log2): Likewise.
10449         * benchtests/exp2-inputs: New inputs file.
10450         * benchtests/log2-inputs: New inputs file.
10451         * benchtests/log-inputs: Add new inputs.
10452         * benchtests/tan-inputs: Likewise.
10453
10454 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10455
10456         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
10457         definition...
10458         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
10459         (csloww2): ... from here.
10460
10461         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
10462         instead of structures.
10463         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
10464         (POLYNOMIAL): Likewise.
10465         (TAYLOR_SLOW): Likewise.
10466         (__sin): Likewise.
10467         (__cos): Likewise.
10468         (slow1): Likewise.
10469         (slow2): Likewise.
10470         (sloww): Likewise.
10471         (sloww1); Likewise.
10472         (sloww2): Likewise.
10473         (bsloww1): Likewise.
10474         (bsloww2): Likewise.
10475         (cslow2): Likewise.
10476         (csloww): Likewise.
10477         (csloww1): Likewise.
10478         (csloww2): Likewise.
10479
10480 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
10481
10482         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
10483         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
10484         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10485         * malloc/hooks.c (realloc_check): Likewise.
10486
10487         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10488         * malloc/arena.c: Remove PER_THREAD conditional.
10489         [!PER_THREAD]: Remove code.
10490         (ptmalloc_unlock_all2): Likewise.
10491         (ptmalloc_init): Likewise.
10492         (_int_new_arena): Likewise.
10493         (arena_get2): Likewise.
10494         * malloc/hooks.c (__malloc_get_state): Likewise.
10495         (__malloc_set_state): Likewise.
10496         * malloc/malloc.c: Likewise.
10497         (struct malloc_state): Likewise.
10498         (struct malloc_par): Likewise.
10499         (__libc_realloc): Likewise.
10500         (__libc_mallopt): Likewise.
10501
10502 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10503
10504         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10505
10506 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10507
10508         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10509         macro to a function.  Check for zero perturb_byte.
10510         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10511
10512         * malloc/malloc.c: (force_reg): Remove.
10513         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10514         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10515         force_reg by atomic_forced_read.
10516         * malloc/arena.c (ptmalloc_init): Likewise.
10517         * malloc/hooks.c (top_check): Likewise.
10518
10519 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10520
10521         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10522
10523 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10524
10525         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10526
10527 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10528
10529         * math/auto-libm-test-in: Add tests of lgamma.
10530         * math/auto-libm-test-out: Regenerated.
10531         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10532         (M_LOG_2_SQRT_PIl): Likewise.
10533         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10534         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10535         mpfr_f_f1.
10536         (func_calc_desc): Add mpfr_f_f1 union field.
10537         (ARGS1): New macro.
10538         (ARGS2): Likewise.
10539         (ARGS3): Likewise.
10540         (ARGS4): Likewise.
10541         (RET1): Likewise.
10542         (RET2): Likewise.
10543         (CALC): Likewise.
10544         (FUNC): Likewise.
10545         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10546         (test_functions): Add lgamma.
10547         (calc_generic_results): Handle mpfr_f_f1.
10548         * sysdeps/i386/fpu/libm-test-ulps: Update.
10549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10550
10551 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10552
10553         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10554         __mpn_add_n for PowerPC64/POWER7.
10555         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10556         __mpn_sub_n for PowerPC64/POWER7.
10557
10558         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10559         __mpn_addmul_1 for PowerPC64.
10560         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10561         __mpn_submul_1 for PowerPC64.
10562         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10563         for PowerPC64.
10564         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10565         for PowerPC64.
10566
10567 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10568
10569         [BZ #15089]
10570         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10571
10572 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10573
10574         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10575
10576         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10577         add multiarch folders.
10578         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10579         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10580         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10581         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10582         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10583         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10584         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10585         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10586         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10587         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10588         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10595
10596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10597         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10598         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10599         New file.
10600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10601         New file.
10602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10603         multiarch __ieee754_hypot for PowerPC32.
10604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10605         New file.
10606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10607         New file.
10608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10609         multiarch __ieee754_hypotf for PowerPC32.
10610
10611         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10612         long_double_symbol only if __logbl is defined.
10613         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10614         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10615         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10616         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10617         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10618         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10619         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10620         path for implementation.
10621         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10622         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10624         logb, and logbl multiarch implementations for PowerPC32.
10625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10626         file.
10627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10628         file.
10629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10630         multiarch logb for PowerPC32.
10631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10632         file.
10633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10634         file.
10635         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10636         multiarch logbf for PowerPC32.
10637         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10639         file.
10640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10641         multiarch logbl implementation for PowerPC32.
10642
10643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10644         and modff multiarch implementations.
10645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10646         New file.
10647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10648         New file.
10649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10650         multiarch modf for PowerPC32.
10651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10652         New file.
10653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10654         New file.
10655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10656         multiarch modff for PowerPC32.
10657
10658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10659         and lrintf multiarch implementations.
10660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10661         New file.
10662         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10663         New file.
10664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10665         multiarch lrint for PowerPC32.
10666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10667         file: multiarch lrintf for PowerPC32.
10668
10669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10670         and lroundf multiarch implementations.
10671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10672         New file.
10673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10674         New file.
10675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10676         New file.
10677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10678         multiarch lround for PowerPC32.
10679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10680         file: multiarch lroundf for PowerPC32.
10681
10682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10683         copysign and copysignf multiarch implementations.
10684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10685         New file.
10686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10687         New file.
10688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10689         file: multiarch copysign for PowerPC32.
10690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10691         file: multiarch copysignf for PowerPC32.
10692
10693         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10694         and truncf multiarch implementations.
10695         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10696         New file.
10697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10698         file.
10699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10700         multiarch trunc for PowerPC32.
10701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10702         New file.
10703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10704         New file.
10705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10706         multiarch truncf for PowerPC32.
10707
10708         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10709         and roundf multiarch implementations.
10710         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10711         New file.
10712         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10713         file.
10714         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10715         multiarch round for PowerPC32.
10716         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10717         New file.
10718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10719         New file.
10720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10721         multiarch roundf for PowerPC32.
10722
10723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10724         and floorf multiarch implementations.
10725         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10726         New file.
10727         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10728         file.
10729         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10730         multiarch floor for PowerPC32.
10731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10732         New file.
10733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10734         New file.
10735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10736         multiarch floorf for PowerPC32.
10737
10738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10739         and ceilf multiarch implementations.
10740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10741         New file.
10742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10743         file.
10744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10745         multiarch ceil for PowerPC32.
10746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10747         New file.
10748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10749         file.
10750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10751         multiarch ceilf for PowerPC32.
10752
10753         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10754         is defined.
10755         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10756         FINITEF is defined.
10757         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10758         and finitef multiarch implementations.
10759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10760         New file.
10761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10762         file.
10763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10764         multiarch finite for PowerPC32.
10765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10766         New file.
10767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10768         file: multiarch finitef for PowerPC32.
10769
10770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10771         and isinff multiarch implementations.
10772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10773         file.
10774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10775         file.
10776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10777         multiarch isinf for PowerPC32.
10778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10779         New file.
10780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10781         multiarch isinff for PowerPC32.
10782
10783         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10784         alias when __isnan is defined.
10785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10786         and isnanf multiarch implementations.
10787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10788         file.
10789         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10790         file.
10791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10792         file.
10793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10794         file.
10795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10796         multiarch isnan for PowerPC32.
10797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10798         New file.
10799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10800         New file.
10801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10802         multiarch isnanf for PowerPC32.
10803
10804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10805         and sqrtf multiarch implementations.
10806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10807         file.
10808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10809         file.
10810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10811         multiarch sqrt for PowerPC32.
10812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10813         file.
10814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10815         file.
10816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10817         multiarch sqrtf for PowerPC32.
10818
10819         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10820         and llroundf multiarch implementations.
10821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10822         New file.
10823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10824         New file.
10825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10826         New file.
10827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10828         file: multiarch llround for PowerPC32.
10829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10830         file: multiarch llroundf for PowerPC32.
10831
10832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10833         multiarch PowerPC32 fpu implementations.
10834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10835         New file.
10836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10837         New file.
10838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10839         multiarch llrint for PowerPC32.
10840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10841         New file.
10842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10843         New file.
10844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10845         file.
10846
10847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10848
10849         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10850         file.
10851         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10852         file.
10853         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10854         file.
10855         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10856         multiarch wordcopy for PPC32.
10857         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10858         wordcopy objects.
10859         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10860         (__libc_ifunc_impl_list): Likewise.
10861         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10862         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10863         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10864         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10865         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10866         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10867
10868         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10869         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10870         file.
10871         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10872         file.
10873         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10874         file.
10875         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10876         multiarch wcscpy for PPC32.
10877         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10878         multiarch objects.
10879         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10880         (__libc_ifunc_impl_list): Likewise.
10881         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10882         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10883         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10884         sysdeps/powerpc/power6/wcscpy.c.
10885
10886         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10887         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10888         file.
10889         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10890         file.
10891         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10892         file.
10893         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10894         multiarch wcsrchr for PPC32.
10895         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10896         multiarch objects.
10897         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10898         (__libc_ifunc_impl_list): Likewise.
10899         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10900         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10901         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10902         sysdeps/powerpc/power6/wcsrchr.c.
10903
10904         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10905         file.
10906         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10907         file.
10908         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10909         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10910         multiarch wcschr for PPc32.
10911         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10912         multiarch objects.
10913         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10914         (__libc_ifunc_impl_list): Likewise.
10915         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10916         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10917         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10918         sysdeps/powerpc/power6/wcschr.c.
10919
10920         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10921         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10922         file.
10923         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10924         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10925         file: multiarch strchr for PPC32.
10926         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10927         multiarch objects.
10928         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10929         (__libc_ifunc_impl_list): Likewise.
10930
10931         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10932         name.
10933         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10934         file.
10935         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10936         file.
10937         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10938         multiarch strchrnul for PPC32.
10939         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10940         multiarch objects.
10941         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10942         (__libc_ifunc_impl_list): Likewise.
10943
10944         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10945         file.
10946         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10947         multiarch strncasecmp for PPC32.
10948         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10949         file.
10950         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10951         multiarch strncasecmp_l for PPC32.
10952         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10953         strncasecmp multiarch objects.
10954         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10955         (__libc_ifunc_impl_list): Likewise.
10956
10957         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10958         file.
10959         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10960         multiarch strncasecmp for PPC32.
10961         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10962         New file.
10963         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10964         multiarch strcasecmp_l for PPC32.
10965         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10966         multiarch objects.
10967         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10968         (__libc_ifunc_impl_list): Likewise.
10969
10970         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10971         file.
10972         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10973         file.
10974         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10975         multiarch strncmp for PPC32.
10976         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10977         multiarch objects.
10978         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10979         (__libc_ifunc_impl_list): Likewise.
10980
10981         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10982         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10983         file.
10984         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10985         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10986         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10987         multiarch objects.
10988         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10989         (__libc_ifunc_impl_list): Likewise.
10990
10991         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10992         file.
10993         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10994         file.
10995         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10996         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10997         multiarch objects.
10998         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10999         (__libc_ifunc_impl_list): Likewise.
11000
11001         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
11002         file.
11003         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
11004         file.
11005         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
11006         multiarch rawmemchr for PPC32.
11007         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
11008         multiarch objects.
11009         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11010         (__libc_ifunc_impl_list): Likewise.
11011
11012         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
11013         file.
11014         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
11015         file.
11016         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
11017         file: memrchr multiarch for PPC32.
11018         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
11019         multiarch objects.
11020         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11021         (__libc_ifunc_impl_list): Likewise.
11022
11023         * string/memchr.c (__memchr): Using macro to redefine symbol name.
11024         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
11025         file.
11026         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
11027         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
11028         multiarch memchr for PPC32.
11029         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
11030         multiarch objects.
11031         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11032         (__libc_ifunc_impl_list): Likewise.
11033
11034         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
11035         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
11036         file.
11037         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
11038         file.
11039         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
11040         file: multiarch mempcpy for PPC32.
11041         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
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/bzero-power6.S: New file.
11047         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
11048         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
11049         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
11050         multiarch bzero for PPC32.
11051         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
11052         file.
11053         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
11054         file.
11055         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
11056         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
11057         file: multiarch memset for PPC32.
11058         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
11059         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
11060         memset multiarch objects.
11061         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11062         (__libc_ifunc_impl_list): Likewise.
11063
11064         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
11065         file.
11066         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
11067         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
11068         memcmp for PPC32.
11069         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
11070         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
11071         multiarch objects.
11072         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11073         (__libc_ifunc_impl_list): Likewise.
11074
11075         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
11076         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
11077         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
11078         file.
11079         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
11080         file.
11081         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
11082         file.
11083         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
11084         multiarch memcpy for PPC32.
11085         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
11086         multiarch objects.
11087         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11088         (__libc_ifunc_impl_list): Likewise.
11089
11090         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
11091         support multiarch for POWER/PPC32.
11092         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
11093         Likewise.
11094         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
11095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
11096         Implies file to make multiarch folder appers before the fpu and
11097         default folder for power4 configuration.
11098
11099 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11100
11101         * scripts/bench.pl: Append volatile keyword to type.
11102
11103 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11104
11105         * sysdeps/sh/sotruss-lib.c: New file.
11106         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11107
11108 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11109
11110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11111
11112 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11113
11114         [BZ #6810]
11115         * math/w_tgamma.c: Include <errno.h>.
11116         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11117         * math/w_tgammaf.c: Include <errno.h>.
11118         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11119         * math/w_tgammal.c: Include <errno.h>.
11120         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11121         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11122         underflow.  Add more tgamma tests.
11123         * math/auto-libm-test-out: Regenerated.
11124         * sysdeps/i386/fpu/libm-test-ulps: Update.
11125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11126
11127         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11128         sin, sinh, tan, tanh, tgamma, y0 and y1.
11129         * math/auto-libm-test-out: Regenerated.
11130         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11131         (TEST_COND_x86): Likewise.
11132         (M_E2l): Remove macro.
11133         (M_E3l): Likewise.
11134         (M_2_SQRT_PIl): Likewise.
11135         (M_SQRT_PIl): Likewise.
11136         (M_1_DIV_El): Likewise.
11137         (log_test_data): Use AUTO_TESTS_f_f.
11138         (log10_test_data): Likewise.
11139         (log1p_test_data): Likewise.
11140         (log2_test_data): Likewise.
11141         (sin_test_data): Likewise.
11142         (sin_tonearest_test_data): Likewise.
11143         (sin_towardzero_test_data): Likewise.
11144         (sin_downward_test_data): Likewise.
11145         (sin_upward_test_data): Likewise.
11146         (sinh_test_data): Likewise.
11147         (sinh_tonearest_test_data): Likewise.
11148         (sinh_towardzero_test_data): Likewise.
11149         (sinh_downward_test_data): Likewise.
11150         (sinh_upward_test_data): Likewise.
11151         (tan_test_data): Likewise.
11152         (tan_tonearest_test_data): Likewise.
11153         (tan_towardzero_test_data): Likewise.
11154         (tan_downward_test_data): Likewise.
11155         (tan_upward_test_data): Likewise.
11156         (tanh_test_data): Likewise.
11157         (tgamma_test_data): Likewise.
11158         (y0_test_data): Likewise.
11159         (y1_test_data): Likewise.
11160         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11161         (special_real_inputs): Add pi/4.
11162         * sysdeps/i386/fpu/libm-test-ulps: Update.
11163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11164
11165 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11166
11167         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11168         "longjmp_target" static probes.
11169         (__longjmp): Rename to __longjmp_symbol.
11170         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11171         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11172         on which longjmp to generate.
11173         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11174         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11175         probe.
11176         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11177         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11178         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11179         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11180         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11181         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11183         __longjmp_symbol based on which __longjmp to generate.
11184         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11185         probe.
11186         (setjmp): Rename to setjmp_symbol.
11187         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11188         (_setjmp): Rename to _setjmp_symbol.
11189         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11190         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11191         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11192         which setjmp to generate.
11193         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11194         "longjmp_target" static probes.
11195
11196 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11197
11198         * benchtests/README: Add note about output arguments.
11199         * benchtests/bench-sincos.c: Remove file.
11200         * benchtests/sincos-inputs: New file.
11201         * scripts/bench.pl: Identify output arguments and define
11202         static variables for them.
11203
11204         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11205
11206         [BZ #15941]
11207         * Makefile (INSTALL): Add install-plain.texi as the primary
11208         dependency.
11209         * manual/install-plain.texi: New file.
11210         * manual/install.texi: Include node directive only for
11211         non-plaintext output.
11212
11213 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11214
11215         * stdlib/longlong.h: Update from GCC.
11216
11217         [BZ #6807]
11218         [BZ #15901]
11219         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11220         * math/w_j0f.c (y0f): Likewise.
11221         * math/w_j0l.c (__y0l): Likewise.
11222         * math/w_j1.c (y1): Likewise.
11223         * math/w_j1f.c (y1f): Likewise.
11224         * math/w_j1l.c (__y1l): Likewise
11225         * math/w_jn.c (yn): Likewise.
11226         * math/w_jnf.c (ynf): Likewise.
11227         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11228         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11229         value for Bessel function domain errors outside _SVID_ mode.
11230         Adjust sign of return value for yn (negative integer, 0).
11231         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11232         by zero in return for negative x and set sign appropriately for
11233         negative n.
11234         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11235         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11236         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11237         expectations in error cases.
11238         (y1_test_data): Likewise.
11239         (yn_test_data): Likewise.
11240         * sysdeps/i386/fpu/libm-test-ulps: Update.
11241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11242
11243 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11244
11245         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11246         "64" to "64-v1".  Add "64-v2".
11247         (abi-64-options): Rename to ...
11248         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11249         (abi-64-condition): Rename to ...
11250         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11251         (abi-64-ld-soname): Rename to ...
11252         (abi-64-v1-ld-soname): ... this.
11253         (abi-64-v2-options): Define.
11254         (abi-64-v2-condition): Likewise.
11255         (abi-64-v2-ld-soname): Likewise.
11256         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11257         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11261
11262 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11263             Alan Modra  <amodra@gmail.com>
11264
11265         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11266         New versions for use with the ELFv2 ABI.
11267         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11268         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11269         declaration.
11270         (struct La_ppc64v2_retval): Likewise.
11271         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11272         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11273         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11274         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11275         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11276         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11277         Do not save or restore CR.
11278         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11279         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11280         return values for ELFv2 ABI.  Fix location of FPR return registers.
11281         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11282         updated values for _CALL_ELF == 2.
11283         (La_regs, La_retval, int_retval): Likewise.
11284
11285 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11286
11287         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11288         (FRAME_MIN_SIZE_PARM): Likewise.
11289         (FRAME_BACKCHAIN): Likewise.
11290         (FRAME_CR_SAVE): Likewise.
11291         (FRAME_LR_SAVE): Likewise.
11292         (FRAME_TOC_SAVE): Likewise.
11293         (FRAME_PARM_SAVE): Likewise.
11294         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11295         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11296         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11297         (call_mcount_parm_offset): New macro.
11298         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11299         (PROF): Use symbolic stack frame offsets.
11300         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11301         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11302         Redefine in terms of FRAME_MIN_SIZE.
11303         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11304         (_dl_profile_resolve): Likewise.  Update comment.
11305         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11306         symbols stack frame offsets.
11307         (__sigsetjmp): Likewise.
11308         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11309         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11310         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11311         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11312
11313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11314         (FRAME_BACKCHAIN): Remove.
11315         (FRAME_CR_SAVE): Likewise.
11316         (FRAME_LR_SAVE): Likewise.
11317         (FRAME_COMPILER_DW): Likewise.
11318         (FRAME_LINKER_DW): Likewise.
11319         (FRAME_TOC_SAVE): Likewise.
11320         (FRAME_PARM_SAVE): Likewise.
11321         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11322         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11323         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11325         (CHECK_SP): Use symbolic stack frame offsets.
11326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11327         zone" instead of caller's parameter save area for temp storage.
11328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11329         Likewise.  Also, use symbolic stack frame offsets.
11330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11331         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11332         our own stack frame instead of the caller's.
11333         (__socket): Use symbolic stack frame offsets.
11334
11335 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11336             Alan Modra  <amodra@gmail.com>
11337
11338         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11339         Define.
11340         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11341         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11342         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11343         New function.
11344         (elf_machine_fixup_plt): Call it.
11345         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11346         reloc arguments.
11347         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11348         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11349         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11350         r2 before calling target.
11351
11352 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11353             Alan Modra  <amodra@gmail.com>
11354
11355         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11356         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11357         versions of macros to support ELFv2 ABI.
11358         (LOCALENTRY): New macro.
11359         (ENTRY, EALIGN): Use it.
11360         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11361         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11362         fall through into ENTRY entry point.
11363         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11364         Only define if _CALL_ELF != 2.
11365
11366         (elf_machine_matches_host): Verify ABI version matches.
11367         (RTLD_START): Use LOCALENTRY.
11368         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11369         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11370         (PLT_ENTRY_WORDS): New macro.
11371         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11372         (elf_machine_runtime_setup): Support ELFv2 ABI.
11373         (elf_machine_fixup_plt): Likewise.
11374         (elf_machine_plt_conflict): Likewise.
11375         (resolve_ifunc): Likewise.
11376         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11377         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11378         Likewise.
11379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11380         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11382         (makecontext): Support ELFv2 ABI.
11383         * elf/elf.h (EF_PPC64_ABI): Define.
11384
11385 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11386
11387         * sysdeps/powerpc/powerpc64/sysdep.h
11388         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11389         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11390         (ENTRY) [ASSEMBLER]: ... but instead here ...
11391         (EALIGN) [ASSEMBLER]: ... and here.
11392         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11393         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11394         (ENTRY_2) [!ASSEMBLER]: Use it.
11395         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11396         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11397         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11398         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11399         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11401         Use PPC64_LOAD_FUNCPTR.
11402
11403         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11404
11405 2013-12-04  Alan Modra  <amodra@gmail.com>
11406
11407         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11408         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11409         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11410         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11411
11412         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11413         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11414         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11415         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11416         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11417         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11418
11419 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11420
11421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11422         (__makecontext): Fix incorrect CFI when backtracing out of
11423         context created via makecontext.
11424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11425         (__setcontext): Fix incorrect CFI during switch to new context.
11426         (__novec_setcontext): Likewise.
11427
11428 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11429
11430         [BZ #4772]
11431         * time/strptime_l.c (__strptime_internal): Allow modifiers
11432         in strptime.
11433         * time/tst-strptime.c (day_tests): Add testcase.
11434
11435 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11436
11437         * scripts/bench.pl: Skip over blank lines.
11438
11439 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11440
11441         [BZ #926]
11442         * manual/time.texi (Calendar Time): Clarify what timezone functions
11443         use.
11444
11445 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11446
11447         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11448
11449 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11450
11451         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
11452         implementation.
11453         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
11454         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
11455         * debug/memset_chk.c (__memset_chk): Likewise.
11456         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
11457         * debug/strncpy_chk.c: Likewise.
11458
11459 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11460
11461         [BZ #15268]
11462         [BZ #15425]
11463         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
11464         (__ieee754_exp): For possibly underflowing results, check size of
11465         result and force underflow exception if required.
11466         * math/auto-libm-test-in: Add more tests of exp.
11467         * math/auto-libm-test-out: Regenerated.
11468         * sysdeps/i386/fpu/libm-test-ulps: Update.
11469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11470
11471         [BZ #16283]
11472         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
11473         * math/w_exp2f.c (__exp2f): Likewise.
11474         * math/w_exp2l.c (__exp2l): Likewise.
11475         * math/auto-libm-test-in: Do not allow missing errno on exp2
11476         underflow.
11477         * math/auto-libm-test-out: Regenerated.
11478
11479 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
11480
11481         [BZ #16274]
11482         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
11483         handle filename validation.
11484         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11485         (do_open): Delete.
11486
11487 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11488
11489         [BZ #6786]
11490         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11491         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11492         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11493         <float.h>.
11494         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11495         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11496         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11497         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11498         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11499         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11500         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11501         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11502         Add more erfc tests.
11503         * math/auto-libm-test-out: Regenerated.
11504         * sysdeps/i386/fpu/libm-test-ulps: Update.
11505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11506
11507         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11508         exp2, expm1, j0 and j1.
11509         * math/auto-libm-test-out: Regenerated.
11510         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11511         (erfc_test_data): Likewise.
11512         (exp_test_data): Likewise.
11513         (exp_tonearest_test_data): Likewise.
11514         (exp_towardzero_test_data): Likewise.
11515         (exp_downward_test_data): Likewise.
11516         (exp_upward_test_data): Likewise.
11517         (exp10_test_data): Likewise.
11518         (exp2_test_data): Likewise.
11519         (expm1_test_data): Likewise.
11520         (j0_test_data): Likewise.
11521         (j1_test_data): Likewise.
11522         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11523         (input_flag_type): Add flag_xfail_rounding.
11524         (input_flags): Add xfail-rounding.
11525         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11526         (output_for_one_input_case): Handle flag_xfail_rounding.
11527         * sysdeps/i386/fpu/libm-test-ulps: Update.
11528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11529
11530 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11531
11532         [BZ #16289]
11533         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11534         division by 0.
11535
11536 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11537
11538         [BZ #16195]
11539         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11540         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11541         (STAP_PROBE0): New macro.
11542         (STAP_PROBE1): Likewise.
11543         (STAP_PROBE2): Likewise.
11544         (STAP_PROBE3): Likewise.
11545         (STAP_PROBE4): Likewise.
11546
11547 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11548
11549         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11550
11551 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11552
11553         * benchtests/Makefile (bench): Add sqrt.
11554         (LDLIBS-bench-sqrt): New.
11555         * benchtests/sqrt-input: New.
11556
11557 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11558
11559         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11560         (GAIH_EAI): Likewise.
11561         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11562         (gaih_inet): Likewise.
11563         (getaddrinfo): Don't use GAIH_EAI.
11564
11565         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11566         (struct gaih): Remove definition.
11567
11568 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11569
11570         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11571         Use HERRNOP directly.
11572
11573 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11574
11575         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11576
11577 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11578
11579         * math/gen-auto-libm-tests.c (test_functions): Add more
11580         single-argument functions.
11581         (special_fill_pi_2): New function.
11582         (special_fill_minus_pi_2): Likewise.
11583         (special_fill_pi_6): Likewise.
11584         (special_fill_minus_pi_6): Likewise.
11585         (special_fill_pi_3): Likewise.
11586         (special_fill_2pi_3): Likewise.
11587         (special_fill_e): Likewise.
11588         (special_fill_1_e): Likewise.
11589         (special_fill_e_minus_1): Likewise.
11590         (special_real_inputs): Add more special inputs.
11591         (output_for_one_input_case): Do not require ERANGE on underflow to
11592         zero if round-to-nearest result does not underflow to zero, unless
11593         exact results required.
11594         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11595         atan, atanh, cbrt, cos and cosh.
11596         * math/auto-libm-test-out: Regenerated.
11597         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11598         (acos_tonearest_test_data): Likewise.
11599         (acos_towardzero_test_data): Likewise.
11600         (acos_downward_test_data): Likewise.
11601         (acos_upward_test_data): Likewise.
11602         (acosh_test_data): Likewise.
11603         (asin_test_data): Likewise.
11604         (asin_tonearest_test_data): Likewise.
11605         (asin_towardzero_test_data): Likewise.
11606         (asin_upward_test_data): Likewise.
11607         (asinh_test_data): Likewise.
11608         (atan_test_data): Likewise.
11609         (atanh_test_data): Likewise.
11610         (cbrt_test_data): Likewise.
11611         (cos_test_data): Likewise.
11612         (cos_tonearest_test_data): Likewise.
11613         (cos_towardzero_test_data): Likewise.
11614         (cos_downward_test_data): Likewise.
11615         (cos_upward_test_data): Likewise.
11616         (cosh_test_data): Likewise.
11617         (cosh_tonearest_test_data): Likewise.
11618         (cosh_towardzero_test_data): Likewise.
11619         (cosh_downward_test_data): Likewise.
11620         (cosh_upward_test_data): Likewise.
11621         * sysdeps/i386/fpu/libm-test-ulps: Update.
11622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11623
11624 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11625
11626         [BZ #6787]
11627         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11628         * math/w_exp10f.c (__exp10f): Likewise.
11629         * math/w_exp10l.c (__exp10l): Likewise.
11630         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11631         errno settings in existing tests.
11632
11633         [BZ #14032]
11634         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11635         precision control set to double precision.
11636         * sysdeps/i386/fpu/w_sqrt.c: New file.
11637         * math/auto-libm-test-in: Add more tests.
11638         * math/auto-libm-test-out: Update.
11639
11640         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11641         (sqrt_test_tonearest): New function.
11642         (sqrt_towardzero_test_data): New variable.
11643         (sqrt_test_towardzero): New function.
11644         (sqrt_downward_test_data): New variable.
11645         (sqrt_test_downward): New function.
11646         (sqrt_upward_test_data): New variable.
11647         (sqrt_test_upward): New function.
11648         (main): Call the new functions.
11649
11650         * math/gen-auto-libm-tests.c: New file.
11651         * math/auto-libm-test-in: Likewise.
11652         * math/auto-libm-test-out: New generated file.
11653         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11654         variables.
11655         (%beautify): Add generated representations of zero.
11656         (top level): Set $auto_input and call parse_auto_input.
11657         (beautify): Remove trailing "f" from hex float constants.
11658         (parse_args): Handle XFAIL_TEST.
11659         (convert_condition): New function.
11660         (or_value): Likewise.
11661         (or_cond_value): Likewise.
11662         (generate_testfile): Handle AUTO_TESTS_* lines.
11663         (parse_auto_input): New function.
11664         * math/libm-test.inc (XFAIL_TEST): New macro.
11665         (ERRNO_UNCHANGED): Update value.
11666         (ERRNO_EDOM): Likewise.
11667         (ERRNO_ERANGE): Likewise.
11668         (IGNORE_RESULT): Likewise.
11669         (TEST_COND_flt_32): New macro.
11670         (TEST_COND_dbl_64): Likewise.
11671         (TEST_COND_ldbl_96_intel): Likewise.
11672         (TEST_COND_ldbl_96_m68k): Likewise.
11673         (TEST_COND_ldbl_128): Likewise.
11674         (TEST_COND_ldbl_128ibm): Likewise.
11675         (TEST_COND_long32): Likewise.
11676         (TEST_COND_long64): Likewise.
11677         (TEST_COND_before_rounding): Likewise.
11678         (TEST_COND_after_rounding): Likewise.
11679         (enable_test): Handle XFAIL_TEST flag.
11680         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11681         with finite results.
11682         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11683         auto-libm-test-out.
11684
11685 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11686             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11687
11688         [BZ #16214]
11689         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11690         __tls_get_addr_internal instead of __tls_get_offset in order to
11691         avoid GOT pointer dependency.  Make rtld export
11692         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11693         __tls_get_addr since we are a __tls_get_offset platform.
11694         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11695         GOT pointer being set up before.
11696         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11697
11698 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11699
11700         * manual/math.texi (Errors in Math Functions): Document accuracy
11701         goals.
11702
11703         [BZ #15004]
11704         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11705         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11706         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11707         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11708         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11709         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11710         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11711         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11712         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11713         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11714         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11715         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11716         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11717         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11718         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11719         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11720
11721         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11722         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11723         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11724         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11725         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11726         Likewise.
11727         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11728         Likewise.
11729         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11730         Likewise.
11731         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11732         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11733         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11734         atomic-feupdateenv and flt-rounds.
11735         * sysdeps/powerpc/nofpu/Versions (libc): Add
11736         __atomic_feholdexcept, __atomic_feclearexcept,
11737         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11738         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11739         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11740         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11741         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11742         here.
11743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11744         Update.
11745
11746         * manual/arith.texi (FP Exceptions): Document that exceptions may
11747         not be raised when matherr is used.
11748         (Math Error Reporting): Document overflow in directed rounding
11749         modes.  Document that errno may not be set when finite values are
11750         returned on overflow.  Document intent to set errno on underflow
11751         only for underflow to zero.
11752
11753         [BZ #16271]
11754         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11755         round-to-nearest then adjust result for other rounding modes.
11756         * include/fenv.h (fegetround): Use libm_hidden_proto.
11757         * math/fegetround.c (fegetround): Use libm_hidden_def.
11758         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11759         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11760         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11761         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11762         Likewise.
11763         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11764         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11765         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11766         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11767
11768 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11769
11770         [BZ #16077]
11771         * nss/Versions (libnss_files): Add
11772         _nss_files_gethostbyname3_r.
11773         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11774         New function.
11775         (HOST_DB_LOOKUP): Remove macro.
11776         (_nss_files_gethostbyname_r): Implement function without the
11777         HOST_DB_LOOKUP macro.
11778         (_nss_files_gethostbyname2_r): Likewise.
11779
11780 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11781
11782         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11783
11784 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11785
11786         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11787         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11788         warning.
11789
11790 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11791
11792         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11793         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11794         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11795         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11796         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11797         __fe_nomask_env_priv and attribute_hidden.
11798         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11799         (libc_feupdateenv_test_ppc): Likewise.
11800         (libc_feresetround_ppc): Likewise.
11801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11802         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11803         compat_symbol macro.
11804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11805         (__fe_nomask_env): Likewise.
11806         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11807
11808 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11809
11810         * string/Makefile: Remove ifunc tests.
11811         * string/test-string.h: Define TEST_IFUNC.
11812         * string/test-bcopy-ifunc.c: Remove.
11813         * string/test-bzero-ifunc.c: Likewise.
11814         * string/test-memccpy-ifunc.c: Likewise.
11815         * string/test-memchr-ifunc.c: Likewise.
11816         * string/test-memcmp-ifunc.c: Likewise.
11817         * string/test-memcpy-ifunc.c: Likewise.
11818         * string/test-memmem-ifunc.c: Likewise.
11819         * string/test-memmove-ifunc.c: Likewise.
11820         * string/test-mempcpy-ifunc.c: Likewise.
11821         * string/test-memrchr-ifunc.c: Likewise.
11822         * string/test-memset-ifunc.c: Likewise.
11823         * string/test-rawmemchr-ifunc.c: Likewise.
11824         * string/test-stpcpy-ifunc.c: Likewise.
11825         * string/test-stpncpy-ifunc.c: Likewise.
11826         * string/test-strcasecmp-ifunc.c: Likewise.
11827         * string/test-strcasestr-ifunc.c: Likewise.
11828         * string/test-strcat-ifunc.c: Likewise.
11829         * string/test-strchr-ifunc.c: Likewise.
11830         * string/test-strchrnul-ifunc.c: Likewise.
11831         * string/test-strcmp-ifunc.c: Likewise.
11832         * string/test-strcpy-ifunc.c: Likewise.
11833         * string/test-strcspn-ifunc.c: Likewise.
11834         * string/test-strlen-ifunc.c: Likewise.
11835         * string/test-strncasecmp-ifunc.c: Likewise.
11836         * string/test-strncat-ifunc.c: Likewise.
11837         * string/test-strncmp-ifunc.c: Likewise.
11838         * string/test-strncpy-ifunc.c: Likewise.
11839         * string/test-strnlen-ifunc.c: Likewise.
11840         * string/test-strpbrk-ifunc.c: Likewise.
11841         * string/test-strrchr-ifunc.c: Likewise.
11842         * string/test-strspn-ifunc.c: Likewise.
11843         * string/test-strstr-ifunc.c: Likewise.
11844
11845 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11846
11847         * benchtests/Makefile: Remove ifunc tests.
11848         * benchtests/bench-string.h: Define TEST_IFUNC.
11849         * benchtests/bench-bcopy-ifunc.c: Remove.
11850         * benchtests/bench-bzero-ifunc.c: Likewise.
11851         * benchtests/bench-memccpy-ifunc.c: Likewise.
11852         * benchtests/bench-memchr-ifunc.c: Likewise.
11853         * benchtests/bench-memcmp-ifunc.c: Likewise.
11854         * benchtests/bench-memcpy-ifunc.c: Likewise.
11855         * benchtests/bench-memmem-ifunc.c: Likewise.
11856         * benchtests/bench-memmove-ifunc.c: Likewise.
11857         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11858         * benchtests/bench-memrchr-ifunc.c: Likewise.
11859         * benchtests/bench-memset-ifunc.c: Likewise.
11860         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11861         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11862         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11863         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11864         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11865         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11866         * benchtests/bench-strcat-ifunc.c: Likewise.
11867         * benchtests/bench-strchr-ifunc.c: Likewise.
11868         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11869         * benchtests/bench-strcmp-ifunc.c: Likewise.
11870         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11871         * benchtests/bench-strcpy-ifunc.c: Likewise.
11872         * benchtests/bench-strcspn-ifunc.c: Likewise.
11873         * benchtests/bench-strlen-ifunc.c: Likewise.
11874         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11875         * benchtests/bench-strncat-ifunc.c: Likewise.
11876         * benchtests/bench-strncmp-ifunc.c: Likewise.
11877         * benchtests/bench-strncpy-ifunc.c: Likewise.
11878         * benchtests/bench-strnlen-ifunc.c: Likewise.
11879         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11880         * benchtests/bench-strrchr-ifunc.c: Likewise.
11881         * benchtests/bench-strsep-ifunc.c: Likewise.
11882         * benchtests/bench-strspn-ifunc.c: Likewise.
11883         * benchtests/bench-strstr-ifunc.c: Likewise.
11884
11885 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11886
11887         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11888
11889 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11890
11891         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11892         * rt/aio.h: Likewise.
11893         * sysdeps/gnu/bits/utmp.h: Likewise.
11894         * sysdeps/gnu/bits/utmpx.h: Likewise.
11895         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11896         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11897         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11898         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11899         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11900         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11901         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11902         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11903         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11904         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11905         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11906         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11907         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11909         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11910         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11911         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11912         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11913         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11914         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11915         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11916         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11917         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11918         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11919         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11920         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11921         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11922         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11923         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11924         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11925         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11926         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11927         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11928         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11929         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11930         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11931         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11932         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11933         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11934         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11935         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11936         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11937
11938 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11939
11940         [BZ #16245]
11941         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11942         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11943
11944 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11945
11946         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11947         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11948         Likewise.
11949
11950 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11951
11952         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11953         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11954         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11955         (__fesetround): Remove define.
11956         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11957         rounding and exceptions handling.
11958         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11959         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11960         (__fe_nomask_env): Likewise.
11961         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11962         __fegetround instead of fegetround.
11963         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11964         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11965
11966 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11967
11968         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11969         it's there.
11970
11971         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11972
11973 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11974
11975         [BZ #11157]
11976         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11977         (encrypt_r): Likewise.
11978         * malloc/obstack.h (obstack_free): Likewise.
11979         * posix/unistd.h (encrypt): Likewise.
11980
11981 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11982
11983         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11984         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11985         DL_CALL_DT_FINI() that call the functions directly.
11986         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11987         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11988         * elf/dl-fini.c: Likewise.
11989
11990 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11991
11992         * malloc/hooks.c (memalign_check): Add alignment rounding.
11993         * malloc/malloc.c (_mid_memalign): New function.
11994         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11995         Implement by calling _mid_memalign.
11996         * manual/probes.texi (Memory Allocation Probes): Remove
11997         memory_valloc_retry and memory_pvalloc_retry.
11998
11999 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12000
12001         * locale/programs/locarchive.c (open_archive): Add const
12002         qualifier to ARCHIVEFNAME and copy default fname to
12003         DEFAULT_FNAME.
12004
12005         [BZ #15601]
12006         * libio/tst-widetext.input: Rename Oriya to Odia.
12007         * locale/iso-639.def: Likewise.
12008
12009         * manual/probes.texi (Mathematical Function Probes): Add
12010         documentation for sin, cos, asin and acos probes.
12011         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
12012         (__sin32): Add slowasin probe.
12013         (__cos32): Add slowacos probe.
12014         (__mpsin): Add slowsin probe.
12015         (__mpcos): Add slowcos probe.
12016
12017 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
12018
12019         [BZ #15483]
12020         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
12021         thread-local __sim_exceptions_thread and global
12022         __sim_exceptions_global.
12023         (__sim_disabled_exceptions): Change to thread-local
12024         __sim_disabled_exceptions_thread and global
12025         __sim_disabled_exceptions_global.
12026         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12027         and global __sim_round_mode_global.
12028         (__simulate_exceptions): Use thread-local floating-point state and
12029         set global state from it as needed.
12030         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
12031         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
12032         __sim_round_mode_thread.
12033         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
12034         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
12035         and global __sim_exceptions_global.
12036         (__sim_disabled_exceptions): Change to thread-local
12037         __sim_disabled_exceptions_thread and global
12038         __sim_disabled_exceptions_global.
12039         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12040         and global __sim_round_mode_global.
12041         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
12042         (SIM_SET_GLOBAL): Likewise.
12043         * sysdeps/powerpc/soft-fp/sfp-machine.h
12044         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
12045         __sim_round_mode_thread.
12046         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
12047         __sim_disabled_exceptions_thread.
12048         (__sim_exceptions): Change to __sim_exceptions_thread.
12049         (__sim_disabled_exceptions): Change to
12050         __sim_disabled_exceptions_thread.
12051         (__sim_round_mode): Change to __sim_round_mode_thread.
12052         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
12053         thread-local floating-point state and set global state from it as
12054         needed.
12055         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
12056         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
12057         (__sim_disabled_exceptions): Remove extern declaration.
12058         (feenableexcept): Use thread-local floating-point state and set
12059         global state from it as needed.
12060         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
12061         extern declaration.
12062         (__sim_disabled_exceptions): Likewise.
12063         (__sim_round_mode): Likewise.
12064         (__fegetenv): Use thread-local floating-point state.
12065         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
12066         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12067         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
12068         floating-point state and set global state from it as needed.
12069         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
12070         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
12071         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
12072         Likewise.
12073         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
12074         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
12075         Likewise.
12076         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
12077         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
12078         Use __sim_round_mode_thread.
12079         * math/test-fenv-tls.c: New file.
12080         * math/Makefile (tests): Add test-fenv-tls.
12081         ($(objpfx)test-fenv-tls): Depend on
12082         $(common-objpfx)nptl/libpthread.so.
12083
12084 2013-11-19  Andreas Schwab  <schwab@suse.de>
12085
12086         * locale/programs/locale.c (show_info): Decode wordarray elements.
12087         * locale/categories.def (LC_MONETARY): Add element for
12088         _NL_MONETARY_CRNCYSTR.
12089         * locale/C-monetary.c (conversion_rate): New variable.
12090         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
12091         element.
12092
12093 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
12094
12095         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
12096         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
12097
12098 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12099
12100         * elf/Makefile (tst-auxv): New test.
12101         * elf/tst-auxv.c: New
12102         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12103
12104 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12105
12106         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12107         (hidden_proto): Caller changed.
12108         (hidden_tls_proto): New macro.
12109         (libc_hidden_tls_proto): Likewise.
12110         (rtld_hidden_tls_proto): Likewise.
12111         (libm_hidden_tls_proto): Likewise.
12112         (libresolv_hidden_tls_proto): Likewise.
12113         (librt_hidden_tls_proto): Likewise.
12114         (libdl_hidden_tls_proto): Likewise.
12115         (libnss_files_hidden_tls_proto): Likewise.
12116         (libnsl_hidden_tls_proto): Likewise.
12117         (libnss_nisplus_hidden_tls_proto): Likewise.
12118         (libutil_hidden_tls_proto): Likewise.
12119
12120 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12121
12122         [BZ #10253]
12123         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12124         (decompose_rpath): Defer expansion to fillin_rpath.
12125         (_dl_init_paths): Pass linkmap to fillin_rpath.
12126
12127 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12128
12129         * benchtests/Makefile: Add strsep.
12130         * benchtests/bench-strsep.c: New file: strsep benchtest.
12131         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12132
12133 2013-11-18  Andreas Schwab  <schwab@suse.de>
12134
12135         * locale/programs/locale.c (show_info) [case byte]: Check for
12136         '\377' instead of '\177'.
12137         * locale/C-monetary.c (not_available): Always use "\377".
12138         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12139         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12140         detect unavailable sign_posn locale elements.
12141         * locale/localeconv.c (__localeconv): For grouping and
12142         mon_grouping handle "\177" and "\377" like no grouping.
12143         (INT_ELEM): New macro.  Use it to set all numeric members.
12144         * locale/programs/ld-monetary.c (monetary_read)
12145         <tok_mon_grouping>: Normalize single -1 to the empty string.
12146         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12147         Likewise.
12148
12149 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12150
12151         [BZ #16055]
12152         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12153         when we match (nil).
12154         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12155
12156 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12157
12158         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12159         (NO_TEST_INLINE): Update value.
12160         (ERRNO_UNCHANGED): Likewise.
12161         (ERRNO_EDOM): Likewise.
12162         (ERRNO_ERANGE): Likewise.
12163         (IGNORE_RESULT): Likewise.
12164         (check_float_internal): Check signs of NaN results if
12165         TEST_NAN_SIGN used.
12166         (check_complex): Pass TEST_NAN_SIGN flag through to second
12167         check_float_internal call.
12168         (copysign_test_data): Add tests with quiet NaNs as second
12169         argument.  Use TEST_NAN_SIGN.
12170         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12171         TEST_NAN_SIGN.
12172         (signbit_test_data): Add tests of quiet NaN argument.
12173         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12174
12175         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12176         $ignore_result.
12177         (parse_args): Handle function results specified as IGNORE.
12178         * math/libm-test.inc (IGNORE_RESULT): New macro.
12179         (check_float_internal): Do not check numerical result if flag
12180         IGNORE_RESULT set.
12181         (check_complex): Pass through IGNORE_RESULT to second
12182         check_float_internal call.
12183         (check_int): Do not check numerical result if flag IGNORE_RESULT
12184         set.
12185         (check_long): Likewise.
12186         (check_bool): Likewise.
12187         (check_longlong): Likewise.
12188         (lrint_test_data): Add tests of infinite and NaN arguments.
12189         (lrint_tonearest_test_data): Likewise.
12190         (lrint_towardzero_test_data): Likewise.
12191         (lrint_downward_test_data): Likewise.
12192         (lrint_upward_test_data): Likewise.
12193         (llrint_test_data): Likewise.
12194         (llrint_tonearest_test_data): Likewise.
12195         (llrint_towardzero_test_data): Likewise.
12196         (llrint_downward_test_data): Likewise.
12197         (llrint_upward_test_data): Likewise.
12198         (lround_test_data): Likewise.
12199         (llround_test_data): Likewise.
12200
12201         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12202         (ERRNO_UNCHANGED): Update value.
12203         (ERRNO_EDOM): Likewise.
12204         (ERRNO_ERANGE): Likewise.
12205         (NO_TEST_INLINE_FLOAT): New macro.
12206         (NO_TEST_INLINE_DOUBLE): Likewise.
12207         (enable_test): New function.
12208         (RUN_TEST_f_f): Check enable_test before running test.
12209         (RUN_TEST_2_f): Likewise.
12210         (RUN_TEST_fff_f): Likewise.
12211         (RUN_TEST_c_f): Likewise.
12212         (RUN_TEST_f_f1): Likewise.
12213         (RUN_TEST_fF_f1): Likewise.
12214         (RUN_TEST_fI_f1): Likewise.
12215         (RUN_TEST_ffI_f1): Likewise.
12216         (RUN_TEST_c_c): Likewise.
12217         (RUN_TEST_cc_c): Likewise.
12218         (RUN_TEST_f_i): Likewise.
12219         (RUN_TEST_f_i_tg): Likewise.
12220         (RUN_TEST_ff_i_tg): Likewise.
12221         (RUN_TEST_f_b): Likewise.
12222         (RUN_TEST_f_b_tg): Likewise.
12223         (RUN_TEST_f_l): Likewise.
12224         (RUN_TEST_f_L): Likewise.
12225         (RUN_TEST_fFF_11): Likewise.
12226         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12227         conditionals.
12228         (cosh_test_data): Likewise.
12229         (exp_test_data): Likewise.
12230         (expm1_test_data): Likewise.
12231         (hypot_test_data): Likewise.
12232         (pow_test_data): Likewise.
12233         (sinh_test_data): Likewise.
12234         (tanh_test_data): Likewise.
12235         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12236         flags argument.
12237
12238         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12239         tests with quiet NaN input and output.
12240         (acosh_test_data): Likewise.
12241         (asin_test_data): Likewise.
12242         (asinh_test_data): Likewise.
12243         (atan_test_data): Likewise.
12244         (atanh_test_data): Likewise.
12245         (atan2_test_data): Likewise.
12246         (cbrt_test_data): Likewise.
12247         (cos_test_data): Likewise.
12248         (cosh_test_data): Likewise.
12249         (erf_test_data): Likewise.
12250         (erfc_test_data): Likewise.
12251         (exp_test_data): Likewise.
12252         (exp10_test_data): Likewise.
12253         (exp2_test_data): Likewise.
12254         (expm1_test_data): Likewise.
12255         (hypot_test_data): Likewise.
12256         (j0_test_data): Likewise.
12257         (j1_test_data): Likewise.
12258         (jn_test_data): Likewise.
12259         (lgamma_test_data): Likewise.
12260         (log_test_data): Likewise.
12261         (log10_test_data): Likewise.
12262         (log1p_test_data): Likewise.
12263         (log2_test_data): Likewise.
12264         (pow_test_data): Likewise.
12265         (scalb_test_data): Likewise.
12266         (sin_test_data): Likewise.
12267         (sincos_test_data): Likewise.
12268         (sinh_test_data): Likewise.
12269         (tan_test_data): Likewise.
12270         (tanh_test_data): Likewise.
12271         (tgamma_test_data): Likewise.
12272         (y0_test_data): Likewise.
12273         (y1_test_data): Likewise.
12274         (yn_test_data): Likewise.
12275
12276         [BZ #16167]
12277         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12278         argument being NaN and avoid computations with second argument in
12279         that case.
12280         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12281         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12282         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12283
12284 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12285
12286         * locale/iso-639.def: Add Chitwani Tharu (the).
12287
12288 2013-11-14  Andreas Schwab  <schwab@suse.de>
12289
12290         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12291         word instead of empty string.
12292
12293 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12294
12295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12296         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12298         (__fe_nomask_env): Likewise.
12299
12300 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12301
12302         * benchtests/bench-timing.h: Include time.h.
12303
12304 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12305
12306         [BZ #15997]
12307         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12308         to 3.4.0 for x32.
12309         * sysdeps/unix/sysv/linux/configure: Regenerated.
12310
12311 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12312
12313         [BZ #16151]
12314         * stdlib/strtod_l.c (round_and_return): Do not consider
12315         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12316         exponent one less than half the least subnormal exponent.
12317         * stdlib/test-strtod-round-data: Add more tests.
12318         * stdlib/tst-strtod-round.c (tests): Regenerated.
12319
12320 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12321
12322         [BZ #14143]
12323         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12324         (__fe_mask_env): Likewise.
12325         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12326         libm_hidden_proto and add function prototype.
12327         (__fe_mask_env): Add function prototype.
12328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12329         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12331         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12333         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12334
12335 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12336
12337         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12338         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12339
12340 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12341
12342         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12343         of htab_find_slot().
12344
12345 2013-11-11  David S. Miller  <davem@davemloft.net>
12346
12347         [BZ #16150]
12348         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12349         symbol in the non-vis3 case in static builds.
12350         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12351         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12352         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12353         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12354
12355 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12356
12357         [BZ #387]
12358         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12359         it is empty.
12360
12361 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12362
12363         * benchtests/Makefile: Add bench-strtod.
12364         * benchtests/bench-strtod.c: New file: strtod benchtest
12365
12366 2013-11-11  Andreas Schwab  <schwab@suse.de>
12367
12368         [BZ #16153]
12369         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12370         terminating NUL in key length.
12371
12372 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12373
12374         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12375         Add artificial ODP entry for vDSO symbol for PPC64.
12376         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12377         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12378
12379 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12380
12381         [BZ #15374]
12382         * nss/getent.c (services_keys): Recognize services starting with digit.
12383
12384 2013-11-06  David S. Miller  <davem@davemloft.net>
12385
12386         [BZ #15985]
12387         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12388         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12389
12390 2013-11-06  Will Newton  <will.newton@linaro.org>
12391
12392         * manual/memory.texi (Malloc Examples): Remove register
12393         keyword from examples.
12394
12395 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12396
12397         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12398
12399 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12400
12401         [BZ #6981]
12402         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12403         depending on [__GCC_IEC_559 > 0].
12404         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12405         depending on [__GCC_IEC_559_COMPLEX > 0].
12406
12407 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12408
12409         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12410         to iso-639.def.
12411
12412 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12413
12414         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12415
12416 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12417
12418         [BZ #16112]
12419         * malloc/malloc (malloc_info): Do not handle first bin as
12420         special case.
12421
12422 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12423
12424         * locale/iso-639.def: Add Central Nahuatl (nhn).
12425
12426 2013-11-01  Bruno Haible  <bruno@clisp.org>
12427
12428         [BZ #7003]
12429         * manual/math.texi (BSD Random): Specify range upper bound as
12430         in POSIX.
12431
12432 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12433
12434         * locale/iso-639.def: Add Meadow Mari (mhr).
12435
12436 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12437
12438         [BZ #14752], [BZ #15763]
12439         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12440         Validate name.
12441         * rt/tst_shm.c: Add test for escaping directory.
12442
12443 2013-10-31  Andreas Schwab  <schwab@suse.de>
12444
12445         [BZ #15917]
12446         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
12447         followed by 'x' as part of digit sequence.
12448         * stdio-common/tst-sscanf.c (double_tests2): New tests.
12449
12450 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12451
12452         [BZ #16037]
12453         * configure.ac: allow GNU Make 4.0 and greater.
12454         * configure: Regenerated.
12455
12456 2013-10-30  Will Newton  <will.newton@linaro.org>
12457
12458         [BZ #16038]
12459         * malloc/hooks.c (memalign_check): Limit alignment to the
12460         maximum representable power of two.
12461         * malloc/malloc.c (__libc_memalign): Likewise.
12462         * malloc/tst-memalign.c (do_test): Add test for very
12463         large alignment values.
12464         * malloc/tst-posix_memalign.c (do_test): Likewise.
12465
12466 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12467
12468         [BZ #11087]
12469         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
12470         (munmap_chunk): Likewise.
12471         (mremap_chunk): Likewise.
12472
12473 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12474
12475         [BZ #15799]
12476         * stdlib/div.c (div): Remove obsolete code.
12477         * stdlib/ldiv.c (ldiv): Likewise.
12478         * stdlib/lldiv.c (lldiv): Likewise.
12479
12480 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12481
12482         [BZ #16071]
12483         * nss/nss_files/files-XXX.c (get_contents_ret): New
12484         enumerator.
12485         (get_contents): New function.
12486         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12487
12488 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12489
12490         * configure.in: Moved to ...
12491         * configure.ac: ... here. Change reference to configure.in
12492         to configure.ac.
12493         * sysdeps/arm/preconfigure.ac: ... here.
12494         configure.in to configure.ac.
12495         * sysdeps/gnu/configure.in: Moved to ...
12496         * sysdeps/gnu/configure.ac: ... here.
12497         * sysdeps/i386/configure.in: Moved to ...
12498         * sysdeps/i386/configure.ac: ... here.
12499         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12500         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12501         * sysdeps/mach/configure.in: Moved to ...
12502         * sysdeps/mach/configure.ac: ... here.
12503         * sysdeps/mach/hurd/configure.in: Moved to ...
12504         * sysdeps/mach/hurd/configure.ac: ... here.
12505         * sysdeps/powerpc/configure.in: Moved to ...
12506         * sysdeps/powerpc/configure.ac: ... here.
12507         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12508         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12509         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12510         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12511         * sysdeps/s390/s390-32/configure.in: Moved to ...
12512         * sysdeps/s390/s390-32/configure.ac: ... here.
12513         * sysdeps/s390/s390-64/configure.in: Moved to ...
12514         * sysdeps/s390/s390-64/configure.ac: ... here.
12515         * sysdeps/sh/configure.in: Moved to ...
12516         * sysdeps/sh/configure.ac: ... here.
12517         * sysdeps/sparc/configure.in: Moved to ...
12518         * sysdeps/sparc/configure.ac: ... here.
12519         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12520         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12521         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12522         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12523         * sysdeps/x86_64/configure.in: Moved to ...
12524         * sysdeps/x86_64/configure.ac: ... here.
12525         * sysdeps/x86_64/preconfigure.in: Moved to ...
12526         * sysdeps/x86_64/preconfigure.ac: ... here.
12527         * aclocal.m4: Change reference to configure.in to configure.ac.
12528         * config.h.in: Likewise.
12529         * manual/install.texi: Likewise.
12530         * manual/maint.texi: Likewise.
12531         * Makefile: Likewise.
12532         * malloc/Makefile: Likewise.
12533         * nscd/Makefile: Likewise.
12534         * Makeconfig: Change reference to configure.in and
12535         preconfigure.in to configure.ac and preconfigure.ac
12536         respectively.
12537         * INSTALL: Regenerated.
12538         * configure: Likewise.
12539         * sysdeps/gnu/configure: Likewise.
12540         * sysdeps/i386/configure: Likewise.
12541         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12542         * sysdeps/mach/configure: Likewise.
12543         * sysdeps/mach/hurd/configure: Likewise.
12544         * sysdeps/powerpc/configure: Likewise.
12545         * sysdeps/powerpc/powerpc32/configure: Likewise.
12546         * sysdeps/powerpc/powerpc64/configure: Likewise.
12547         * sysdeps/s390/s390-32/configure: Likewise.
12548         * sysdeps/s390/s390-64/configure: Likewise.
12549         * sysdeps/sh/configure: Likewise.
12550         * sysdeps/sparc/configure: Likewise.
12551         * sysdeps/unix/sysv/linux/configure: Likewise.
12552         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12553         * sysdeps/x86_64/configure: Likewise.
12554         * sysdeps/x86_64/preconfigure: Likewise.
12555
12556 2013-10-29  Andreas Schwab  <schwab@suse.de>
12557
12558         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12559
12560 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12561
12562         * benchtests/pow-inputs: Add new inputs.
12563
12564         * benchtests/exp-inputs: Add new inputs.
12565
12566         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12567         conditional check for return value.
12568         (__cos32): Likewise.
12569
12570 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12571
12572         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12573         to provide a boost for large inputs with word alignment.
12574         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12575         implementation based on optimized PPC64 strcpy.
12576         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12577         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12578         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12579         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12580
12581 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12582
12583         [BZ #2801]
12584         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12585
12586 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12587
12588         [BZ #14876]
12589         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12590         * time/tst-strptime.c (day_tests): Add testcase.
12591
12592 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12593
12594         [BZ #14029]
12595         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12596
12597 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12598
12599         [BZ #16074]
12600         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12601         MAP_FAILED on error.
12602
12603 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12604
12605         [BZ #16072]
12606         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12607         heap for large requests.
12608
12609 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12610
12611         [BZ #9954]
12612         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12613         result if the result has no associated interface.
12614         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12615         interface for all 127.X.Y.Z addresses.
12616
12617 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12618
12619         * locale/iso-639.def: Add Ligurian (lij)
12620
12621 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12622
12623         [BZ #15825]
12624         * sunrpc/rpc_main.c: Document rpcgen -5.
12625
12626 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12627
12628         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12629
12630 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12631
12632         [BZ #10278]
12633         * posix/glob.c: Match only directories when trailing slash is present.
12634         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12635         (main): Add testcase.
12636
12637 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12638
12639         [BZ #15670]
12640         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12641
12642 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12643
12644         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12645         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12646         AUTH_DES and cindex for FIPS 140-2.
12647         (DES Encryption): Add cindex FIPS 46-3.
12648
12649         * locale/locarchive.h (struct locarhandle): Add fname.
12650         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12651         if an optional argument was specified to --list-archive,
12652         otherwise NULL.
12653         * locale/programs/locarchive.c (show_archive_content): Take new
12654         argument fname and pass it via ah.fname to open_archive.
12655         * locale/programs/localedef.h: Update decl.
12656         (open_archive): If AH->fname is non-null, open that file
12657         rather than the default file name, and don't ignore ENOENT.
12658         (create_archive): Set AH.fname to NULL.
12659         (delete_locales_from_archive): Likewise.
12660         (add_locales_to_archive): Likewise.
12661         * locale/programs/locfile.c (write_all_categories): Likewise.
12662
12663 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12664             Aldy Hernandez  <aldyh@redhat.com>
12665
12666         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12667         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12668         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12669         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12670         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12671         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12672         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12673         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12674         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12675         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12676         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12677         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12678         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12679         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12680         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12681         Likewise.
12682         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12683         Likewise.
12684         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12685         Likewise.
12686         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12687         Likewise.
12688         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12689         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12690         Likewise.
12691         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12692         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12693         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12694         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12695         Likewise.
12696         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12697         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12698         * sysdeps/powerpc/preconfigure: Likewise.
12699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12700         Likewise.
12701         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12702         Replace contents of file by #include of <fenv_libc.h>.
12703         * sysdeps/powerpc/soft-fp/sfp-machine.h
12704         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12705         and <sys/prctl.h>.
12706         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12707         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12708         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12709         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12710         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12711         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12712         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12713         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12714         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12715         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12716         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12717         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12719         Allow copysignl PLT reference to be missing.
12720
12721 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12722             Joseph Myers  <joseph@codesourcery.com
12723
12724         [BZ #15948]
12725         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12726         single character.
12727         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12728
12729 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12730
12731         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12732         * elf/tst-tls1.c: Likewise.
12733         * elf/tst-tls10.h: Likewise.
12734         * elf/tst-tls14.c: Likewise.
12735         * elf/tst-tls2.c: Likewise.
12736         * elf/tst-tls3.c: Likewise.
12737         * elf/tst-tls4.c: Likewise.
12738         * elf/tst-tls5.c: Likewise.
12739         * elf/tst-tls6.c: Likewise.
12740         * elf/tst-tls7.c: Likewise.
12741         * elf/tst-tls8.c: Likewise.
12742         * elf/tst-tls9.c: Likewise.
12743         * elf/tst-tlsmod1.c: Likewise.
12744         * elf/tst-tlsmod13.c: Likewise.
12745         * elf/tst-tlsmod13a.c: Likewise.
12746         * elf/tst-tlsmod14a.c: Likewise.
12747         * elf/tst-tlsmod16a.c: Likewise.
12748         * elf/tst-tlsmod16b.c: Likewise.
12749         * elf/tst-tlsmod2.c: Likewise.
12750         * elf/tst-tlsmod3.c: Likewise.
12751         * elf/tst-tlsmod4.c: Likewise.
12752         * elf/tst-tlsmod5.c: Likewise.
12753         * elf/tst-tlsmod6.c: Likewise.
12754
12755 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12756
12757         [BZ #12486]
12758         * malloc/malloc.c: remove checks for statistics.
12759
12760 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12761
12762         [BZ #15277]
12763         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12764         * inet/tst-network.c: Add testcase.
12765
12766 2013-10-17  Andreas Schwab  <schwab@suse.de>
12767
12768         [BZ #15218]
12769         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12770         to determine canonical name.
12771
12772 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12773
12774         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12775         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12776         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12790         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12791         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12792         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12793         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12794         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12795         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12796         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12797         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12798         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12799         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12800         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12801         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12802         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12804         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12805         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12820         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12821         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12822         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12825         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12826         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12827         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12828         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12829         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12830         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12831         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12832
12833 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12834
12835         [BZ #16041]
12836         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12837         make result into a quiet NaN.
12838
12839 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12840
12841         * soft-fp/adddf3.c: Fix horizontal whitespace.
12842         * soft-fp/addsf3.c: Likewise.
12843         * soft-fp/addtf3.c: Likewise.
12844         * soft-fp/divdf3.c: Likewise.
12845         * soft-fp/divsf3.c: Likewise.
12846         * soft-fp/divtf3.c: Likewise.
12847         * soft-fp/double.h: Likewise.
12848         * soft-fp/eqdf2.c: Likewise.
12849         * soft-fp/eqsf2.c: Likewise.
12850         * soft-fp/eqtf2.c: Likewise.
12851         * soft-fp/extenddftf2.c: Likewise.
12852         * soft-fp/extended.h: Likewise.
12853         * soft-fp/extendsfdf2.c: Likewise.
12854         * soft-fp/extendsftf2.c: Likewise.
12855         * soft-fp/extendxftf2.c: Likewise.
12856         * soft-fp/fixdfdi.c: Likewise.
12857         * soft-fp/fixdfsi.c: Likewise.
12858         * soft-fp/fixdfti.c: Likewise.
12859         * soft-fp/fixsfdi.c: Likewise.
12860         * soft-fp/fixsfsi.c: Likewise.
12861         * soft-fp/fixsfti.c: Likewise.
12862         * soft-fp/fixtfdi.c: Likewise.
12863         * soft-fp/fixtfsi.c: Likewise.
12864         * soft-fp/fixtfti.c: Likewise.
12865         * soft-fp/fixunsdfdi.c: Likewise.
12866         * soft-fp/fixunsdfsi.c: Likewise.
12867         * soft-fp/fixunsdfti.c: Likewise.
12868         * soft-fp/fixunssfdi.c: Likewise.
12869         * soft-fp/fixunssfsi.c: Likewise.
12870         * soft-fp/fixunssfti.c: Likewise.
12871         * soft-fp/fixunstfdi.c: Likewise.
12872         * soft-fp/fixunstfsi.c: Likewise.
12873         * soft-fp/fixunstfti.c: Likewise.
12874         * soft-fp/floatdidf.c: Likewise.
12875         * soft-fp/floatdisf.c: Likewise.
12876         * soft-fp/floatditf.c: Likewise.
12877         * soft-fp/floatsidf.c: Likewise.
12878         * soft-fp/floatsisf.c: Likewise.
12879         * soft-fp/floatsitf.c: Likewise.
12880         * soft-fp/floattidf.c: Likewise.
12881         * soft-fp/floattisf.c: Likewise.
12882         * soft-fp/floattitf.c: Likewise.
12883         * soft-fp/floatundidf.c: Likewise.
12884         * soft-fp/floatundisf.c: Likewise.
12885         * soft-fp/floatunditf.c: Likewise.
12886         * soft-fp/floatunsidf.c: Likewise.
12887         * soft-fp/floatunsisf.c: Likewise.
12888         * soft-fp/floatunsitf.c: Likewise.
12889         * soft-fp/floatuntidf.c: Likewise.
12890         * soft-fp/floatuntisf.c: Likewise.
12891         * soft-fp/floatuntitf.c: Likewise.
12892         * soft-fp/fmadf4.c: Likewise.
12893         * soft-fp/fmasf4.c: Likewise.
12894         * soft-fp/fmatf4.c: Likewise.
12895         * soft-fp/gedf2.c: Likewise.
12896         * soft-fp/gesf2.c: Likewise.
12897         * soft-fp/getf2.c: Likewise.
12898         * soft-fp/ledf2.c: Likewise.
12899         * soft-fp/lesf2.c: Likewise.
12900         * soft-fp/letf2.c: Likewise.
12901         * soft-fp/muldf3.c: Likewise.
12902         * soft-fp/mulsf3.c: Likewise.
12903         * soft-fp/multf3.c: Likewise.
12904         * soft-fp/negdf2.c: Likewise.
12905         * soft-fp/negsf2.c: Likewise.
12906         * soft-fp/negtf2.c: Likewise.
12907         * soft-fp/op-1.h: Likewise.
12908         * soft-fp/op-2.h: Likewise.
12909         * soft-fp/op-4.h: Likewise.
12910         * soft-fp/op-8.h: Likewise.
12911         * soft-fp/op-common.h: Likewise.
12912         * soft-fp/quad.h: Likewise.
12913         * soft-fp/single.h: Likewise.
12914         * soft-fp/soft-fp.h: Likewise.
12915         * soft-fp/sqrtdf2.c: Likewise.
12916         * soft-fp/sqrtsf2.c: Likewise.
12917         * soft-fp/sqrttf2.c: Likewise.
12918         * soft-fp/subdf3.c: Likewise.
12919         * soft-fp/subsf3.c: Likewise.
12920         * soft-fp/subtf3.c: Likewise.
12921         * soft-fp/truncdfsf2.c: Likewise.
12922         * soft-fp/trunctfdf2.c: Likewise.
12923         * soft-fp/trunctfsf2.c: Likewise.
12924         * soft-fp/trunctfxf2.c: Likewise.
12925         * soft-fp/unorddf2.c: Likewise.
12926         * soft-fp/unordsf2.c: Likewise.
12927         * soft-fp/unordtf2.c: Likewise.
12928
12929 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12930
12931         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12932         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12933
12934 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12935
12936         * elf/dl-libc.c: Clear initfini list after freeing.
12937
12938 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12939
12940         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12941         * soft-fp/addsf3.c: Likewise.
12942         * soft-fp/addtf3.c: Likewise.
12943         * soft-fp/divdf3.c: Likewise.
12944         * soft-fp/divsf3.c: Likewise.
12945         * soft-fp/divtf3.c: Likewise.
12946         * soft-fp/double.h: Likewise.
12947         * soft-fp/eqdf2.c: Likewise.
12948         * soft-fp/eqsf2.c: Likewise.
12949         * soft-fp/eqtf2.c: Likewise.
12950         * soft-fp/extenddftf2.c: Likewise.
12951         * soft-fp/extended.h: Likewise.
12952         * soft-fp/extendsfdf2.c: Likewise.
12953         * soft-fp/extendsftf2.c: Likewise.
12954         * soft-fp/extendxftf2.c: Likewise.
12955         * soft-fp/fixdfdi.c: Likewise.
12956         * soft-fp/fixdfsi.c: Likewise.
12957         * soft-fp/fixdfti.c: Likewise.
12958         * soft-fp/fixsfdi.c: Likewise.
12959         * soft-fp/fixsfsi.c: Likewise.
12960         * soft-fp/fixsfti.c: Likewise.
12961         * soft-fp/fixtfdi.c: Likewise.
12962         * soft-fp/fixtfsi.c: Likewise.
12963         * soft-fp/fixtfti.c: Likewise.
12964         * soft-fp/fixunsdfdi.c: Likewise.
12965         * soft-fp/fixunsdfsi.c: Likewise.
12966         * soft-fp/fixunsdfti.c: Likewise.
12967         * soft-fp/fixunssfdi.c: Likewise.
12968         * soft-fp/fixunssfsi.c: Likewise.
12969         * soft-fp/fixunssfti.c: Likewise.
12970         * soft-fp/fixunstfdi.c: Likewise.
12971         * soft-fp/fixunstfsi.c: Likewise.
12972         * soft-fp/fixunstfti.c: Likewise.
12973         * soft-fp/floatdidf.c: Likewise.
12974         * soft-fp/floatdisf.c: Likewise.
12975         * soft-fp/floatditf.c: Likewise.
12976         * soft-fp/floatsidf.c: Likewise.
12977         * soft-fp/floatsisf.c: Likewise.
12978         * soft-fp/floatsitf.c: Likewise.
12979         * soft-fp/floattidf.c: Likewise.
12980         * soft-fp/floattisf.c: Likewise.
12981         * soft-fp/floattitf.c: Likewise.
12982         * soft-fp/floatundidf.c: Likewise.
12983         * soft-fp/floatundisf.c: Likewise.
12984         * soft-fp/floatunsidf.c: Likewise.
12985         * soft-fp/floatunsisf.c: Likewise.
12986         * soft-fp/floatuntidf.c: Likewise.
12987         * soft-fp/floatuntisf.c: Likewise.
12988         * soft-fp/floatuntitf.c: Likewise.
12989         * soft-fp/fmadf4.c: Likewise.
12990         * soft-fp/fmasf4.c: Likewise.
12991         * soft-fp/fmatf4.c: Likewise.
12992         * soft-fp/gedf2.c: Likewise.
12993         * soft-fp/gesf2.c: Likewise.
12994         * soft-fp/getf2.c: Likewise.
12995         * soft-fp/ledf2.c: Likewise.
12996         * soft-fp/lesf2.c: Likewise.
12997         * soft-fp/letf2.c: Likewise.
12998         * soft-fp/muldf3.c: Likewise.
12999         * soft-fp/mulsf3.c: Likewise.
13000         * soft-fp/multf3.c: Likewise.
13001         * soft-fp/negdf2.c: Likewise.
13002         * soft-fp/negsf2.c: Likewise.
13003         * soft-fp/negtf2.c: Likewise.
13004         * soft-fp/op-1.h: Likewise.
13005         * soft-fp/op-2.h: Likewise.
13006         * soft-fp/op-4.h: Likewise.
13007         * soft-fp/op-8.h: Likewise.
13008         * soft-fp/op-common.h: Likewise.
13009         * soft-fp/quad.h: Likewise.
13010         * soft-fp/single.h: Likewise.
13011         * soft-fp/soft-fp.h: Likewise.
13012         * soft-fp/sqrtdf2.c: Likewise.
13013         * soft-fp/sqrtsf2.c: Likewise.
13014         * soft-fp/sqrttf2.c: Likewise.
13015         * soft-fp/subdf3.c: Likewise.
13016         * soft-fp/subsf3.c: Likewise.
13017         * soft-fp/subtf3.c: Likewise.
13018         * soft-fp/truncdfsf2.c: Likewise.
13019         * soft-fp/trunctfdf2.c: Likewise.
13020         * soft-fp/trunctfsf2.c: Likewise.
13021         * soft-fp/trunctfxf2.c: Likewise.
13022         * soft-fp/unorddf2.c: Likewise.
13023         * soft-fp/unordsf2.c: Likewise.
13024         * soft-fp/unordtf2.c: Likewise.
13025
13026 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
13027
13028         [BZ #15672]
13029         * misc/error.c (error_tail): Fix possible buffer overflow.
13030
13031 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
13032
13033         [BZ #13028]
13034         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
13035         address.
13036
13037 2013-10-14  P. J. McDermott  <pj@pehjota.net>
13038
13039         [BZ #832]
13040         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
13041         testing pipefail option.
13042
13043 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13044
13045         * soft-fp/double.h: Indent preprocessor directives inside #if.
13046         * soft-fp/extended.h: Likewise.
13047         * soft-fp/op-2.h: Likewise.
13048         * soft-fp/op-4.h: Likewise.
13049         * soft-fp/op-common.h: Likewise.
13050         * soft-fp/quad.h: Likewise.
13051         * soft-fp/single.h: Likewise.
13052         * soft-fp/soft-fp.h: Likewise.
13053
13054 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
13055
13056         * iconv/iconv_prog.c: Fix typos.
13057         * stdio-common/psiginfo-data.h: Likewise.
13058
13059 2013-10-12   Reuben Thomas <rrt@sc3d.org>
13060
13061         [BZ #15764]
13062         * locale/setlocale.c: Fix typo.
13063
13064 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13065
13066         [BZ #16036]
13067         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
13068         signaling NaN arguments.
13069         * soft-fp/unordsf2.c (__unordsf2): Likewise.
13070         * soft-fp/unordtf2.c (__unordtf2): Likewise.
13071
13072         [BZ #14910]
13073         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
13074         unordered operands.
13075         * soft-fp/gesf2.c (__gesf2): Likewise.
13076         * soft-fp/getf2.c (__getf2): Likewise.
13077         * soft-fp/ledf2.c (__ledf2): Likewise.
13078         * soft-fp/lesf2.c (__lesf2): Likewise.
13079         * soft-fp/letf2.c (__letf2): Likewise.
13080
13081         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
13082         * soft-fp/eqsf2.c (__eqsf2): Likewise.
13083         * soft-fp/eqtf2.c (__eqtf2): Likewise.
13084         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
13085         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
13086         * soft-fp/fixdfti.c (__fixdfti): Likewise.
13087         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
13088         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
13089         * soft-fp/fixsfti.c (__fixsfti): Likewise.
13090         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
13091         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
13092         * soft-fp/fixtfti.c (__fixtfti): Likewise.
13093         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
13094         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
13095         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
13096         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
13097         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
13098         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
13099         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
13100         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13101         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13102         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13103         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13104         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13105         * soft-fp/floattidf.c (__floattidf): Likewise.
13106         * soft-fp/floattisf.c (__floattisf): Likewise.
13107         * soft-fp/floattitf.c (__floattitf): Likewise.
13108         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13109         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13110         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13111         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13112         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13113         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13114         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13115         * soft-fp/gesf2.c (__gesf2): Likewise.
13116         * soft-fp/getf2.c (__getf2): Likewise.
13117         * soft-fp/ledf2.c (__ledf2): Likewise.
13118         * soft-fp/lesf2.c (__lesf2): Likewise.
13119         * soft-fp/letf2.c (__letf2): Likewise.
13120
13121         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13122         Undefine and redefine.
13123         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13124         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13125         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13126         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13127         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13128         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13129         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13130         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13131         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13132         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13133         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13134         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13135         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13136         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13137         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13138
13139         [BZ #16032]
13140         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13141         without decrementing exponent if mantissa >= that for the
13142         denominator, not >.
13143         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13144         denominator, not >.  Decrement exponent in < case instead of
13145         incrementing in >= case.
13146         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13147         without decrementing exponent if mantissa >= that for the
13148         denominator, not >.
13149
13150         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13151         computing saturated result for unsigned overflow.
13152
13153 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13154             Jeff Law  <law@redhat.com>
13155
13156         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13157         (atan2Mp): Add systemtap probe marker.
13158         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13159         (__ieee754_log): Add systemtap probe marker.
13160         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13161         (atanMp): Add systemtap probe marker.
13162         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13163         (tanMp): Add systemtap probe marker.
13164         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13165         (__slowexp): Add systemtap probe marker.
13166         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13167         (__slowpow): Add systemtap probe marker.
13168         * manual/probes.texi: Document probes.
13169
13170 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13171
13172         [BZ #15362]
13173         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13174         written.
13175         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13176         written.
13177         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13178         written to buffer but not flushed.
13179         * libio/iofwrite_u.c:  Likewise.
13180         * libio/iopadn.c:  Return bytes returned even if EOF was
13181         encountered.
13182         * libio/iowpadn.c:  Likewise.
13183         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13184         if _IO_padn does not write the whole buffer.
13185         [!COMPILE_WPRINTF] (PAD): Likewise.
13186
13187 2013-10-10  David S. Miller  <davem@davemloft.net>
13188
13189         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13190         directory block.
13191
13192 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13193
13194         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13195         instead of FSF address.
13196         * soft-fp/fixdfti.c: Likewise.
13197         * soft-fp/fixsfti.c: Likewise.
13198         * soft-fp/fixtfti.c: Likewise.
13199         * soft-fp/fixunsdfti.c: Likewise.
13200         * soft-fp/fixunssfti.c: Likewise.
13201         * soft-fp/fixunstfti.c: Likewise.
13202         * soft-fp/floattidf.c: Likewise.
13203         * soft-fp/floattisf.c: Likewise.
13204         * soft-fp/floattitf.c: Likewise.
13205         * soft-fp/floatuntidf.c: Likewise.
13206         * soft-fp/floatuntisf.c: Likewise.
13207         * soft-fp/floatuntitf.c: Likewise.
13208         * soft-fp/trunctfxf2.c: Likewise.
13209
13210         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13211         * soft-fp/fixdfti.c: Likewise.
13212         * soft-fp/fixsfti.c: Likewise.
13213         * soft-fp/fixtfti.c: Likewise.
13214         * soft-fp/fixunsdfti.c: Likewise.
13215         * soft-fp/fixunssfti.c: Likewise.
13216         * soft-fp/fixunstfti.c: Likewise.
13217         * soft-fp/floattidf.c: Likewise.
13218         * soft-fp/floattisf.c: Likewise.
13219         * soft-fp/floattitf.c: Likewise.
13220         * soft-fp/floatuntidf.c: Likewise.
13221         * soft-fp/floatuntisf.c: Likewise.
13222         * soft-fp/floatuntitf.c: Likewise.
13223         * soft-fp/trunctfxf2.c: Likewise.
13224
13225 2013-10-10  David S. Miller  <davem@davemloft.net>
13226
13227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13228
13229 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13230
13231         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13232         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13233         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13234         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13235         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13236         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13237         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13238
13239         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13240         for NaNs before doing comparisons on argument.
13241         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13242         Likewise.
13243
13244 2013-10-10  Will Newton  <will.newton@linaro.org>
13245
13246         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13247         passed to _int_memalign does not overflow.
13248
13249 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13250
13251         * scripts/bench.pl: Add include-sources directive.
13252         * benchtests/README: Update documentation.
13253
13254 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13255
13256         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13257         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13258         instead of FP_INIT_ROUNDMODE.
13259         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13260         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13261
13262         [BZ #16034]
13263         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13264         copy class of input value.
13265         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13266         not handle exceptions.
13267         * soft-fp/negsf2.c (__negsf2): Likewise.
13268         * soft-fp/negtf2.c (__negtf2): Likewise.
13269         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13270
13271 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13272
13273         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13274         semicolon.  From Linux kernel.
13275
13276 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13277
13278         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13279
13280 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13281
13282         [BZ #156]
13283         * manual/socket.texi: Added statement about buffer
13284         for gethostbyname2_r.
13285
13286 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13287
13288         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13289         Use .p2align directive instead, throughout.
13290         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13291         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13292         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13293         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13294         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13295         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13296         * sysdeps/x86_64/strchr.S: Likewise.
13297         * sysdeps/x86_64/strrchr.S: Likewise.
13298
13299 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13300
13301         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13302
13303         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13304
13305         * sysdeps/generic/math_private.h (__mpsin1): Remove
13306         declaration.
13307         (__mpcos1): Likewise.
13308         (__mpsin): New argument __range_reduce.
13309         (__mpcos): Likewise.
13310         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13311         (slow): Use __mpsin and __mpcos.
13312         (slow1): Likewise.
13313         (slow2): Likewise.
13314         (sloww): Likewise.
13315         (sloww1): Likewise.
13316         (sloww2): Likewise.
13317         (bsloww): Likewise.
13318         (bsloww1): Likewise.
13319         (bsloww2): Likewise.
13320         (cslow2): Likewise.
13321         (csloww): Likewise.
13322         (csloww1): Likewise.
13323         (csloww2): Likewise.
13324         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13325         range_reduce.  Merge in __mpsin1.
13326         (__mpcos): Likewise.
13327         (__mpsin1): Remove.
13328         (__mpcos1): Likewise.
13329
13330 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13331
13332         * locale/loadlocale.c (_nl_intern_locale_data): Use
13333         LOCFILE_ALIGNED_P.
13334         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13335         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13336         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13337         obstack data is appropriately aligned.
13338         (obstack_int32_grow_fast): Likewise.
13339         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13340         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13341         (add_locale_uint32_array): Likewise.
13342
13343 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13344
13345         * benchtests/Makefile: Remove ARGLIST and RET variables.
13346         ($(objpfx)bench-%.c): Pass only function name to the script.
13347         * benchtests/README: Update documentation.
13348         * benchtests/acos-inputs: Add new directives.
13349         * benchtests/acosh-inputs: Likewise.
13350         * benchtests/asin-inputs: Likewise.
13351         * benchtests/asinh-inputs: Likewise.
13352         * benchtests/atan-inputs: Likewise.
13353         * benchtests/atanh-inputs: Likewise.
13354         * benchtests/cos-inputs: Likewise.
13355         * benchtests/cosh-inputs: Likewise.
13356         * benchtests/exp-inputs: Likewise.
13357         * benchtests/log-inputs: Likewise.
13358         * benchtests/pow-inputs: Likewise.
13359         * benchtests/rint-inputs: Likewise.
13360         * benchtests/sin-inputs: Likewise.
13361         * benchtests/sinh-inputs: Likewise.
13362         * benchtests/tan-inputs: Likewise.
13363         * benchtests/tanh-inputs: Likewise.
13364         * scripts/bench.pl: Add support for new directives.
13365
13366 2013-10-07  Alan Modra  <amodra@gmail.com>
13367
13368         * README: Fix careless merge.
13369
13370 2013-10-05  Alan Modra  <amodra@gmail.com>
13371
13372         * NEWS: Mention powerpc64le support and bugs fixed.
13373         * README: Both big-endian and little-endian powerpc64 supported.
13374
13375 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13376
13377         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13378         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13379         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13380         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13381
13382 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13383
13384         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13385         match prototype.
13386
13387 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13388
13389         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13390         Move -mhard-float appending from
13391         ports/sysdeps/powerpc/powerpc32/Makefile.
13392         [$(with-fp) = yes] (ASFLAGS): Likewise.
13393         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13394         * sysdeps/powerpc/nofpu: Move directory from
13395         ports/sysdeps/powerpc/nofpu.
13396         * sysdeps/powerpc/soft-fp: Move directory from
13397         ports/sysdeps/powerpc/soft-fp.
13398         * sysdeps/powerpc/powerpc32/405: Move directory from
13399         ports/sysdeps/powerpc/powerpc32/405.
13400         * sysdeps/powerpc/powerpc32/440: Move directory from
13401         ports/sysdeps/powerpc/powerpc32/440.
13402         * sysdeps/powerpc/powerpc32/464: Move directory from
13403         ports/sysdeps/powerpc/powerpc32/464.
13404         * sysdeps/powerpc/powerpc32/476: Move directory from
13405         ports/sysdeps/powerpc/powerpc32/476.
13406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13407         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13409         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13411         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13413         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13415         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13416         * README: Update for powerpc-*-linux-gnu software floating point
13417         support in libc.
13418
13419         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13420         case to powerpc/powerpc32*.
13421         * sysdeps/unix/sysv/linux/configure: Regenerated.
13422
13423         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13424         (_FPU_MASK_OM): Define as 0x04.
13425         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13426         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13427         0x00c10080.
13428         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13429         0x0000003c.
13430         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13431
13432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13433         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13434         getcontext_e500.
13435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13436         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13437         setcontext_e500.
13438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13439         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13440         and setcontext_e500.
13441
13442 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
13443
13444         * locale/iso-3166.def: Update iso-1366.def and related occurrences
13445
13446 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13447
13448         * manual/threads.texi (Default Thread Attributes): Fix typo.
13449
13450 2013-10-04  Will Newton  <will.newton@linaro.org>
13451
13452         * malloc/Makefile: Add tst-memalign.
13453         * malloc/tst-memalign.c: New file.
13454
13455         * malloc/tst-posix_memalign.c: Add comments.
13456         (do_test): Add comments and call free on all potentially
13457         allocated pointers. Add space after cast.
13458
13459         * malloc/tst-pvalloc.c: Add comments.
13460         (do_test): Add comments and call free on all potentially
13461         allocated pointers. Remove duplicate check for NULL pointer.
13462         Add space after cast.
13463
13464         * malloc/tst-valloc.c: Add comments.
13465         (do_test): Add comments and call free on all potentially
13466         allocated pointers. Remove duplicate check for NULL pointer.
13467         Add space after cast.
13468
13469 2013-10-04  Alan Modra  <amodra@gmail.com>
13470
13471         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13472         Use stdint types in rather than __attribute__((mode())).
13473         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13474
13475 2013-10-04  Alan Modra  <amodra@gmail.com>
13476
13477         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13478         Correct handling of unaligned relocs for little-endian.
13479         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13480
13481 2013-10-04  Alan Modra  <amodra@gmail.com>
13482
13483         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
13484         * configure: Regenerate.
13485         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13486         * shlib-versions: Likewise.
13487
13488 2013-10-04  Alan Modra  <amodra@gmail.com>
13489
13490         * string/tester.c (test_memrchr): Increment reported test cycle.
13491
13492 2013-10-04  Alan Modra  <amodra@gmail.com>
13493
13494         * string/test-memcpy.c (do_one_test): When reporting errors, print
13495         string address and don't overrun end of string.
13496
13497 2013-10-04  Alan Modra  <amodra@gmail.com>
13498
13499         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13500         insrdi.  Make better use of reg selection to speed exit slightly.
13501         Schedule entry path a little better.  Remove useless "are we done"
13502         checks on entry to main loop.  Handle wrapping around zero address.
13503         Correct main loop count.  Handle single left-over word from main
13504         loop inline rather than by using loop_small.  Remove extra word
13505         case in loop_small caused by wrong loop count.  Add little-endian
13506         support.
13507         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13508         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13509         cache hint.
13510         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13511         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13512         support.  Avoid rlwimi.
13513         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13514
13515 2013-10-04  Alan Modra  <amodra@gmail.com>
13516
13517         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13518         insrdi.  Formatting.
13519         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13520         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13521         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13522         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13523         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13524         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13525
13526 2013-10-04  Alan Modra  <amodra@gmail.com>
13527
13528         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13529         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13530         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13531         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13532         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13533         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13534         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13535         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13536         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13537         use of regs.  Use power7 mtocrf.  Tidy function tails.
13538
13539 2013-10-04  Alan Modra  <amodra@gmail.com>
13540
13541         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13542         Formatting.  Consistently use rXXX register defines or rN defines.
13543         Use early exit labels that avoid restoring unused non-volatile regs.
13544         Make cr field use more consistent with rWORDn compares.  Rename
13545         regs used as shift registers for unaligned loop, using rN defines
13546         for short lifetime/multiple use regs.
13547         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13548         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13549         addi 1,1,64 to pop stack frame.  Simplify return value code.
13550         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13551
13552 2013-10-04  Alan Modra  <amodra@gmail.com>
13553
13554         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13555         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13556         rather than rlwimi.
13557         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13558         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13559         little-endian support.  Correct typos.
13560         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13561         rather than rlwimi.
13562         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13563         in loop and entry code to keep "and." results.
13564         (strchr): Add little-endian support.  Comment.  Move cntlzd
13565         earlier in tail.
13566         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13567
13568 2013-10-04  Alan Modra  <amodra@gmail.com>
13569
13570         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13571         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13572         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13573         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13574
13575 2013-10-04  Alan Modra  <amodra@gmail.com>
13576
13577         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13578         (rTMP): Define as r11.
13579         (strcmp): Add little-endian support.  Optimise tail.
13580         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13581         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13582         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13583         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13584         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13585         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13586         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13587
13588 2013-10-04  Alan Modra  <amodra@gmail.com>
13589
13590         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13591         little-endian support.  Remove unnecessary "are we done" tests.
13592         Handle "s" wrapping around zero and extremely large "size".
13593         Correct main loop count.  Handle single left-over word from main
13594         loop inline rather than by using small_loop.  Correct comments.
13595         Delete "zero" tail, use "end_max" instead.
13596         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13597
13598 2013-10-04  Alan Modra  <amodra@gmail.com>
13599
13600         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13601         support.  Don't branch over align.
13602         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13603         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13604         support.  Rearrange tmp reg use to suit.  Comment.
13605         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13606
13607 2013-10-04  Alan Modra  <amodra@gmail.com>
13608
13609         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13610
13611 2013-10-04  Alan Modra  <amodra@gmail.com>
13612
13613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13614         conditional form of branch and link when obtaining pc.
13615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13616
13617 2013-10-04  Alan Modra  <amodra@gmail.com>
13618
13619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13620         HIWORD/LOWORD.
13621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13623
13624 2013-10-04  Alan Modra  <amodra@gmail.com>
13625
13626         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13627         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13628         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13629         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13630         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13631         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13632         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13633         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13634         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13635         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13636
13637 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13638             Alistair Popple <alistair@ozlabs.au.ibm.com>
13639             Alan Modra <amodra@gmail.com>
13640
13641         [BZ #15723]
13642         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13643         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13644         _dl_hwcap access for little-endian.
13645         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13646         destroy vmx regs when saving unaligned.
13647         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13648         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13649         destroy vmx regs when saving unaligned.
13650
13651 2013-10-04  Alan Modra  <amodra@gmail.com>
13652
13653         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13654         Don't use a union to pack hi/low value.
13655
13656 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13657
13658         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13659         for little-endian.
13660         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13661         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13662         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13663         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13664         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13665
13666 2013-10-04  Alan Modra  <amodra@gmail.com>
13667
13668         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13669         constants to usual value for .cst8 section, and remove redundant
13670         high address load.
13671         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13672         constant for 0x1p52.  Load little-endian words of double from
13673         correct stack offsets.
13674
13675 2013-10-04  Alan Modra  <amodra@gmail.com>
13676
13677         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13678         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13679         words of double from correct stack offsets.
13680         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13681         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13682         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13683         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13684         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13685         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13686         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13687         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13688         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13689         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13690         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13691         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13692         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13693         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13694         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13695         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13696         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13697
13698 2013-10-04  Alan Modra  <amodra@gmail.com>
13699
13700         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13701         64-bit int/double union.
13702         (_FPU_SETCW): Likewise.
13703         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13704         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13705
13706 2013-10-04  Alan Modra  <amodra@gmail.com>
13707
13708         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13709         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13710
13711 2013-10-04  Alan Modra  <amodra@gmail.com>
13712
13713         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13714         use vector int constants.
13715         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13716
13717 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13718
13719         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13720         array with long long.
13721         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13722         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13723         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13724         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13725         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13726         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13727         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13728         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13729         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13730         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13731         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13732         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13733         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13734
13735 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13736
13737         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13738         (__signbit): Likewise.  Correct for little-endian.
13739         (__signbitl): Call __signbit.
13740         (lrint): Correct for little-endian.
13741         (lrintf): Call lrint.
13742
13743 2013-10-04  Alan Modra  <amodra@gmail.com>
13744
13745         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13746         union 32-bit int array member with 64-bit int array.
13747         (t515, tm256): Double rather than long double.
13748         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13749
13750 2013-10-04  Alan Modra  <amodra@gmail.com>
13751
13752         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13753         Delete.
13754         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13755         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13756         version of math_ldbl.h.
13757
13758 2013-10-04  Alan Modra  <amodra@gmail.com>
13759
13760         [BZ #15734], [BZ #15735]
13761         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13762         all uses of ieee875 long double macros and unions.  Simplify test
13763         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13764         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13765         normalize after ldbl_extract_mantissa, and don't add hidden bit
13766         already handled.  Don't treat low word of ieee854 mantissa like
13767         low word of IBM long double and mask off bit when testing for
13768         zero.
13769         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13770         all uses of ieee875 long double macros and unions.  Simplify tests
13771         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13772         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13773         two1022, instead use their values.  Recognise that tests for large
13774         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13775         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13776         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13777         test for 0.0L and nan.  Correct negation.
13778         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13779         ieee875 long double macros and unions.  Correct output for large
13780         magnitude x.  Correct absolute value calculation.
13781         (__erfcl): Likewise.
13782         * math/libm-test.inc: Add tests for errors discovered in IBM long
13783         double versions of fmodl, remainderl, erfl and erfcl.
13784
13785 2013-10-04  Alan Modra  <amodra@gmail.com>
13786
13787         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13788         all uses of ieee854 long double macros and unions.  Simplify tests
13789         for long doubles that are fully specified by the high double.
13790         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13791         Likewise.
13792         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13793         Remove dead code too.
13794         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13795         (__ieee754_ynl): Likewise.
13796         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13797         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13798         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13799         Remove dead code too.
13800         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13801         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13802         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13803         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13804         Simplify.
13805         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13806         Simplify.
13807         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13808         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13809         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13810         Comment on variable precision.
13811         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13812         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13813         Likewise.
13814         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13815         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13816         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13817         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13818         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13819
13820 2013-10-04  Alan Modra  <amodra@gmail.com>
13821
13822         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13823         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13824         all uses of ieee854 long double macros and unions.
13825         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13826         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13827         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13828         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13829         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13830         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13831         Likewise.
13832         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13833         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13834         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13835         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13836         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13837         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13838         Simplify sign and nan test too.
13839         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13840         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13841         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13842         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13843         Likewise.
13844         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13845         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13846         Likewise.
13847         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13848         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13849         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13850         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13851         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13852         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13853
13854 2013-10-04  Alan Modra  <amodra@gmail.com>
13855
13856         * stdio-common/printf_size.c (__printf_size): Don't use
13857         union ieee854_long_double in fpnum union.
13858         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13859         signbit macro to retrieve sign from long double.
13860         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13861         retrieve sign from long double.
13862         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13863         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13864         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13865         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13866         * math/test-misc.c (main): Don't use union ieee854_long_double.
13867
13868 2013-10-04  Alan Modra  <amodra@gmail.com>
13869
13870         [BZ #15680]
13871         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13872         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13873         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13874         calculation.  Remove unnecessary test for denormal exponent.
13875         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13876         Correct handling of denormals.  Avoid undefined shift behaviour.
13877         Correct normalisation of low mantissa when low double is denormal.
13878         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13879         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13880         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13881         Correct normalisation of low mantissa.  Test for overflow of high
13882         mantissa and normalise.
13883         (ldbl_nearbyint): Use more readable constant for two52.
13884         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13885         (__mpn_construct_long_double): Fix test for overflow of high
13886         mantissa and correct normalisation.  Avoid undefined shift.
13887
13888 2013-10-04  Alan Modra  <amodra@gmail.com>
13889
13890         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13891         (union ibm_extended_long_double): Define as an array of ieee754_double.
13892         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13893         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13894         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13895         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13896         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13897         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13898         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13899         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13900         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13901         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13902         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13903
13904 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13905
13906         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13907         page size instead of calling getpagesize.
13908
13909         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13910         (LOCFILE_ALIGN_MASK): Likewise.
13911         (LOCFILE_ALIGN_UP): Likewise.
13912         (LOCFILE_ALIGNED_P): Likewise.
13913         * locale/programs/ld-collate.c (collate_output): Use the new
13914         macros instead of __alignof__ (int32_t).
13915         * locale/weight.h (findidx): Likewise.
13916
13917 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13918
13919         [BZ #431]
13920         * manual/string.texi: Fix strncat and wcsncat.
13921
13922 2013-10-03  Brooks Moses  <bmoses@google.com>
13923
13924         [BZ #15915]
13925         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13926         * Makerules: ...here, and adjust associated comments.
13927
13928 2013-10-02  Will Newton  <will.newton@linaro.org>
13929
13930         * malloc/Makefile: Add tst-pvalloc.
13931         * malloc/tst-pvalloc.c: New file.
13932
13933 2013-10-02  Will Newton  <will.newton@linaro.org>
13934
13935         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13936         improve test coverage.
13937
13938 2013-10-02  Will Newton  <will.newton@linaro.org>
13939
13940         * malloc/Makefile: Add tst-posix_memalign.
13941         * malloc/tst-posix_memalign.c: New file.
13942
13943 2013-10-01  Eric Blake  <eblake@redhat.com>
13944
13945         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13946         Use __THROWNL rather than __THROW on static functions.
13947
13948 2013-09-30  Petr Machata  <pmachata@redhat.com>
13949
13950         * elf/elf.h (R_AARCH64_ABS16): New macro.
13951         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13952         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13953         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13954         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13955         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13956         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13957         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13958         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13959         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13960         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13961         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13962         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13963         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13964         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13965         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13966         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13967         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13968         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13969         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13970         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13971         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13972         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13973         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13974         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13975         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13976         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13977         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13978         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13979         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13980         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13981         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13982         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13983         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13984         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13985         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13986         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13987         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13988         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13989         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13990         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13991         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13992         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13993         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13994         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13995         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13996         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13997         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13998         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13999         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
14000         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
14001         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
14002         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
14003         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
14004         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
14005         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
14006         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
14007         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
14008         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
14009         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
14010         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
14011         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
14012         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
14013         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
14014         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
14015         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
14016         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
14017         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
14018         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
14019         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
14020         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
14021         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
14022         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
14023         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
14024         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
14025         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
14026         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
14027         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
14028         (R_AARCH64_TLSDESC_LDR): Likewise.
14029         (R_AARCH64_TLSDESC_ADD): Likewise.
14030         (R_AARCH64_TLSDESC_CALL): Likewise.
14031
14032 2013-09-30  Andreas Schwab  <schwab@suse.de>
14033
14034         [BZ #15048]
14035         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
14036         the nss database lookup.
14037         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14039
14040 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
14041
14042         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
14043
14044 2013-09-28  P. J. McDermott  <pj@pehjota.net>
14045
14046         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
14047         ${Bash-specific parameter/pattern/string} parameter expansion.
14048         * sysdeps/unix/make-syscalls.sh: Likewise.
14049
14050 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14051
14052         * sysdeps/sh/stackguard-macros.h: New file.
14053
14054 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
14055
14056         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
14057         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
14058         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
14059         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
14060         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14061         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
14062
14063 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14064
14065         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
14066         Fix thread ID register.
14067
14068 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
14069
14070         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
14071         [POSIX || UNIX98]: Require rather than permitting all symbols from
14072         <time.h>.
14073         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
14074         element of struct sched_param.
14075         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
14076         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
14077         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
14078         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
14079         constant.
14080
14081 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
14082
14083         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
14084         argument calculation.
14085
14086 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14087
14088         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
14089         Expect macro.
14090         [POSIX] (pthread_attr_t): Do not require type.
14091         [POSIX] (pthread_cond_t): Likewise.
14092         [POSIX] (pthread_condattr_t): Likewise.
14093         [POSIX] (pthread_key_t): Likewise.
14094         [POSIX] (pthread_mutex_t): Likewise.
14095         [POSIX] (pthread_mutexattr_t): Likewise.
14096         [POSIX] (pthread_once_t): Likewise.
14097         [POSIX] (pthread_t): Likewise.
14098         [POSIX-based standards] (pthread_atfork): Expect function.
14099
14100 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14101             Richard Sandiford  <richard@codesourcery.com>
14102
14103         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14104         (swap_endianness_p): New extern variable.
14105         (set_big_endian): New inline function.
14106         (maybe_swap_uint32): Likewise.
14107         (maybe_swap_uint32_array): Likewise.
14108         (maybe_swap_uint32_obstack): Likewise.
14109         * locale/programs/locfile.c: Include <stdbool.h>.
14110         (swap_endianness_p): New variable.
14111         (add_locale_uint32): Call maybe_swap_uint32.
14112         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14113         (write_locale_data): Call maybe_swap_uint32_array.
14114         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14115         maybe_swap_uint32.
14116         (obstack_int32_grow_fast): Likewise.
14117         (output_weightwc): Call maybe_swap_uint32_obstack.
14118         (collate_output): Likewise.
14119         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14120         (OPT_LITTLE_ENDIAN): Likewise.
14121         (options): Add --little-endian and --big-endian options.
14122         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14123         * locale/programs/locarchive.c: Include "locfile.h".
14124         (GET): New macro.
14125         (SET): Likewise.
14126         (INC): Likewise.
14127         (create_archive): Use the new macros to access fields of
14128         structures directly mapped from or written to locale archives.
14129         (oldlocrecentcmp): Likewise.
14130         (enlarge_archive): Likewise.
14131         (insert_name): Likewise.
14132         (add_alias): Likewise.
14133         (add_locale): Likewise.
14134         (delete_locales_from_archive): Likewise.
14135         (show_archive_content): Likewise.
14136         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14137         locale data.
14138
14139 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14140
14141         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14142         http://www.gnu.org/doc/freemanuals.texi.
14143         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14144
14145 2013-09-24  Will Newton  <will.newton@linaro.org>
14146
14147         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14148         macro.
14149
14150 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14151
14152         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14153         unsigned char.
14154
14155 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14156
14157         * manual/threads.texi (POSIX Threads): Fix a typo.
14158
14159 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14160
14161         [BZ #14547]
14162         * string/tst-strcoll-overflow.c: New test case.
14163         * string/Makefile (xtests): Add tst-strcoll-overflow.
14164         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14165         cache if string sizes may cause integer overflow.
14166
14167         [BZ #14547]
14168         * string/strcoll_l.c (coll_seq): New members rule, idx,
14169         save_idx and back_us.
14170         (get_next_seq_nocache): New function.
14171         (do_compare_nocache): New function.
14172         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14173         when malloc fails.
14174
14175 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14176
14177         [BZ #15754]
14178         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14179         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14180         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14181
14182         [BZ #15754]
14183         * elf/Makefile (tests): Add tst-ptrguard1.
14184         (tests-static): Add tst-ptrguard1-static.
14185         (tst-ptrguard1-ARGS): Define.
14186         (tst-ptrguard1-static-ARGS): Define.
14187         * elf/tst-ptrguard1.c: New file.
14188         * elf/tst-ptrguard1-static.c: New file.
14189         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14190         * sysdeps/i386/stackguard-macros.h: Likewise.
14191         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14192         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14193         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14194         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14195         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14196         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14197
14198 2013-09-23  Hector Marco  <hecmargi@upv.es>
14199             Ismael Ripoll  <iripoll@disca.upv.es>
14200             Carlos O'Donell  <carlos@redhat.com>
14201
14202         [BZ #15754]
14203         * sysdeps/generic/stackguard-macros.h: Define
14204         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14205         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14206         Define __pointer_chk_guard_local.
14207         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14208         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14209
14210 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14211
14212         [BZ #15859]
14213         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14214
14215 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14216
14217         * include/string.h (__ffs): Declare as hidden.
14218         * string/ffs.c (__ffs): Define as hidden.
14219         * sysdeps/i386/ffs.c (__ffs): Likewise.
14220         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14221         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14222         * sysdeps/s390/ffs.c (__ffs): Likewise.
14223         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14224
14225 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14226
14227         * NEWS: Mention malloc probes.
14228
14229         * malloc/arena.c (new_heap): New memory_heap_new probe.
14230         (grow_heap): New memory_heap_more probe.
14231         (shrink_heap): New memory_heap_less probe.
14232         (heap_trim): New memory_heap_free probe.
14233         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14234         (systrim): New memory_sbrk_less probe.
14235         * manual/probes.texi: Document them.
14236
14237         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14238         * manual/probes.texi: Document it.
14239
14240         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14241         (__libc_realloc): Add memory_realloc_retry probe.
14242         (__libc_memalign): Add memory_memalign_retry probe.
14243         (__libc_valloc): Add memory_valloc_retry probe.
14244         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14245         (__libc_calloc): Add memory_calloc_retry probe.
14246         * manual/probes.texi: Document them.
14247
14248         * malloc/arena.c (get_free_list): Add probe
14249         memory_arena_reuse_free_list.
14250         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14251         and memory_arena_reuse.
14252         (arena_get2) [!PER_THREAD]: Likewise.
14253         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14254         memory_arena_reuse_realloc.
14255         * manual/probes.texi: Document them.
14256
14257         * malloc/malloc.c (__libc_free): Add
14258         memory_mallopt_free_dyn_thresholds probe.
14259         (__libc_mallopt): Add multiple memory_mallopt probes.
14260         * manual/probes.texi: Document them.
14261
14262         * malloc/malloc.c: Include stap-probe.h.
14263         (__libc_mallopt): Add memory_mallopt probe.
14264         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14265         * manual/probes.texi: New.
14266         * manual/Makefile (chapters): Add probes.
14267         * manual/threads.texi: Set next node.
14268
14269 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14270
14271         [BZ #15963, #13985]
14272         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14273         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14274         Add `Chinese' to `nan' entry name.
14275
14276 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14277
14278         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14279         (POLYNOMIAL): Likewise.
14280         (TAYLOR_SINCOS): Likewise.
14281         (TAYLOR_SLOW): Likewise.
14282         (__sin): Use TAYLOR_SINCOS.
14283         (__cos): Likewise.
14284         (slow): Use TAYLOR_SLOW.
14285         (sloww): Likewise.
14286         (bsloww): Likewise.
14287         (csloww): Likewise.
14288
14289 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14290
14291         * stdlib/strtod_l.c: Fix buffer overrun.
14292
14293 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14294
14295         * benchtests/Makefile (bench): Add sincos.
14296         * benchtests/bench-sincos.c: New file.
14297
14298         * math/libm-test.inc (cos_test_data): New test inputs.
14299         (sin_test_data): Likewise.
14300
14301         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14302         macro.
14303         (__sin): Use it.
14304         (__cos): Likewise.
14305         (slow1): Likewise.
14306         (slow2): Likewise.
14307         (sloww1): Likewise.
14308         (sloww2): Likewise.
14309         (bsloww1): Likewise.
14310         (bsloww2): Likewise.
14311         (cslow2): Likewise.
14312         (csloww1): Likewise.
14313         (csloww2): Likewise.
14314
14315         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14316         function.
14317         (__sin): Use it.
14318         (__cos): Likewise.
14319
14320         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14321         gotos.
14322         (__cos): Likewise.
14323
14324 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14325
14326         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14327         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14328         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14329         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14330         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14331         * elf/cache.c (print_entry): Handle the new cache flags.
14332
14333 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14334             Aldy Hernandez  <aldyh@redhat.com>
14335
14336         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14337         Change condition to [_SOFT_FLOAT].
14338         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14339         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14340         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14341         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14342         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14343         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14344         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14345         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14346         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14347         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14348         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14349         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14350         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14351         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14352         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14353         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14354         declaration.
14355
14356 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14357
14358         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14359         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14360         (__longjmp): Use LOAD_GP to load saved GPRs.
14361         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14362         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14363         (__sigsetjmp): Use SAVE_GP to save GPRs.
14364
14365         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14366         Do not append -msoft-float.
14367         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14368
14369 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14370
14371         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14372
14373 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14374
14375         [BZ #15966]
14376         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14377         (_FPU_GETCW): Use initial "__" on variable and field names but not
14378         on macro parameter name.
14379         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14380         parentheses around reference to macro parameter.
14381
14382 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14383
14384         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14385         prototype.
14386         (ctype_startup): Use uint32_t in cast and sizeof for
14387         ctype->charnames.
14388
14389 2013-09-11  Jia Liu  <proljc@gmail.com>
14390
14391         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14392         __daddr_t_defined.
14393         [__FreeBSD__]: Likewise.
14394
14395 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14396
14397         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14398         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14399         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14400         (strchr): Remove __strchr_sse42 ifunc selection.
14401         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14402         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14403
14404 2013-09-11  Will Newton  <will.newton@linaro.org>
14405
14406         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14407         parameter to RES. Remove hardcoded 1000 value.
14408         * benchtests/bench-skeleton.c (main): Pass RES parameter
14409         to TIMING_INIT and multiply result by 1000.
14410
14411 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14412
14413         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14414
14415 2013-09-11  Andreas Schwab  <schwab@suse.de>
14416
14417         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14418         if not defined.
14419         (O_TMPFILE) [__USE_GNU]: Define.
14420         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14421         Define.
14422
14423 2013-09-11  Will Newton  <will.newton@linaro.org>
14424
14425         [BZ #15857]
14426         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14427         does not overflow.
14428
14429 2013-09-11  Will Newton  <will.newton@linaro.org>
14430
14431         [BZ #15856]
14432         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14433         does not overflow.
14434
14435 2013-09-11  Will Newton  <will.newton@linaro.org>
14436
14437         [BZ #15855]
14438         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14439         does not overflow.
14440
14441 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14442
14443         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
14444         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14445         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14446         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14447         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14448
14449 2013-09-10  Allan McRae  <allan@archlinux.org>
14450
14451         [BZ #15748]
14452         * manual/arith.texi (Parsing of Floats): Clarify
14453         cross-reference.
14454
14455         [BZ #15849]
14456         * manual/install.texi (Running make install): Mention
14457         --enable-pt-chown.
14458         * INSTALL: Regenerated.
14459
14460 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
14461
14462         * csu/init-first.c (_init): Remove the !SHARED condition around
14463         FPU control word initialization.
14464         * elf/dl-support.c (_dl_fpu_control): New variable.
14465         (_dl_aux_init) <AT_FPUCW>: Initialize it.
14466         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
14467         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
14468         * math/test-fpucw-static.c: New file.
14469         * math/test-fpucw-ieee.c: New file.
14470         * math/test-fpucw-ieee-static.c: New file.
14471         * math/Makefile (tests): Add `test-fpucw-ieee' and
14472         `$(tests-static)'.
14473         (tests-static): New variable.
14474         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
14475         dependency to...
14476         [($(build-shared),yes)]
14477         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
14478         ... this.
14479         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
14480         New dependency.
14481
14482 2013-09-09  Allan McRae  <allan@archlinux.org>
14483
14484         [BZ #15939]
14485         * manual/string.texi (Collation Functions): Fix typo in
14486         strcoll example.
14487         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14488
14489         [BZ #15893]
14490         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14491
14492         [BZ #15892]
14493         * libio/memstream.c (open_memstream): Fix memory leak.
14494         * libio/wmemstream.c (open_wmemstream): Likewise.
14495
14496         [BZ #15895]
14497         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14498
14499 2013-09-09  Will Newton  <will.newton@linaro.org>
14500
14501         * malloc/Makefile: Add tst-realloc to tests.
14502         * malloc/tst-realloc.c: New file.
14503
14504 2013-09-09  Allan McRae  <allan@archlinux.org>
14505
14506         [BZ #15844]
14507         * COPYING: Update from GNU website to fix FSF address.
14508         * COPYING.LIB: Likewise.
14509
14510 2013-09-06  David S. Miller  <davem@davemloft.net>
14511
14512         * po/zh_TW.po: Update Chinese (traditional) translation from
14513         translation project.
14514
14515 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14516             Joseph Myers  <joseph@codesourcery.com>
14517
14518         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14519         "localeinfo.h".
14520         (obstack_chunk_alloc): New macro.
14521         (obstack_chunk_free): Likewise.
14522         (record_offset): New function.
14523         (init_locale_data): Likewise.
14524         (align_locale_data): Likewise.
14525         (add_locale_empty): Likewise.
14526         (add_locale_raw_data): Likewise.
14527         (add_locale_raw_obstack): Likewise.
14528         (add_locale_string): Likewise.
14529         (add_locale_wstring): Likewise.
14530         (add_locale_uint32): Likewise.
14531         (add_locale_uint32_array): Likewise.
14532         (add_locale_char): Likewise.
14533         (start_locale_structure): Likewise.
14534         (end_locale_structure): Likewise.
14535         (start_locale_prelude): Likewise.
14536         (end_locale_prelude): Likewise.
14537         (write_locale_data): Take locale_file structure rather than an
14538         iovec.
14539         * locale/programs/locfile.h: Include "obstack.h".
14540         (struct locale_file): Change to store locale file contents instead
14541         of header.
14542         (init_locale_data): New prototype.
14543         (align_locale_data): Likewise.
14544         (add_locale_empty): Likewise.
14545         (add_locale_raw_data): Likewise.
14546         (add_locale_raw_obstack): Likewise.
14547         (add_locale_string): Likewise.
14548         (add_locale_wstring): Likewise.
14549         (add_locale_uint32): Likewise.
14550         (add_locale_uint32_array): Likewise.
14551         (add_locale_char): Likewise.
14552         (start_locale_structure): Likewise.
14553         (end_locale_structure): Likewise.
14554         (start_locale_prelude): Likewise.
14555         (end_locale_prelude): Likewise.
14556         (write_locale_data): Update prototype.
14557         * locale/programs/3level.h (struct TABLE): Remove result field.
14558         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14559         Use new locale_file interface.
14560         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14561         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14562         * locale/programs/ld-address.c (address_output): Use new
14563         locale_file interface.
14564         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14565         NO_ADD_LOCALE.
14566         (collate_finish): Don't call collseq_table_finalize.
14567         (collate_output): Use new locale_file interface.
14568         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14569         in file.
14570         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14571         (TABLE): Move defines earlier in file.
14572         (ELEMENT): Likewise.
14573         (DEFAULT): Likewise.
14574         (wctrans_table_add): Move macro and inline function earlier in
14575         file.
14576         (struct wctype_table): Move type earlier in file.
14577         (add_locale_wctype_table): New static prototype.
14578         (struct locale_ctype_t): Use logical types instead of struct iovec
14579         pointers for members.
14580         (ctype_output): Use new locale_file interface.
14581         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14582         new locale_file interface.
14583         (allocate_arrays): Update for use of new locale_file interface.
14584         * locale/programs/ld-identification.c (identification_output): Use
14585         new locale_file interface.
14586         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14587         * locale/programs/ld-messages.c (messages_output): Likewise.
14588         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14589         * locale/programs/ld-name.c (name_output): Likewise.
14590         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14591         * locale/programs/ld-paper.c (paper_output): Likewise.
14592         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14593         * locale/programs/ld-time.c (time_output): Likewise.
14594
14595 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14596
14597         * benchtests/Makefile: Add memrchr benchmark.
14598         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14599         benchmark as memrchr.
14600         * benchtests/bench-memrchr-ifunc.c: New file.
14601         * benchtests/bench-memrchr.c: New file.
14602
14603 2013-09-06   Will Newton  <will.newton@linaro.org>
14604
14605         * benchtests/Makefile (string-bench): Add memcpy.
14606
14607 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14608             Cong Wang  <amwang@redhat.com>
14609
14610         [BZ #15850]
14611         * sysdeps/unix/sysv/linux/bits/in.h
14612         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14613         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14614         before __USE_KERNEL_IPV6_DEFS uses.
14615         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14616         IPPROTO_BEETPH.
14617         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14618         sockaddr_in6, or ipv6_mreq.
14619
14620 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14621
14622         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14623         memory access for final bytes in some large inputs.
14624         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14625
14626 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14627
14628         * string/test-memrchr.c: New file.
14629         * string/test-memrchr-ifunc.c: New file.
14630         * string/Makefile: Add new memrchr testcase.
14631
14632 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14633
14634         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14635         fanotify_init returns EPERM.
14636
14637 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14638
14639         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14640         errors.
14641         (top level): Treat second token from macro or constant entries for
14642         allowed headers as allowed.
14643         * include/complex.h: Condition internal declarations on
14644         [!_ISOMAC].
14645         * include/fenv.h: Condition include of <stdbool.h> and internal
14646         declarations on [!_ISOMAC].
14647
14648 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14649
14650         [BZ #15923]
14651         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14652
14653 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14654
14655         * configure.in (--enable-versioning): Remove configure option.
14656         (libc_cv_asm_symver_directive): Remove configure test.
14657         (libc_cv_ld_version_script_option): Likewise.
14658         (VERSIONING): Remove variable and AC_SUBST.
14659         (DO_VERSIONING): Remove AC_DEFINE.
14660         * configure: Regenerated.
14661         * config.h.in (DO_VERSIONING): Remove macro.
14662         * Makerules [$(versioning) = yes]: Change conditionals to
14663         [$(build-shared) = yes].
14664         * config.make.in (versioning): Remove variable.
14665         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14666         [$(build-shared) = yes].
14667         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14668         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14669         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14670         [$(build-shared) = yes].
14671         * extra-lib.mk [$(versioning) = yes]: Likewise.
14672         * hurd/Makefile [$(versioning) = yes]: Likewise.
14673         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14674         [SHARED].
14675         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14676         [SHARED].
14677         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14678         [SHARED && !NO_HIDDEN].
14679         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14680         [SHARED].
14681         [SHARED && DO_VERSIONING]: Likewise..
14682         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14683         [$(build-shared) = yes].
14684         * manual/install.texi (--disable-versioning): Remove
14685         documentation.
14686         * INSTALL: Regenerated.
14687         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14688         to [SHARED].
14689         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14690         [$(build-shared) = yes].
14691         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14692         * sysdeps/i386/i686/multiarch/strstr-c.c
14693         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14694         [SHARED && !NO_HIDDEN].
14695         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14696         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14697         * sysdeps/powerpc/powerpc32/dl-machine.c
14698         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14699         * sysdeps/powerpc/powerpc32/sysdep.h
14700         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14701         to [SHARED && PIC && !NO_HIDDEN].
14702         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14703         conditional to [SHARED].
14704
14705 2013-09-04   Will Newton  <will.newton@linaro.org>
14706
14707         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14708         * benchtests/bench-string.h: Include bench-timing.h instead
14709         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14710         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14711         call to HP_TIMING_DIFF_INIT.
14712         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14713         instead of hp-timing.h macros.
14714         * benchtests/bench-memchr.c: Likewise.
14715         * benchtests/bench-memcmp.c: Likewise.
14716         * benchtests/bench-memcpy.c: Likewise.
14717         * benchtests/bench-memmem.c: Likewise.
14718         * benchtests/bench-memmove.c: Likewise.
14719         * benchtests/bench-memset.c: Likewise.
14720         * benchtests/bench-rawmemchr.c: Likewise.
14721         * benchtests/bench-strcasecmp.c: Likewise.
14722         * benchtests/bench-strcasestr.c: Likewise.
14723         * benchtests/bench-strcat.c: Likewise.
14724         * benchtests/bench-strchr.c: Likewise.
14725         * benchtests/bench-strcmp.c: Likewise.
14726         * benchtests/bench-strcpy.c: Likewise.
14727         * benchtests/bench-strcpy_chk.c: Likewise.
14728         * benchtests/bench-strlen.c: Likewise.
14729         * benchtests/bench-strncasecmp.c: Likewise.
14730         * benchtests/bench-strncat.c: Likewise.
14731         * benchtests/bench-strncmp.c: Likewise.
14732         * benchtests/bench-strncpy.c: Likewise.
14733         * benchtests/bench-strnlen.c: Likewise.
14734         * benchtests/bench-strpbrk.c: Likewise.
14735         * benchtests/bench-strrchr.c: Likewise.
14736         * benchtests/bench-strspn.c: Likewise.
14737         * benchtests/bench-strstr.c: Likewise.
14738
14739 2013-09-04  Will Newton  <will.newton@linaro.org>
14740
14741         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14742
14743 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14744
14745         [BZ #15427]
14746         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14747         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14748         * math/libm-test.inc (lgamma_test_data): Add more tests.
14749         * sysdeps/i386/fpu/libm-test-ulps: Update.
14750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14751
14752 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14753
14754         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14755         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14756         Add ifunc.
14757         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14758         Add strcmp-sse2-unaligned
14759         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14760
14761 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14762
14763         * Versions.def (libc): Add GLIBC_2.19.
14764
14765 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14766
14767         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14768         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14769
14770 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14771
14772         [BZ #14155]
14773         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14774         intermediate calculations in recurrence.
14775         (__ieee754_ynf): Likewise.
14776         * math/libm-test.inc (jn_test_data): Do not allow spurious
14777         underflow exception.  Add more tests.
14778         (yn_test_data): Add more tests.
14779         * sysdeps/i386/fpu/libm-test-ulps: Update.
14780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14781
14782 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14783
14784         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14785
14786 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14787
14788         * csu/init-first.c: Fix then/than typos.
14789         * locale/programs/ld-collate.c: Likewise.
14790         * locale/programs/linereader.h: Likewise.
14791         * manual/charset.texi: Likewise.
14792         * manual/filesys.texi: Likewise.
14793         * manual/stdio.texi: Likewise.
14794         * manual/string.texi: Likewise.
14795         * stdlib/fmtmsg.c: Likewise.
14796         * sysdeps/i386/stpncpy.S: Likewise.
14797         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14798         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14799         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14800         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14801
14802 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14803
14804         * elf/dl-open.c: Fix typos.
14805         * iconvdata/gbbig5.c: Likewise.
14806         * iconvdata/iso-2022-jp.c: Likewise.
14807         * iconv/gconv_int.h: Likewise.
14808         * iconv/loop.c: Likewise.
14809         * nis/rpcsvc/nis.h: Likewise.
14810         * resolv/ns_name.c: Likewise.
14811         * stdio-common/vfscanf.c: Likewise.
14812         * streams/stropts.h: Likewise.
14813         * sunrpc/rpc_thread.c: Likewise.
14814         * sysdeps/i386/strpbrk.S: Likewise.
14815         * sysdeps/ieee754/k_standard.c: Likewise.
14816         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14817         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14818         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14819         * sysdeps/mach/hurd/profil.c: Likewise.
14820         * sysdeps/s390/dl-procinfo.h: Likewise.
14821         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14822         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14823         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14824         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14825         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14826
14827 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14828
14829         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14830         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14831
14832 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14833
14834         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14835         aix specific files.
14836         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14837         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14838         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14839         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14840         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14841         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14842         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14843         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14844
14845 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14846             Roland McGrath  <roland@hack.frob.com>
14847
14848         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14849         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14850
14851 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14852
14853         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14854         __executable_start symbol instead of _start.
14855
14856 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14857
14858         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14859         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14860         Move macros to...
14861         * sysdeps/gnu/ldsodefs.h: ... this new file.
14862
14863         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14864         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14865         instead of ELFOSABI_LINUX.
14866
14867         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14868         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14869         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14870         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14871         Likewise.
14872         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14873         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14874         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14875         Likewise.
14876         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14877         (ibm_extended_long_double): Add ieee_nan member.
14878         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14879         (do_test): New function.
14880
14881         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14882         TEST_TRUNC.
14883         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14884         functions, renamed from truncdfsf_test, trunctfsf_test,
14885         trunctfdf_test.
14886         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14887         functions.
14888         (do_test): Run all these.
14889
14890 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14891
14892         * argp/argp-help.c: Fix typos.
14893         * argp/argp-parse.c: Likewise.
14894         * debug/backtracesyms.c: Likewise.
14895         * elf/elf.h: Likewise.
14896         * malloc/malloc.c: Likewise.
14897         * nis/nis_print.c: Likewise.
14898         * resolv/res_comp.c: Likewise.
14899         * stdlib/stdlib.h: Likewise.
14900         * sunrpc/clnt_tcp.c: Likewise.
14901         * sunrpc/clnt_udp.c: Likewise.
14902         * sunrpc/clnt_unix.c: Likewise.
14903         * sysdeps/unix/bsd/ptsname.c: Likewise.
14904         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14905         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14907         Likewise.
14908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14909         Likewise.
14910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14911         Likewise.
14912         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14913
14914 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14915
14916         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14917         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14918
14919 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14920
14921         [BZ #15897]
14922         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14923         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14924         ($(objpfx)bug-dl-leaf): New rule.
14925         ($(objpfx)bug-dl-leaf.so): Likewise.
14926         ($(objpfx)bug-dl-leaf.out): Likewise.
14927         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14928         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14929         * dlfcn/bug-dl-leaf.c: New test.
14930         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14931         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14932         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14933         (dlclose): Likewise.
14934         (dlmopen): Likewise.
14935
14936 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14937
14938         * include/netdb.h [!_ISOMAC]:
14939         Don't include <tls.h>.
14940         (h_errno, __libc_h_errno): Move declaration and macros out of
14941         [_LIBC_REENTRANT].
14942
14943         * include/resolv.h [_RESOLV_H_]:
14944         Don't include <tls.h>.
14945         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14946         * resolv/res_libc.c: Don't include <tls.h>.
14947         (_res): Use __attribute__ ((nocommon)) in place of
14948         __attribute__ ((section (".bss"))).
14949
14950         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14951         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14952
14953         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14954
14955         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14956         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14957
14958         * resolv/res_mkquery.c: Include <sys/time.h>.
14959
14960         * inet/ifreq.c: Moved to ...
14961         * sysdeps/unix/ifreq.c: ... here.
14962         * inet/ifreq.c: New file, true stub version.
14963
14964         * socket/sa_len.c: New file.
14965         * socket/Makefile (aux): Add it.
14966         * sysdeps/unix/sysv/linux/Makefile
14967         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14968         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14969         and #include <socket/sa_len.c>.
14970         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14971         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14972
14973         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14974         * bits/socket.h: ... here.
14975
14976         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14977         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14978         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14979
14980 2013-08-27  Andreas Schwab  <schwab@suse.de>
14981
14982         [BZ #15736]
14983         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14984         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14985         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14986         * string/test-strcasecmp.c (test_main): Run tests in several
14987         locales.
14988         * string/test-strncasecmp.c (test_main): Likewise.
14989
14990         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14991         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14992         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14993         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14994         (__strncasecmp_ssse3) [PIC]: Likewise.
14995
14996 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14997
14998         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14999
15000         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
15001         instead of explicitly declaring xdecrypt.
15002         * nis/nss_nis/nis-publickey.c: Likewise.
15003
15004 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15005
15006         [BZ #15890]
15007         * nscd/aicache.c: Include res_hconf.h.
15008         (addhstaiX): Initialize res_hconf.
15009
15010 2013-08-26  Andreas Schwab  <schwab@suse.de>
15011
15012         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
15013         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
15014
15015 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15016
15017         * nscd/aicache.c (addhstaiX): Fix indentation.
15018
15019 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
15020
15021         * configure.ac: Quote $build_pt_chown test.
15022         * configure: Regenerated.
15023
15024 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
15025
15026         [BZ #15532]
15027         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
15028         * math/s_cexpf.c (__cexpf): Likewise.
15029         * math/s_cexpl.c (__cexpl): Likewise.
15030         * math/libm-test.inc (cexp_test_data): Correct expected return
15031         value for NaN + i0.  Add another test.
15032
15033 2013-08-22  David S. Miller  <davem@davemloft.net>
15034
15035         * po/ca.po: Update Catalan translation from translation project.
15036         * po/uk.po: Add Ukrainian translations from translation project.
15037
15038 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
15039
15040         [BZ #15797]
15041         * math/s_fdim.c (__fdim): Check for infinite arguments if result
15042         is infinite, not alongside NaN test.
15043         * math/s_fdimf.c (__fdimf): Likewise.
15044         * math/s_fdiml.c (__fdiml): Likewise.
15045         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
15046         errno is unchanged.
15047
15048 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
15049
15050         * argp/argp-help.c: Fix typos.
15051         * crypt/speeds.c: Likewise.
15052         * csu/check_fds.c: Likewise.
15053         * elf/dl-load.c: Likewise.
15054         * elf/dl-open.c: Likewise.
15055         * elf/reldep3.c: Likewise.
15056         * elf/reldep.c: Likewise.
15057         * elf/sprof.c: Likewise.
15058         * iconv/iconv_charmap.c: Likewise.
15059         * iconv/skeleton.c: Likewise.
15060         * iconv/strtab.c: Likewise.
15061         * io/lockf64.c: Likewise.
15062         * libio/libioP.h: Likewise.
15063         * resolv/gai_notify.c: Likewise.
15064         * resolv/ns_name.c: Likewise.
15065         * resolv/ns_samedomain.c: Likewise.
15066         * resolv/res_send.c: Likewise.
15067         * stdlib/random.c: Likewise.
15068         * sunrpc/rpc/xdr.h: Likewise.
15069         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
15070         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15071         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15072         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15073         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15074         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15075         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15076         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15077         * sysdeps/mach/hurd/check_fds.c: Likewise.
15078         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15079         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
15080         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15081         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15082         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
15083         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15084         * sysdeps/pthread/aio_notify.c: Likewise.
15085         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
15086         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
15087         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
15088         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15089         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
15090
15091 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15092
15093         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
15094         version if bit_Slow_SSE4_2 is set.
15095         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15096         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15097
15098 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15099
15100         [BZ #15867]
15101         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15102         trampoline stack frame information.
15103         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15104         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15105         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15106         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15107         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15108         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15109         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15110         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15111         sa_flags value.
15112         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15113         interrupting a syscall and set with option SA_SIGINFO.
15114
15115 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15116
15117         [BZ #15531]
15118         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15119         argument is infinite.
15120         * math/s_cprojf.c (__cprojf): Likewise.
15121         * math/s_cprojl.c (__cprojl): Likewise.
15122         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15123         * math/libm-test.inc (cproj_test_data): Add more tests.
15124
15125         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15126
15127         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15128         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15129         size.  Use __ffs to determine corresponding shift.
15130
15131 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15132             Roland McGrath  <roland@hack.frob.com>
15133
15134         * Makefile (INSTALL): Remove trailing blank lines from output of
15135         makeinfo.
15136
15137 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15138
15139         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15140         Align 32 bit compat elf_greg to 8 bytes.
15141
15142 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15143
15144         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15145
15146 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15147
15148         * string/strcoll_l.c (coll_seq): New structure.
15149         (get_next_seq_cached): New function.
15150         (get_next_seq): New function.
15151         (do_compare): New function.
15152         (STRCOLL): Use GNU style definition.  Simplify implementation
15153         by using get_next_seq, get_next_seq_cached and do_compare.
15154
15155 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15156
15157         [BZ #14699]
15158         CVE-2013-4237
15159         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15160         member.
15161         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15162         member.
15163         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15164         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15165         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15166         conditional.
15167         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15168         GETDENTS_64BIT_ALIGNED.
15169         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15170         * manual/filesys.texi (Reading/Closing Directory): Document
15171         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15172         strongly.
15173         * manual/conf.texi (Limits for Files): Add portability note to
15174         NAME_MAX, PATH_MAX.
15175         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15176
15177 2013-08-13  Andreas Schwab  <schwab@suse.de>
15178
15179         [BZ #15749]
15180         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15181         of fabs.
15182         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15183         LDBL_MAX_EXP >= 16384]: Add tests for it.
15184
15185 2013-08-12  David S. Miller  <davem@davemloft.net>
15186
15187         * version.h (RELEASE): Set to "development".
15188         (VERSION): Set to "2.18.90".
15189         * NEWS: Add 2.19 section.
15190
15191 2013-08-03  David S. Miller  <davem@davemloft.net>
15192
15193         * po/ko.po: Update Korean translation from translation project.
15194
15195 2013-08-01  David S. Miller  <davem@davemloft.net>
15196
15197         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15198         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15199         Bilka.
15200
15201 2013-07-30  David S. Miller  <davem@davemloft.net>
15202
15203         * po/fr.po: Update French translation from translation project.
15204
15205 2013-07-28  David S. Miller  <davem@davemloft.net>
15206
15207         * po/cs.po: Update Czech translation from translation project.
15208
15209         * po/sv.po: Update Swedish translation from translation project.
15210
15211 2013-07-27  David S. Miller  <davem@davemloft.net>
15212
15213         * po/eo.po: Update Esperanto translation from translation project.
15214
15215         * po/vi.po: Update Vietnamese translation from translation project.
15216
15217         * po/de.po: Update German translation from translation project.
15218
15219 2013-07-26  David S. Miller  <davem@davemloft.net>
15220
15221         * po/bg.po: Update Bulgarian translation from translation project.
15222
15223         * po/nl.po: Update Dutch translation from translation project.
15224         * po/pl.po: Update Polish translation from translation project.
15225         * po/ru.po: Update Russian translation from translation project.
15226
15227 2013-07-24  David S. Miller  <davem@davemloft.net>
15228
15229         * po/libc.pot: Update.
15230
15231 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15232
15233         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15234         variable page size.
15235         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15236         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15237         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15238
15239 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15240
15241         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15242
15243 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15244             Andreas Schwab  <schwab@suse.de>
15245             Roland McGrath  <roland@hack.frob.com>
15246             Joseph Myers  <joseph@codesourcery.com>
15247             Carlos O'Donell  <carlos@redhat.com>
15248
15249         [BZ #15755]
15250         * config.h.in: Define HAVE_PT_CHOWN.
15251         * config.make.in (build-pt-chown): New variable.
15252         * configure.in (--enable-pt_chown): New configure option.
15253         * configure: Regenerate.
15254         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15255         build-pt-chown is enabled.
15256         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15257         pt_chown to fix pty ownership.
15258         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15259         CLOSE_ALL_FDS.
15260         * manual/install.texi (Configuring and compiling): Mention
15261         --enable-pt_chown. Add @findex for grantpt.
15262         * INSTALL: Regenerate.
15263
15264 2013-07-20  David S. Miller  <davem@davemloft.net>
15265
15266         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15267         difference between 32-bit and 64-bit.
15268
15269 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15270
15271         [BZ #15711]
15272         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15273         Avoid system header dependency with -ffreestanding.
15274         ($(objpfx)bits/syscall%d): Likewise.
15275
15276 2013-07-13  David S. Miller  <davem@davemloft.net>
15277
15278         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15279         underflows from atanl/atan2l due to bug 15319.
15280         (casinh_test_data): Likewise.
15281
15282 2013-07-07  David S. Miller  <davem@davemloft.net>
15283
15284         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15285
15286 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15287
15288         * sysdeps/i386/fpu/libm-test-ulps: Update.
15289         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15290
15291 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15292
15293         * configure.in (--enable-lock-elision): Fix message text.
15294         * INSTALL: Regenerate.
15295         * configure: Regenerate.
15296
15297 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15298
15299         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15300
15301 2013-07-03  Andreas Jaeger  <aj@suse.de>
15302
15303         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15304         define.
15305         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15306         (ptrace_peeksiginfo_args): Add.
15307         (__ptrace_peeksiginfo_flags): Add.
15308         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15309         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15310         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15311
15312 2013-07-03  Allan McRae  <allan@archlinux.org>
15313
15314         * sysdeps/i386/fpu/libm-test-ulps: Update.
15315
15316 2013-07-02  David S. Miller  <davem@davemloft.net>
15317
15318         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15319
15320 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15321
15322         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15323
15324 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15325
15326         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15328
15329 2013-07-02  Andi Kleen <ak@linux.intel.com>
15330
15331         * config.h.in (ENABLE_LOCK_ELISION): Add.
15332         * configure.in (--enable-lock-elision): Add option.
15333         * manual/install.texi: Document --enable lock elision.
15334         * configure: Regenerate
15335         * INSTALL: Regenerate.
15336
15337 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15338
15339         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15340         SSE4.2 strcasecmp for libc.a.
15341         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15342
15343 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15344
15345         [BZ #13304]
15346         * soft-fp/op-common.h (_FP_FMA): New macro.
15347         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15348         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15349         (_FP_MUL_MEAT_1_imm): ... here.
15350         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15351         (_FP_MUL_MEAT_1_wide): ... here.
15352         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15353         (_FP_MUL_MEAT_1_hard): ... here.
15354         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15355         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15356         (_FP_MUL_MEAT_2_wide): ... here.
15357         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15358         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15359         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15360         (_FP_MUL_MEAT_2_gmp): ... here.
15361         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15362         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15363         (_FP_MUL_MEAT_4_wide): ... here.
15364         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15365         (_FP_MUL_MEAT_4_gmp): ... here.
15366         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15367         (_FP_WFRACBITS_DW_S): Likewise.
15368         (_FP_WFRACXBITS_DW_S): Likewise.
15369         (_FP_HIGHBIT_DW_S): Likewise.
15370         (FP_FMA_S): Likewise.
15371         (_FP_FRAC_HIGH_DW_S): Likewise.
15372         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15373         (_FP_WFRACBITS_DW_D): Likewise.
15374         (_FP_WFRACXBITS_DW_D): Likewise.
15375         (_FP_HIGHBIT_DW_D): Likewise.
15376         (FP_FMA_D): Likewise.
15377         (_FP_FRAC_HIGH_DW_D): Likewise.
15378         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15379         (_FP_WFRACBITS_DW_E): Likewise.
15380         (_FP_WFRACXBITS_DW_E): Likewise.
15381         (_FP_HIGHBIT_DW_E): Likewise.
15382         (FP_FMA_E): Likewise.
15383         (_FP_FRAC_HIGH_DW_E): Likewise.
15384         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15385         (_FP_WFRACBITS_DW_Q): Likewise.
15386         (_FP_WFRACXBITS_DW_Q): Likewise.
15387         (_FP_HIGHBIT_DW_Q): Likewise.
15388         (FP_FMA_Q): Likewise.
15389         (_FP_FRAC_HIGH_DW_Q): Likewise.
15390         * soft-fp/fmasf4.c: New file.
15391         * soft-fp/fmadf4.c: Likewise.
15392         * soft-fp/fmatf4.c: Likewise.
15393
15394 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15395
15396         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15397         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15398         Silvermont.
15399         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15400         macro.
15401         (index_Slow_SSE4_2): Likewise.
15402         (index_Prefer_PMINUB_for_stringop): Likewise.
15403         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15404         bit_Slow_SSE4_2 is set.
15405         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15406         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15407
15408 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15409
15410         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15411         rtld_global._dl_hwcap2.
15412         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15413         POWER8.
15414         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15415         POWER8 feature descriptions defined in _dl_hwcap2.
15416         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15417         string handling for POWER8 feature bits.
15418         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15419         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15420         _dl_powerpc_cap_flags.
15421         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15422         * sysdeps/powerpc/rtld-global-offsets.sym
15423         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15424         _dl_hwcap2 in the rtld_global_ro structure.
15425
15426 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15427
15428         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15429         hardware capabilities in support of AT_HWCAP2.
15430         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15431         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15432         GLRO(dl_hwcap2).
15433         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15434         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15435         explicitly the unknown a_type display mechanism is used.
15436         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15437         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15438         struct member.
15439         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15440         to macro prototype for AT_HWCAP2 support.
15441         * sysdeps/i386/dl-procinfo.h: Likewise.
15442         * sysdeps/s390/dl-procinfo.h: Likewise.
15443         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
15444         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
15445         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
15446         return -1 for unknown a_type display fallback.
15447         * sysdeps/sparc/dl-procinfo.h: Likewise.
15448         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
15449         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
15450
15451 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
15452
15453         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
15454         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
15455
15456 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
15457
15458         [BZ #12492]
15459         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
15460         mprotect making __stack_prot writable.
15461
15462 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15463             Joseph Myers  <joseph@codesourcery.com>
15464
15465         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
15466         as being properly aligned.
15467
15468 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
15469
15470         * dlfcn/modstatic5.c: New file.
15471         * dlfcn/tststatic5.c: New file.
15472         * dlfcn/Makefile (tests): Add tststatic5.
15473         (tests-static): Likewise.
15474         (modules-names): Add modstatic5.
15475         (tststatic5-ENV): New variable.
15476         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
15477
15478         [BZ #15022]
15479         * elf/dl-support.c (_dl_main_map): New variable.
15480         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
15481         (_dl_nns, _dl_load_adds): Set to 1.
15482         (_dl_initial_searchlist): Refer to _dl_main_map.
15483         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
15484         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15485         call to _dl_get_origin.
15486         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15487         around call_map.
15488         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15489         * dlfcn/modstatic3.c: New file.
15490         * dlfcn/tststatic3.c: New file.
15491         * dlfcn/tststatic4.c: New file.
15492         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15493         (tests-static): Likewise.
15494         (modules-names): Add modstatic3.
15495         (tststatic3-ENV, tststatic4-ENV): New variables.
15496         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15497         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15498
15499 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15500
15501         * configure.in (CC): Require GCC version 4.4 or later.
15502         * configure: Regenerated.
15503         * manual/install.texi (Tools for Compilation): Update GCC version
15504         requirement.
15505         * INSTALL: Regenerated.
15506
15507 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15508
15509         [BZ #15674]
15510         * string/test-memcmp.c (check2): New.
15511         (main): Call check2.
15512
15513         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15514
15515 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15516
15517         [BZ #15022]
15518         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15519         over to...
15520         (dl_open_worker) [!SHARED]: ... here.
15521
15522 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15523
15524         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15525
15526 2013-06-25  Richard Henderson  <rth@redhat.com>
15527
15528         * locale/programs/locarchive.c: Include <libc-internal.h>
15529
15530 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15531
15532         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15533         trailing whitespace removed.
15534
15535 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15536
15537         [BZ #10283]
15538         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15539         * locale/programs/locarchive.c: Include libc-mmap.h.
15540         (prepare_address_space): Take two new outputs (the mmap base and len).
15541         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15542         values.
15543         (create_archive): Declare new mmap base and len values for
15544         prepare_address_space, and store the result in ah.
15545         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15546         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15547         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15548         Declare new mmap base and len values for
15549         prepare_address_space, and store the result in new_ah.
15550         (open_archive): Declare new mmap base and len values for
15551         prepare_address_space, and store the result in ah.
15552         (close_archive): If ah->mmap_base is not NULL, use that and
15553         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15554         * sysdeps/generic/libc-mmap.h: New file.
15555
15556 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15557
15558         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15559         (ALIGN_UP): Likewise.
15560         (PTR_ALIGN_DOWN): Likewise.
15561         (PTR_ALIGN_UP): Likewise.
15562
15563 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15564
15565         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15566         entry mapped to PPC_PLATFORM_POWER8.
15567         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15568         POWER8.
15569         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15570         (_dl_string_platform): Add case for exporting platform position for
15571         POWER8.
15572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15573         search path to sysdeps/powerpc/powerpc32/power8 directory.
15574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15575         search path to sysdeps/powerpc/powerpc64/power8 directory.
15576         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15577         power7 directories.
15578         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15579         power7 directories.
15580
15581 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15582
15583         * INSTALL: Regenerate.
15584
15585         * nscd/connections.c (nscd_init): Fix comment.
15586
15587 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15588
15589         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15590
15591         [BZ #15667]
15592         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15593         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15594
15595 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15596
15597         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15598         DL_DST_REQ_STATIC.
15599         (DL_DST_REQ_STATIC): Remove macro.
15600
15601 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15602
15603         [BZ #7006]
15604         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15605         with a shift of 0 bits.
15606
15607 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15608
15609         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15610         $(tststatic-ENV).
15611
15612 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15613
15614         [BZ #15655]
15615         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15616
15617 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15618
15619         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15620         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15621         accepts -fno-tree-loop-distribute-patterns.
15622         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15623         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15624         recursive call.
15625         * string/memset.c (memset): Likewise.
15626         * string/test-memmove.c (simple_memmove): Disable loop transformation
15627         to library calls.
15628         * string/test-memset.c (simple_memset): Likewise.
15629         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15630         * benchtests/bench-memset.c (simple_memset): Likewise.
15631         * configure: Regenerated.
15632
15633 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15634
15635         * math/test-misc.c (main): Ignore fesetround failure when failures
15636         of subsequent rounding tests would be ignored.
15637
15638         [BZ #15654]
15639         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15640         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15641         * math/fegetenv.c (__fegetenv): Return 0.
15642         * math/fegetexcept.c (fegetexcept): Return 0.
15643         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15644         FE_TONEAREST.
15645         * math/feholdexcpt.c (feholdexcept): Return 0.
15646         * math/fesetenv.c (__fesetenv): Return 0.
15647         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15648         argument FE_TONEAREST.
15649         * math/feupdateenv.c (__feupdateenv): Return 0.
15650         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15651
15652 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15653
15654         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15655         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15656         ($(objpfx)rtld-%.os rules): Use them.
15657
15658 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15659
15660         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15661         fields.
15662
15663 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15664
15665         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15666         length of target pattern, then descending length of dependency pattern.
15667         * configure.in (AWK): Require gawk 3.1.2 or newer.
15668         * manual/install.texi (Tools for Compilation): Say that we do.
15669         * configure: Regenerated.
15670
15671         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15672         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15673         * scripts/sysd-rules.awk: ... this new script.
15674         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15675         than a glob-style pattern.
15676
15677 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15678
15679         * math/test-misc.c (main): Do not treat incorrectly rounded
15680         conversions as failure unless ROUNDING_TESTS passes.
15681
15682 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15683
15684         [BZ #15631]
15685         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15686         restore exception state around main square root computation, then
15687         check for inexactness explicitly.
15688
15689         * math/libm-test.inc (fma_test_data): Add another test.
15690
15691 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15692
15693         * manual/threads.texi (Non-POSIX Extensions): New document
15694         node.  Document pthread_getattr_default_np and
15695         pthread_setattr_default_np.
15696
15697         * Versions.def (libpthread): Add GLIBC_2.18.
15698         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15700         Likewise.
15701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15702         Likewise.
15703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15704         Likewise.
15705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15706         Likewise.
15707         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15708         Likewise.
15709         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15710         Likewise.
15711         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15712         Likewise.
15713         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15714         Likewise.
15715         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15716         Likewise.
15717
15718 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15719
15720         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15721         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15722
15723 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15724             H.J. Lu  <hjl.tools@gmail.com>
15725
15726         [BZ #15627]
15727         * sysdeps/x86_64/rtld-memset.c: Remove file.
15728         * sysdeps/x86_64/rtld-memset.S: New file.
15729
15730 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15731
15732         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15733         (test_in_one_mode): Take arguments for whether the rounding mode
15734         is supported for each floating-point type.
15735         (do_test): Pass new arguments to test_in_one_mode using
15736         ROUNDING_TESTS.
15737
15738 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15739
15740         * posix/tst-waitid.c (do_test): Distinguish different instances of
15741         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15742         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15743         before entering the kernel for waitpid.
15744
15745 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15746
15747         * NEWS: Fix note on clock function precision.  Text by Roland
15748         McGrath.
15749
15750 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15751
15752         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15753         it into place only when and if the sanity check passes.
15754
15755 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15756
15757         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15758         output for whether conversion result is exact.  Take argument
15759         indicating whether type is IBM long double.
15760         (round_for_all): Change need_exact field to ibm_ld.
15761         * stdlib/tst-strtod-round.c (struct exactness): New type.
15762         (struct test): Change bool ld_ok field to struct exactness exact.
15763         (TEST): Update all definitions for change to field.
15764         (tests): Regenerate array contents.
15765         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15766         field value.  Check for IBM long double here.
15767         (do_test): Update calls to test_in_one_mode.
15768
15769 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15770
15771         [BZ #12515]
15772         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15773         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15774
15775 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15776
15777         [BZ #15605]
15778         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15779         generated by the compiler on loop optimizations.
15780         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15781         general definitions.
15782
15783 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15784
15785         * math/bug-nextafter.c: Include <math-tests.h>.
15786         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15787         the relevant type.
15788         * math/bug-nexttoward.c: Include <math-tests.h>.
15789         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15790         the relevant type.
15791         * math/test-misc.c: Include <math-tests.h>.
15792         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15793         the relevant type.
15794
15795 2013-06-12  Andreas Jaeger  <aj@suse.de>
15796
15797         * po/ia.po: Update Interlingua translation from translation
15798         project.
15799
15800 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15801
15802         * include/fenv.h: Include stdbool.h.
15803         (struct rm_ctx): New structure.
15804         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15805         Define macro.
15806         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15807         (SET_RESTORE_ROUNDF): Likewise.
15808         (SET_RESTORE_ROUNDL): Likewise.
15809         (SET_RESTORE_ROUND_NOEX): Likewise.
15810         (SET_RESTORE_ROUND_NOEXF): Likewise.
15811         (SET_RESTORE_ROUND_NOEXL): Likewise.
15812         (SET_RESTORE_ROUND_53BIT): Likewise.
15813         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15814         (libc_feresetround_noexf_ctx): Likewise.
15815         (libc_feresetround_noexl_ctx): Likewise.
15816         (libc_feholdsetround_53bit_ctx): Likewise.
15817         (libc_feresetround_53bit_ctx): Likewise.
15818         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15819         (libc_feholdexcept_setround_sse_ctx): New function.
15820         (libc_fesetenv_sse_ctx): Likewise.
15821         (libc_feupdateenv_sse_ctx): Likewise.
15822         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15823         (libc_feholdexcept_setround_387_ctx): Likewise.
15824         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15825         (libc_feholdsetround_387_prec_ctx): Likewise.
15826         (libc_feholdsetround_387_ctx): Likewise.
15827         (libc_feholdsetround_387_53bit_ctx): Likewise.
15828         (libc_feholdsetround_sse_ctx): Likewise.
15829         (libc_feresetround_sse_ctx): Likewise.
15830         (libc_feresetround_387_ctx): Likewise.
15831         (libc_feupdateenv_387_ctx): Likewise.
15832         (libc_feholdexcept_setroundf_ctx): Define macro.
15833         (libc_fesetenvf_ctx): Likewise.
15834         (libc_feupdateenvf_ctx): Likewise.
15835         (libc_feholdsetroundf_ctx): Likewise.
15836         (libc_feresetroundf_ctx): Likewise.
15837         (libc_feholdexcept_setround_ctx): Likewise.
15838         (libc_fesetenv_ctx): Likewise.
15839         (libc_feupdateenv_ctx): Likewise.
15840         (libc_feholdsetround_ctx): Likewise.
15841         (libc_feresetround_ctx): Likewise.
15842         (libc_feholdexcept_setroundl_ctx): Likewise.
15843         (libc_feupdateenvl_ctx): Likewise.
15844         (libc_feholdsetroundl_ctx): Likewise.
15845         (libc_feresetroundl_ctx): Likewise.
15846         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15847         (libc_feresetround_53bit_ctx): Likewise.
15848
15849 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15850
15851         * locale/iso-639.def: Convert to UTF-8.
15852
15853 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15854
15855         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15856         (EXCEPTION_TESTS_double): Likewise.
15857         (EXCEPTION_TESTS_long_double): Likewise.
15858         (EXCEPTION_TESTS): Likewise.
15859         * math/libm-test.inc (test_exceptions): Only test exceptions if
15860         EXCEPTION_TESTS (FLOAT).
15861
15862 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15863
15864         * benchtests/Makefile (string-bench): Add strcpy_chk and
15865         stpcpy_chk.
15866         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15867         * benchtests/bench-stpcpy_chk.c: New file.
15868         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15869         * benchtests/bench-strcpy_chk.c: New file.
15870         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15871         code.
15872         (do_test): Likewise.
15873
15874 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15875
15876         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15877         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15878         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15879         with tabs where appropriate.
15880         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15881         dl-procinfo.h.
15882         [PPC_PLATFORM_PPC440]: Likewise.
15883         [PPC_PLATFORM_PPC464]: Likewise.
15884         [PPC_PLATFORM_PPC476]: Likewise.
15885         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15886         ppc464, and ppc476 platform strings merging from ports/
15887         dl-procinfo.h.
15888
15889 2013-06-11  Andreas Schwab  <schwab@suse.de>
15890
15891         [BZ #14991]
15892         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15893         (from_ucs4_idx): Regenerate.
15894         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15895         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15896         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15897         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15898         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15899         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15900         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15901         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15902         from FROM_LOOP and TO_LOOP specific macros.
15903         (BODY): Handle combining characters.
15904         * iconvdata/BIG5HKSCS.irreversible: Update.
15905         * iconvdata/BIG5HKSCS.precomposed: New file.
15906         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15907         characters.
15908         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15909
15910 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15911
15912         * include/sys/time.h: Fix indentation and add copyright header.
15913
15914         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15915         (do_test): Likewise.
15916         * string/test-memchr.c (do_one_test): Likewise.
15917         (do_test): Likewise.
15918         * string/test-memcmp.c (do_one_test): Likewise.
15919         (do_test): Likewise.
15920         * string/test-memcpy.c (do_one_test): Likewise.
15921         (do_test): Likewise.
15922         * string/test-memmem.c (do_one_test): Likewise.
15923         (do_test): Likewise.
15924         (do_random_tests): Likewise.
15925         * string/test-memmove.c (do_one_test): Likewise.
15926         (do_test): Likewise.
15927         * string/test-memset.c (do_one_test): Likewise.
15928         (do_test): Likewise.
15929         * string/test-rawmemchr.c (do_one_test): Likewise.
15930         (do_test): Likewise.
15931         * string/test-strcasecmp.c (do_one_test): Likewise.
15932         (do_test): Likewise.
15933         * string/test-strcasestr.c (do_one_test): Likewise.
15934         (do_test): Likewise.
15935         * string/test-strcat.c (do_one_test): Likewise.
15936         (do_test): Likewise.
15937         * string/test-strchr.c (do_one_test): Likewise.
15938         (do_test): Likewise.
15939         * string/test-strcmp.c (do_one_test): Likewise.
15940         (do_test): Likewise.
15941         * string/test-strcpy.c (do_one_test): Likewise.
15942         (do_test): Likewise.
15943         * string/test-string.h: Likewise.
15944         (test_init): Likewise.
15945         * string/test-strlen.c (do_one_test): Likewise.
15946         (do_test): Likewise.
15947         * string/test-strncasecmp.c (do_one_test): Likewise.
15948         (do_test): Likewise.
15949         * string/test-strncat.c (do_one_test): Likewise.
15950         (do_test): Likewise.
15951         * string/test-strncmp.c (do_one_test): Likewise.
15952         (do_test_limit): Likewise.
15953         (do_test): Likewise.
15954         * string/test-strncpy.c (do_one_test): Likewise.
15955         (do_test): Likewise.
15956         * string/test-strnlen.c (do_one_test): Likewise.
15957         (do_test): Likewise.
15958         * string/test-strpbrk.c (do_one_test): Likewise.
15959         (do_test): Likewise.
15960         * string/test-strrchr.c (do_one_test): Likewise.
15961         (do_test): Likewise.
15962         * string/test-strspn.c (do_one_test): Likewise.
15963         (do_test): Likewise.
15964         * string/test-strstr.c (do_one_test): Likewise.
15965         (do_test): Likewise.
15966
15967         * benchtests/Makefile (string-bench): Add string benchmarks.
15968         * benchtests/bench-bcopy-ifunc.c: New file.
15969         * benchtests/bench-bcopy.c: New file.
15970         * benchtests/bench-bzero-ifunc.c: New file.
15971         * benchtests/bench-bzero.c: New file.
15972         * benchtests/bench-memccpy-ifunc.c: New file.
15973         * benchtests/bench-memccpy.c: New file.
15974         * benchtests/bench-memchr-ifunc.c: New file.
15975         * benchtests/bench-memchr.c: New file.
15976         * benchtests/bench-memcmp-ifunc.c: New file.
15977         * benchtests/bench-memcmp.c: New file.
15978         * benchtests/bench-memmem-ifunc.c: New file.
15979         * benchtests/bench-memmem.c: New file.
15980         * benchtests/bench-memmove-ifunc.c: New file.
15981         * benchtests/bench-memmove.c: New file.
15982         * benchtests/bench-mempcpy-ifunc.c: New file.
15983         * benchtests/bench-mempcpy.c: New file.
15984         * benchtests/bench-memset-ifunc.c: New file.
15985         * benchtests/bench-memset.c: New file.
15986         * benchtests/bench-rawmemchr-ifunc.c: New file.
15987         * benchtests/bench-rawmemchr.c: New file.
15988         * benchtests/bench-stpcpy-ifunc.c: New file.
15989         * benchtests/bench-stpcpy.c: New file.
15990         * benchtests/bench-stpncpy-ifunc.c: New file.
15991         * benchtests/bench-stpncpy.c: New file.
15992         * benchtests/bench-strcasecmp-ifunc.c: New file.
15993         * benchtests/bench-strcasecmp.c: New file.
15994         * benchtests/bench-strcasestr-ifunc.c: New file.
15995         * benchtests/bench-strcasestr.c: New file.
15996         * benchtests/bench-strcat-ifunc.c: New file.
15997         * benchtests/bench-strcat.c: New file.
15998         * benchtests/bench-strchr-ifunc.c: New file.
15999         * benchtests/bench-strchr.c: New file.
16000         * benchtests/bench-strchrnul-ifunc.c: New file.
16001         * benchtests/bench-strchrnul.c: New file.
16002         * benchtests/bench-strcmp-ifunc.c: New file.
16003         * benchtests/bench-strcmp.c: New file.
16004         * benchtests/bench-strcpy-ifunc.c: New file.
16005         * benchtests/bench-strcpy.c: New file.
16006         * benchtests/bench-strcspn-ifunc.c: New file.
16007         * benchtests/bench-strcspn.c: New file.
16008         * benchtests/bench-strlen-ifunc.c: New file.
16009         * benchtests/bench-strlen.c: New file.
16010         * benchtests/bench-strncasecmp-ifunc.c: New file.
16011         * benchtests/bench-strncasecmp.c: New file.
16012         * benchtests/bench-strncat-ifunc.c: New file.
16013         * benchtests/bench-strncat.c: New file.
16014         * benchtests/bench-strncmp-ifunc.c: New file.
16015         * benchtests/bench-strncmp.c: New file.
16016         * benchtests/bench-strncpy-ifunc.c: New file.
16017         * benchtests/bench-strncpy.c: New file.
16018         * benchtests/bench-strnlen-ifunc.c: New file.
16019         * benchtests/bench-strnlen.c: New file.
16020         * benchtests/bench-strpbrk-ifunc.c: New file.
16021         * benchtests/bench-strpbrk.c: New file.
16022         * benchtests/bench-strrchr-ifunc.c: New file.
16023         * benchtests/bench-strrchr.c: New file.
16024         * benchtests/bench-strspn-ifunc.c: New file.
16025         * benchtests/bench-strspn.c: New file.
16026         * benchtests/bench-strstr-ifunc.c: New file.
16027         * benchtests/bench-strstr.c: New file.
16028
16029         * benchtests/Makefile: Disable parallel execution of targets.
16030         (string-bench): Add memcpy.
16031         (benchset): New variable to store a list of benchmark sets.
16032         (bench-func): Renamed from bench.
16033         (bench-set): New target.
16034         (bench): Depend on bench-func and bench-set.
16035         * benchtests/README: Add section on benchmark sets.
16036         * benchtests/bench-memcpy-ifunc.c: New file.
16037         * benchtests/bench-memcpy.c: New file.
16038         * benchtests/bench-string.h: New file.
16039
16040 2013-06-11  Andreas Schwab  <schwab@suse.de>
16041
16042         [BZ #15577]
16043         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
16044         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
16045         values in the triple.
16046         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
16047         terminator in the group key.
16048
16049 2013-06-11  Andreas Jaeger  <aj@suse.de>
16050
16051         * po/zh_TW.po: Update Chinese (traditional) translation from
16052         translation project.
16053
16054 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16055
16056         * include/time.h (__clock_gettime): Add libc_hidden_proto.
16057         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
16058         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
16059         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16060         (clock_getcpuclockid): Likewise.
16061         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
16062         Add weak_alias and libc_hidden_def.
16063         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
16064         * rt/clock_gettime.c (clock_gettime): Rename to
16065         __clock_gettime.  Add weak_alias and libc_hidden_def.
16066         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
16067         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
16068         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
16069         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
16070         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
16071         Likewise.
16072         * rt/clock_settime.c (clock_settime): Rename to
16073         __clock_settime.  Add weak_alias and libc_hidden_def.
16074         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
16075
16076 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
16077
16078         * mach/err_boot.sub: Remove trailing whitespace.
16079         * mach/err_ipc.sub: Likewise.
16080         * mach/err_mach.sub: Likewise.
16081
16082         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
16083         (ROUNDING_TESTS_double): Likewise.
16084         (ROUNDING_TESTS_long_double): Likewise.
16085         (ROUNDING_TESTS): Likewise.
16086         * math/libm-test.inc: Include <math-tests.h>.
16087         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
16088         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16089         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16090         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16091
16092 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16093
16094         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
16095         of assigning.
16096
16097 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
16098
16099         * sysdeps/gnu/errlist.awk: Do not generate space at end of
16100         otherwise empty TRANS lines.
16101         * sysdeps/gnu/errlist.c: Regenerated.
16102
16103         * catgets/gencat.c (error_print): Use (void) in function
16104         definition.
16105         * crypt/crypt_util.c (__init_des): Likewise.
16106         * crypt/speeds.c (Stop): Likewise.
16107         (main): Likewise.
16108         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16109         * inet/ruserpass.c (token): Likewise.
16110         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16111         * intl/localealias.c (extend_alias_table): Likewise.
16112         * intl/plural-exp.c (init_germanic_plural): Likewise.
16113         * libio/fcloseall.c (__fcloseall): Likewise.
16114         * libio/genops.c (_IO_flush_all): Likewise.
16115         (_IO_flush_all_linebuffered): Likewise.
16116         (_IO_cleanup): Likewise.
16117         (_IO_iter_begin): Likewise.
16118         (_IO_iter_end): Likewise.
16119         (_IO_list_lock): Likewise.
16120         (_IO_list_unlock): Likewise.
16121         (_IO_list_resetlock): Likewise.
16122         * libio/getchar.c (getchar): Likewise.
16123         * libio/getchar_u.c (getchar_unlocked): Likewise.
16124         * libio/getwchar.c (getwchar): Likewise.
16125         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16126         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16127         * login/getpt.c (__getpt): Likewise.
16128         * login/tst-utmp.c (main): Likewise.
16129         * malloc/hooks.c (__malloc_check_init): Likewise.
16130         * malloc/malloc.c (__malloc_stats): Likewise.
16131         * malloc/mtrace.c (tr_break): Likewise.
16132         (mtrace): Likewise.
16133         (muntrace): Likewise.
16134         * misc/fstab.c (endfsent): Likewise.
16135         * misc/getclktck.c (__getclktck): Likewise.
16136         * misc/getdtsz.c (__getdtablesize): Likewise.
16137         * misc/gethostid.c (gethostid): Likewise.
16138         * misc/getpagesize.c (__getpagesize): Likewise.
16139         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16140         (__get_nprocs): Likewise.
16141         (__get_phys_pages): Likewise.
16142         (__get_avphys_pages): Likewise.
16143         * misc/getttyent.c (getttyent): Likewise.
16144         (setttyent): Likewise.
16145         (endttyent): Likewise.
16146         * misc/getusershell.c (getusershell): Likewise.
16147         (endusershell): Likewise.
16148         (setusershell): Likewise.
16149         (initshells): Likewise.
16150         * misc/hsearch.c (__hdestroy): Likewise.
16151         * misc/sync.c (sync): Likewise.
16152         * misc/syslog.c (closelog_internal): Likewise.
16153         (closelog): Likewise.
16154         * misc/ttyslot.c (ttyslot): Likewise.
16155         * misc/vhangup.c (vhangup): Likewise.
16156         * posix/fork.c (__fork): Likewise.
16157         * posix/getegid.c (__getegid): Likewise.
16158         * posix/geteuid.c (__geteuid): Likewise.
16159         * posix/getgid.c (__getgid): Likewise.
16160         * posix/getpid.c (__getpid): Likewise.
16161         * posix/getppid.c (__getppid): Likewise.
16162         * posix/getuid.c (__getuid): Likewise.
16163         * posix/pause.c (pause): Likewise.
16164         * posix/setpgrp.c (setpgrp): Likewise.
16165         * posix/setsid.c (__setsid): Likewise.
16166         * posix/test-vfork.c (noop): Likewise.
16167         * resolv/gethnamaddr.c (_endhtent): Likewise.
16168         (_gethtent): Likewise.
16169         (ht_endhostent): Likewise.
16170         (gethostent): Likewise.
16171         (dns_service): Likewise.
16172         * stdlib/drand48.c (drand48): Likewise.
16173         * stdlib/lrand48.c (lrand48): Likewise.
16174         * stdlib/mrand48.c (mrand48): Likewise.
16175         * stdlib/rand.c (rand): Likewise.
16176         * stdlib/random.c (__random): Likewise.
16177         * stdlib/setenv.c (clearenv): Likewise.
16178         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16179         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16180         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16181         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16182         (__get_nprocs): Likewise.
16183         (__get_phys_pages): Likewise.
16184         (__get_avphys_pages): Likewise.
16185         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16186         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16187         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16188         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16189         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16190         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16191         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16192         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16193         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16194         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16195         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16196         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16197         * sysdeps/posix/clock.c (clock): Likewise.
16198         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16199         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16200         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16201         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16202         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16203         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16204         (__get_nprocs_conf): Likewise.
16205         (__get_phys_pages): Likewise.
16206         (__get_avphys_pages): Likewise.
16207         * time/clock.c (clock): Likewise.
16208         * time/tzset.c (__tzname_max): Likewise.
16209
16210 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16211
16212         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16213         (__bswap_32): Do not use "register".
16214         * crypt/crypt.c (_ufc_doit_r): Likewise.
16215         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16216         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16217         * gmon/gmon.c (__monstartup): Likewise.
16218         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16219         * hurd/hurdmalloc.c (more_memory): Likewise.
16220         (malloc): Likewise.
16221         (free): Likewise.
16222         (realloc): Likewise.
16223         (malloc_fork_prepare): Likewise.
16224         (malloc_fork_parent): Likewise.
16225         (malloc_fork_child): Likewise.
16226         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16227         (_svcauth_des): Likewise.
16228         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16229         * inet/inet_net.c (inet_network): Likewise.
16230         * inet/inet_netof.c (inet_netof): Likewise.
16231         * inet/rcmd.c (__validuser2_sa): Likewise.
16232         * io/fts.c (fts_open): Likewise.
16233         (fts_load): Likewise.
16234         (fts_close): Likewise.
16235         (fts_read): Likewise.
16236         (fts_children): Likewise.
16237         (fts_build): Likewise.
16238         (fts_stat): Likewise.
16239         (fts_sort): Likewise.
16240         (fts_alloc): Likewise.
16241         (fts_lfree): Likewise.
16242         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16243         (_IO_file_xsgetn): Likewise.
16244         (_IO_file_xsgetn_mmap): Likewise.
16245         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16246         (_IO_cookie_write): Likewise.
16247         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16248         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16249         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16250         * malloc/obstack.c (_obstack_begin): Likewise.
16251         (_obstack_begin_1): Likewise.
16252         (_obstack_newchunk): Likewise.
16253         (_obstack_allocated_p): Likewise.
16254         (obstack_free): Likewise.
16255         (_obstack_memory_used): Likewise.
16256         * misc/getttyent.c (getttynam): Likewise.
16257         (getttyent): Likewise.
16258         (skip): Likewise.
16259         (value): Likewise.
16260         * misc/getusershell.c (initshells): Likewise.
16261         * misc/syslog.c (__vsyslog_chk): Likewise.
16262         * misc/ttyslot.c (ttyslot): Likewise.
16263         * nis/nis_hash.c (__nis_hash): Likewise.
16264         * posix/fnmatch_loop.c (FCT): Likewise.
16265         * posix/getconf.c (print_all): Likewise.
16266         (main): Likewise.
16267         * posix/getopt.c (exchange): Likewise.
16268         * posix/glob.c (globfree): Likewise.
16269         (prefix_array): Likewise.
16270         (__glob_pattern_type): Likewise.
16271         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16272         (NS_GET32): Likewise.
16273         (NS_PUT16): Likewise.
16274         (NS_PUT32): Likewise.
16275         * resolv/gethnamaddr.c (getanswer): Likewise.
16276         (gethostbyname2): Likewise.
16277         (gethostbyaddr): Likewise.
16278         (_gethtent): Likewise.
16279         (_gethtbyname2): Likewise.
16280         (_gethtbyaddr): Likewise.
16281         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16282         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16283         * resolv/res_init.c (__res_vinit): Likewise.
16284         (net_mask): Likewise.
16285         * resolv/res_mkquery.c (outchar): Likewise.
16286         (PRINT): Likewise.
16287         * stdio-common/printf_fp.c (outchar): Likewise.
16288         (PRINT): Likewise.
16289         * stdio-common/printf_fphex.c (outchar): Likewise.
16290         (PRINT): Likewise.
16291         * stdio-common/printf_size.c (outchar): Likewise.
16292         (PRINT): Likewise.
16293         * stdio-common/test_rdwr.c (main): Likewise.
16294         * stdio-common/tfformat.c (matches): Likewise.
16295         * stdio-common/vfprintf.c (outchar): Likewise.
16296         (printf_unknown): Likewise.
16297         (buffered_vfprintf): Likewise.
16298         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16299         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16300         (ReadFile): Likewise.
16301         * stdlib/qsort.c (SWAP): Likewise.
16302         (_quicksort): Likewise.
16303         * stdlib/setenv.c (__add_to_environ): Likewise.
16304         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16305         * stdlib/strtol_l.c (__strtol_l): Likewise.
16306         * stdlib/tst-strtod.c (main): Likewise.
16307         * stdlib/tst-strtol.c (main): Likewise.
16308         * stdlib/tst-strtoll.c (main): Likewise.
16309         * string/bits/string2.h (__strcmp_cc): Likewise.
16310         (__strcmp_cg): Likewise.
16311         (__strcspn_c1): Likewise.
16312         (__strcspn_c2): Likewise.
16313         (__strcspn_c3): Likewise.
16314         (__strspn_c1): Likewise.
16315         (__strspn_c2): Likewise.
16316         (__strspn_c3): Likewise.
16317         (__strsep_1c): Likewise.
16318         (__strsep_2c): Likewise.
16319         (__strsep_3c): Likewise.
16320         * string/memccpy.c (__memccpy): Likewise.
16321         * string/stpcpy.c (__stpcpy): Likewise.
16322         * string/strcmp.c (strcmp): Likewise.
16323         * string/strrchr.c (strrchr): Likewise.
16324         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16325         Likewise.
16326         * sysdeps/mach/hurd/getcwd.c
16327         (_hurd_canonicalize_directory_name_internal): Likewise.
16328         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16329         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16330         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16331         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16332         Likewise, in both definitions.
16333         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16334         definitions.
16335         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16336         64] (__bswap_64): Likewise.
16337         * time/test_time.c (main): Likewise.
16338         * time/tzfile.c (__tzfile_read): Likewise.
16339         (__tzfile_compute): Likewise.
16340         * time/tzset.c (__tzset_parse_tz): Likewise.
16341         (tzset_internal): Likewise.
16342         (compute_change): Likewise.
16343         * wcsmbs/wcscat.c (__wcscat): Likewise.
16344         * wcsmbs/wcschr.c (wcschr): Likewise.
16345         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16346         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16347         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16348         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16349         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16350         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16351         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16352         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16353         * wcsmbs/wmemset.c (wmemset): Likewise.
16354
16355 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16356
16357         * scripts/config.guess: Update to version 2013-05-16.
16358         * scripts/config.sub: Update to version 2013-04-24.
16359         * scripts/install-sh: Update to version 2011-11-20.07.
16360         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16361         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16362
16363 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16364
16365         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16366         * elf/sln.c: Likewise.
16367         * hurd/hurd/ioctl.h: Likewise.
16368         * hurd/hurdmalloc.c: Likewise.
16369         * hurd/xattr.c: Likewise.
16370         * include/shlib-compat.h: Likewise.
16371         * inet/ruserpass.c: Likewise.
16372         * libio/iofgets_u.c: Likewise.
16373         * libio/iofgetws_u.c: Likewise.
16374         * locale/programs/ld-identification.c: Likewise.
16375         * locale/programs/ld-time.c: Likewise.
16376         * mach/msg-destroy.c: Likewise.
16377         * nss/nss_files/files-netgrp.c: Likewise.
16378         * resolv/res_data.c: Likewise.
16379         * soft-fp/op-1.h: Likewise.
16380         * soft-fp/op-2.h: Likewise.
16381         * soft-fp/op-4.h: Likewise.
16382         * soft-fp/op-common.h: Likewise.
16383         * stdio-common/printf_fphex.c: Likewise.
16384         * stdlib/strtod_l.c: Likewise.
16385         * sunrpc/rpc/clnt.h: Likewise.
16386         * sysdeps/generic/framestate.c: Likewise.
16387         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16388         * sysdeps/i386/bsd-setjmp.S: Likewise.
16389         * sysdeps/i386/__longjmp.S: Likewise.
16390         * sysdeps/i386/setjmp.S: Likewise.
16391         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16392         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16393         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16394         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16395         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16396         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16397         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16398         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16399         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16400         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16401         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16402         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16403         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16404         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16405         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16406         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16407         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16408         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16409         * sysdeps/ieee754/support.c: Likewise.
16410         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16411         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16412         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16413         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16414         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16415         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16416         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16417         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16418         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16419         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16420         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16421         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16422         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16423         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16424         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16425         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16426         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16428
16429 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16430
16431         * posix/transbug.c: Remove executable mode.
16432
16433 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16434
16435         * crypt/speeds.c: Remove trailing whitespace.
16436         * dlfcn/default.c: Likewise.
16437         * elf/ifuncdep2.c: Likewise.
16438         * elf/ifuncmain1.c: Likewise.
16439         * elf/ifuncmain1vis.c: Likewise.
16440         * elf/testobj.h: Likewise.
16441         * elf/tst-stackguard1.c: Likewise.
16442         * gmon/sys/gmon.h: Likewise.
16443         * hurd/hurdmsg.c: Likewise.
16444         * hurd/new-fd.c: Likewise.
16445         * hurd/ports-get.c: Likewise.
16446         * iconvdata/ibm1008_420.c: Likewise.
16447         * inet/tst-getni1.c: Likewise.
16448         * inet/tst-getni2.c: Likewise.
16449         * libio/ioungetc.c: Likewise.
16450         * libio/wfiledoalloc.c: Likewise.
16451         * manual/libm-err-tab.pl: Likewise.
16452         * math/w_dremf.c: Likewise.
16453         * misc/ftruncate.c: Likewise.
16454         * posix/bug-glob2.c: Likewise.
16455         * posix/tst-pcre.c: Likewise.
16456         * posix/wait4.c: Likewise.
16457         * resolv/README: Likewise.
16458         * resolv/res_debug.h: Likewise.
16459         * resolv/tst-inet_ntop.c: Likewise.
16460         * setjmp/bug269-setjmp.c: Likewise.
16461         * soft-fp/extended.h: Likewise.
16462         * soft-fp/op-1.h: Likewise.
16463         * soft-fp/op-2.h: Likewise.
16464         * soft-fp/op-4.h: Likewise.
16465         * soft-fp/op-8.h: Likewise.
16466         * soft-fp/testit.c: Likewise.
16467         * stdio-common/bug16.c: Likewise.
16468         * stdlib/random.c: Likewise.
16469         * sunrpc/rpcsvc/rquota.x: Likewise.
16470         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
16471         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16472         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16473         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16474         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16475         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16476         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16477         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16478         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16479         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16480         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16481         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16482         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16483         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16484         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16485         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16486         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16487         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16488         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16489         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16490         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16491         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16492         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16493         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16494         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16495         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16496         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16497         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16498         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16499         * sysdeps/ieee754/s_lib_version.c: Likewise.
16500         * sysdeps/mach/hurd/check_fds.c: Likewise.
16501         * sysdeps/mach/hurd/getsockname.c: Likewise.
16502         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16503         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16504         * sysdeps/powerpc/bits/link.h: Likewise.
16505         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16506         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16507         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16508         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16509         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16510         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16511         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16512         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16513         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16514         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16515         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16516         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16517         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16518         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16519         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16520         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16521         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16522         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16523         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16524         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16525         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16526         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16527         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16528         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16529         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16530         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16531         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16532         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16533         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16534         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16535         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16536         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16537         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16538         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16539         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16540         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16541         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16542         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16543         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16544         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16545         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16546         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16547         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16548         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16549         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16550         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16551         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16552         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16553         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16554         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16555         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16556         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16557         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16558         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16559         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16560         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16561         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16562         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16563         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16564         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16565         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16566         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16567         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16568         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16569         * sysdeps/powerpc/sysdep.h: Likewise.
16570         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16571         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16572         * sysdeps/sh/dl-trampoline.S: Likewise.
16573         * sysdeps/sh/memset.S: Likewise.
16574         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16575         * sysdeps/sh/strlen.S: Likewise.
16576         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16577         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16578         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16579         * sysdeps/sparc/sparc32/rem.S: Likewise.
16580         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16581         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16582         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16583         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16584         * sysdeps/sparc/sparc32/urem.S: Likewise.
16585         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16586         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16587         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16588         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16589         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16590         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16591         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16592         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16593         * sysdeps/unix/bsd/times.c: Likewise.
16594         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16595         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16599         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16600         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16601         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16602         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16603         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16604         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16605         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16606         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16607         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16608         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16609         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16610         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16611         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16612         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16613         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16614         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16615         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16616         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16617         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16618         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16619         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16620         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16621         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16622         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16623         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16624         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16625         * sysdeps/x86_64/strcspn.S: Likewise.
16626
16627 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16628
16629         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16630         generated file.  Regenerate properly from gen-translit.pl.
16631         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16632         locale/C-translit.h.
16633
16634 2013-06-05  Andreas Schwab  <schwab@suse.de>
16635
16636         [BZ #15100]
16637         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16638         week as 6 instead of -1.
16639         * time/tst-strptime.c (day_tests): Add test case.
16640
16641 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16642
16643         * sysdeps/generic/math_private.h
16644         (libc_feholdexcept_setround_53bit): Replace with
16645         libc_feholdsetround_53bit.
16646         (libc_feupdateenv_53bit): Replace with
16647         libc_feresetround_53bit.
16648         (SET_RESTORE_ROUND_53BIT): Adjust.
16649
16650 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16651
16652         * string/test-strchrnul.c: Add copyright header.
16653
16654         * posix/tst-getaddrinfo4.c: Increase test timeout.
16655
16656 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16657
16658         [BZ #15536]
16659         * math/libm-test.inc (MAX_EXP): Remove
16660         (MIN_EXP): Define.
16661         (ulp): Use MIN_EXP - MANT_DIG.
16662         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16663
16664 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16665
16666         * po/be.po: Revert last change.
16667         * po/zh_CN.po: Likewise.
16668         * po/header.pot: Likewise.
16669
16670 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16671
16672         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16673         link-libc-deps to empty as target-specific variable.
16674         * Makerules (link-libc-args): New variable.
16675         (libc-for-link): Likewise.
16676         (link-libc-deps): Likewise.
16677         (lib%.so): Depend on $(link-libc-deps).  Link with
16678         $(link-libc-args).
16679         (build-module): Link with $(link-libc-args).
16680         (build-module-asneeded): Likewise.
16681         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16682         list of objects.
16683         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16684         target-specific variable.
16685         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16686         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16687         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16688         libc.
16689         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16690         libc and ld.so.
16691         ($(objpfx)libpcprofile.so): Likewise.
16692         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16693         libc_nonshared.a.
16694         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16695         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16696         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16697         $(link-libc-deps).
16698         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16699         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16700         * login/Makefile ($(objpfx)libutil.so): Likewise.
16701         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16702         * math/Makefile ($(objpfx)libm.so): Likewise.
16703         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16704         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16705         variable instead of depending directly on libc.
16706         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16707         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16708         $(link-libc-deps).
16709         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16710         libc.
16711         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16712         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16713         ($(objpfx)libanl.so): Likewise.
16714         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16715         ld.so.
16716         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16717         $(link-libc-deps).
16718         * sysdeps/i386/fpu/Makefile: Remove file.
16719         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16720         ($(objpfx)libm.so): Remove dependency on ld.so.
16721
16722 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16723
16724         [BZ # 15553]
16725         * nis/yp_xdr.c (XDRMAXNAME): Define.
16726         (XDRMAXRECORD): Define.
16727         (xdr_domainname): Use XDRMAXNAME.
16728         (xdr_mapname): Likewise.
16729         (xdr_peername): Likewise.
16730         (xdr_keydat): Use XDRMAXRECORD.
16731         (xdr_valdat): Likewise.
16732
16733 2013-05-30  Jeff Law  <law@redhat.com>
16734
16735         [BZ #14256]
16736         * manual/errno.texi (ESTALE): Update to account for more than
16737         just NFS file systems.
16738         * sysdeps/gnu/errlist.c: Regenerated.
16739
16740 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16741
16742         [BZ #15465]
16743         * elf/Makefile (tests): Add tst-null-argv.
16744         (modules-names):  Add tst-null-argv-lib.
16745         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16746         (tst-null-argv-ENV): Set environment for tst-null-argv.
16747         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16748         (RTLD_PROGNAME): New macro.
16749         * elf/tst-null-argv.c: New test case.
16750         * elf/tst-null-argv-lib.c: Library for test case.
16751         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16752         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16753         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16754         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16755         * elf/dl-init.c (call_init): Likewise.
16756         (_dl_init): Likewise.
16757         * elf/dl-load.c (print_search_path): Likewise.
16758         (_dl_map_object): Likewise.
16759         * elf/dl-lookup.c (do_lookup_x): Likewise.
16760         (add_dependency): Likewise.
16761         (_dl_lookup_symbol_x): Likewise.
16762         (_dl_debug_bindings): Likewise.
16763         * elf/dl-open.c (_dl_show_scope): Likewise.
16764         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16765         * elf/dl-version.c (match_symbol): Likewise.
16766         (_dl_check_map_versions): Likewise.
16767         * elf/rtld.c (dl_main): Likewise.
16768         (print_unresolved): Use RTLD_PROGNAME.
16769         (print_missing_version): Likewise.
16770         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16771         (elf_machine_rela): Likewise.
16772         * sysdeps/powerpc/powerpc32/dl-machine.c
16773         (__process_machine_rela): Likewise.
16774         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16775         Likewise.
16776         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16777         Likewise.
16778         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16779         Likewise.
16780         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16781         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16782         Likewise.
16783         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16784         Likewise.
16785         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16786
16787 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16788
16789         * po/be.po: Add descriptive title.
16790         * po/zh_CN.po: Likewise.
16791         * po/header.pot: Likewise.
16792
16793 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16794
16795         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16796         error message.
16797         (enlarge_archive): Likewise.
16798
16799 2013-05-28  Ben North  <ben@redfrontdoor.org>
16800
16801         * manual/arith.texi (frexp): It is the magnitude of the return
16802         value which lies in [0.5, 1), not the return value itself.
16803
16804 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16805
16806         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16807
16808 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16809
16810         * stdio-common/bug26.c (main): Correct fscanf template.
16811
16812         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16813         declare _dl_skip_args.
16814
16815         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16816         Don't declare.
16817
16818         * manual/platform.texi: Add missing @end deftypefun.
16819
16820 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16821
16822         [BZ #15529]
16823         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16824         bit of mantissa of 2^16382.
16825         * math/libm-test.inc (hypot_test_data): Add more tests.
16826
16827         * math/libm-test.inc: Add drem and pow10 to list of tested
16828         functions.
16829         (pow10_test): New function.
16830         (drem_test): Likewise.
16831         (drem_test_tonearest): Likewise.
16832         (drem_test_towardzero): Likewise.
16833         (drem_test_downward): Likewise.
16834         (drem_test_upward): Likewise.
16835         (main): Call the new functions.
16836
16837         * math/libm-test.inc (finite_test_data): Remove.
16838         (finite_test): Run tests from isfinite_test_data.
16839         (gamma_test_data): Remove.
16840         (gamma_test): Run tests from lgamma_test_data.
16841         * sysdeps/i386/fpu/libm-test-ulps: Update.
16842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16843
16844 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16845
16846         * manual/platform.texi: Add PowerPC PPR function set documentation.
16847         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16848         implementation.
16849
16850 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16851
16852         * math/libm-test.inc (MAX_EXP): Define.
16853         (ULPDIFF): Define.
16854         (ulp): New function.
16855         (check_float_internal): Use ULPDIFF.
16856         (cpow_test): Disable failing test.
16857         (check_ulp): Test ulp() implemetnation.
16858         (main): Call check_ulp before starting tests.
16859
16860 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16861
16862         * math/gen-libm-test.pl (generate_testfile): Do not handle
16863         START_DATA and END_DATA.
16864         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16865         END_DATA.
16866         (acos_tonearest_test_data): Likewise.
16867         (acos_towardzero_test_data): Likewise.
16868         (acos_downward_test_data): Likewise.
16869         (acos_upward_test_data): Likewise.
16870         (acosh_test_data): Likewise.
16871         (asin_test_data): Likewise.
16872         (asin_tonearest_test_data): Likewise.
16873         (asin_towardzero_test_data): Likewise.
16874         (asin_downward_test_data): Likewise.
16875         (asin_upward_test_data): Likewise.
16876         (asinh_test_data): Likewise.
16877         (atan_test_data): Likewise.
16878         (atanh_test_data): Likewise.
16879         (atan2_test_data): Likewise.
16880         (cabs_test_data): Likewise.
16881         (cacos_test_data): Likewise.
16882         (cacosh_test_data): Likewise.
16883         (carg_test_data): Likewise.
16884         (casin_test_data): Likewise.
16885         (casinh_test_data): Likewise.
16886         (catan_test_data): Likewise.
16887         (catanh_test_data): Likewise.
16888         (cbrt_test_data): Likewise.
16889         (ccos_test_data): Likewise.
16890         (ccosh_test_data): Likewise.
16891         (ceil_test_data): Likewise.
16892         (cexp_test_data): Likewise.
16893         (cimag_test_data): Likewise.
16894         (clog_test_data): Likewise.
16895         (clog10_test_data): Likewise.
16896         (conj_test_data): Likewise.
16897         (copysign_test_data): Likewise.
16898         (cos_test_data): Likewise.
16899         (cos_tonearest_test_data): Likewise.
16900         (cos_towardzero_test_data): Likewise.
16901         (cos_downward_test_data): Likewise.
16902         (cos_upward_test_data): Likewise.
16903         (cosh_test_data): Likewise.
16904         (cosh_tonearest_test_data): Likewise.
16905         (cosh_towardzero_test_data): Likewise.
16906         (cosh_downward_test_data): Likewise.
16907         (cosh_upward_test_data): Likewise.
16908         (cpow_test_data): Likewise.
16909         (cproj_test_data): Likewise.
16910         (creal_test_data): Likewise.
16911         (csin_test_data): Likewise.
16912         (csinh_test_data): Likewise.
16913         (csqrt_test_data): Likewise.
16914         (ctan_test_data): Likewise.
16915         (ctan_tonearest_test_data): Likewise.
16916         (ctan_towardzero_test_data): Likewise.
16917         (ctan_downward_test_data): Likewise.
16918         (ctan_upward_test_data): Likewise.
16919         (ctanh_test_data): Likewise.
16920         (ctanh_tonearest_test_data): Likewise.
16921         (ctanh_towardzero_test_data): Likewise.
16922         (ctanh_downward_test_data): Likewise.
16923         (ctanh_upward_test_data): Likewise.
16924         (erf_test_data): Likewise.
16925         (erfc_test_data): Likewise.
16926         (exp_test_data): Likewise.
16927         (exp_tonearest_test_data): Likewise.
16928         (exp_towardzero_test_data): Likewise.
16929         (exp_downward_test_data): Likewise.
16930         (exp_upward_test_data): Likewise.
16931         (exp10_test_data): Likewise.
16932         (exp2_test_data): Likewise.
16933         (expm1_test_data): Likewise.
16934         (fabs_test_data): Likewise.
16935         (fdim_test_data): Likewise.
16936         (finite_test_data): Likewise.
16937         (floor_test_data): Likewise.
16938         (fma_test_data): Likewise.
16939         (fma_towardzero_test_data): Likewise.
16940         (fma_downward_test_data): Likewise.
16941         (fma_upward_test_data): Likewise.
16942         (fmax_test_data): Likewise.
16943         (fmin_test_data): Likewise.
16944         (fmod_test_data): Likewise.
16945         (fpclassify_test_data): Likewise.
16946         (frexp_test_data): Likewise.
16947         (gamma_test_data): Likewise.
16948         (hypot_test_data): Likewise.
16949         (ilogb_test_data): Likewise.
16950         (isfinite_test_data): Likewise.
16951         (isgreater_test_data): Likewise.
16952         (isgreaterequal_test_data): Likewise.
16953         (isinf_test_data): Likewise.
16954         (isless_test_data): Likewise.
16955         (islessequal_test_data): Likewise.
16956         (islessgreater_test_data): Likewise.
16957         (isnan_test_data): Likewise.
16958         (isnormal_test_data): Likewise.
16959         (issignaling_test_data): Likewise.
16960         (isunordered_test_data): Likewise.
16961         (j0_test_data): Likewise.
16962         (j1_test_data): Likewise.
16963         (jn_test_data): Likewise.
16964         (ldexp_test_data): Likewise.
16965         (lgamma_test_data): Likewise.
16966         (lrint_test_data): Likewise.
16967         (lrint_tonearest_test_data): Likewise.
16968         (lrint_towardzero_test_data): Likewise.
16969         (lrint_downward_test_data): Likewise.
16970         (lrint_upward_test_data): Likewise.
16971         (llrint_test_data): Likewise.
16972         (llrint_tonearest_test_data): Likewise.
16973         (llrint_towardzero_test_data): Likewise.
16974         (llrint_downward_test_data): Likewise.
16975         (llrint_upward_test_data): Likewise.
16976         (log_test_data): Likewise.
16977         (log10_test_data): Likewise.
16978         (log1p_test_data): Likewise.
16979         (log2_test_data): Likewise.
16980         (logb_test_data): Likewise.
16981         (logb_downward_test_data): Likewise.
16982         (lround_test_data): Likewise.
16983         (llround_test_data): Likewise.
16984         (modf_test_data): Likewise.
16985         (nearbyint_test_data): Likewise.
16986         (nextafter_test_data): Likewise.
16987         (nexttoward_test_data): Likewise.
16988         (pow_test_data): Likewise.
16989         (pow_tonearest_test_data): Likewise.
16990         (pow_towardzero_test_data): Likewise.
16991         (pow_downward_test_data): Likewise.
16992         (pow_upward_test_data): Likewise.
16993         (remainder_test_data): Likewise.
16994         (remainder_tonearest_test_data): Likewise.
16995         (remainder_towardzero_test_data): Likewise.
16996         (remainder_downward_test_data): Likewise.
16997         (remainder_upward_test_data): Likewise.
16998         (remquo_test_data): Likewise.
16999         (rint_test_data): Likewise.
17000         (rint_tonearest_test_data): Likewise.
17001         (rint_towardzero_test_data): Likewise.
17002         (rint_downward_test_data): Likewise.
17003         (rint_upward_test_data): Likewise.
17004         (round_test_data): Likewise.
17005         (scalb_test_data): Likewise.
17006         (scalbn_test_data): Likewise.
17007         (scalbln_test_data): Likewise.
17008         (signbit_test_data): Likewise.
17009         (sin_test_data): Likewise.
17010         (sin_tonearest_test_data): Likewise.
17011         (sin_towardzero_test_data): Likewise.
17012         (sin_downward_test_data): Likewise.
17013         (sin_upward_test_data): Likewise.
17014         (sincos_test_data): Likewise.
17015         (sinh_test_data): Likewise.
17016         (sinh_tonearest_test_data): Likewise.
17017         (sinh_towardzero_test_data): Likewise.
17018         (sinh_downward_test_data): Likewise.
17019         (sinh_upward_test_data): Likewise.
17020         (sqrt_test_data): Likewise.
17021         (tan_test_data): Likewise.
17022         (tan_tonearest_test_data): Likewise.
17023         (tan_towardzero_test_data): Likewise.
17024         (tan_downward_test_data): Likewise.
17025         (tan_upward_test_data): Likewise.
17026         (tanh_test_data): Likewise.
17027         (tgamma_test_data): Likewise.
17028         (trunc_test_data): Likewise.
17029         (y0_test_data): Likewise.
17030         (y1_test_data): Likewise.
17031         (yn_test_data): Likewise.
17032         (significand_test_data): Likewise.
17033
17034         * math/gen-libm-test.pl (@functions): Remove variable.
17035         (generate_testfile): Don't handle START and END lines.
17036         * math/libm-test.inc (START): New macro.
17037         (END): Likewise.
17038         (END_COMPLEX): Likewise.
17039         (acos_test): Use END macro without arguments.
17040         (acos_test_tonearest): Likewise.
17041         (acos_test_towardzero): Likewise.
17042         (acos_test_downward): Likewise.
17043         (acos_test_upward): Likewise.
17044         (acosh_test): Likewise.
17045         (asin_test): Likewise.
17046         (asin_test_tonearest): Likewise.
17047         (asin_test_towardzero): Likewise.
17048         (asin_test_downward): Likewise.
17049         (asin_test_upward): Likewise.
17050         (asinh_test): Likewise.
17051         (atan_test): Likewise.
17052         (atanh_test): Likewise.
17053         (atan2_test): Likewise.
17054         (cabs_test): Likewise.
17055         (cacos_test): Use END_COMPLEX macro without arguments.
17056         (cacosh_test): Likewise.
17057         (carg_test): Use END macro without arguments.
17058         (casin_test): Use END_COMPLEX macro without arguments.
17059         (casinh_test): Likewise.
17060         (catan_test): Likewise.
17061         (catanh_test): Likewise.
17062         (cbrt_test): Use END macro without arguments.
17063         (ccos_test): Use END_COMPLEX macro without arguments.
17064         (ccosh_test): Likewise.
17065         (ceil_test): Use END macro without arguments.
17066         (cexp_test): Use END_COMPLEX macro without arguments.
17067         (cimag_test): Use END macro without arguments.
17068         (clog_test): Use END_COMPLEX macro without arguments.
17069         (clog10_test): Likewise.
17070         (conj_test): Likewise.
17071         (copysign_test): Use END macro without arguments.
17072         (cos_test): Likewise.
17073         (cos_test_tonearest): Likewise.
17074         (cos_test_towardzero): Likewise.
17075         (cos_test_downward): Likewise.
17076         (cos_test_upward): Likewise.
17077         (cosh_test): Likewise.
17078         (cosh_test_tonearest): Likewise.
17079         (cosh_test_towardzero): Likewise.
17080         (cosh_test_downward): Likewise.
17081         (cosh_test_upward): Likewise.
17082         (cpow_test): Use END_COMPLEX macro without arguments.
17083         (cproj_test): Likewise.
17084         (creal_test): Use END macro without arguments.
17085         (csin_test): Use END_COMPLEX macro without arguments.
17086         (csinh_test): Likewise.
17087         (csqrt_test): Likewise.
17088         (ctan_test): Likewise.
17089         (ctan_test_tonearest): Likewise.
17090         (ctan_test_towardzero): Likewise.
17091         (ctan_test_downward): Likewise.
17092         (ctan_test_upward): Likewise.
17093         (ctanh_test): Likewise.
17094         (ctanh_test_tonearest): Likewise.
17095         (ctanh_test_towardzero): Likewise.
17096         (ctanh_test_downward): Likewise.
17097         (ctanh_test_upward): Likewise.
17098         (erf_test): Use END macro without arguments.
17099         (erfc_test): Likewise.
17100         (exp_test): Likewise.
17101         (exp_test_tonearest): Likewise.
17102         (exp_test_towardzero): Likewise.
17103         (exp_test_downward): Likewise.
17104         (exp_test_upward): Likewise.
17105         (exp10_test): Likewise.
17106         (exp2_test): Likewise.
17107         (expm1_test): Likewise.
17108         (fabs_test): Likewise.
17109         (fdim_test): Likewise.
17110         (finite_test): Likewise.
17111         (floor_test): Likewise.
17112         (fma_test): Likewise.
17113         (fma_test_towardzero): Likewise.
17114         (fma_test_downward): Likewise.
17115         (fma_test_upward): Likewise.
17116         (fmax_test): Likewise.
17117         (fmin_test): Likewise.
17118         (fmod_test): Likewise.
17119         (fpclassify_test): Likewise.
17120         (frexp_test): Likewise.
17121         (gamma_test): Likewise.
17122         (hypot_test): Likewise.
17123         (ilogb_test): Likewise.
17124         (isfinite_test): Likewise.
17125         (isgreater_test): Likewise.
17126         (isgreaterequal_test): Likewise.
17127         (isinf_test): Likewise.
17128         (isless_test): Likewise.
17129         (islessequal_test): Likewise.
17130         (islessgreater_test): Likewise.
17131         (isnan_test): Likewise.
17132         (isnormal_test): Likewise.
17133         (issignaling_test): Likewise.
17134         (isunordered_test): Likewise.
17135         (j0_test): Likewise.
17136         (j1_test): Likewise.
17137         (jn_test): Likewise.
17138         (ldexp_test): Likewise.
17139         (lgamma_test): Likewise.
17140         (lrint_test): Likewise.
17141         (lrint_test_tonearest): Likewise.
17142         (lrint_test_towardzero): Likewise.
17143         (lrint_test_downward): Likewise.
17144         (lrint_test_upward): Likewise.
17145         (llrint_test): Likewise.
17146         (llrint_test_tonearest): Likewise.
17147         (llrint_test_towardzero): Likewise.
17148         (llrint_test_downward): Likewise.
17149         (llrint_test_upward): Likewise.
17150         (log_test): Likewise.
17151         (log10_test): Likewise.
17152         (log1p_test): Likewise.
17153         (log2_test): Likewise.
17154         (logb_test): Likewise.
17155         (logb_test_downward): Likewise.
17156         (lround_test): Likewise.
17157         (llround_test): Likewise.
17158         (modf_test): Likewise.
17159         (nearbyint_test): Likewise.
17160         (nextafter_test): Likewise.
17161         (nexttoward_test): Likewise.
17162         (pow_test): Likewise.
17163         (pow_test_tonearest): Likewise.
17164         (pow_test_towardzero): Likewise.
17165         (pow_test_downward): Likewise.
17166         (pow_test_upward): Likewise.
17167         (remainder_test): Likewise.
17168         (remainder_test_tonearest): Likewise.
17169         (remainder_test_towardzero): Likewise.
17170         (remainder_test_downward): Likewise.
17171         (remainder_test_upward): Likewise.
17172         (remquo_test): Likewise.
17173         (rint_test): Likewise.
17174         (rint_test_tonearest): Likewise.
17175         (rint_test_towardzero): Likewise.
17176         (rint_test_downward): Likewise.
17177         (rint_test_upward): Likewise.
17178         (round_test): Likewise.
17179         (scalb_test): Likewise.
17180         (scalbn_test): Likewise.
17181         (scalbln_test): Likewise.
17182         (signbit_test): Likewise.
17183         (sin_test): Likewise.
17184         (sin_test_tonearest): Likewise.
17185         (sin_test_towardzero): Likewise.
17186         (sin_test_downward): Likewise.
17187         (sin_test_upward): Likewise.
17188         (sincos_test): Likewise.
17189         (sinh_test): Likewise.
17190         (sinh_test_tonearest): Likewise.
17191         (sinh_test_towardzero): Likewise.
17192         (sinh_test_downward): Likewise.
17193         (sinh_test_upward): Likewise.
17194         (sqrt_test): Likewise.
17195         (tan_test): Likewise.
17196         (tan_test_tonearest): Likewise.
17197         (tan_test_towardzero): Likewise.
17198         (tan_test_downward): Likewise.
17199         (tan_test_upward): Likewise.
17200         (tanh_test): Likewise.
17201         (tgamma_test): Likewise.
17202         (trunc_test): Likewise.
17203         (y0_test): Likewise.
17204         (y1_test): Likewise.
17205         (yn_test): Likewise.
17206         (significand_test): Likewise.
17207
17208 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17209
17210         [BZ #15381]
17211         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17212
17213 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17214
17215         [BZ #14894]
17216         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17217         __ppc_mdoio and __ppc_mdoom.
17218         * manual/platform.texi: Document new functions __ppc_yield,
17219         __ppc_mdoio and __ppc_mdoom.
17220
17221 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17222
17223         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17224         (main): Mention "tls" pseudo-hwcap is legacy.
17225         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17226
17227 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17228
17229         * math/gen-libm-test.pl (parse_args): Output only string of
17230         arguments as text for test name, not full call or descriptions of
17231         tests for extra outputs.
17232         (generate_testfile): Do not pass function name to parse_args.
17233         Generate this_func variable from START.
17234         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17235         field to arg_str.
17236         (struct test_ff_f_data): Likewise.
17237         (test_ff_f_data_nexttoward): Likewise.
17238         (struct test_fi_f_data): Likewise.
17239         (struct test_fl_f_data): Likewise.
17240         (struct test_if_f_data): Likewise.
17241         (struct test_fff_f_data): Likewise.
17242         (struct test_c_f_data): Likewise.
17243         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17244         (struct test_fF_f1_data): Likewise.
17245         (struct test_ffI_f1_data): Likewise.
17246         (struct test_c_c_data): Rename test_name field to arg_str.
17247         (struct test_cc_c_data): Likewise.
17248         (struct test_f_i_data): Likewise.
17249         (struct test_ff_i_data): Likewise.
17250         (struct test_f_l_data): Likewise.
17251         (struct test_f_L_data): Likewise.
17252         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17253         and extra2_name.
17254         (COMMON_TEST_SETUP): New macro.
17255         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17256         (COMMON_TEST_CLEANUP): Likewise.
17257         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17258         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17259         macros.
17260         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17261         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17262         macros.
17263         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17264         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17265         cleanup macros.
17266         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17267         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17268         macros.
17269         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17270         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17271         macros.
17272         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17273         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17274         cleanup macros.
17275         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17276         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17277         cleanup macros.
17278         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17279         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17280         cleanup macros.
17281         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17282         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17283         macros.
17284         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17285         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17286         macros.
17287         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17288         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17289         macros.
17290         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17291         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17292         cleanup macros.
17293         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17294         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17295         cleanup macros.
17296         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17297         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17298         macros.
17299         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17300         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17301         cleanup macros.
17302         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17303         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17304         macros.
17305         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17306         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17307         macros.
17308         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17309         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17310         cleanup macros.
17311         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17312
17313 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17314
17315         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17316         to _sifields.sigfault.
17317         (si_addr_lsb): Define new macro.
17318         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17319         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17320         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17321
17322 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17323
17324         [BZ #15441]
17325         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17326         returns -1.
17327         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17328         null return -1.
17329         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17330         loading the domain.
17331
17332 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17333
17334         * math/gen-libm-test.pl (parse_args): Do not include expected
17335         result in test name.
17336         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17337         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17338         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17339         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17340         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17341         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17342
17343 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17344
17345         * benchtests/Makefile: Sort function entries.
17346
17347         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17348         tanh, asinh, acosh, atanh.
17349         * benchtests/acos-inputs: New file.
17350         * benchtests/acosh-inputs: New file.
17351         * benchtests/asin-inputs: New file.
17352         * benchtests/asinh-inputs: New file.
17353         * benchtests/atanh-inputs: New file.
17354         * benchtests/cosh-inputs: New file.
17355         * benchtests/log-inputs: New file.
17356         * benchtests/sinh-inputs: New file.
17357         * benchtests/tanh-inputs: New file.
17358
17359 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17360
17361         [BZ #15339]
17362         * posix/tst-getaddrinfo4.c: New test.
17363         * posix/Makefile (tests): Add it.
17364
17365 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17366
17367         [BZ #15339]
17368         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17369         when no services were used.
17370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17371         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17372
17373 2013-05-21  Andreas Schwab  <schwab@suse.de>
17374
17375         [BZ #15014]
17376         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17377         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17378         successful.
17379         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17380         redundant variable declarations and reallocation of buffer when
17381         parsing as IPv6 address.  Always set NSS status when called from
17382         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17383         buffer too small.  Correct computation of needed size.
17384         * nss/Makefile (tests): Add test-digits-dots.
17385         * nss/test-digits-dots.c: New test.
17386
17387 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17388
17389         * benchtests/Makefile: Remove instructions for adding
17390         benchmark tests.
17391         * benchtests/README: New file to explain how to execute and
17392         enhance the benchmark tests.
17393
17394 2013-05-21  Andreas Schwab  <schwab@suse.de>
17395
17396         [BZ #15493]
17397         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17398         * setjmp/tst-sigsetjmp.c: New test.
17399
17400 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17401
17402         * sysdeps/x86_64/memset.S (memset): New implementation.
17403         (__bzero): Likewise.
17404         (__memset_tail): New function.
17405
17406 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17407
17408         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17409         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17410         __memcpy_sse2_unaligned ifunc selection.
17411         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17412         Add memcpy-sse2-unaligned.S.
17413         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17414         Add: __memcpy_sse2_unaligned.
17415
17416 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17417
17418         [BZ #15490]
17419         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17420         math_force_eval before restoring floating-point envrionment.
17421         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17422         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17423         Likewise.
17424         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17425         <math_private.h>.
17426         (__nearbyintl): Use math_force_eval before restoring
17427         floating-point environment.
17428         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17429
17430         * math/gen-libm-test.pl (special_functions): Remove.
17431         (parse_args): Don't handle TEST_extra.  Handle functions with no
17432         return value.
17433         * math/libm-test.inc (struct test_sincos_data): Replace with
17434         struct test_fFF_11_data.
17435         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17436         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17437         (sincos_test_data): Change element type to struct
17438         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17439         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17440         RUN_TEST_LOOP_sincos.
17441         * math/README.libm-test: Don't mention special handling of
17442         individual functions.
17443         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
17444         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17445         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17446         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17447         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17449
17450         * math/gen-libm-test.pl (get_variable): Remove function.
17451         (parse_args): Don't show pointer parameters to call in test
17452         names.  Use "extra output N" in test names for extra outputs
17453         rather than naming variables.
17454
17455 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
17456
17457         [BZ #15488]
17458         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
17459         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
17460         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
17461         double tests.
17462         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
17463         disable.
17464         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
17465         check_long_double.
17466
17467         * math/gen-libm-test.pl (@tests): Remove variable.
17468         ($count): Likewise.
17469         (new_test): Remove function.
17470         (show_exceptions): New function.
17471         (special_functions): Use show_exceptions instead of new_test.
17472         (parse_args): Likewise.
17473         (generate_testfile): Pass only function name in generated call to
17474         print_max_error or print_complex_max_error.
17475         (get_ulps): Do not handle complex tests specially.
17476         (output_test): Rename to ...
17477         (get_all_ulps_for_test): ... this.  Return a string rather than
17478         printing to a file.  Require ulps to be present.
17479         (output_ulps): Generate arrays rather than #defines.
17480         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
17481         (struct ulp_data): New type.
17482         (BUILD_COMPLEX_ULP): Remove macro.
17483         (compare_ulp_data): New function.
17484         (find_ulps): Likewise.
17485         (find_test_ulps): Likewise.
17486         (find_function_ulps): Likewise.
17487         (find_complex_function_ulps): Likewise.
17488         (print_max_error): Determine allowed ulps using
17489         find_function_ulps.
17490         (print_complex_max_error): Determine allowed ulps using
17491         find_complex_function_ulps.
17492         (check_float_internal): Determine max ulps using find_test_ulps.
17493         (check_float): Do not take max_ulp parameter.  Update call to
17494         check_float_internal.
17495         (check_complex): Likewise.
17496         (check_int): Do not take max_ulp parameter.
17497         (check_long): Likewise.
17498         (check_bool): Likewise.
17499         (check_longlong): Likewise.
17500         (struct test_f_f_data): Remove max_ulp field.
17501         (struct test_ff_f_data): Likewise.
17502         (struct test_ff_f_data_nexttoward): Likewise.
17503         (struct test_fi_f_data): Likewise.
17504         (struct test_fl_f_data): Likewise.
17505         (struct test_if_f_data): Likewise.
17506         (struct test_fff_f_data): Likewise.
17507         (struct test_c_f_data): Likewise.
17508         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17509         (struct test_fF_f1_data): Likewise.
17510         (struct test_ffI_f1_data): Likewise.
17511         (struct test_c_c_data): Remove max_ulp field.
17512         (struct test_cc_c_data): Likewise.
17513         (struct test_f_i_data): Likewise.
17514         (struct test_ff_i_data): Likewise.
17515         (struct test_f_l_data): Likewise.
17516         (struct test_f_L_data): Likewise.
17517         (struct test_sincos_data): Likewise.
17518         (RUN_TEST_f_f): Do not handle ulps.
17519         (RUN_TEST_LOOP_f_f): Likewise.
17520         (RUN_TEST_2_f): Likewise.
17521         (RUN_TEST_LOOP_2_f): Likewise.
17522         (RUN_TEST_fff_f): Likewise.
17523         (RUN_TEST_LOOP_fff_f): Likewise.
17524         (RUN_TEST_c_f): Likewise.
17525         (RUN_TEST_LOOP_c_f): Likewise.
17526         (RUN_TEST_f_f1): Likewise.
17527         (RUN_TEST_LOOP_f_f1): Likewise.
17528         (RUN_TEST_fF_f1): Likewise.
17529         (RUN_TEST_LOOP_fF_f1): Likewise.
17530         (RUN_TEST_fI_f1): Likewise.
17531         (RUN_TEST_LOOP_fI_f1): Likewise.
17532         (RUN_TEST_ffI_f1): Likewise.
17533         (RUN_TEST_LOOP_ffI_f1): Likewise.
17534         (RUN_TEST_c_c): Likewise.
17535         (RUN_TEST_LOOP_c_c): Likewise.
17536         (RUN_TEST_cc_c): Likewise.
17537         (RUN_TEST_LOOP_cc_c): Likewise.
17538         (RUN_TEST_f_i): Likewise.
17539         (RUN_TEST_LOOP_f_i): Likewise.
17540         (RUN_TEST_f_i_tg): Likewise.
17541         (RUN_TEST_LOOP_f_i_tg): Likewise.
17542         (RUN_TEST_ff_i_tg): Likewise.
17543         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17544         (RUN_TEST_f_b): Likewise.
17545         (RUN_TEST_LOOP_f_b): Likewise.
17546         (RUN_TEST_f_b_tg): Likewise.
17547         (RUN_TEST_LOOP_f_b_tg): Likewise.
17548         (RUN_TEST_f_l): Likewise.
17549         (RUN_TEST_LOOP_f_l): Likewise.
17550         (RUN_TEST_f_L): Likewise.
17551         (RUN_TEST_LOOP_f_L): Likewise.
17552         (RUN_TEST_sincos): Likewise.
17553         (RUN_TEST_LOOP_sincos): Likewise.
17554
17555 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17556
17557         [BZ #15480]
17558         [BZ #15485]
17559         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17560         main case of finite arguments, set rounding mode to FE_TONEAREST
17561         and discard exceptions.
17562         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17563         exceptions.
17564         (remainder_tonearest_test_data): New variable.
17565         (remainder_test_tonearest): New function.
17566         (remainder_towardzero_test_data): New variable.
17567         (remainder_test_towardzero): New function.
17568         (remainder_downward_test_data): New variable.
17569         (remainder_test_downward): New function.
17570         (remainder_upward_test_data): New variable.
17571         (remainder_test_upward): New function.
17572         (main): Call the new test functions.
17573
17574         * math/libm-test.inc (struct test_f_f1_data): Remove field
17575         extra_init.
17576         (struct test_fF_f1_data): Likewise.
17577         (struct test_ffI_f1_data): Likewise.
17578         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17579         based on value of EXTRA_EXPECTED.
17580         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17581         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17582         EXTRA_VAR based on value of EXTRA_EXPECTED.
17583         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17584         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17585         EXTRA_VAR based on value of EXTRA_EXPECTED.
17586         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17587         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17588         EXTRA_VAR based on value of EXTRA_EXPECTED.
17589         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17590         * math/gen-libm-test.pl (parse_args): Don't output initializers
17591         for extra output values.
17592
17593         * math/libm-test.inc (check_int): Expect result to be exactly
17594         equal to expected value and do not handle ulps.
17595         (check_long): Likewise.
17596         (check_longlong): Likewise.
17597
17598         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17599         exceptions.
17600         (cimag_test_data): Likewise.
17601         (conj_test_data): Likewise.
17602         (copysign_test_data): Likewise.
17603         (cproj_test_data): Likewise.
17604         (creal_test_data): Likewise.
17605         (fabs_test_data): Likewise.
17606         (fdim_test_data): Likewise.
17607         (finite_test_data): Likewise.
17608         (floor_test_data): Likewise.
17609         (fmax_test_data): Likewise.
17610         (fmin_test_data): Likewise.
17611         (fmod_test_data): Likewise.
17612         (fpclassify_test_data): Likewise.
17613         (frexp_test_data): Likewise.
17614         (ilogb_test_data): Likewise.
17615         (isfinite_test_data): Likewise.
17616         (isgreater_test_data): Likewise.
17617         (isgreaterequal_test_data): Likewise.
17618         (isinf_test_data): Likewise.
17619         (isless_test_data): Likewise.
17620         (islessequal_test_data): Likewise.
17621         (islessgreater_test_data): Likewise.
17622         (isnan_test_data): Likewise.
17623         (isnormal_test_data): Likewise.
17624         (issignaling_test_data): Likewise.
17625         (isunordered_test_data): Likewise.
17626         (ldexp_test_data): Likewise.
17627         (lrint_test_data): Likewise.
17628         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17629         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17630         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17631         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17632         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17633         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17634         test input.
17635         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17636         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17637         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17638         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17639         that test input.
17640         (lrint_downward_test_data): Test for "inexact" exceptions.
17641         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17642         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17643         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17644         test input.
17645         (lrint_upward_test_data): Test for "inexact" exceptions.
17646         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17647         test input.
17648         (llrint_test_data): Test for "inexact" exceptions.
17649         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17650         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17651         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17652         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17653         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17654         (llrint_downward_test_data): Test for "inexact" exceptions.
17655         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17656         (llrint_upward_test_data): Test for "inexact" exceptions.
17657         (logb_test_data): Likewise.
17658         (logb_downward_test_data): Likewise.
17659         (nextafter_test_data): Likewise.
17660         (nexttoward_test_data): Likewise.
17661         (remainder_test_data): Likewise.
17662         (remquo_test_data): Likewise.
17663         (scalbn_test_data): Likewise.
17664         (scalbln_test_data): Likewise.
17665         (signbit_test_data): Likewise.
17666         (sqrt_test_data): Likewise.
17667         (significand_test_data): Likewise.
17668
17669 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17670
17671         [BZ #15424]
17672         * benchtests/bench-modf.c (struct args): Mark arg0 as
17673         volatile.
17674         * scripts/bench.pl: Mark members of struct args as volatile.
17675
17676 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17677
17678         [BZ # 15497]
17679         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17680         negative infinity on POWER6 or lower.
17681         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17682
17683 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17684
17685         [BZ #15442]
17686         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17687         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17688         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17689         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17690         (_FP_SETQNAN): New macro.
17691         (_FP_SETQNAN_SEMIRAW): Likewise.
17692         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17693         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17694         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17695         (FP_EXTEND): Use _FP_FRAC_SNANP.
17696         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17697         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17698         into account.
17699         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17700         New macro.
17701         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17702         Likewise.
17703
17704 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17705
17706         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17707         with DIVIDE_BY_ZERO_EXCEPTION.
17708         (gamma_test_data): Likewise.
17709         (lgamma_test_data): Likewise.
17710         (log_test_data): Likewise.
17711         (log10_test_data): Likewise.
17712         (log2_test_data): Likewise.
17713         (tgamma_test_data): Likewise.
17714
17715         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17716         (acos_test_tonearest): Likewise.
17717         (acos_test_towardzero): Likewise.
17718         (acos_test_downward): Likewise.
17719         (acos_test_upward): Likewise.
17720         (acosh_test): Likewise.
17721         (asin_test): Likewise.
17722         (asin_test_tonearest): Likewise.
17723         (asin_test_towardzero): Likewise.
17724         (asin_test_downward): Likewise.
17725         (asin_test_upward): Likewise.
17726         (asinh_test): Likewise.
17727         (atan_test): Likewise.
17728         (atanh_test): Likewise.
17729         (atan2_test): Likewise.
17730         (cabs_test): Likewise.
17731         (cacos_test): Likewise.
17732         (cacosh_test): Likewise.
17733         (casin_test): Likewise.
17734         (casinh_test): Likewise.
17735         (catan_test): Likewise.
17736         (catanh_test): Likewise.
17737         (cbrt_test): Likewise.
17738         (ccos_test): Likewise.
17739         (ccosh_test): Likewise.
17740         (cexp_test): Likewise.
17741         (clog_test): Likewise.
17742         (clog10_test): Likewise.
17743         (cos_test): Likewise.
17744         (cos_test_tonearest): Likewise.
17745         (cos_test_towardzero): Likewise.
17746         (cos_test_downward): Likewise.
17747         (cos_test_upward): Likewise.
17748         (cosh_test): Likewise.
17749         (cosh_test_tonearest): Likewise.
17750         (cosh_test_towardzero): Likewise.
17751         (cosh_test_downward): Likewise.
17752         (cosh_test_upward): Likewise.
17753         (cpow_test): Likewise.
17754         (csin_test): Likewise.
17755         (csinh_test): Likewise.
17756         (csqrt_test): Likewise.
17757         (ctan_test): Likewise.
17758         (ctan_test_tonearest): Likewise.
17759         (ctan_test_towardzero): Likewise.
17760         (ctan_test_downward): Likewise.
17761         (ctan_test_upward): Likewise.
17762         (ctanh_test): Likewise.
17763         (ctanh_test_tonearest): Likewise.
17764         (ctanh_test_towardzero): Likewise.
17765         (ctanh_test_downward): Likewise.
17766         (ctanh_test_upward): Likewise.
17767         (erf_test): Likewise.
17768         (erfc_test): Likewise.
17769         (exp_test): Likewise.
17770         (exp_test_tonearest): Likewise.
17771         (exp_test_towardzero): Likewise.
17772         (exp_test_downward): Likewise.
17773         (exp_test_upward): Likewise.
17774         (exp10_test): Likewise.
17775         (exp2_test): Likewise.
17776         (expm1_test): Likewise.
17777         (fmod_test): Likewise.
17778         (gamma_test): Likewise.
17779         (hypot_test): Likewise.
17780         (j0_test): Likewise.
17781         (j1_test): Likewise.
17782         (jn_test): Likewise.
17783         (lgamma_test): Likewise.
17784         (log_test): Likewise.
17785         (log10_test): Likewise.
17786         (log1p_test): Likewise.
17787         (log2_test): Likewise.
17788         (logb_test_downward): Likewise.
17789         (pow_test): Likewise.
17790         (pow_test_tonearest): Likewise.
17791         (pow_test_towardzero): Likewise.
17792         (pow_test_downward): Likewise.
17793         (pow_test_upward): Likewise.
17794         (remainder_test): Likewise.
17795         (remquo_test): Likewise.
17796         (sin_test): Likewise.
17797         (sin_test_tonearest): Likewise.
17798         (sin_test_towardzero): Likewise.
17799         (sin_test_downward): Likewise.
17800         (sin_test_upward): Likewise.
17801         (sincos_test): Likewise.
17802         (sinh_test): Likewise.
17803         (sinh_test_tonearest): Likewise.
17804         (sinh_test_towardzero): Likewise.
17805         (sinh_test_downward): Likewise.
17806         (sinh_test_upward): Likewise.
17807         (sqrt_test): Likewise.
17808         (tan_test): Likewise.
17809         (tan_test_tonearest): Likewise.
17810         (tan_test_towardzero): Likewise.
17811         (tan_test_downward): Likewise.
17812         (tan_test_upward): Likewise.
17813         (tanh_test): Likewise.
17814         (tgamma_test): Likewise.
17815         (y0_test): Likewise.
17816         (y1_test): Likewise.
17817         (yn_test): Likewise.
17818
17819         * math/gen-libm-test.pl (adjust_arg): Remove function.
17820         (special_function): Remove argument $in_func.  Only handle
17821         generating output for tables of tests, not inside functions.
17822         (parse_args): Likewise.
17823         (generate_testfile): Remove variable $in_func.  Update call to
17824         parse_args.
17825         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17826         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17827         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17828         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17829         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17830         (MAX_VALUE_INIT): Rename macro to max_value.
17831         (MIN_VALUE_INIT): Rename macro to min_value.
17832         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17833         (plus_zero): Remove variable.
17834         (minus_zero): Likewise.
17835         (plus_infty): Likewise.
17836         (minus_infty): Likewise.
17837         (qnan_value): Likewise.
17838         (max_value): Likewise.
17839         (min_value): Likewise.
17840         (min_subnorm_value): Likewise.
17841
17842 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17843
17844         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17845         uint64_t or uint32_t usage.
17846         * crypt/sha256-block.c: Likewise.
17847         * crypt/sha256-crypt.c: Likewise.
17848         * crypt/sha256.c: Likewise.
17849         * crypt/sha512-block.c: Likewise.
17850         * crypt/sha512-crypt.c: Likewise.
17851         * crypt/sha512.c: Likewise.
17852         * debug/backtrace-tst.c: Likewise.
17853         * debug/pcprofiledump.c: Likewise.
17854         * elf/cache.c: Likewise.
17855         * elf/dl-cache.c: Likewise.
17856         * elf/dl-misc.c: Likewise.
17857         * elf/dl-profile.c: Likewise.
17858         * elf/dl-support.c: Likewise.
17859         * elf/ldconfig.c: Likewise.
17860         * elf/sprof.c: Likewise.
17861         * iconv/dummy-repertoire.c: Likewise.
17862         * iconv/iconv_charmap.c: Likewise.
17863         * iconv/skeleton.c: Likewise.
17864         * iconvdata/8bit-generic.c: Likewise.
17865         * iconvdata/cp737.h: Likewise.
17866         * iconvdata/cp775.h: Likewise.
17867         * iconvdata/ibm1008.h: Likewise.
17868         * iconvdata/ibm1025.h: Likewise.
17869         * iconvdata/ibm1046.h: Likewise.
17870         * iconvdata/ibm1097.h: Likewise.
17871         * iconvdata/ibm1112.h: Likewise.
17872         * iconvdata/ibm1122.h: Likewise.
17873         * iconvdata/ibm1123.h: Likewise.
17874         * iconvdata/ibm1124.h: Likewise.
17875         * iconvdata/ibm1129.h: Likewise.
17876         * iconvdata/ibm1130.h: Likewise.
17877         * iconvdata/ibm1132.h: Likewise.
17878         * iconvdata/ibm1133.h: Likewise.
17879         * iconvdata/ibm1137.h: Likewise.
17880         * iconvdata/ibm1140.h: Likewise.
17881         * iconvdata/ibm1141.h: Likewise.
17882         * iconvdata/ibm1142.h: Likewise.
17883         * iconvdata/ibm1143.h: Likewise.
17884         * iconvdata/ibm1144.h: Likewise.
17885         * iconvdata/ibm1145.h: Likewise.
17886         * iconvdata/ibm1146.h: Likewise.
17887         * iconvdata/ibm1147.h: Likewise.
17888         * iconvdata/ibm1148.h: Likewise.
17889         * iconvdata/ibm1149.h: Likewise.
17890         * iconvdata/ibm1153.h: Likewise.
17891         * iconvdata/ibm1154.h: Likewise.
17892         * iconvdata/ibm1155.h: Likewise.
17893         * iconvdata/ibm1156.h: Likewise.
17894         * iconvdata/ibm1157.h: Likewise.
17895         * iconvdata/ibm1158.h: Likewise.
17896         * iconvdata/ibm1160.h: Likewise.
17897         * iconvdata/ibm1161.h: Likewise.
17898         * iconvdata/ibm1162.h: Likewise.
17899         * iconvdata/ibm1163.h: Likewise.
17900         * iconvdata/ibm1164.h: Likewise.
17901         * iconvdata/ibm1166.h: Likewise.
17902         * iconvdata/ibm1167.h: Likewise.
17903         * iconvdata/ibm12712.h: Likewise.
17904         * iconvdata/ibm1390.h: Likewise.
17905         * iconvdata/ibm1399.h: Likewise.
17906         * iconvdata/ibm16804.h: Likewise.
17907         * iconvdata/ibm4517.h: Likewise.
17908         * iconvdata/ibm4899.h: Likewise.
17909         * iconvdata/ibm4909.h: Likewise.
17910         * iconvdata/ibm4971.h: Likewise.
17911         * iconvdata/ibm5347.h: Likewise.
17912         * iconvdata/ibm803.h: Likewise.
17913         * iconvdata/ibm856.h: Likewise.
17914         * iconvdata/ibm901.h: Likewise.
17915         * iconvdata/ibm902.h: Likewise.
17916         * iconvdata/ibm9030.h: Likewise.
17917         * iconvdata/ibm9066.h: Likewise.
17918         * iconvdata/ibm921.h: Likewise.
17919         * iconvdata/ibm922.h: Likewise.
17920         * iconvdata/ibm9448.h: Likewise.
17921         * iconvdata/isiri-3342.h: Likewise.
17922         * iconvdata/jis0201.h: Likewise.
17923         * include/link.h: Likewise.
17924         * include/netdb.h: Likewise.
17925         * inet/check_native.c: Likewise.
17926         * inet/check_pf.c: Likewise.
17927         * inet/getipv4sourcefilter.c: Likewise.
17928         * inet/getnameinfo.c: Likewise.
17929         * inet/getsourcefilter.c: Likewise.
17930         * inet/htonl.c: Likewise.
17931         * inet/setipv4sourcefilter.c: Likewise.
17932         * inet/setsourcefilter.c: Likewise.
17933         * inet/test-inet6_opt.c: Likewise.
17934         * inet/tst-network.c: Likewise.
17935         * locale/C-collate.c: Likewise.
17936         * locale/C-ctype.c: Likewise.
17937         * locale/C-time.c: Likewise.
17938         * locale/C-translit.h: Likewise.
17939         * locale/loadarchive.c: Likewise.
17940         * locale/programs/3level.h: Likewise.
17941         * locale/programs/charmap.c: Likewise.
17942         * locale/programs/charmap.h: Likewise.
17943         * locale/programs/ld-address.c: Likewise.
17944         * locale/programs/ld-collate.c: Likewise.
17945         * locale/programs/ld-ctype.c: Likewise.
17946         * locale/programs/ld-identification.c: Likewise.
17947         * locale/programs/ld-measurement.c: Likewise.
17948         * locale/programs/ld-messages.c: Likewise.
17949         * locale/programs/ld-monetary.c: Likewise.
17950         * locale/programs/ld-name.c: Likewise.
17951         * locale/programs/ld-numeric.c: Likewise.
17952         * locale/programs/ld-paper.c: Likewise.
17953         * locale/programs/ld-telephone.c: Likewise.
17954         * locale/programs/ld-time.c: Likewise.
17955         * locale/programs/linereader.c: Likewise.
17956         * locale/programs/locale.c: Likewise.
17957         * locale/programs/locarchive.c: Likewise.
17958         * locale/programs/locfile.h: Likewise.
17959         * locale/programs/repertoire.c: Likewise.
17960         * locale/programs/simple-hash.c: Likewise.
17961         * locale/programs/simple-hash.h: Likewise.
17962         * malloc/memusage.c: Likewise.
17963         * malloc/memusagestat.c: Likewise.
17964         * nis/nis_defaults.c: Likewise.
17965         * nis/nis_hash.c: Likewise.
17966         * nis/nis_print.c: Likewise.
17967         * nis/nis_xdr.c: Likewise.
17968         * nscd/connections.c: Likewise.
17969         * nscd/hstcache.c: Likewise.
17970         * nscd/nscd_gethst_r.c: Likewise.
17971         * nscd/nscd_getserv_r.c: Likewise.
17972         * nscd/nscd_helper.c: Likewise.
17973         * nscd/servicescache.c: Likewise.
17974         * nss/makedb.c: Likewise.
17975         * nss/nss_db/db-XXX.c: Likewise.
17976         * nss/nss_db/db-initgroups.c: Likewise.
17977         * nss/nss_db/db-netgrp.c: Likewise.
17978         * nss/nss_files/files-network.c: Likewise.
17979         * nss/nss_files/files-parse.c: Likewise.
17980         * posix/bug-regex5.c: Likewise.
17981         * posix/fnmatch_loop.c: Likewise.
17982         * posix/regcomp.c: Likewise.
17983         * posix/regexec.c: Likewise.
17984         * posix/tst-rfc3484-2.c: Likewise.
17985         * posix/tst-rfc3484-3.c: Likewise.
17986         * posix/tst-rfc3484.c: Likewise.
17987         * resolv/nss_dns/dns-canon.c: Likewise.
17988         * resolv/nss_dns/dns-network.c: Likewise.
17989         * resolv/res_init.c: Likewise.
17990         * resolv/res_mkquery.c: Likewise.
17991         * resolv/tst-aton.c: Likewise.
17992         * stdlib/cxa_atexit.c: Likewise.
17993         * stdlib/cxa_finalize.c: Likewise.
17994         * stdlib/gen-fpioconst.c: Likewise.
17995         * stdlib/strtol_l.c: Likewise.
17996         * string/tst-endian.c: Likewise.
17997         * sunrpc/auth_des.c: Likewise.
17998         * sunrpc/clnt_udp.c: Likewise.
17999         * sunrpc/rtime.c: Likewise.
18000         * sunrpc/svcauth_des.c: Likewise.
18001         * sunrpc/xdr.c: Likewise.
18002         * sunrpc/xdr_intXX_t.c: Likewise.
18003         * sunrpc/xdr_rec.c: Likewise.
18004         * sysdeps/generic/ldconfig.h: Likewise.
18005         * sysdeps/generic/ldsodefs.h: Likewise.
18006         * sysdeps/generic/memusage.h: Likewise.
18007         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18008         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
18009         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
18010         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18011         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18012         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18013         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18014         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18015         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18016         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
18017         * sysdeps/posix/getaddrinfo.c: Likewise.
18018         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18019         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18020         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
18021         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18022         * sysdeps/powerpc/test-gettimebase.c: Likewise.
18023         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18024         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
18025         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
18026         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
18027         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
18028         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
18029         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
18030         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
18031         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
18032         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
18033         * sysdeps/x86_64/dl-tls.h: Likewise.
18034         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
18035         * time/alt_digit.c: Likewise.
18036         * time/era.c: Likewise.
18037         * wcsmbs/tst-c16c32-1.c: Likewise.
18038
18039 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18040
18041         * math/libm-test.inc (struct test_sincos_data): New type.
18042         (RUN_TEST_LOOP_sincos): New macro.
18043         (sincos_test_data): New variable.
18044         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
18045
18046 2013-05-16  Richard Henderson  <rth@redhat.com>
18047
18048         * math/atest-exp2.c (LIMB64): New macro.
18049         (CONSTSZ): New macro.
18050         (mp_exp1, mp_exp_m1, mp_log2): New variables.
18051         (hexdig): Move ...
18052         (print_mpn_fp): ... to function scope.
18053         (read_mpn_hex): Remove.
18054         (get_log2): Remove.
18055         (exp2_mpn): Use mp_log2.
18056         (main): Use mp_exp1.
18057
18058 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18059
18060         * math/libm-test.inc: Remove comment about not testing "inexact"
18061         exceptions.
18062         (INEXACT_EXCEPTION): New macro.
18063         (NO_INEXACT_EXCEPTION): Likewise.
18064         (INVALID_EXCEPTION_OK): Update value.
18065         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18066         (OVERFLOW_EXCEPTION_OK): Likewise.
18067         (UNDERFLOW_EXCEPTION_OK): Likewise.
18068         (IGNORE_ZERO_INF_SIGN): Likewise.
18069         (ERRNO_UNCHANGED): Likewise.
18070         (ERRNO_EDOM): Likewise.
18071         (ERRNO_ERANGE): Likewise.
18072         (test_exceptions): Handle testing "inexact" exceptions.
18073         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
18074         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
18075         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
18076         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
18077         INEXACT_EXCEPTION.
18078         (rint_towardzero_test_data): Likewise.
18079         (rint_downward_test_data): Likewise.
18080         (rint_upward_test_data): Likewise.
18081
18082         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
18083         with OVERFLOW_EXCEPTION.
18084         (exp10_test_data): Likewise.
18085         (exp2_test_data): Likewise.
18086         (expm1_test_data): Likewise.
18087         (lgamma_test_data): Likewise.
18088         (pow_test_data): Likewise.
18089         (tgamma_test_data): Likewise.
18090         (yn_test_data): Remove duplicate test of overflow.
18091
18092         * math/libm-test.inc (struct test_cc_c_data): New type.
18093         (RUN_TEST_LOOP_cc_c): New macro.
18094         (cpow_test_data): New variable.
18095         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
18096
18097         * math/libm-test.inc (struct test_f_L_data): New type.
18098         (RUN_TEST_LOOP_f_L): New macro.
18099         (llrint_test_data): New variable.
18100         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18101         (llrint_tonearest_test_data): New variable.
18102         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18103         (llrint_towardzero_test_data): New variable.
18104         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18105         (llrint_downward_test_data): New variable.
18106         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18107         (llrint_upward_test_data): New variable.
18108         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18109         (llround_test_data): New variable.
18110         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18111
18112 2013-05-13  Peter Collingbourne  <pcc@google.com>
18113
18114         * math/atest-exp2.c (get_log2): Remove const attribute.
18115
18116 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18117
18118         * math/libm-test.inc (struct test_f_l_data): New type.
18119         (RUN_TEST_LOOP_f_l): New macro.
18120         (lrint_test_data): New variable.
18121         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18122         (lrint_tonearest_test_data): New variable.
18123         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18124         (lrint_towardzero_test_data): New variable.
18125         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18126         (lrint_downward_test_data): New variable.
18127         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18128         (lrint_upward_test_data): New variable.
18129         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18130         (lround_test_data): New variable.
18131         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18132
18133 2013-05-15  Peter Collingbourne  <pcc@google.com>
18134
18135         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18136         (EXTRACT_WORDS64) Use where appropriate.
18137         (INSERT_WORDS64) Likewise.
18138
18139         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18140         constraints with x constraints.
18141         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18142
18143         * malloc/obstack.c (_obstack_compat): Add initializer.
18144
18145 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18146
18147         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18148         si_trapno and add si_addr_lsb to _sifields.sigfault.
18149         (si_trapno): Remove macro.
18150         (si_addr_lsb): Define new macro.
18151         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18152
18153 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18154
18155         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18156         instead of TEST_f_l.
18157         (llrint_test_tonearest): Likewise.
18158         (llrint_test_towardzero): Likewise.
18159         (llrint_test_downward): Likewise.
18160         (llrint_test_upward): Likewise.
18161         (llround_test): Likewise.
18162
18163         * math/libm-test.inc (struct test_f_i_data): Add comment.
18164         (RUN_TEST_LOOP_f_b): New macro.
18165         (RUN_TEST_LOOP_f_b_tg): Likewise.
18166         (finite_test_data): New variable.
18167         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18168         (isfinite_test_data): New variable.
18169         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18170         (isinf_test_data): New variable.
18171         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18172         (isnan_test_data): New variable.
18173         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18174         (isnormal_test_data): New variable.
18175         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18176         (issignaling_test_data): New variable.
18177         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18178         (signbit_test_data): New variable.
18179         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18180
18181         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18182         with INVALID_EXCEPTION.
18183         (acosh_test_data): Likewise.
18184         (asin_test_data): Likewise.
18185         (atanh_test_data): Likewise.
18186         (fmod_test_data): Likewise.
18187         (log_test_data): Likewise.
18188         (log10_test_data): Likewise.
18189         (log2_test_data): Likewise.
18190         (pow_test_data): Likewise.
18191         (sqrt_test_data): Likewise.
18192         (y0_test_data): Likewise.
18193         (y1_test_data): Likewise.
18194         (yn_test_data): Likewise.
18195
18196         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18197         function contents.
18198
18199         * math/libm-test.inc (struct test_ff_i_data): New type.
18200         (RUN_TEST_LOOP_ff_i_tg): New macro.
18201         (isgreater_test_data): New variable.
18202         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18203         (isgreaterequal_test_data): New variable.
18204         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18205         (isless_test_data): New variable.
18206         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18207         (islessequal_test_data): New variable.
18208         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18209         (islessgreater_test_data): New variable.
18210         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18211         (isunordered_test_data): New variable.
18212         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18213
18214 2013-05-14  David S. Miller  <davem@davemloft.net>
18215
18216         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18217
18218 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18219
18220         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18221
18222         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18223         extra_test to int.
18224         (struct test_f_i_data): Change type of max_ulp to int.
18225
18226         * math/libm-test.inc (test_ffI_f1_data): New type.
18227         (RUN_TEST_LOOP_ffI_f1): New macro.
18228         (remquo_test_data): New variable.
18229         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18230
18231         * setjmp/tst-setjmp-fp.c: New file.
18232         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18233         (link-libm): New variable.
18234         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18235
18236         * math/libm-test.inc (struct test_f_i_data): New type.
18237         (RUN_TEST_LOOP_f_i): New macro.
18238         (RUN_TEST_LOOP_f_i_tg): Likewise.
18239         (fpclassify_test_data): New variable.
18240         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18241         (ilogb_test_data): New variable.
18242         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18243
18244         * math/libm-test.inc (scalbln_test): Correct function name in END
18245         call.
18246
18247         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18248         (RUN_TEST_LOOP_fI_f1): New macro.
18249         (frexp_test_data): New variable.
18250         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18251
18252         * math/libm-test.inc (struct test_fF_f1_data): New type.
18253         (RUN_TEST_LOOP_fF_f1): New macro.
18254         (modf_test_data): New variable.
18255         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18256
18257         * math/libm-test.inc (struct test_f_f1_data): New type.
18258         (RUN_TEST_LOOP_f_f1): New macro.
18259         (gamma_test_data): New variable.
18260         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18261         (lgamma_test_data): New variable.
18262         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18263
18264 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18265
18266         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18267         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18268         (main): Comment "tls" pseudo-hwcap.
18269
18270 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18271
18272         * math/libm-test.inc (struct test_fl_f_data): New type.
18273         (RUN_TEST_LOOP_fl_f): New variable.
18274         (scalbln_test_data): New variable.
18275         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18276
18277         * math/libm-test.inc (struct test_fi_f_data): New type.
18278         (RUN_TEST_LOOP_fi_f): New macro.
18279         (ldexp_test_data): New variable.
18280         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18281         (scalbn_test_data): New variable.
18282         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18283
18284         * math/libm-test.inc (struct test_c_f_data): New type.
18285         (RUN_TEST_LOOP_c_f): New macro.
18286         (cabs_test_data): New variable.
18287         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18288         (carg_test_data): New variable.
18289         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18290         (cimag_test_data): New variable.
18291         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18292         (creal_test_data): New variable.
18293         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18294
18295         * math/libm-test.inc (struct test_if_f_data): New type.
18296         (RUN_TEST_LOOP_if_f): New macro.
18297         (jn_test_data): New variable.
18298         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18299         (yn_test_data): New variable.
18300         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18301
18302         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18303
18304 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18305
18306         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18307         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18308
18309 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18310
18311         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18312         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18313         (bench-deps): Add bench-timing.h.
18314         * benchtests-bench-skeleton.c: Include bench-timing.h.
18315         (main): Use TIMING_* macros instead of clock_gettime.
18316         * benchtests/bench-timing.h: New file.
18317
18318         [BZ #14582]
18319         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18320         Renamed from _LIB_VERSION.
18321         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18322
18323 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18324
18325         * math/libm-test.inc (struct test_fff_f_data): New type.
18326         (RUN_TEST_LOOP_fff_f): New macro.
18327         (fma_test_data): New variable.
18328         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18329         (fma_towardzero_test_data): New variable.
18330         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18331         (fma_downward_test_data): New variable.
18332         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18333         (fma_upward_test_data): New variable.
18334         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18335
18336         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18337         (struct test_c_c_data): New type.
18338         (RUN_TEST_LOOP_c_c): New macro.
18339         (cacos_test_data): New variable.
18340         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18341         (cacosh_test_data): New variable.
18342         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18343         (casin_test_data): New variable.
18344         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18345         (casinh_test_data): New variable.
18346         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18347         (catan_test_data): New variable.
18348         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18349         (catanh_test_data): New variable.
18350         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18351         (ccos_test_data): New variable.
18352         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18353         (ccosh_test_data): New variable.
18354         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18355         (cexp_test_data): New variable.
18356         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18357         (clog_test_data): New variable.
18358         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18359         (clog10_test_data): New variable.
18360         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18361         (conj_test_data): New variable.
18362         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18363         (cproj_test_data): New variable.
18364         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18365         (csin_test_data): New variable.
18366         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18367         (csinh_test_data): New variable.
18368         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18369         (csqrt_test_data): New variable.
18370         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18371         (ctan_test_data): New variable.
18372         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18373         (ctan_tonearest_test_data): New variable.
18374         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18375         (ctan_towardzero_test_data): New variable.
18376         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18377         (ctan_downward_test_data): New variable.
18378         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18379         (ctan_upward_test_data): New variable.
18380         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18381         (ctanh_test_data): New variable.
18382         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18383         (ctanh_tonearest_test_data): New variable.
18384         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18385         (ctanh_towardzero_test_data): New variable.
18386         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18387         (ctanh_downward_test_data): New variable.
18388         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18389         (ctanh_upward_test_data): New variable.
18390         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18391         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18392         of BUILD_COMPLEX.
18393
18394         * math/libm-test.inc (struct test_ff_f_data): New type.
18395         (struct test_ff_f_data_nexttoward): Likewise.
18396         (RUN_TEST_LOOP_2_f): New macro.
18397         (RUN_TEST_LOOP_ff_f): Likewise.
18398         (atan2_test_data): New variable.
18399         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18400         (copysign_test_data): New variable.
18401         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18402         (fdim_test_data): New variable.
18403         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18404         (fmax_test_data): New variable.
18405         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18406         (fmin_test_data): New variable.
18407         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18408         (fmod_test_data): New variable.
18409         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18410         (hypot_test_data): New variable.
18411         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18412         (nextafter_test_data): New variable.
18413         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18414         (nexttoward_test_data): New variable.
18415         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18416         (pow_test_data): New variable.
18417         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18418         (pow_tonearest_test_data): New variable.
18419         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18420         (pow_towardzero_test_data): New variable.
18421         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18422         (pow_downward_test_data): New variable.
18423         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18424         (pow_upward_test_data): New variable.
18425         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18426         (remainder_test_data): New variable.
18427         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18428         (scalb_test_data): New variable.
18429         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18430         * sysdeps/i386/fpu/libm-test-ulps: Update.
18431
18432 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18433
18434         * math/libm-test.inc (fma_test): Use max_value instead of local
18435         variable fltmax.
18436         (nextafter_test): Likewise.
18437
18438         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18439         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18440         (acos_downward_test_data): New variable.
18441         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18442         (acos_upward_test_data): New variable.
18443         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18444         (acosh_test_data): New variable.
18445         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
18446         (asin_test_data): New variable.
18447         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
18448         (asin_tonearest_test_data): New variable.
18449         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18450         (asin_towardzero_test_data): New variable.
18451         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18452         (asin_downward_test_data): New variable.
18453         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18454         (asin_upward_test_data): New variable.
18455         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18456         (asinh_test_data): New variable.
18457         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
18458         (atan_test_data): New variable.
18459         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
18460         (atanh_test_data): New variable.
18461         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
18462         (cbrt_test_data): New variable.
18463         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
18464         (ceil_test_data): New variable.
18465         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
18466         (cos_test_data): New variable.
18467         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
18468         (cos_tonearest_test_data): New variable.
18469         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18470         (cos_towardzero_test_data): New variable.
18471         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18472         (cos_downward_test_data): New variable.
18473         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18474         (cos_upward_test_data): New variable.
18475         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18476         (cosh_test_data): New variable.
18477         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
18478         (cosh_tonearest_test_data): New variable.
18479         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18480         (cosh_towardzero_test_data): New variable.
18481         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18482         (cosh_downward_test_data): New variable.
18483         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18484         (cosh_upward_test_data): New variable.
18485         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18486         (erf_test_data): New variable.
18487         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18488         (erfc_test_data): New variable.
18489         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18490         (exp_test_data): New variable.
18491         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18492         (exp_tonearest_test_data): New variable.
18493         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18494         (exp_towardzero_test_data): New variable.
18495         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18496         (exp_downward_test_data): New variable.
18497         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18498         (exp_upward_test_data): New variable.
18499         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18500         (exp10_test_data): New variable.
18501         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18502         (exp2_test_data): New variable.
18503         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18504         (expm1_test_data): New variable.
18505         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18506         (fabs_test_data): New variable.
18507         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18508         (floor_test_data): New variable.
18509         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18510         (j0_test_data): New variable.
18511         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18512         (j1_test_data): New variable.
18513         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18514         (log_test_data): New variable.
18515         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18516         (log10_test_data): New variable.
18517         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18518         (log1p_test_data): New variable.
18519         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18520         (log2_test_data): New variable.
18521         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18522         (logb_test_data): New variable.
18523         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18524         (logb_downward_test_data): New variable.
18525         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18526         (nearbyint_test_data): New variable.
18527         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18528         (rint_test_data): New variable.
18529         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18530         (rint_tonearest_test_data): New variable.
18531         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18532         (rint_towardzero_test_data): New variable.
18533         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18534         (rint_downward_test_data): New variable.
18535         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18536         (rint_upward_test_data): New variable.
18537         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18538         (round_test_data): New variable.
18539         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18540         (sin_test_data): New variable.
18541         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18542         (sin_tonearest_test_data): New variable.
18543         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18544         (sin_towardzero_test_data): New variable.
18545         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18546         (sin_downward_test_data): New variable.
18547         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18548         (sin_upward_test_data): New variable.
18549         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18550         (sinh_test_data): New variable.
18551         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18552         (sinh_tonearest_test_data): New variable.
18553         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18554         (sinh_towardzero_test_data): New variable.
18555         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18556         (sinh_downward_test_data): New variable.
18557         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18558         (sinh_upward_test_data): New variable.
18559         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18560         (sqrt_test_data): New variable.
18561         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18562         (tan_test_data): New variable.
18563         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18564         (tan_tonearest_test_data): New variable.
18565         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18566         (tan_towardzero_test_data): New variable.
18567         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18568         (tan_downward_test_data): New variable.
18569         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18570         (tan_upward_test_data): New variable.
18571         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18572         (tanh_test_data): New variable.
18573         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18574         (tgamma_test_data): New variable.
18575         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18576         (trunc_test_data): New variable.
18577         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18578         (y0_test_data): New variable.
18579         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18580         (y1_test_data): New variable.
18581         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18582         (significand_test_data): New variable.
18583         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18584
18585 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18586
18587         [BZ #12387]
18588         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18589
18590 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18591
18592         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18593
18594 2013-05-10  Andreas Jaeger  <aj@suse.de>
18595
18596         [BZ #15448]
18597         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18598         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18599
18600 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18601
18602         * math/gen-libm-test.pl (adjust_arg): New function.
18603         (special_functions): Handle generating output in both functions
18604         and arrays.
18605         (parse_args): Likewise.
18606         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18607         $in_func argument to parse_args.
18608         * math/libm-test.inc (struct test_f_f_data): New type.
18609         (IF_ROUND_INIT_): New macro.
18610         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18611         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18612         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18613         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18614         (ROUND_RESTORE_): Likewise.
18615         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18616         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18617         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18618         (ROUND_RESTORE_FE_UPWARD): Likewise.
18619         (RUN_TEST_LOOP_f_f): New macro.
18620         (acos_test_data): New variable.
18621         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18622         (acos_tonearest_test_data): New variable.
18623         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18624
18625 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18626
18627         * benchtests/bench-skeleton.c (startup): Fix coding style.
18628
18629 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18630
18631         [BZ #6809]
18632         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18633         negative infinity argument.
18634         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18635         negative infinity argument.
18636         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18637         negative infinity argument.
18638         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18639         domain errors.
18640
18641 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18642
18643         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18644         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18645         * iconv/iconv_prog.c (main): Likewise.
18646         * locale/programs/charmap-dir.c (charmap_readdir)
18647         (fopen_uncompressed): Likewise.
18648         * locale/programs/locfile.c (siblings_uncached)
18649         (write_locale_data): Use lstat64 instead of lstat.
18650         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18651         stat.
18652
18653 2013-05-10  Andreas Jaeger  <aj@suse.de>
18654
18655         [BZ #15395]
18656         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18657         localization.
18658         Include <locale.h>.
18659
18660 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18661
18662         * elf/dl-close.c (_dl_close_worker): Add comments.
18663
18664 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18665
18666         [BZ #15359]
18667         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18668         high part of pi/2.
18669         (__ieee754_rem_pio2l): Update comments.
18670
18671         [BZ #15429]
18672         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18673         high part of pi/2.
18674         (__ieee754_rem_pio2l): Update comments.
18675
18676         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18677         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18678
18679         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18680         M_PI_4l.
18681
18682         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18683         (M_PI_34_LOG10El): Likewise.
18684         (M_PI2_LOG10El): Likewise.
18685         (M_PI4_LOG10El): Likewise.
18686         (M_PI_LOG10El): Likewise.
18687
18688 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18689
18690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18691
18692 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18693
18694         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18695         (MINUS_ZERO_INIT): Likewise.
18696         (PLUS_INFTY_INIT): Likewise.
18697         (MINUS_INFTY_INIT): Likewise.
18698         (QNAN_VALUE_INIT): Likewise.
18699         (MAX_VALUE_INIT): Likewise.
18700         (MIN_VALUE_INIT): Likewise.
18701         (MIN_SUBNORM_VALUE_INIT): Likewise.
18702         (plus_zero): Initialize with PLUS_ZERO_INIT.
18703         (minus_zero): Initialize with MINUS_ZERO_INIT.
18704         (plus_infty): Initialize with PLUS_INFTY_INIT.
18705         (minus_infty): Initialize with MINUS_INFTY_INIT.
18706         (qnan_value): Initialize with QNAN_VALUE_INIT.
18707         (max_value): Initialize with MAX_VALUE_INIT.
18708         (min_value): Initialize with MIN_VALUE_INIT.
18709         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18710
18711         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18712         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18713         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18714         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18715
18716         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18717         (RUN_TEST_2_f): Likewise.
18718         (RUN_TEST_ff_f): Likewise.
18719         (RUN_TEST_fi_f): Likewise.
18720         (RUN_TEST_fl_f): Likewise.
18721         (RUN_TEST_fff_f): Likewise.
18722         (RUN_TEST_c_f): Likewise.
18723         (RUN_TEST_f_f1): Likewise.
18724         (RUN_TEST_fF_f1): Likewise.
18725         (RUN_TEST_fI_f1): Likewise.
18726         (RUN_TEST_ffI_f1): Likewise.
18727         (RUN_TEST_c_c): Likewise.
18728         (RUN_TEST_cc_c): Likewise.
18729         (RUN_TEST_f_i): Likewise.
18730         (RUN_TEST_f_i_tg): Likewise.
18731         (RUN_TEST_ff_i_tg): Likewise.
18732         (RUN_TEST_f_b): Likewise.
18733         (RUN_TEST_f_b_tg): Likewise.
18734         (RUN_TEST_f_l): Likewise.
18735         (RUN_TEST_f_L): Likewise.
18736         (RUN_TEST_sincos): Likewise.
18737         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18738         whether to show exceptions.  Do not include ");\n" in return
18739         value.
18740         (special_functions): Output call to RUN_TEST_sincos instead of
18741         check_float calls.  Update calls to new_test.
18742         (parse_args): Output call to single RUN_TEST_* macro instead of
18743         check_* calls and other assignments.  Update calls to new_test.
18744
18745         [BZ #2546]
18746         [BZ #2560]
18747         [BZ #5159]
18748         [BZ #15426]
18749         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18750         input to result for tgamma overflow.
18751         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18752         (gamma_coeff): New variable.
18753         (NCOEFF): New macro.
18754         (gamma_positive): New function.
18755         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18756         underflow here.  Use gamma_positive instead of exp (lgamma) for
18757         other arguments.
18758         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18759         (gamma_coeff): New variable.
18760         (NCOEFF): New macro.
18761         (gammaf_positive): New function.
18762         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18763         underflow here.  Use gamma_positive instead of exp (lgamma) for
18764         other arguments.
18765         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18766         (gamma_coeff): New variable.
18767         (NCOEFF): New macro.
18768         (gammal_positive): New function.
18769         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18770         underflow here.  Use gamma_positive instead of exp (lgamma) for
18771         other arguments.
18772         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18773         (gamma_coeff): New variable.
18774         (NCOEFF): New macro.
18775         (gammal_positive): New function.
18776         (__ieee754_gammal_r): Handle positive infinity, overflow and
18777         underflow here.  Handle NaN the same as positive infinity.  Remove
18778         check x < 0xffffffff for negative integers.  Use gamma_positive
18779         instead of exp (lgamma) for other arguments.
18780         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18781         (gamma_coeff): New variable.
18782         (NCOEFF): New macro.
18783         (gammal_positive): New function.
18784         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18785         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18786         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18787         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18788         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18789         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18790         * sysdeps/generic/math_private.h (__gamma_productf): New
18791         prototype.
18792         (__gamma_product): Likewise.
18793         (__gamma_productl): Likewise.
18794         * math/Makefile (libm-calls): Add gamma_product.
18795         * math/libm-test.inc (tgamma_test): Add more tests.
18796         * sysdeps/i386/fpu/libm-test-ulps: Update.
18797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18798
18799 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18800
18801         * benchtests/bench-skeleton.c (main): Preheat CPU.
18802
18803 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18804
18805         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18806
18807 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18808
18809         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18810         and _dl_skip_args_internal.
18811
18812 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18813
18814         * manual/message.texi (Message Translation): Talk about users.
18815         Message to key mapping impacts design.
18816
18817 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18818
18819         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18820
18821         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18822
18823         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18824         * sysdeps/wordsize-64/glob64.c: ... here.
18825
18826         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18827         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18828         New macros.
18829
18830         * debug/getlogin_r_chk.c: Moved to ...
18831         * login/getlogin_r_chk.c: ... here.
18832         * debug/Makefile (routines): Move getlogin_r_chk to ...
18833         * login/Makefile (routines): ... here.
18834         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18835         * login/Versions (libc: GLIBC_2.4): ... here.
18836
18837         * io/poll.c (__poll): Renamed from poll.
18838         Add libc_hidden_def.
18839         (poll): Define as weak alias.
18840
18841         * debug/ptsname_r_chk.c: Moved to ...
18842         * login/ptsname_r_chk.c: ... here.
18843         * debug/Makefile (routines): Move ptsname_r_chk to ...
18844         * login/Makefile (routines): ... here.
18845         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18846         * login/Versions (libc: GLIBC_2.4): ... here.
18847
18848         * posix/getlogin.c: Moved to ...
18849         * login/getlogin.c: ... here.
18850         * posix/getlogin_r.c: Moved to ...
18851         * login/getlogin_r.c: ... here.
18852         * posix/getlogin_r.c: Moved to ...
18853         * login/getlogin_r.c: ... here.
18854         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18855         * login/Makefile (routines): ... here.
18856         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18857         * login/Versions (libc: GLIBC_2.0): ... here.
18858
18859         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18860         (setrlimit): Define as weak alias.
18861
18862         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18863         Call __ names for open, ftruncate, and close.
18864         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18865         (truncate): Define as weak alias.
18866
18867 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18868
18869         * math/gen-libm-test.pl (parse_args): Initialize x before each
18870         test of frexp, modf and remquo.
18871
18872         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18873         test signgam value.
18874
18875 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18876
18877         [BZ #15418]
18878         [BZ #15419]
18879         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18880         internal tests.
18881         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18882
18883 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18884
18885         * elf/dl-writev.h: New file.
18886         * elf/dl-misc.c: Include it.
18887         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18888         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18889
18890 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18891
18892         * math/libm-test.inc (noXFails): Remove variable.
18893         (noXPasses): Likewise.
18894         (BUILD_COMPLEX_INT): Remove macro.
18895         (print_screen): Remove xfail argument.
18896         (print_screen_max_error): Likewise.
18897         (update_stats): Likewise.
18898         (print_max_error): Likewise.  Update calls to other affected
18899         functions.
18900         (print_complex_max_error): Likewise.
18901         (test_single_exception): Update calls to print_screen.
18902         (test_single_errno): Likewise.
18903         (check_float_internal): Remove xfail argument.  Update calls to
18904         other affected functions.
18905         (check_float): Likewise.
18906         (check_complex): Likewise.
18907         (check_int): Likewise.
18908         (check_long): Likewise.
18909         (check_bool): Likewise.
18910         (check_longlong): Likewise.
18911         (main): Don't print noXFails and noXPasses.
18912         * math/gen-libm-test.pl (top level): Don't mention expected
18913         failure handling in comment.
18914         (new_test): Don't handle expected failures.
18915         (parse_args): Don't mention expected failure handling in comment.
18916         (generate_testfile): Don't handle expected failures.
18917         (parse_ulps): Likewise.
18918         (print_ulps_file): Likewise.
18919         (get_failure): Remove function.
18920         (output_test): Don't handle expected failures.
18921         * make/README.libm-test: Don't mention expected failure handling.
18922
18923         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18924         (minus_zero): Likewise.
18925         (plus_infty): Likewise.
18926         (minus_infty): Likewise.
18927         (qnan_value): Likewise.
18928         (max_value): Likewise.
18929         (min_value): Likewise.
18930         (min_subnorm_value): Likewise.
18931         (initialize): Do not initialize those variables dynamically.
18932
18933 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18934
18935         * io/open.c (__open_2): Moved to ...
18936         * io/open_2.c: ... this new file.
18937         * io/open64.c (__open64_2): Moved to ...
18938         * io/open64_2.c: ... this new file.
18939         * io/openat.c (__openat_2): Moved to ...
18940         * io/openat_2.c: ... this new file.
18941         * io/openat64.c (__openat64_2): Moved to ...
18942         * io/openat64_2.c: ... this new file.
18943         * io/Makefile (routines): Add them.
18944         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18945         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18946         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18947         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18948         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18949         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18950         (__openat64): Add hidden_ver.
18951         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18952         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18953
18954         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18955         Separately conditionalize setting of GLRO(dl_sysinfo) so
18956         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18957         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18958
18959 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18960
18961         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18962         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18963         definition.
18964         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18965         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18966         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18967         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18968         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18969
18970 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18971
18972         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18973         test signgam value.
18974
18975         * math/libm-test.inc (hypot_test): Do not use
18976         IGNORE_ZERO_INF_SIGN.
18977
18978 2013-05-03  Andreas Jaeger  <aj@suse.de>
18979
18980         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18981         Linux 3.9.
18982         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18983         (PF_MAX): Adjust for VSOCK change.
18984
18985 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18986
18987         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18988
18989 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18990
18991         [BZ #15264]
18992         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18993         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18994         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18995
18996 2013-05-02  David S. Miller  <davem@davemloft.net>
18997
18998         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18999
19000 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
19001
19002         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
19003
19004 2013-05-01  Roland McGrath  <roland@hack.frob.com>
19005
19006         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
19007
19008 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
19009
19010         [BZ #14952]
19011         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
19012         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19013         Use __attribute__ ((__gnu_inline__)).
19014         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19015         Don't use __attribute__ ((__gnu_inline__)).
19016
19017 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
19018
19019         [BZ #15423]
19020         * math/s_catan.c (__catan): Handle small real or imaginary part of
19021         input specially to avoid spurious underflow.
19022         * math/s_catanf.c (__catanf): Likewise.
19023         * math/s_catanh.c (__catanh): Likewise.
19024         * math/s_catanhf.c (__catanhf): Likewise.
19025         * math/s_catanhl.c (__catanhl): Likewise.
19026         * math/s_catanl.c (__catanl): Likewise.
19027         * math/libm-test.inc (catan_test): Add more tests.
19028         (catanh_test): Likewise.
19029         * sysdeps/i386/fpu/libm-test-ulps: Update.
19030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19031
19032 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19033
19034         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19035
19036 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
19037
19038         [BZ #15416]
19039         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
19040         accurately for denominator in atan2.
19041         * math/s_catanf.c (__catanf): Likewise.
19042         * math/s_catanh.c (__catanh): Likewise.
19043         * math/s_catanhf.c (__catanhf): Likewise.
19044         * math/s_catanhl.c (__catanhl): Likewise.
19045         * math/s_catanl.c (__catanl): Likewise.
19046         * math/libm-test.inc (catan_test): Add more tests.
19047         (catanh_test): Likewise.
19048         * sysdeps/i386/fpu/libm-test-ulps: Update.
19049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19050
19051 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
19052
19053         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
19054
19055         * benchtests/Makefile (bench): Remove slow benchmarks.
19056         * benchtests/atan-inputs: Add slow benchmark inputs.
19057         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
19058         (BENCH_FUNC): Accept variant offset.
19059         (VARIANT): Define.
19060         * benchtests/bench-skeleton.c (main): Run benchmark for each
19061         variant.
19062         * benchtests/cos-inputs: Add slow benchmark inputs.
19063         * benchtests/exp-inputs: Likewise.
19064         * benchtests/pow-inputs: Likewise.
19065         * benchtests/sin-inputs: Likewise.
19066         * benchtests/slowatan-inputs: Remove.
19067         * benchtests/slowatan.c: Remove.
19068         * benchtests/slowcos-inputs: Remove.
19069         * benchtests/slowcos.c: Remove.
19070         * benchtests/slowexp-inputs: Remove.
19071         * benchtests/slowexp.c: Remove.
19072         * benchtests/slowpow-inputs: Remove.
19073         * benchtests/slowpow.c: Remove.
19074         * benchtests/slowsin-inputs: Remove.
19075         * benchtests/slowsin.c: Remove.
19076         * benchtests/slowtan-inputs: Remove.
19077         * benchtests/slowtan.c: Remove.
19078         * benchtests/tan-inputs: Add slow benchmark inputs.
19079         * scripts/bench.pl: Parse comments and directives.
19080
19081         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
19082         in CPPFLAGS.
19083         ($(objpfx)bench-%.c): Remove *-ITER.
19084         * benchtests/bench-modf.c: Remove definition of ITER.
19085         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
19086         (main): Loop for DURATION seconds instead of fixed number of
19087         iterations.
19088         * scripts/bench.pl: Don't expect iterations in parameters.
19089
19090 2013-04-29  Roland McGrath  <roland@hack.frob.com>
19091
19092         * io/fchdir.c (__fchdir): Renamed from fchdir.
19093         (fchdir): Define as weak alias.
19094
19095 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19096
19097         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
19098         (ERRNO_EDOM): Likewise.
19099         (ERRNO_ERANGE): Likewise.
19100         (noErrnoTests): New variable.
19101         (init_max_error): Set errno to 0.
19102         (test_single_errno): New function.
19103         (test_errno): Likewise.
19104         (check_float_internal): Call test_errno.  Set errno to 0.
19105         (check_complex): Refer to errno tests in comment.
19106         (check_int): Call test_errno.  Set errno to 0.
19107         (check_long): Likewise.
19108         (check_bool): Likewise.
19109         (check_longlong): Likewise.
19110         (cos_test): Use ERRNO_* flags for errno tests instead of
19111         check_int.
19112         (expm1_test): Likewise.
19113         (fmod_test): Likewise.
19114         (ilogb_test): Likewise.
19115         (lgamma_test): Likewise.
19116         (pow_test): Likewise.
19117         (remainder_test): Likewise.
19118         (sin_test): Likewise.
19119         (tan_test): Likewise.
19120         (yn_test): Likewise.
19121         (initialize): Set errno to 0.
19122         (main): Print number of errno tests.
19123         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19124
19125 2013-04-29  Andreas Jaeger  <aj@suse.de>
19126
19127         [BZ #15084]
19128         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19129         and RES_USEVC.
19130
19131         [BZ #15085]
19132         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19133         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19134         unimplemented.
19135
19136         [BZ #15380]
19137         * stdlib/random.c (__initstate): Return NULL if
19138         __initstate fails.
19139
19140         [BZ #15086]
19141         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19142         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19143         RES_SNGLKUPREOP.
19144
19145 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19146
19147         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19148
19149 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19150
19151         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19152         of individual tests.
19153         (casin_test): Likewise.
19154         (casinh_test): Likewise.
19155
19156 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19157
19158         [BZ #15409]
19159         * math/s_catan.c (__catan): Handle arguments with large real or
19160         imaginary part separately without squaring.
19161         * math/s_catanf.c (__catanf): Likewise.
19162         * math/s_catanh.c (__catanh): Likewise.
19163         * math/s_catanhf.c (__catanhf): Likewise.
19164         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19165         and redefine.
19166         (__catanhl): Handle arguments with large real or imaginary part
19167         separately without squaring.
19168         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19169         and redefine.
19170         (__catanl): Handle arguments with large real or imaginary part
19171         separately without squaring.
19172         * math/libm-test.inc (catan_test): Add more tests.
19173         (catanh_test): Likewise.
19174         * sysdeps/i386/fpu/libm-test-ulps: Update.
19175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19176
19177 2013-04-27  Andreas Jaeger  <aj@suse.de>
19178
19179         [BZ #15007]
19180         * stdlib/stdlib.h: Update guards for qecvt.
19181         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19182         <stdlib.h>.
19183
19184 2013-04-27  Allan McRae  <allan@archlinux.org>
19185
19186         * sysdeps/i386/fpu/libm-test-ulps: Update.
19187
19188 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19189
19190         [BZ #15406]
19191         * math/s_catan.c: Include <float.h>.
19192         (__catan): Ensure underflow exception occurs for underflowed
19193         result.
19194         * math/s_catanf.c: Include <float.h>.
19195         (__catanf): Ensure underflow exception occurs for underflowed
19196         result.
19197         * math/s_catanh.c: Include <float.h>.
19198         (__catanh): Ensure underflow exception occurs for underflowed
19199         result.
19200         * math/s_catanhf.c: Include <float.h>.
19201         (__catanhf): Ensure underflow exception occurs for underflowed
19202         result.
19203         * math/s_catanhl.c: Include <float.h>.
19204         (__catanhl): Ensure underflow exception occurs for underflowed
19205         result.
19206         * math/s_catanl.c: Include <float.h>.
19207         (__catanl): Ensure underflow exception occurs for underflowed
19208         result.
19209         * math/libm-test.inc (catan_test): Add more tests.
19210         (catanh_test): Likewise.
19211
19212         [BZ #15405]
19213         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19214         underflowed result.
19215         * math/s_ccoshf.c (__ccoshf): Likewise.
19216         * math/s_ccoshl.c (__ccoshl): Likewise.
19217         * math/s_csin.c (__csin): Likewise.
19218         * math/s_csinf.c (__csinf): Likewise.
19219         * math/s_csinh.c (__csinh): Likewise.
19220         * math/s_csinhf.c (__csinhf): Likewise.
19221         * math/s_csinhl.c (__csinhl): Likewise.
19222         * math/s_csinl.c (__csinl): Likewise.
19223         * math/libm-test.inc (ccos_test): Add more tests.
19224         (ccosh_test): Likewise.
19225         (csin_test): Likewise.
19226         (csinh_test): Likewise.
19227
19228 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19229
19230         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19231         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19232         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19233         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19234         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19235         powerpc/power5+/fpu folders.
19236         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19237
19238
19239 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19240
19241         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19242
19243 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19244
19245         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19246         additions to variable.
19247         [$(config-machine) = x86_64] (modules-names): Likewise.
19248         ($(objpfx)tst-audit3): Remove dependency.
19249         ($(objpfx)tst-audit3.out): Likewise.
19250         ($(objpfx)tst-audit4): Likewise.
19251         ($(objpfx)tst-audit4.out): Likewise.
19252         ($(objpfx)tst-audit5): Likewise.
19253         ($(objpfx)tst-audit5.out): Likewise.
19254         ($(objpfx)tst-audit6): Likewise.
19255         ($(objpfx)tst-audit6.out): Likewise.
19256         ($(objpfx)tst-audit7): Likewise.
19257         ($(objpfx)tst-audit7.out): Likewise.
19258         (tst-audit3-ENV): Remove variable.
19259         (tst-audit4-ENV): Likewise.
19260         (tst-audit5-ENV): Likewise.
19261         (tst-audit6-ENV): Likewise.
19262         (tst-audit7-ENV): Likewise.
19263         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19264         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19265         addition to variable.
19266         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19267         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19268         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19269         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19270         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19271         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19272         tst-audit3, tst-audit4 and tst-audit5.
19273         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19274         tst-audit6 and tst-audit7.
19275         [$(subdir) = elf] (modules-names): Add audit modules for those
19276         tests.
19277         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19278         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19279         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19280         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19281         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19282         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19283         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19284         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19285         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19286         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19287         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19288         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19289         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19290         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19291         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19292         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19293         Likewise.
19294         [$(subdir) = elf && $(config-cflags-avx) = yes]
19295         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19296         [$(subdir) = elf && $(config-cflags-avx) = yes]
19297         (CFLAGS-tst-auditmod4a.c): Likewise.
19298         [$(subdir) = elf && $(config-cflags-avx) = yes]
19299         (CFLAGS-tst-auditmod4b.c): Likewise.
19300         [$(subdir) = elf && $(config-cflags-avx) = yes]
19301         (CFLAGS-tst-auditmod6b.c): Likewise.
19302         [$(subdir) = elf && $(config-cflags-avx) = yes]
19303         (CFLAGS-tst-auditmod6c.c): Likewise.
19304         [$(subdir) = elf && $(config-cflags-avx) = yes]
19305         (CFLAGS-tst-auditmod7b.c): Likewise.
19306         * elf/tst-audit3.c: Move to ...
19307         * sysdeps/x86_64/tst-audit3.c: ... here.
19308         * elf/tst-audit4.c: Move to ...
19309         * sysdeps/x86_64/tst-audit4.c: ... here.
19310         * elf/tst-audit5.c: Move to ...
19311         * sysdeps/x86_64/tst-audit5.c: ... here.
19312         * elf/tst-audit6.c: Move to ...
19313         * sysdeps/x86_64/tst-audit6.c: ... here.
19314         * elf/tst-audit7.c: Move to ...
19315         * sysdeps/x86_64/tst-audit7.c: ... here.
19316         * elf/tst-auditmod3a.c: Move to ...
19317         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19318         * elf/tst-auditmod3b.c: Move to ...
19319         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19320         * elf/tst-auditmod4a.c: Move to ...
19321         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19322         * elf/tst-auditmod4b.c: Move to ...
19323         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19324         * elf/tst-auditmod5a.c: Move to ...
19325         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19326         * elf/tst-auditmod5b.c: Move to ...
19327         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19328         * elf/tst-auditmod6a.c: Move to ...
19329         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19330         * elf/tst-auditmod6b.c: Move to ...
19331         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19332         * elf/tst-auditmod6c.c: Move to ...
19333         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19334         * elf/tst-auditmod7a.c: Move to ...
19335         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19336         * elf/tst-auditmod7b.c: Move to ...
19337         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19338
19339 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19340
19341         [BZ #15366]
19342         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19343         define unconditionally.
19344         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19345         define unconditionally.
19346         (INT8_C, INT16_C, etc.): Likewise.
19347
19348 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19349
19350         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19351         __ehdr_start with hidden visibility.
19352
19353         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19354
19355 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19356
19357         * math/libm-test.inc (cos_test): Use accurate hex constants.
19358         (sincost_test): Likewise.
19359
19360 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19361
19362         * math/libm-test.inc (catan_test): Add more tests.
19363         (catanh_test): Likewise.
19364
19365         * math/s_catanf.c (__catanf): Use suffixed floating-point
19366         constants.
19367         * math/s_catanhf.c (__catanhf): Likewise.
19368         * math/s_catanhl.c (__catanhl): Likewise.
19369         * math/s_catanl.c (__catanl): Likewise.
19370
19371         [BZ #15394]
19372         * math/s_catan.c (__catan): Calculate imaginary part of result
19373         with log1p not log unless computing log of number close to 0.
19374         * math/s_catanf.c (__catanf): Likewise.
19375         * math/s_catanl.c (__catanl): Likewise.
19376         * math/s_catanh.c (__catanh): Calculate real part of result with
19377         log1p not log unless computing log of number close to 0.
19378         * math/s_catanhf.c (__catanhf): Likewise.
19379         * math/s_catanhl.c (__catanhl): Likewise.
19380         * math/libm-test.inc (catan_test): Add more tests.
19381         (catanh_test): Likewise.
19382         * sysdeps/i386/fpu/libm-test-ulps: Update.
19383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19384
19385 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19386
19387         * benchtests/Makefile: Mention files in which fast and slow
19388         paths of math functions are implemented.
19389
19390 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19391
19392         * sysdeps/posix/timespec_get.c: New file.
19393
19394 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19395
19396         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19397         POWER.
19398         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19399         for POWER.
19400         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19401         powerpc/power5/fpu folders.
19402         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19403         * benchtests/Makefile: Add modf testcase.
19404         * benchtests/bench-modf.c: New file: Benchmark test for mo
19405
19406 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19407
19408         [BZ #14888]
19409         * time/Makefile (tests): Add tst-strptime-whitespace.
19410         * time/strptime_l.c (get_number): Use ISSPACE.
19411         (__strptime_internal): Likewise.
19412         * time/tst-strptime-whitespace.c: New test case.
19413
19414 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19415
19416         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19417         member.
19418         (_nss_files_init): Set it here.
19419
19420 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19421
19422         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19423         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19424         unsigned.
19425
19426 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19427
19428         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19429
19430 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19431
19432         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19433         size just once.
19434
19435 2013-04-21  David S. Miller  <davem@davemloft.net>
19436
19437         * po/ru.po: Update Russion translation from translation project.
19438
19439 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19440
19441         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19442         and setfsgid.
19443
19444 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
19445
19446         * configure.in: Remove i386 configure warning. Remove i386 case.
19447         * configure: Regenerate.
19448         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
19449         Add example to error message.
19450         * sysdeps/i386/configure: Regenerate.
19451
19452 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19453
19454         * benchtests/Makefile (bench): Add cos, tan, slowcos and
19455         slowtan.
19456         * benchtests/cos-inputs: New file.
19457         * benchtests/slowcos-inputs: New file.
19458         * benchtests/slowcos.c: New file.
19459         * benchtests/slowtan-inputs: New file.
19460         * benchtests/slowtan.c: New file.
19461         * benchtests/tan-inputs: New file.
19462
19463 2013-04-16  Roland McGrath  <roland@hack.frob.com>
19464
19465         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
19466         considered kosher.
19467
19468 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
19469
19470         * benchtests/Makefile: Include cppflags-iterator.mk to add
19471         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
19472
19473         * Makefile.in (bench-clean): New target.
19474         * benchtests/Makefile (bench-clean): Likewise.
19475
19476 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
19477
19478         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
19479
19480 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19481
19482         * stdio-common/tstdiomisc.c: Fix coding-style violation.
19483
19484 2013-04-15  Andreas Schwab  <schwab@suse.de>
19485
19486         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19487         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19488         * nscd/pwdcache.c (cache_addpw): Likewise.
19489         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19490         more than recsize.
19491
19492 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19493
19494         * benchtests/Makefile (bench): Write all output to
19495         bench-out.tmp together.
19496
19497 2013-04-15  Andreas Schwab  <schwab@suse.de>
19498
19499         * nscd/nscd.c (main): Don't fork again after closing files.
19500
19501 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19502
19503         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19504
19505         * benchtests/Rules (bench-deps): Collect dependencies into a
19506         single variable.  Add Makefile to dependencies.
19507         ($(objpfx)bench-%.c): Depend on bench-deps.
19508
19509 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19510             Xavier Roche  <roche+kml2@exalead.com>
19511
19512         [BZ #15361]
19513         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19514         just that it's a file descriptor.
19515         * manual/llio.texi (Synchronizing AIO Operations): Update description
19516         for EBADF error from aio_fsync.
19517
19518 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19519
19520         * Rules (bench): Move target definition...
19521         * benchtests/Makefile: ... here.
19522
19523 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19524
19525         * math/libm-test.inc (cos_test): Fix PI/2 test.
19526         (sincos_test): Likewise.
19527         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19528         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19529
19530 2013-04-11  Andreas Schwab  <schwab@suse.de>
19531
19532         [BZ #13988]
19533         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19534         accept exponent character only when digits were seen.
19535         * stdio-common/Makefile (tests): Add bug26.
19536         * stdio-common/bug26.c: New file.
19537
19538         [BZ #14293]
19539         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19540         non-freeable.
19541
19542 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19543
19544         * Makeconfig (rtld-prefix): Define built linker prefix.
19545         * Rules (run-bench): Use it.
19546         * math/Makefile (run-regen-ulps): Likewise.
19547
19548         * Rules (bench): Remove eval.
19549
19550 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19551             Roland McGrath  <roland@hack.frob.com>
19552             Ondrej Bilka  <neleai@seznam.cz>
19553
19554         [BZ #15346]
19555         * time/getdate.c: Include ctype.h and alloca.h.
19556         (__getdate_r): Trim leading and trailing spaces of input.
19557         * time/tst-getdate.c (tests): Add tests with leading and
19558         trailing spaces.
19559
19560 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19561
19562         [BZ #14280]
19563         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19564         when computing value.
19565
19566 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19567
19568         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19569         Use testrun.sh to run libm tests.
19570
19571         [BZ #15309]
19572         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19573
19574 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19575
19576         [BZ #15264]
19577         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19578
19579 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19580
19581         * Makefile.in (regen-ulps): New target.
19582         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19583         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19584         [ifneq (no,$(PERL)] (regen-ulps): New target.
19585         [ifeq (no,$(PERL)] (regen-ulps): New target.
19586         * math/libm-test.inc (ulps_file_name): Define.
19587         (output_dir): New variable.
19588         (options): Add "output-dir" option.
19589         (parse_opt): Handle 'o' case.
19590         (main): If output_dir is non-NULL use it as a prefix
19591         otherwise use "".
19592         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19593
19594 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19595
19596         [BZ #10060, #10062]
19597         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19598         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19599         fail configure if __sync_val_compare_and_swap is not inlined.
19600         * sysdeps/i386/configure: Regenerate.
19601         * configure.in: Build for i686 when configured for i386.
19602         * configure: Regenerate.
19603         * README: Remove i386 reference.
19604
19605 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19606
19607         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19608         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19609
19610 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19611
19612         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19613         (lmsnanval): New variables.
19614         (F): Add conversion tests.
19615         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19616         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19617
19618         * stdio-common/tstdiomisc.c (F): Properly collect individual
19619         tests' results.
19620
19621         [BZ #14686, #15336]
19622         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19623         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19624         Instead, use input NaN values or generate a qNaN by arithmetic
19625         operation.  Also fix bugs to comply with the standard.
19626         * math/libm-test.inc (remainder_test): Add more tests.
19627
19628         [BZ #15335, #15342]
19629         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19630         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19631         input NaN values or generate a qNaN by arithmetic operation.
19632
19633         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19634         unreachable code.
19635
19636         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19637         definitions.
19638
19639 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19640
19641         [BZ #14478]
19642         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19643         underflowed result.
19644         * math/s_cexpf.c (__cexpf): Likewise.
19645         * math/s_cexpl.c (__cexpl): Likewise.
19646         * math/libm-test.inc (cexp_test): Add more tests.
19647
19648 2013-04-03  Andreas Schwab  <schwab@suse.de>
19649
19650         [BZ #15330]
19651         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19652         order arrays from heap if bigger than alloca cutoff.
19653
19654 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19655
19656         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19657         (SNAN_TESTS_double): Refer to GCC PR56831.
19658         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19659         GCC PR56828.
19660
19661 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19662
19663         * Rules (bench): Move bench.out after the run is complete.
19664
19665         * Rules (bench): Echo currently running benchmark.
19666
19667         * benchtests/Makefile (bench): Add atan and slowatan.
19668         * benchtests/atan-inputs: New file.
19669         * benchtests/slowatan-inputs: New file.
19670         * benchtests/slowatan.c: New file.
19671
19672         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19673         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19674         its value.
19675
19676         [BZ #15305]
19677         * sysdeps/unix/sysv/linux/kernel-features.h
19678         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19679         __ASSUME_XFS_RESTRICTED_CHOWN.
19680         * sysdeps/unix/sysv/linux/pathconf.c
19681         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19682         Save and restore errno.
19683
19684 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19685
19686         [BZ #15327]
19687         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19688         arguments using __kernel_casinh.
19689         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19690         arguments using __kernel_casinhf.
19691         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19692         arguments using __kernel_casinhl.
19693         * math/libm-test.inc (cacosh_test): Add more tests.
19694         * sysdeps/i386/fpu/libm-test-ulps: Update.
19695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19696
19697 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19698
19699         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19700         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19701
19702         * bench/Makefile (bench): Add sin and slowsin.
19703         * benchtests/sin-inputs: New file.
19704         * benchtests/slowsin-inputs: New file.
19705         * benchtests/slowsin.c: New file.
19706
19707         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19708         (bench): Add slowexp and slowpow.
19709         (exp-ITER): Increase iterations.
19710         (pow-ITER): Likewise.
19711         * benchtests/exp-inputs: Change input.
19712         * benchtests/pow-inputs: Likewise.
19713         * benchtests/slowexp-inputs: New file.
19714         * benchtests/slowexp.c: New file.
19715         * benchtests/slowpow-inputs: New file.
19716         * benchtests/slowpow.c: New file.
19717
19718 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19719
19720         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19721         instructions.
19722         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19723         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19724         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19725         * benchtests/Makefile: Add rint benchtest.
19726         * benchtests/rint-inputs: Input for rint benchtest.
19727
19728 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19729
19730         * Versions.def (libm): Add GLIBC_2.18.
19731         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19732         hidden libm prototypes.
19733         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19734         * math/Makefile (libm-calls): Add s_issignaling.
19735         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19736         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19737         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19738         declaration.
19739         * math/math.h [__USE_GNU] (issignaling): New macro.
19740         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19741         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19742         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19743         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19744         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19745         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19746         * manual/arith.texi (issignaling): New section.
19747         * manual/libm-err-tab.pl (@all_functions): Update comment.
19748         * math/gen-libm-test.pl (parse_args): Apply special handling for
19749         issignaling.
19750         * math/libm-test.inc (print_float, issignaling_test): New
19751         functions.
19752         (check_float_internal): Add issignaling checks.
19753         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19754         default definition.
19755         * sysdeps/powerpc/math-tests.h: New file.
19756         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19757         tests.
19758         * math/test-snan.c (TEST_FUNC): Likewise.
19759
19760 2013-03-30  David S. Miller  <davem@davemloft.net>
19761
19762         * po/de.po: Update from translation team.
19763
19764 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19765
19766         [BZ #10357]
19767         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19768         imaginary part less than 1.0 and real part less than 0.5
19769         specially.
19770         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19771         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19772         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19773         (cacos_test): Add more tests.
19774         (casin_test): Likewise.
19775         (casinh_test): Likewise.
19776         * sysdeps/i386/fpu/libm-test-ulps: Update.
19777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19778
19779 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19780
19781         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19782         ONE with its value.
19783
19784         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19785         (__pow_mp): Replace ONE and MONE with their values.
19786         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19787         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19788         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19789         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19790         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19791         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19792
19793         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19794
19795         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19796         (__pow_mp): Replace ZERO and MZERO with their values.
19797         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19798         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19799         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19800         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19801         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19802         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19803         (__sqr): Likewise.
19804
19805         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19806
19807         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19808
19809 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19810
19811         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19812         Declare with __attribute__ ((weak)).
19813         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19814         Call __call_tls_dtors only if it's not NULL.
19815
19816 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19817
19818         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19819         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19820         magic __ehdr_start linker symbol if it's defined.
19821         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19822         them up here if it was already done.
19823
19824         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19825         (_dl_aux_init): Use const in cast when setting it.
19826         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19827         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19828         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19829
19830         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19831         Declare them here.
19832         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19833         * csu/libc-tls.c: Nor here.
19834         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19835
19836         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19837         (__libc_message): Never call vsyslog.
19838
19839 2013-03-28  Alan Modra  <amodra@gmail.com>
19840
19841         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19842         Define as empty.
19843         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19844         Likewise.
19845
19846 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19847
19848         [BZ #15214]
19849         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19850         underflow.
19851         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19852
19853 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19854
19855         [BZ #15304]
19856         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19857         Don't add gid passed as argument.
19858
19859         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19860
19861 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19862
19863         [BZ #15307]
19864         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19865         imaginary part between 1.0 and 1.5 and real part less than 0.5
19866         specially.
19867         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19868         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19869         * math/libm-test.inc (cacos_test): Add more tests.
19870         (casin_test): Likewise.
19871         (casinh_test): Likewise.
19872         * sysdeps/i386/fpu/libm-test-ulps: Update.
19873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19874
19875 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19876
19877         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19878         constants.
19879         (norm): Likewise.
19880         (denorm): Likewise.
19881         (__dbl_mp): Likewise.
19882         (add_magnitudes): Likewise.
19883         (sub_magnitudes): Likewise.
19884         (__add): Likewise.
19885         (__sub): Likewise.
19886         (__mul): Likewise.
19887         (__sqr): Likewise.
19888         (__inv): Likewise.
19889         (__dvd): Likewise.
19890
19891         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19892         commented code.
19893         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19894         (__dubcos): Likewise.
19895         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19896         (__ieee754_acos): Likewise.
19897         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19898         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19899         (__exp1): Likewise.
19900         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19901         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19902         (log1): Likewise.
19903         (my_log2): Likewise.
19904         (checkint): Likewise.
19905         * sysdeps/ieee754/dbl-64/e_remainder.c
19906         (__ieee754_remainder): Likewise.
19907         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19908         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19909         (bsloww): Likewise.
19910         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19911
19912         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19913         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19914         MANTISSA_STORE_T to store computations on mantissa.  Use
19915         macros for rounding and division.
19916         (denorm): Likewise.
19917         (__dbl_mp): Likewise.
19918         (add_magnitudes): Likewise.
19919         (sub_magnitudes): Likewise.
19920         (__mul): Likewise.
19921         (__sqr): Likewise.
19922         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19923         powers of two in terms of TWOPOW macro.
19924         (mp_no): Make type of mantissa as MANTISSA_T.
19925         [!RADIXI]: Define RADIXI.
19926         [!TWO52]: Define TWO52.
19927         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19928
19929 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19930
19931         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19932         llroundl symbol when building for PPC32.
19933
19934 2013-03-24  Mark H Weaver  <mhw@netris.org>
19935
19936         * manual/arith.texi (Normalization Functions): Fix prototypes for
19937         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19938
19939 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19940
19941         [BZ #13889]
19942         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19943         high value to check if expl overflow.
19944         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19945         to check for underflow and overflow.
19946         * math/libm-test.inc: Add exp test.
19947
19948 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19949
19950         [BZ #11120]
19951         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19952         with NOT_IN_libc.
19953
19954 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19955
19956         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19957         symbol.
19958
19959 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19960
19961         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19962         wrap blocks consisting of several statements.
19963
19964         * sysdeps/generic/math-tests.h: New file.
19965         * sysdeps/i386/fpu/math-tests.h: Likewise.
19966         * math/test-snan.c: Include it.
19967         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19968
19969 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19970
19971         [BZ #15285]
19972         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19973         (__ieee754_j0l): Do not improve calculations using cos of twice
19974         input for inputs above LDBL_MAX / 2.0L.
19975         (__ieee754_y0l): Likewise.
19976         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19977         (__ieee754_j1l): Do not improve calculations using cos of twice
19978         input for inputs above LDBL_MAX / 2.0L.
19979         (__ieee754_y1l): Likewise.
19980         * math/libm-test.inc (j0_test): Add another test.
19981         (j1_test): Likewise.
19982         (y0_test): Likewise.
19983         (y1_test): Likewise.
19984         * sysdeps/i386/fpu/libm-test-ulps: Update.
19985
19986 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19987
19988         * Rules ($(objpfx)bench-%.c): Include code from a C source
19989         file.
19990
19991 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19992
19993         [BZ #15287]
19994         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19995         imaginary part 1.0 and real part less than 0.5 specially.
19996         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19997         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19998         * math/libm-test.inc (cacos_test): Add more tests.
19999         (casin_test): Likewise.
20000         (casinh_test): Likewise.
20001         * sysdeps/i386/fpu/libm-test-ulps: Update.
20002         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20003
20004 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20005
20006         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
20007         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
20008
20009 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
20010
20011         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
20012         * config.make.in (config-cflags-sse4): Remove variable.
20013         (config-cflags-avx): Likewise.
20014         (config-cflags-sse2avx): Likewise.
20015         (config-cflags-novzeroupper): Likewise.
20016         (config-asflags-i686): Likewise.
20017         (have-mfma4): Likewise.
20018         (have-as-vis3): Likewise.
20019         (MIG): Likewise.
20020         * configure.in (MIG): Do not AC_SUBST.
20021         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
20022         (libc_cv_cc_sse4): Do not AC_SUBST.
20023         (libc_cv_cc_avx): Likewise.
20024         (libc_cv_cc_sse2avx): Likewise.
20025         (libc_cv_cc_novzeroupper): Likewise.
20026         (libc_cv_cc_fma4): Likewise.
20027         (libc_cv_as_i686): Likewise.
20028         (libc_cv_sparc_as_vis3): Likewise.
20029         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
20030         LIBC_CONFIG_VAR.
20031         (config-asflags-i686): Likewise.
20032         (config-cflags-avx): Likewise.
20033         (config-cflags-sse2avx): Likewise.
20034         (have-mfma4): Likewise.
20035         (config-cflags-novzeroupper): Likewise.
20036         * sysdeps/mach/configure.in (MIG): Likewise.
20037         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
20038         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
20039         LIBC_CONFIG_VAR.
20040         (config-cflags-avx): Likewise.
20041         (config-cflags-sse2avx): Likewise.
20042         (have-mfma4): Likewise.
20043         (config-cflags-novzeroupper): Likewise.
20044         * configure: Regenerated.
20045         * sysdeps/i386/configure: Likewise.
20046         * sysdeps/mach/configure: Likewise.
20047         * sysdeps/sparc/configure: Likewise.
20048         * sysdeps/x86_64/configure: Likewise.
20049
20050 2013-03-20  Roland McGrath  <roland@hack.frob.com>
20051
20052         [BZ #14812]
20053         * locale/programs/localedef.c (options): Put N_ translation marker
20054         on argument names, not just descriptions.
20055
20056 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
20057
20058         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
20059
20060 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
20061
20062         [BZ #14176]
20063         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
20064
20065 2013-03-19  Roland McGrath  <roland@hack.frob.com>
20066
20067         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
20068         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
20069         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
20070         [!BEFORE_ABORT] (before_abort): New function.
20071         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
20072         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
20073         (writev_for_fatal): New function.
20074         (WRITEV_FOR_FATAL): New macro; call that.
20075         (backtrace_and_maps): New function.
20076         (BEFORE_ABORT): New macro; call that.
20077         (struct str_list): Type removed.
20078         (__libc_message, __libc_fatal): Functions removed.
20079         Include <sysdeps/posix/libc_fatal.c> instead.
20080
20081 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
20082
20083         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
20084         constants.
20085         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
20086         double constants.
20087
20088 2013-03-19  Andreas Schwab  <schwab@suse.de>
20089
20090         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
20091         * sysdeps/gnu/configure: Regenerate.
20092
20093         * configure.in: Substitute libc_cv_rtlddir.
20094         * configure: Regenerate.
20095         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
20096         * Makeconfig (rtlddir, inst_rtlddir): New variables.
20097         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
20098         * elf/Makefile (install-others, CFLAGS-interp.c)
20099         (ldso_install, common-ldd-rewrite): Likewise.
20100         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20101         $(inst_slibdir)/$(rtld-installed-name).
20102         * scripts/rellns-sh: Add -p option.
20103         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20104         for source.
20105
20106 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20107
20108         * manual/nptl.texi: Renamed to ...
20109         * manual/threads.texi: ... this.
20110         * manual/Makefile (chapters): Update.
20111
20112 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20113
20114         [BZ #14812]
20115         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20116         on argument names, not just descriptions.
20117         * malloc/memusagestat.c (options): Likewise.
20118         * nss/getent.c (options): Likewise.
20119
20120 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20121
20122         [BZ #14812]
20123         * iconv/iconv_prog.c (options): Put N_ translation marker
20124         on argument names, not just descriptions.
20125         * iconv/iconvconfig.c (options): Likewise.
20126
20127 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20128
20129         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20130         implementation which is faster on all x86_64 architectures.
20131         Tested on AMD, Intel Nehalem, SNB, IVB.
20132         * sysdeps/x86_64/strnlen.S: Likewise.
20133
20134         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20135         Remove all multiarch strlen and strnlen versions.
20136         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20137         Remove strlen and strnlen related parts.
20138
20139         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20140         Inline strlen part.
20141         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20142
20143         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20144         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20145         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20146         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20147         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20148         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20149
20150 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20151
20152         * manual/memory.texi (Malloc Tunable Parameters):
20153         Sort parameters alphabetically. Add comments for missing entries.
20154
20155 2013-03-17  David S. Miller  <davem@davemloft.net>
20156
20157         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20158
20159 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20160
20161         [BZ #15283]
20162         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20163         for arguments at most half maximum finite value.
20164         * math/libm-test.inc (j0_test): Add more tests.
20165         (j1_test): Likewise.
20166         (y0_test): Likewise.
20167         (y1_test): Likewise.
20168         * sysdeps/i386/fpu/libm-test-ulps: Update.
20169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20170
20171         [BZ #14155]
20172         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20173         1 / x and functions P and Q for arguments above 0x1p256L.
20174         (__ieee754_y0l): Likewise.
20175         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20176         (__ieee754_y1l): Likewise.
20177         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20178         (j1_test): Likewise.
20179         (y0_test): Likewise.
20180         (y1_test): Likewise.
20181
20182 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20183
20184         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20185         variable.
20186
20187 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20188
20189         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20190         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20191         zero since it's initialized to EXEC_PAGESIZE.
20192
20193         * sysdeps/unix/sysv/linux/ldsodefs.h
20194         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20195         * sysdeps/generic/ldsodefs.h: ... here.
20196
20197 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20198
20199         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20200
20201         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20202         math/test-snan.c.
20203         * math/test-snan.c: Renamed from
20204         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20205         * math/Makefile (tests): Add test-snan.
20206         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20207         test-powerpc-snan.
20208
20209         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20210         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20211         functions.
20212         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20213         __builtin_nan family of functions.
20214         * math/libm-test.inc (initialize): Initialize qnan_value with
20215         __builtin_nan family of functions.
20216         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20217         Remove variables.
20218         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20219         Remove functions.
20220         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20221         storage class.  Initialize qNaN_var and sNaN_var with
20222         __builtin_nan and __builtin_nans families of functions,
20223         respectively.
20224
20225         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20226         (sqrt_test): Remove duplicate test with qNaN input.
20227         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20228         (round_test, signbit_test, significand_test): Note missing +/-Inf
20229         as well as qNaN tests.
20230
20231         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20232         qNaN_var.  Fix a few strings, too.
20233         * math/libm-test.inc (nan_value): Rename to qnan_value.
20234         * math/gen-libm-test.pl (%beautify): Adjust to that.
20235         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20236         * math/test-misc.c (main): Likewise.
20237         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20238         to __qnan_bytes, and __qnan_union, respectively.
20239         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20240         Likewise.
20241         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20242         and lqnanval, respectively.
20243         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20244         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20245         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20246         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20247
20248         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20249         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20250         doubles.
20251
20252         * math/test-misc.c (main): Fix copy'n'pastos.
20253         * misc/tst-efgcvt.c (special): Likewise.
20254
20255         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20256         Remove declarations.
20257
20258 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20259
20260         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20261         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20262         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20263         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20264
20265 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20266
20267         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20268         macro to return vdso values correctly in IFUNC implementations.
20269         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20270         Optimization by using IFUNC.
20271
20272 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20273             Richard Henderson  <rth@redhat.com>
20274             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20275
20276         * Makefile.in (bench): New target.
20277         * NEWS: Mention the benchmark framework.
20278         * Rules (bench): Likewise.
20279         (binaries-bench): Generate binaries for functions to
20280         benchmark.
20281         * benchtests/Makefile: New makefile for benchmark tests.
20282         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20283         programs.
20284         * benchtests/exp-inputs: New input file for EXP function.
20285         * benchtests/pow-inputs: New input file for POW function.
20286         * scripts/bench.pl: New script to generate source files for
20287         benchmark programs.
20288
20289 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20290
20291         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20292         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20293         computations on mantissa.  Use macros for rounding and
20294         division.
20295         (denorm): Likewise.
20296         (__dbl_mp): Likewise.
20297         (add_magnitudes): Likewise.
20298         (sub_magnitudes): Likewise.
20299         (__mul): Likewise.
20300         (__sqr): Likewise.
20301         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20302         powers of two in terms of TWOPOW macro.
20303         (mp_no): Make type of mantissa as MANTISSA_T.
20304         [!RADIXI]: Define RADIXI.
20305         [!TWO52]: Define TWO52.
20306         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20307
20308         * manual/nptl.texi (cindex): Modify threads to pthreads.
20309
20310 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20311
20312         * sysdeps/x86_64/preconfigure: Regenerated.
20313
20314 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20315
20316         [BZ #14155]
20317         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20318         0x1p28 and above.
20319         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20320         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20321         0x1p28 and above.
20322         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20323         * math/libm-test.inc (j0_test): Do not allow one spurious
20324         underflow exception.
20325         (y1_test): Likewise.
20326
20327 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20328
20329         * manual/Makefile (chapters): Add nptl.
20330         * manual/debug.texi (Debugging Support): Add link to Threads
20331         chapter.
20332         * manual/nptl.texi: New file.
20333
20334         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20335
20336 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20337
20338         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20339         for non-NULL pointer before the memory validity test. Pointed
20340         out by Holger Brunck <holger.brunck@keymile.com>.
20341
20342 2013-03-13  Andreas Schwab  <schwab@suse.de>
20343
20344         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20345         instead of .os.
20346
20347 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20348
20349         * timezone/zic.c: Update from tzcode 2013b.
20350
20351 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20352
20353         * manual/install.texi (Configuring and compiling):
20354         Mention i686 and i586.
20355         * INSTALL: Regenerate.
20356
20357 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20358
20359         * sysdeps/init_array/elf-init.c: New file.
20360         * csu/elf-init.c
20361         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20362         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20363
20364         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20365         __gmon_start__ as global, but as static with a .preinit_array pointer.
20366         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20367         * sysdeps/init_array/crti.S: New file, empty except for comments.
20368         * sysdeps/init_array/crtn.S: Likewise.
20369
20370 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20371
20372         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20373         definining bcopy.
20374         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20375         Remove Prefer_SSE_for_memop.
20376         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20377         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20378         HAS_PREFER_SSE_FOR_MEMOP.
20379         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20380         memset-x86-64.
20381         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20382         Remove bzero, memset ifunc support.
20383         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20384         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20385         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20386         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20387
20388 2013-03-11  Andreas Schwab  <schwab@suse.de>
20389
20390         [BZ #15234]
20391         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20392         by SHLIB_COMPAT.
20393         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20394         (GLIBC_2.16): Remove pthread_atfork.
20395
20396 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20397
20398         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20399         (ptestcases.h): Likewise.
20400
20401 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20402
20403         * Makeconfig ($(common-objpfx)config.status): Depend on
20404         sysdeps/*/preconfigure{,.in} too.
20405
20406 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20407
20408         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20409         (__free_hook): Use void * instead of __malloc_ptr_t.
20410         (__malloc_hook): Likewise.
20411         (__realloc_hook): Likewise.
20412         (__memalign_hook): Likewise.
20413         (__after_morecore_hook): Likewise.
20414         * malloc/arena.c (save_malloc_hook): Likewise.
20415         (save_free_hook): Likewise.
20416         * malloc/hooks.c (malloc_hook_ini): Likewise.
20417         (realloc_hook_ini): Likewise.
20418         (memalign_hook_ini): Likewise.
20419         * malloc/malloc.c (malloc_hook_ini): Likewise.
20420         (realloc_hook_ini): Likewise.
20421         (memalign_hook_ini): Likewise.
20422         (__free_hook): Likewise.
20423         (__malloc_hook): Likewise.
20424         (__realloc_hook): Likewise.
20425         (__memalign_hook): Likewise.
20426         (__libc_malloc): Likewise.
20427         (__libc_free): Likewise.
20428         (__libc_realloc): Likewise.
20429         (__libc_memalign): Likewise.
20430         (__libc_valloc): Likewise.
20431         (__libc_pvalloc): Likewise.
20432         (__libc_calloc): Likewise.
20433         (__posix_memalign): Likewise.
20434         * malloc/morecore.c (__sbrk): Likewise.
20435         (__default_morecore): Likewise.
20436
20437         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20438
20439         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20440         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20441         __malloc_ptrdiff_t.
20442
20443         * malloc/malloc.h (__malloc_size_t): Remove macro.
20444         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
20445         __malloc_size_t.
20446         (old_memalign_hook): Likewise.
20447         (old_realloc_hook): Likewise.
20448         (struct hdr): Likewise.
20449         (flood): Likewise.
20450         (mallochook): Likewise.
20451         (memalignhook): Likewise.
20452         (reallochook): Likewise.
20453         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
20454         (tr_old_realloc_hook): Likewise.
20455         (tr_old_memalign_hook): Likewise.
20456         (tr_mallochook): Likewise.
20457         (tr_reallochook): Likewise.
20458         (tr_memalignhook): Likewise.
20459
20460 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20461
20462         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
20463         default_ldbl_pack and using as default implementation.
20464         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
20465         implementation.
20466         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
20467         redundant definition.
20468         (ldbl_insert_mantissa): Likewise.
20469         (ldbl_canonicalize): Likewise.
20470         (ldbl_nearbyint): Likewise.
20471         (ldbl_pack): Rename to ldbl_pack_ppc.
20472         (ldbl_unpack): Rename to ldbl_unpack_ppc.
20473         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
20474         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
20475
20476 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20477
20478         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
20479         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
20480         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
20481         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
20482         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
20483         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
20484         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20485         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20486
20487 2013-03-07  Andreas Jaeger  <aj@suse.de>
20488
20489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20490         bits/mman-linux.h.
20491
20492 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20493
20494         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20495         Include mpa.h and declare __MPEXP.
20496         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20497         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20498         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20499         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20500         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20501         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20502         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20503
20504         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20505         (__slowpow): Use long double EXPL and LOGL functions to
20506         compute POW.
20507         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20508         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20509         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20510         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20511         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20512         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20513
20514         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20515         intermediate variable to calculate exponent.
20516         (__sqr): Likewise.
20517         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20518         Likewise.
20519         (__sqr): Likewise.
20520
20521         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20522         [!NO__SQR]: Define __sqr.
20523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20524         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20525         sysdeps/ieee754/dbl-64/mpa.c.
20526         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20527
20528         [BZ #12723]
20529         * posix/Makefile (tests): Add tst-pathconf.
20530         * posix/tst-pathconf.c: New test case.
20531         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20532         _PC_PIPE_BUF.
20533         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20534
20535 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20536
20537         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20538
20539 2013-03-06  Andreas Jaeger  <aj@suse.de>
20540
20541         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20542         definition via __MAP_ANONYMOUS.
20543
20544         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20545         it's not part of Linux headers.
20546
20547         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20548         (MAP_HUGE_MASK): Define.
20549
20550         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20551         Define.
20552         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20553         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20554         Define.
20555         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20556         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20557         Define.
20558         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20559         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20560         Define.
20561         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20562
20563         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20564         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20565         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20566         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20567         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20568         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20569
20570         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20571         Handle f2fs.
20572
20573         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20574         Handle f2fs and efivarfs.
20575
20576         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20577         f2fs.
20578
20579         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20580         (EFIVARFS_MAGIC): Add.
20581         (F2FS_LINK_MAX): Add.
20582
20583 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20584
20585         * stdio-common/vfprintf.c: Replace __builtin_expect with
20586         __glibc_unlikely.
20587
20588 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20589
20590         [BZ #13550]
20591         * sysdeps/generic/bp-sym.h: Remove file.
20592         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20593         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20594         <bp-sym.h> and <bp-asm.h>.
20595         (__longjmp): Don't use BP_SYM.
20596         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20597         and <bp-asm.h>.
20598         (memcpy): Don't use BP_SYM.
20599         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20600         <bp-sym.h> and <bp-asm.h>.
20601         (memcpy): Don't use BP_SYM.
20602         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20603         <bp-asm.h>.
20604         (memcpy): Don't use BP_SYM.
20605         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20606         <bp-asm.h>.
20607         (memset): Don't use BP_SYM.
20608         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20609         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20610         (__bzero): Don't use BP_SYM.
20611         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20612         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20613         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
20614         <bp-sym.h> and <bp-asm.h>.
20615         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20616         pointers.
20617         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20618         <bp-sym.h> and <bp-asm.h>.
20619         (memcpy): Don't use BP_SYM.
20620         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
20621         <bp-sym.h> and <bp-asm.h>.
20622         (memset): Don't use BP_SYM.
20623         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20624         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20625         (__bzero): Don't use BP_SYM.
20626         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20627         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20628         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
20629         <bp-sym.h> and <bp-asm.h>.
20630         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20631         pointers.
20632         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20633         <bp-sym.h> and <bp-asm.h>.
20634         (memcpy): Don't use BP_SYM.
20635         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20636         <bp-sym.h> and <bp-asm.h>.
20637         (memset): Don't use BP_SYM.
20638         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20639         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20640         (__bzero): Don't use BP_SYM.
20641         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20642         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20643         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20644         <bp-sym.h> and <bp-asm.h>.
20645         (__memchr): Don't use BP_SYM.
20646         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20647         <bp-sym.h> and <bp-asm.h>.
20648         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20649         pointers.
20650         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20651         <bp-sym.h> and <bp-asm.h>.
20652         (memcpy): Don't use BP_SYM.
20653         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20654         <bp-sym.h> and <bp-asm.h>.
20655         (__mempcpy): Don't use BP_SYM.
20656         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20657         <bp-sym.h> and <bp-asm.h>.
20658         (__memrchr): Don't use BP_SYM.
20659         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20660         <bp-sym.h> and <bp-asm.h>.
20661         (memset): Don't use BP_SYM.
20662         (__bzero): Likewise.
20663         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20664         <bp-sym.h> and <bp-asm.h>.
20665         (__rawmemchr): Don't use BP_SYM.
20666         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20667         <bp-sym.h> and <bp-asm.h>.
20668         (__STRCMP): Don't use BP_SYM.
20669         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20670         <bp-sym.h> and <bp-asm.h>.
20671         (strchr): Don't use BP_SYM.
20672         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20673         <bp-sym.h> and <bp-asm.h>.
20674         (__strchrnul): Don't use BP_SYM.
20675         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20676         <bp-sym.h> and <bp-asm.h>.
20677         (strlen): Don't use BP_SYM.
20678         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20679         <bp-sym.h> and <bp-asm.h>.
20680         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20681         pointers.
20682         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20683         <bp-sym.h> and <bp-asm.h>.
20684         (__strnlen): Don't use BP_SYM.
20685         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20686         <bp-sym.h> and <bp-asm.h>.
20687         (__GI__setjmp): Don't use BP_SYM.
20688         (_setjmp): Likewise.
20689         (__sigsetjmp): Likewise.
20690         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20691         (L(start_addresses)): Don't use BP_SYM.
20692         (_start): Likewise.
20693         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20694         <bp-asm.h>.
20695         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20696         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20697         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20698         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20699         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20700         <bp-asm.h>.
20701         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20702         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20703         about bounded pointers.
20704         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20705         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20706         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20707         <bp-asm.h>.
20708         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20709         about bounded pointers.  Remove GKM FIXME comments.
20710         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20711         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20712         <bp-asm.h>.
20713         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20714         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20715         Remove GKM FIXME comments.
20716         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20717         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20718         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20719         <bp-asm.h>.
20720         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20721         about bounded pointers.  Remove GKM FIXME comment.
20722         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20723         and <bp-asm.h>.
20724         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20725         pointers.
20726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20727         <bp-sym.h> and <bp-asm.h>.
20728         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20730         <bp-sym.h> and <bp-asm.h>.
20731         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20732         comment.
20733
20734 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20735
20736         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20737         call free(NULL).
20738
20739 2013-03-05  David S. Miller  <davem@davemloft.net>
20740
20741         * po/es.po: Update from translation team.
20742
20743 2013-03-05  Andreas Jaeger  <aj@suse.de>
20744
20745         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20746         <bits/mman-linux.h>.
20747         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20748         is fine.
20749         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20750         <bits/mman-linux.h> to end of file.
20751         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20752         is fine.
20753         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20754         <bits/mman-linux.h> to end of file.
20755         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20756         is fine.
20757         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20758         <bits/mman-linux.h> to end of file.
20759
20760         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20761         (MCL_CURRENT, MCL_FUTURE): Define here.
20762
20763 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20764
20765         [BZ #15232]
20766         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20767         attribute_hidden.
20768         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20769
20770 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20771
20772         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20773         fourth parameter needed for rt_sigprocmask syscall.
20774         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20775         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20776         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20777         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20778         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20779         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20780
20781 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20782
20783         [BZ #13550]
20784         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20785         comment about bounded pointers.
20786         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20787         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20788
20789 2013-03-04  Andreas Jaeger  <aj@suse.de>
20790
20791         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20792         common definitions.
20793
20794         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20795         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20796         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20797         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20798         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20799         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20800
20801 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20802
20803         [BZ #15055]
20804         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20805         __ieee754_sqrl instead of __sqrl.
20806
20807 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20808
20809         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20810         * sysdeps/powerpc/fpu_control.h: ... here.
20811         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20812         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20813         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20814         * sysdeps/powerpc/bits/mathinline.h: ... here.
20815
20816 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20817
20818         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20819         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20820         to just [NEED_DL_SYSINFO_DSO].
20821         * elf/dl-support.c: Likewise.
20822         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20823         * elf/rtld.c (dl_main): Likewise.
20824         * elf/setup-vdso.h (setup_vdso): Likewise.
20825         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20826         * sysdeps/unix/sysv/linux/dl-sysdep.c
20827         (_dl_discover_osversion): Likewise.
20828
20829 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20830
20831         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20832         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20833
20834 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20835
20836         * NEWS: Mention libm performance improvements and non-x86 PI
20837         futex support.
20838
20839         * csu/libc-start.c (__pthread_initialize_minimal): Change
20840         function arguments.
20841         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20842
20843 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20844
20845         [BZ #13550]
20846         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20847         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20848         <bp-sym.h> and <bp-asm.h>.
20849         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20850         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20851         and <bp-asm.h>.
20852         (memcpy): Don't use BP_SYM.
20853         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20854         <bp-asm.h>.
20855         (__mpn_add_n): Don't use BP_SYM.
20856         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20857         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20858         and <bp-asm.h>.
20859         (__mpn_addmul_1): Don't use BP_SYM.
20860         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20861         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20862         <bp-sym.h>.
20863         (_setjmp): Don't use BP_SYM.
20864         (__novmx_setjmp): Likewise.
20865         (__GI__setjmp): Likewise.
20866         (__vmx_setjmp): Likewise.
20867         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20868         <bp-sym.h>.
20869         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20870         (__bzero): Don't use BP_SYM.
20871         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20872         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20873         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20874         <bp-sym.h> and <bp-asm.h>.
20875         (memcpy): Don't use BP_SYM.
20876         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20877         <bp-sym.h> and <bp-asm.h>.
20878         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20879         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20880         <bp-sym.h> and <bp-asm.h>.
20881         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20882         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20883         <bp-asm.h>.
20884         (__mpn_lshift): Don't use BP_SYM.
20885         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20886         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20887         <bp-asm.h>.
20888         (memset): Don't use BP_SYM.
20889         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20890         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20891         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20892         <bp-asm.h>.
20893         (__mpn_mul_1): Don't use BP_SYM.
20894         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20895         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20896         <bp-sym.h> and <bp-asm.h>.
20897         (memcmp): Don't use BP_SYM.
20898         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20899         <bp-sym.h> and <bp-asm.h>.
20900         (memcpy): Don't use BP_SYM.
20901         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20902         <bp-sym.h> and <bp-asm.h>.
20903         (memset): Don't use BP_SYM.
20904         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20905         <bp-sym.h> and <bp-asm.h>.
20906         (strncmp): Don't use BP_SYM.
20907         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20908         <bp-sym.h> and <bp-asm.h>.
20909         (memcpy): Don't use BP_SYM.
20910         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20911         <bp-sym.h> and <bp-asm.h>.
20912         (memset): Don't use BP_SYM.
20913         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20914         <bp-sym.h> and <bp-asm.h>.
20915         (__memchr): Don't use BP_SYM.
20916         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20917         <bp-sym.h> and <bp-asm.h>.
20918         (memcmp): Don't use BP_SYM.
20919         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20920         <bp-sym.h> and <bp-asm.h>.
20921         (memcpy): Don't use BP_SYM.
20922         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20923         <bp-sym.h> and <bp-asm.h>.
20924         (__mempcpy): Don't use BP_SYM.
20925         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20926         <bp-sym.h> and <bp-asm.h>.
20927         (__memrchr): Don't use BP_SYM.
20928         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20929         <bp-sym.h> and <bp-asm.h>.
20930         (memset): Don't use BP_SYM.
20931         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20932         <bp-sym.h> and <bp-asm.h>.
20933         (__rawmemchr): Don't use BP_SYM.
20934         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20935         <bp-sym.h> and <bp-asm.h>.
20936         (__STRCMP): Don't use BP_SYM.
20937         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20938         <bp-sym.h> and <bp-asm.h>.
20939         (strchr): Don't use BP_SYM.
20940         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20941         <bp-sym.h> and <bp-asm.h>.
20942         (__strchrnul): Don't use BP_SYM.
20943         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20944         <bp-sym.h> and <bp-asm.h>.
20945         (strlen): Don't use BP_SYM.
20946         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20947         <bp-sym.h> and <bp-asm.h>.
20948         (strncmp): Don't use BP_SYM.
20949         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20950         <bp-sym.h> and <bp-asm.h>.
20951         (__strnlen): Don't use BP_SYM.
20952         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20953         <bp-asm.h>.
20954         (__mpn_rshift): Don't use BP_SYM.
20955         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20956         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20957         <bp-sym.h> and <bp-asm.h>.
20958         (__sigsetjmp): Don't use BP_SYM.
20959         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20960         (L(start_addresses)): Don't use BP_SYM.
20961         (_start): Likewise.
20962         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20963         <bp-asm.h>.
20964         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20965         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20966         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20967         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20968         <bp-asm.h>.
20969         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20970         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20971         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20972         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20973         <bp-asm.h>.
20974         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20975         comments.
20976         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20977         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20978         <bp-asm.h>.
20979         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20980         FIXME comments.
20981         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20982         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20983         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20984         <bp-asm.h>.
20985         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20986         comment.
20987         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20988         and <bp-asm.h>.
20989         (strncmp): Don't use BP_SYM,
20990         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20991         <bp-asm.h>.
20992         (__mpn_sub_n): Don't use BP_SYM.
20993         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20994         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20995         and <bp-asm.h>.
20996         (__mpn_submul_1): Don't use BP_SYM.
20997         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20999         <bp-sym.h> and <bp-asm.h>.
21000         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
21001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
21002         <bp-sym.h> and <bp-asm.h>.
21003         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
21004         comment.
21005
21006 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21007
21008         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
21009         Use ZK to minimize writes to Z.
21010         (sub_magnitudes): Simplify code a bit.
21011         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
21012         Use ZK to minimize writes to Z.
21013         (sub_magnitudes): Simplify code a bit.
21014
21015 2013-02-27  Roland McGrath  <roland@hack.frob.com>
21016
21017         * csu/gmon-start.c: Add special exception to license text.
21018
21019 2013-02-27  Richard Henderson  <rth@redhat.com>
21020
21021         * scripts/config.guess: Update from config.git.
21022         * scripts/config.sub: Likewise.
21023
21024 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
21025
21026         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
21027
21028         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
21029
21030         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
21031
21032         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
21033
21034         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
21035
21036 2013-02-26  Roland McGrath  <roland@hack.frob.com>
21037
21038         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
21039         [$(build-shared = yes].
21040
21041 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21042
21043         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
21044         (__mul): Reduce iterations for calculating mantissa.
21045
21046         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
21047         MPTWO.
21048         (__mpranred): Likewise.
21049
21050         [BZ #15160]
21051         * malloc/memusagestat.c (main): Draw graphs for heap and stack
21052         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
21053
21054 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21055
21056         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
21057         Define __attribute__.
21058
21059 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21060
21061         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
21062         unused.
21063         * posix/regex_internal.h (__attribute): Remove.
21064         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
21065         (re_string_context_at): Likewise.
21066         (bitset_not): Use __attribute__ and mark function as possibly
21067         unused.
21068         (bitset_merge): Likewise.
21069         (bitset_mask): Likewise.
21070         (re_string_char_size_at): Likewise.
21071         (re_string_wchar_at): Likewise.
21072         (re_string_elem_size_at): Likewise.
21073
21074 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
21075
21076         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
21077         code.
21078         (cc32): Likewise.
21079
21080         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
21081         (__acr): Likewise.
21082         (__cpy): Likewise.
21083         (norm): Likewise.
21084         (denorm): Likewise.
21085         (__dbl_mp): Likewise.
21086         (add_magnitudes): Likewise.
21087         (sub_magnitudes): Likewise.
21088         (__mul): Likewise.
21089         (__inv): Likewise.
21090
21091         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
21092         style.
21093
21094         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
21095         style.
21096
21097         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
21098         code.
21099
21100         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21101         up changes with default code.
21102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21103         Likewise.
21104
21105 2013-02-24  Allan McRae  <allan@archlinux.org>
21106
21107         * manual/socket.texi (The Internet Namespace): Order menu items
21108         to match that in the file.
21109
21110         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21111         node listing of the info page menu.
21112
21113 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21114
21115         [BZ #13550]
21116         * sysdeps/i386/bp-asm.h: Remove file.
21117         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21118         (PARMS): Do not use macros from bp-asm.h.
21119         (S1): Likewise.
21120         (S2): Likewise.
21121         (SIZE): Likewise.
21122         (__mpn_add_n): Do not use BP_SYM
21123         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21124         "bp-asm.h".
21125         (PARMS): Do not use macros from bp-asm.h.
21126         (S1): Likewise.
21127         (SIZE): Likewise.
21128         (__mpn_addmul_1): Do not use BP_SYM
21129         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21130         "bp-asm.h".
21131         (PARMS): Do not use macros from bp-asm.h.
21132         (SIGMSK): Likewise.
21133         (_setjmp): Likewise.  Do not use BP_SYM.
21134         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21135         "bp-asm.h".
21136         (PARMS): Do not use macros from bp-asm.h.
21137         (SIGMSK): Likewise.
21138         (setjmp): Likewise.  Do not use BP_SYM.
21139         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21140         "bp-asm.h".
21141         (PARMS): Do not use macros from bp-asm.h.
21142         (__frexp): Do not use BP_SYM.
21143         (frexp): Likewise.
21144         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21145         "bp-asm.h".
21146         (PARMS): Do not use macros from bp-asm.h.
21147         (__frexpf): Do not use BP_SYM.
21148         (frexpf): Likewise.
21149         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21150         "bp-asm.h".
21151         (PARMS): Do not use macros from bp-asm.h.
21152         (__frexpl): Do not use BP_SYM.
21153         (frexpl): Likewise.
21154         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21155         "bp-asm.h".
21156         (PARMS): Do not use macros from bp-asm.h.
21157         (__remquo): Do not use BP_SYM.
21158         (remquo): Likewise.
21159         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21160         "bp-asm.h".
21161         (PARMS): Do not use macros from bp-asm.h.
21162         (__remquof): Do not use BP_SYM.
21163         (remquof): Likewise.
21164         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21165         "bp-asm.h".
21166         (PARMS): Do not use macros from bp-asm.h.
21167         (__remquol): Do not use BP_SYM.
21168         (remquol): Likewise.
21169         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21170         "bp-asm.h".
21171         (PARMS): Do not use macros from bp-asm.h.
21172         (DEST): Likewise.
21173         (SRC): Likewise.
21174         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21175         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21176         "bp-asm.h".
21177         (PARMS): Do not use macros from bp-asm.h.
21178         (strlen): Do not use BP_SYM.
21179         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21180         "bp-asm.h".
21181         (PARMS): Do not use macros from bp-asm.h.
21182         (S1): Likewise.
21183         (S2): Likewise.
21184         (SIZE): Likewise.
21185         (__mpn_add_n): Do not use BP_SYM.
21186         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21187         "bp-asm.h".
21188         (PARMS): Do not use macros from bp-asm.h.
21189         (S1): Likewise.
21190         (SIZE): Likewise.
21191         (__mpn_addmul_1): Do not use BP_SYM.
21192         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21193         weak_alias.
21194         (bzero): Likewise.
21195         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21196         "bp-asm.h".
21197         (PARMS): Do not use macros from bp-asm.h.
21198         (S): Likewise.
21199         (SIZE): Likewise.
21200         (__mpn_lshift): Do not use BP_SYM.
21201         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
21202         "bp-asm.h".
21203         (PARMS): Do not use macros from bp-asm.h.
21204         (DEST): Likewise.
21205         (SRC): Likewise.
21206         (LEN): Likewise.
21207         (memcpy): Likewise.  Do not use BP_SYM.
21208         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21209         libc_hidden_def and weak_alias.
21210         (mempcpy): Do not use BP_SYM in weak_alias.
21211         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21212         "bp-asm.h".
21213         (PARMS): Do not use macros from bp-asm.h.
21214         (DEST): Likewise.
21215         (LEN): Likewise.
21216         [!BZERO_P] (CHR): Likewise.
21217         (memset): Likewise.  Do not use BP_SYM.
21218         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21219         "bp-asm.h".
21220         (PARMS): Do not use macros from bp-asm.h.
21221         (S1): Likewise.
21222         (SIZE): Likewise.
21223         (__mpn_mul_1): Do not use BP_SYM.
21224         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21225         "bp-asm.h".
21226         (PARMS): Do not use macros from bp-asm.h.
21227         (S): Likewise.
21228         (SIZE): Likewise.
21229         (__mpn_rshift): Do not use BP_SYM.
21230         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21231         "bp-asm.h".
21232         (PARMS): Do not use macros from bp-asm.h.
21233         (STR): Likewise.
21234         (CHR): Likewise.
21235         (strchr): Likewise.  Do not use BP_SYM.
21236         (index): Do not use BP_SYM in weak_alias.
21237         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21238         "bp-asm.h".
21239         (PARMS): Do not use macros from bp-asm.h.
21240         (DEST): Likewise.
21241         (SRC): Likewise.
21242         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21243         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21244         "bp-asm.h".
21245         (PARMS): Do not use macros from bp-asm.h.
21246         (strlen): Do not use BP_SYM.
21247         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21248         "bp-asm.h".
21249         (PARMS): Do not use macros from bp-asm.h.
21250         (S1): Likewise.
21251         (S2): Likewise.
21252         (SIZE): Likewise.
21253         (__mpn_sub_n): Do not use BP_SYM.
21254         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21255         "bp-asm.h".
21256         (PARMS): Do not use macros from bp-asm.h.
21257         (S1): Likewise.
21258         (SIZE): Likewise.
21259         (__mpn_submul_1): Do not use BP_SYM.
21260         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21261         "bp-asm.h".
21262         (PARMS): Do not use macros from bp-asm.h.
21263         (S1): Likewise.
21264         (S2): Likewise.
21265         (SIZE): Likewise.
21266         (__mpn_add_n): Do not use BP_SYM.
21267         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21268         weak_alias.
21269         (bzero): Likewise.
21270         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21271         "bp-asm.h".
21272         (PARMS): Do not use macros from bp-asm.h.
21273         (BLK2): Likewise.
21274         (LEN): Likewise.
21275         (memcmp): Do not use BP_SYM.
21276         (bcmp): Do not use BP_SYM in weak_alias.
21277         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
21278         "bp-asm.h".
21279         (PARMS): Do not use macros from bp-asm.h.
21280         (DEST): Likewise.
21281         (SRC): Likewise.
21282         (LEN): Likewise.
21283         (memcpy): Likewise.  Do not use BP_SYM.
21284         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
21285         "bp-asm.h".
21286         (PARMS): Do not use macros from bp-asm.h.
21287         (DEST): Likewise.
21288         (SRC): Likewise.
21289         (LEN): Likewise.
21290         (memmove): Likewise.  Do not use BP_SYM.
21291         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
21292         "bp-asm.h".
21293         (PARMS): Do not use macros from bp-asm.h.
21294         (DEST): Likewise.
21295         (SRC): Likewise.
21296         (LEN): Likewise.
21297         (__mempcpy): Likewise.  Do not use BP_SYM.
21298         (mempcpy): Do not use BP_SYM in weak_alias.
21299         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21300         "bp-asm.h".
21301         (PARMS): Do not use macros from bp-asm.h.
21302         (DEST): Likewise.
21303         (LEN): Likewise.
21304         [!BZERO_P] (CHR): Likewise.
21305         (memset): Likewise.  Do not use BP_SYM.
21306         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21307         "bp-asm.h".
21308         (PARMS): Do not use macros from bp-asm.h.
21309         (STR2): Likewise.
21310         (strcmp): Do not use BP_SYM.
21311         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21312         "bp-asm.h".
21313         (PARMS): Do not use macros from bp-asm.h.
21314         (STR): Likewise.
21315         (DELIM): Likewise.
21316         [USE_AS_STRTOK_R] (SAVE): Likewise.
21317         (FUNCTION): Likewise.  Do not use BP_SYM.
21318         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21319         aliases.
21320         (strtok_r): Likewise.
21321         (__GI___strtok_r): Likewise.
21322         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21323         (PARMS): Do not use macros from bp-asm.h.
21324         (S): Likewise.
21325         (SIZE): Likewise.
21326         (__mpn_lshift): Do not use BP_SYM.
21327         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21328         (PARMS): Do not use macros from bp-asm.h.
21329         (STR): Likewise.
21330         (CHR): Likewise.
21331         (__memchr): Do not use BP_SYM.
21332         (memchr): Do not use BP_SYM in weak_alias.
21333         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21334         (PARMS): Do not use macros from bp-asm.h.
21335         (BLK2): Likewise.
21336         (LEN): Likewise.
21337         (memcmp): Do not use BP_SYM.
21338         (bcmp): Do not use BP_SYM in weak_alias.
21339         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21340         (PARMS): Do not use macros from bp-asm.h.
21341         (S1): Likewise.
21342         (SIZE): Likewise.
21343         (__mpn_mul_1): Do not use BP_SYM.
21344         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21345         "bp-asm.h".
21346         (PARMS): Do not use macros from bp-asm.h.
21347         (STR): Likewise.
21348         (CHR): Likewise.
21349         (__rawmemchr): Do not use BP_SYM.
21350         (rawmemchr): Do not use BP_SYM in weak_alias.
21351         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21352         (PARMS): Do not use macros from bp-asm.h.
21353         (S): Likewise.
21354         (SIZE): Likewise.
21355         (__mpn_rshift): Do not use BP_SYM.
21356         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21357         (PARMS): Do not use macros from bp-asm.h.
21358         (SIGMSK): Likewise.
21359         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21360         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21361         (_start): Do not use BP_SYM.
21362         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21363         (PARMS): Do not use macros from bp-asm.h.
21364         (DEST): Likewise.
21365         (SRC): Likewise.
21366         (__stpcpy): Likewise.  Do not use BP_SYM.
21367         (stpcpy): Do not use BP_SYM in weak_alias.
21368         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21369         "bp-asm.h".
21370         (PARMS): Do not use macros from bp-asm.h.
21371         (DEST): Likewise.
21372         (SRC): Likewise.
21373         (LEN): Likewise.
21374         (__stpncpy): Likewise.  Do not use BP_SYM.
21375         (stpncpy): Do not use BP_SYM in weak_alias.
21376         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21377         (PARMS): Do not use macros from bp-asm.h.
21378         (STR): Likewise.
21379         (CHR): Likewise.
21380         (strchr): Likewise.  Do not use BP_SYM.
21381         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21382         "bp-asm.h".
21383         (PARMS): Do not use macros from bp-asm.h.
21384         (STR): Likewise.
21385         (CHR): Likewise.
21386         (__strchrnul): Likewise.  Do not use BP_SYM.
21387         (strchrnul): Do not use BP_SYM in weak_alias.
21388         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21389         "bp-asm.h".
21390         (PARMS): Do not use macros from bp-asm.h.
21391         (STOP): Likewise.
21392         (strcspn): Do not use BP_SYM.
21393         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21394         "bp-asm.h".
21395         (PARMS): Do not use macros from bp-asm.h.
21396         (STR): Likewise.
21397         (STOP): Likewise.
21398         (strpbrk): Likewise.  Do not use BP_SYM.
21399         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21400         "bp-asm.h".
21401         (PARMS): Do not use macros from bp-asm.h.
21402         (STR): Likewise.
21403         (CHR): Likewise.
21404         (strrchr): Likewise.  Do not use BP_SYM.
21405         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21406         (PARMS): Do not use macros from bp-asm.h.
21407         (SKIP): Likewise.
21408         (strspn): Do not use BP_SYM.
21409         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21410         (PARMS): Do not use macros from bp-asm.h.
21411         (STR): Likewise.
21412         (DELIM): Likewise.
21413         (SAVE): Likewise.
21414         (FUNCTION): Likewise.  Do not use BP_SYM.
21415         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21416         aliases.
21417         (strtok_r): Likewise.
21418         (__GI___strtok_r): Likewise.
21419         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21420         (PARMS): Do not use macros from bp-asm.h.
21421         (S1): Likewise.
21422         (S2): Likewise.
21423         (SIZE): Likewise.
21424         (__mpn_sub_n): Do not use BP_SYM.
21425         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21426         "bp-asm.h".
21427         (PARMS): Do not use macros from bp-asm.h.
21428         (S1): Likewise.
21429         (SIZE): Likewise.
21430         (__mpn_submul_1): Do not use BP_SYM.
21431         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21432         <bp-sym.h>.
21433         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21434         and <bp-asm.h>.
21435         (PARMS): Do not use macros from bp-asm.h.
21436         (FLAGS): Likewise.
21437         (PTID): Likewise.
21438         (TLS): Likewise.
21439         (CTID): Likewise.
21440         (__clone): Do not use BP_SYM.
21441         (clone): Do not use BP_SYM in weak_alias.
21442         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
21443         and <bp-asm.h>.
21444         (PARMS): Do not use macros from bp-asm.h.
21445         (LEN): Likewise.
21446         (__mmap64): Do not use BP_SYM.
21447         (mmap64): Do not use BP_SYM in weak_alias.
21448         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
21449         <bp-sym.h> and <bp-asm.h>.
21450         (PARMS): Do not use macros from bp-asm.h.
21451         (__posix_fadvise64_l64): Do not use BP_SYM.
21452         * sysdeps/unix/sysv/linux/i386/semtimedop.S
21453         (PARMS): Do not use macros from bp-asm.h.
21454         (NSOPS): Likewise.
21455         (semtimedop): Do not use BP_SYM.
21456         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
21457         and <bp-asm.h>.
21458
21459 2013-02-21  Allan McRae  <allan@archlinux.org>
21460
21461         * manual/message.texi (Charset conversion in gettext):
21462         Move @end statement to beginning of line.
21463
21464 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21465
21466         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
21467         static.
21468         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21469         Likewise.
21470
21471         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
21472         (denorm): Likewise.
21473         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
21474         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
21475
21476 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21477
21478         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
21479         tail-call to the resolved function if pltexit isn't needed.
21480
21481 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21482
21483         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
21484         or Y being zero as being unlikely.
21485         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21486         Likewise.
21487
21488 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21489
21490         * manual/nss.texi (System Databases and Name Service Switch):
21491         Remove frobnicate @pxref.
21492
21493 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21494
21495         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21496         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21497
21498 2013-02-20  Petr Machata  <pmachata@redhat.com>
21499
21500         * elf/elf.h (R_ARM_TARGET1): New macro.
21501         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21502         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21503         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21504         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21505         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21506         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21507         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21508         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21509         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21510         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21511         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21512         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21513         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21514         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21515         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21516         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21517         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21518         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21519         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21520         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21521         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21522         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21523         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21524         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21525         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21526         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21527         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21528         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21529         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21530         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21531         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21532         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21533         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21534         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21535         (R_ARM_THM_GOT_BREL12): Likewise.
21536         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21537         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21538         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21539         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21540         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21541         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21542         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21543         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21544         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21545
21546 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21547
21548         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21549         __attribute_used__ to __attribute__ ((unused)).
21550
21551 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21552
21553         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21554         powerpc mpa.c.
21555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21556         comment formatting.
21557         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21558
21559 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21560
21561         [BZ #13550]
21562         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21563         Remove macro.
21564         (ENTER): Remove both macro definitions.
21565         (LEAVE): Likewise.
21566         (CHECK_BOUNDS_LOW): Likewise.
21567         (CHECK_BOUNDS_HIGH): Likewise.
21568         (CHECK_BOUNDS_BOTH): Likewise.
21569         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21570         (RETURN_BOUNDED_POINTER): Likewise.
21571         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21572         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21573         (POP_ERRNO_LOCATION_RETURN): Likewise.
21574         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21575         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21576         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21577         macros.
21578         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21579         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21580         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21581         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21582         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21583         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21584         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21585         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21586         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21587         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21588         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21589         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21590         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21591         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21592         removed macros.
21593         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21594         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21595         macros.
21596         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21597         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21598         * sysdeps/i386/i586/memset.S (memset): Likewise.
21599         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21600         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21601         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21602         macros.
21603         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21604         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21605         Change uses of L(2) to L(out).
21606         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21607         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21608         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21609         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21610         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21611         removed macros.
21612         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21613         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21614         macros.
21615         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21616         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21617         (RETURN): Do not use macro LEAVE.
21618         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21619         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21620         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21621         * sysdeps/i386/i686/memset.S (memset): Likewise.
21622         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21623         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21624         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21625         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21626         Likewise.
21627         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21628         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21629         L(1_2) and L(1_3) into L(1).
21630         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21631         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21632         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21633         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21634         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21635         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21636         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21637         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21638         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21639         macros.
21640         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21641         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21642         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21643         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21644         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21645         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21646         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21647         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21648         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21649         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21650         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21651         * sysdeps/i386/strspn.S (strspn): Likewise.
21652         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21653         conditional code.
21654         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21655         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21656         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21657         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21658         L(1_3) into L(1_1).
21659         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21660         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21661         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21662         macros.
21663         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21664
21665 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21666
21667         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21668         macro.
21669
21670 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21671
21672         * math/atest-exp.c (exp_mpn): Remove ROUND.
21673         * math/atest-exp2.c (exp_mpn): Likewise.
21674         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21675
21676         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21677         * stdlib/tst-tls-atexit-lib.c: Likewise.
21678         * stdlib/tst-tls-atexit.c: Likewise.
21679
21680 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21681
21682         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21683         and __attribute_alloc_size__.
21684
21685 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21686
21687         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21688         __attribute_alloc_size__.
21689         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21690         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21691
21692 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21693
21694         * include/programs/xmalloc.h: New file.
21695         * catgets/gencat.c: Include it.
21696         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21697         * elf/pldd.c: Likewise.
21698         * iconv/iconv_charmap.c: Likewise.
21699         * iconv/iconvconfig.c: Likewise.
21700         * iconv/strtab.c: Likewise.
21701         * locale/programs/locale.c: Likewise.
21702         * locale/programs/localedef.h: Likewise.
21703         * locale/programs/simple-hash.c: Likewise.
21704         * nscd/nscd.h: Likewise.
21705         * nss/makedb.c: Likewise.
21706         * sysdeps/generic/ldconfig.h: Likewise.
21707
21708 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21709
21710         * Versions.def: Add GLIBC_2.18.
21711         * include/link.h (struct link_map): New member l_tls_dtor_count.
21712         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21713         (__call_tls_dtors): Likewise.
21714         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21715         __cxa_thread_atexit_impl.
21716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21717         Likewise.
21718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21719         Likewise.
21720         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21721         Likewise.
21722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21723         Likewise.
21724         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21725         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21726         Likewise.
21727         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21728         Likewise.
21729         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21730         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21731         Likewise.
21732         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21733         (tests): Add test case tst-tls-atexit.
21734         (modules-names): Add shared library for tst-tls-atexit.
21735         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21736         (GLIBC_PRIVATE): Add __call_tls_dtors.
21737         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21738         for libstdc++.
21739         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21740         * stdlib/tst-tls-atexit.c: New test case.
21741         * stdlib/tst-tls-atexit-lib.c: New test case.
21742
21743         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21744
21745         * elf/Versions (ld): Add _dl_find_dso_for_object.
21746         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21747         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21748         (dl_open_worker): Use _dl_find_dso_for_object.
21749         * elf/dl-sym.c (do_sym): Likewise.
21750         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21751
21752 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21753
21754         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21755         Syntactic changes only.
21756         (_dl_runtime_profile): Do a tail-call to the resolved function.
21757
21758 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21759
21760         [BZ #13550]
21761         * sysdeps/x86_64/bp-asm.h: Remove file.
21762         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21763         <bp-sym.h> and <bp-asm.h>.
21764         (__clone): Do not use BP_SYM.
21765         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21766         <bp-sym.h> and <bp-asm.h>.
21767         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21768         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21769         "bp-asm.h".
21770         (_setjmp): Do not use BP_SYM.
21771         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21772         "bp-asm.h".
21773         (setjmp): Do not use BP_SYM.
21774         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21775         libc_hidden_def.
21776         (mempcpy): Do not use BP_SYM in weak_alias.
21777         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21778         "bp-asm.h".
21779         (strchr): Do not use BP_SYM.
21780         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21781         "bp-asm.h".
21782         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21783         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21784         (_start): Do not use BP_SYM.
21785         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21786         "bp-asm.h".
21787         (strcat): Do not use BP_SYM.
21788         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21789         "bp-asm.h".
21790         (STRCMP): Do not use BP_SYM.
21791         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21792         "bp-asm.h".
21793         (STRCPY): Do not use BP_SYM.
21794         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21795         "bp-asm.h".
21796         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21797         "bp-asm.h".
21798         (FUNCTION): Do not use BP_SYM.
21799         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21800         weak_alias.
21801         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21802
21803 2013-02-17  Andreas Jaeger  <aj@suse.de>
21804
21805         * time/Versions: Sort entries.
21806         * string/Versions: Likewise.
21807         * resolv/Versions: Likewise.
21808         * posix/Versions: Likewise.
21809         * iconv/Versions: Likewise.
21810         * elf/Versions: Likewise.
21811         * wcsmbs/Versions: Likewise.
21812
21813 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21814
21815         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21816         loop termination condition.
21817
21818         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21819         variable to calculate EZ.
21820         (__sqr): Likewise.
21821
21822         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21823         the lower precision input.
21824
21825 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21826
21827         [BZ #13550]
21828         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21829         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21830         (run-via-rtld-prefix): Do not handle %-bp tests.
21831         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21832         (all-object-suffixes): Remove .ob.
21833         (bppfx): Remove variable.
21834         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21835         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21836         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21837         [$(build-bounded) = yes] (libtype.ob): Likewise.
21838         * Makerules (elide-routines.ob): Remove variable.
21839         (do-tests-clean): Do not handle *-bp.out.
21840         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21841         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21842         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21843         (tests): Do not include $(tests-bp.out).
21844         (xtests): Do not include $(xtests-bp.out).
21845         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21846         [$(build-bounded) = yes] ($(addprefix
21847         $(objpfx),$(binaries-bounded))): Remove rule.
21848         ($(objpfx)%-bp.out): Remove rule.
21849         * config.make.in (build-bounded): Remove variable.
21850         * crypt/Makefile [$(build-bounded) = yes]
21851         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21852         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21853         append to variable.
21854         [$(build-bounded) = yes] (install-lib): Likewise.
21855         [$(build-bounded) = yes] (generated): Likewise.
21856         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21857         Remove rule.
21858         * intl/Makefile [$(build-bounded) = yes]
21859         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21860         * math/Makefile [$(build-bounded) = yes]
21861         ($(tests:%=$(objpfx)%-bp): Likewise.
21862         * misc/Makefile [$(build-bounded) = yes]
21863         ($(objpfx)tst-tsearch-bp): Likewise.
21864         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21865         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21866         Remove dependency.
21867         * string/Makefile (o-objects.ob): Remove variable.
21868         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21869         (CFLAGS-.ob): Remove variable.
21870         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21871         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21872         both definitions of variable.
21873         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21874         (ASFLAGS-.ob): Remove variable.
21875
21876 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21877
21878         [BZ #13550]
21879         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21880         Remove __BOUNDED_POINTERS__ from condition.
21881         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21882         * string/bits/string2.h [!__NO_STRING_INLINES &&
21883         !__BOUNDED_POINTERS__]: Likewise.
21884         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21885         Likewise.
21886         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21887         Remove conditional code.
21888         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21889         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21890         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21891         condition.
21892
21893         [BZ #13550]
21894         * csu/libc-start.c: Do not include <bp-sym.h>.
21895         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21896         * elf/dl-open.c: Do not include <bp-sym.h>.
21897         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21898         * math/fegetenv.c: Do not include <bp-sym.h>.
21899         (fegetenv): Do not use BP_SYM in versioned symbols.
21900         * nptl/sysdeps/pthread/bits/libc-lockP.h
21901         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21902         <bp-sym.h>.
21903         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21904         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21905         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21906         (__pthread_mutex_destroy): Likewise.
21907         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21908         (__pthread_mutex_lock): Likewise.
21909         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21910         (__pthread_mutex_trylock): Likewise.
21911         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21912         (__pthread_mutex_unlock): Likewise.
21913         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21914         (__pthread_mutexattr_init): Likewise.
21915         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21916         (__pthread_mutexattr_destroy): Likewise.
21917         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21918         (__pthread_mutexattr_settype): Likewise.
21919         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21920         (__pthread_rwlock_init): Likewise.
21921         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21922         (__pthread_rwlock_destroy): Likewise.
21923         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21924         (__pthread_rwlock_rdlock): Likewise.
21925         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21926         (__pthread_rwlock_tryrdlock): Likewise.
21927         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21928         (__pthread_rwlock_wrlock): Likewise.
21929         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21930         (__pthread_rwlock_trywrlock): Likewise.
21931         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21932         (__pthread_rwlock_unlock): Likewise.
21933         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21934         (__pthread_key_create): Likewise.
21935         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21936         (__pthread_setspecific): Likewise.
21937         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21938         (__pthread_getspecific): Likewise.
21939         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21940         Likewise.
21941         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21942         (_pthread_cleanup_push_defer): Likewise.
21943         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21944         (_pthread_cleanup_pop_restore): Likewise.
21945         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21946         (pthread_setcancelstate): Likewise.
21947         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21948         <bp-sym.h>.
21949         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21950         (memchr): Do not use BP_SYM in weak_alias.
21951         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21952         (fegetenv): Do not use BP_SYM in versioned symbols.
21953         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21954         (fesetenv): Do not use BP_SYM in versioned symbols.
21955         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21956         (feupdateenv): Do not use BP_SYM in versioned symbols.
21957         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21958         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21959         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21960         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21961         (open64): Do not use BP_SYM in weak_alias.
21962         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21963         (fegetenv): Do not use BP_SYM in versioned symbols.
21964         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21965         (fesetenv): Do not use BP_SYM in versioned symbols.
21966         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21967         (feupdateenv): Do not use BP_SYM in versioned symbols.
21968         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21969         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21970         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21971         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21972         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21973         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21974         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21975         <bp-sym.h>.
21976         (__libc_start_main): Do not use BP_SYM.
21977
21978 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21979
21980         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21981         redundant return line.
21982         (norm): Likewise.
21983         (denorm): Likewise.
21984         (dbl_mp): Likewise.
21985         (sub_magnitudes): Likewise.
21986         (__add): Likewise.
21987         (__sub): Likewise.
21988         (__mul): Likewise.
21989         (__inv): Likewise.
21990         (__dvd): Likewise.
21991         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21992         (norm): Likewise.
21993         (denorm): Likewise.
21994         (dbl_mp): Likewise.
21995         (sub_magnitudes): Likewise.
21996         (__add): Likewise.
21997         (__sub): Likewise.
21998         (__mul): Likewise.
21999         (__inv): Likewise.
22000         (__dvd): Likewise.
22001
22002         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
22003         instead of __mul.
22004         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22005         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
22006         (cc32): Likewise.
22007
22008         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
22009         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
22010         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
22011         of __mul for squares.
22012         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
22013         function
22014         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
22015         Likewise.
22016         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
22017         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22018
22019 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
22020
22021         [BZ #13550]
22022         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
22023         code.
22024         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
22025         prototype or function definition.  Rename ubp_* variables and
22026         parameters.  Remove argv definitions conditional on
22027         [__BOUNDED_POINTERS__].
22028         * debug/backtrace.c (__backtrace): Do not use __unbounded.
22029         * elf/dl-runtime.c (_dl_fixup): Likewise.
22030         * include/set-hooks.h (RUN_HOOK): Likewise.
22031         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
22032         definition.
22033         * string/strcpy.c (strcpy): Do not use __unbounded.
22034         * sysdeps/generic/frame.h (struct layout): Likewise.
22035         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
22036         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
22037         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
22038         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
22039         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
22040         (__backtrace): Likewise.
22041         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
22042         use __ptrvalue.
22043         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
22044         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
22045         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22046         Likewise.
22047         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
22048         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
22049         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
22050         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22051         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
22052         Do not use __unbounded.
22053         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
22054         Rename __unboundedrlimits parameter to rlimits in prototype.
22055         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
22056         Do not use __unbounded.
22057         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
22058         not use __ptrvalue.
22059         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22060         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
22061         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22062         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
22063         __ptrvalue or __unbounded.
22064         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
22065         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
22066         use __unbounded.
22067         (__new_msgctl): Do not use __ptrvalue.
22068         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
22069         __unbounded.
22070         (__libc_msgrcv): Do not use __ptrvalue.
22071         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
22072         startup_info): Do not use __unbounded.
22073         (__libc_start_main): Likewise.  Rename ubp_* variables and
22074         parameters.  Remove argv definitions conditional on
22075         [__BOUNDED_POINTERS__].
22076         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
22077         __ptrvalue.
22078         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
22079         use __unbounded.
22080         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
22081         or __ptrvalue.
22082         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
22083         use __unbounded.
22084         (__new_shmctl): Do not use __ptrvalue.
22085         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22086         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22087         Likewise.
22088         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22089         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
22090         (__libc_sigaction): Likewise.
22091         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
22092         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
22093         Likewise.
22094         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22095
22096 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
22097
22098         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
22099
22100         * string/mempcpy.c: Implement by calling memcpy.
22101
22102 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22103
22104         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22105
22106         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22107         evaluation.
22108
22109         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22110         values in the mantissa.
22111
22112         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22113         minimize writes to Z.
22114         (sub_magnitudes): Simplify code a bit.
22115
22116 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22117
22118         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22119         from the message.  The linker prefixes all warnings with that already.
22120
22121 2013-02-12  Andreas Schwab  <schwab@suse.de>
22122
22123         [BZ #15078]
22124         * posix/regexec.c (extend_buffers): Add parameter min_len.
22125         (check_matching): Pass minimum needed length.
22126         (clean_state_log_if_needed): Likewise.
22127         (get_subexp): Likewise.
22128         * posix/Makefile (tests): Add bug-regex34.
22129         (bug-regex34-ENV): Define.
22130         * posix/bug-regex34.c: New file.
22131
22132         [BZ #11561]
22133         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22134         elements compare against the byte sequence of it, not its name.
22135         * posix/Makefile (tests): Add bug-regex35.
22136         (bug-regex35-ENV): Define.
22137         * posix/bug-regex35.c: New file.
22138
22139 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22140
22141         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22142         comment.
22143         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22144         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22145         (CHECK_EOL): Add undef.
22146
22147 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22148
22149         * bits/stdlib-bsearch.h: New file.
22150         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22151         * stdlib/stdlib.h: Likewise.
22152
22153 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22154
22155         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22156         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22157         declaration.
22158         * manual/search.texi (Array Search Function): Add missing const in
22159         lfind prototype.
22160         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22161         declaration to use rlim_t.
22162         (Basic Scheduling Functions): Remove erroneous const from
22163         sched_getparam prototype.  Remove erroneous * from
22164         sched_get_priority_max and sched_get_priority_min prototypes.
22165         (Resource Usage): Fix summary @comment on vtimes to refer to
22166         sys/vtimes.h rather than vtimes.h.
22167         Add missing *s in vtimes prototype.
22168         (Limits on Resources): Fix ulimit prototype to return long int.
22169         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22170         prototypes to use long int rather than double.
22171         (BSD Random): Fix initstate and setstate to use char *, not void *.
22172         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22173         prototype to make second argument 'struct aiocb64 *const[]'.
22174         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22175         (Status of AIO Operations): Remove erroneous const in aio_return and
22176         aio_return64 prototypes.
22177         (Synchronizing I/O): Fix sync prototype to return void.
22178         * manual/startup.texi (Suboptions): Remove an erroneous const in
22179         getsubopt prototype.
22180         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22181         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22182         use size_t rather than int.
22183         (Scanning All Users): Likewise for getpwent_r.
22184         (Setting Groups): Add missing const to setgroups prototype.
22185         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22186         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22187         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22188         'const void *' rather than 'const char *'.
22189         (Host Address Functions): Likewise for inet_ntop.
22190         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22191         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22192         ssize_t for return value.
22193         (Sending Data): Likewise for send, sendto, sendmsg.
22194         (Socket Option Functions): Add a missing const in setsockopt prototype.
22195         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22196         use wchar_t for the argument.
22197         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22198         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22199         take no arguments.
22200         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22201         double/float/long double for second argument.
22202         Fix return types of significand, significandf, significandl.
22203         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22204         argument in fchmod prototype.
22205         (File Owner): Use uid_t and gid_t in fchown prototype.
22206         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22207         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22208         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22209         use 'const struct dirent **' as argument types to CMP function pointer
22210         argument.
22211         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22212         (File Times): Fix summary magic @comment for struct utimbuf and utime
22213         to refer to utime.h, not time.h.
22214         * manual/string.texi (Argz Functions): Add missing const in
22215         argz_extract and argz_next prototypes.
22216         (Finding Tokens in a String): Likewise for basename.
22217         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22218         (Copying and Concatenation): Fix typo in wmemmove prototype.
22219         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22220         (Signal Stack): Remove erroneous const in sigstack prototype.
22221         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22222         prototype.
22223         (Simple Calendar Time): Likewise for stime.
22224         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22225         prototype.
22226         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22227         say sys/sysctl.h instead.
22228         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22229         and vsyslog prototypes.
22230
22231 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22232
22233         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22234         Remove.
22235
22236 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22237
22238         * misc/sys/mman.h: Fix typo in mremap comment.
22239
22240 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22241
22242         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22243         the '\0' terminator.
22244
22245 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22246
22247         [BZ #13550]
22248         * debug/segfault.c: Don't include <bp-checks.h>.
22249         * sysdeps/generic/bp-checks.h: Remove file.
22250         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22251         (__GETDENTS): Don't use CHECK_N.
22252         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22253         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22254         (__getgroups): Don't use CHECK_N.
22255         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22256         (setgroups): Don't use CHECK_N.
22257         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22258         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22259         (__libc_msgrcv): Don't use CHECK_N.
22260         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22261         (__libc_msgsnd): Don't use CHECK_N.
22262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22263         <bp-checks.h>.
22264         (__libc_pread): Don't use CHECK_N.
22265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22266         include <bp-checks.h>.
22267         (__libc_pread64): Don't use CHECK_N.
22268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22269         include <bp-checks.h>.
22270         (__libc_pwrite): Don't use CHECK_N.
22271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22272         include <bp-checks.h>.
22273         (__libc_pwrite64): Don't use CHECK_N.
22274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22275         <bp-checks.h>.
22276         (__libc_pread): Don't use CHECK_N.
22277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22278         include <bp-checks.h>.
22279         (__libc_pread64): Don't use CHECK_N.
22280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22281         include <bp-checks.h>.
22282         (__libc_pwrite): Don't use CHECK_N.
22283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22284         include <bp-checks.h>.
22285         (__libc_pwrite64): Don't use CHECK_N.
22286         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22287         (do_pread): Don't use CHECK_N.
22288         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22289         (do_pread64): Don't use CHECK_N.
22290         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22291         (do_pwrite): Don't use CHECK_N.
22292         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22293         (do_pwrite64): Don't use CHECK_N.
22294         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22295         (__libc_readv): Don't use CHECK_N.
22296         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22297         (semop): Don't use CHECK_N.
22298         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22299         <bp-checks.h>.
22300         (semtimedop): Don't use CHECK_N.
22301         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22302         (__libc_pread): Don't use CHECK_N.
22303         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22304         <bp-checks.h>.
22305         (__libc_pread64): Don't use CHECK_N.
22306         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22307         <bp-checks.h>.
22308         (__libc_pwrite): Don't use CHECK_N.
22309         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22310         <bp-checks.h>.
22311         (__libc_pwrite64): Don't use CHECK_N.
22312         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22313         <bp-checks.h>.
22314         (__libc_msgrcv): Don't use CHECK_N.
22315         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22316         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22317         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22318         (__libc_writev): Don't use CHECK_N.
22319
22320 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22321
22322         * string/strcpy.c: Removed unused variable.
22323
22324         * Makeconfig (+sysdep-includes): Define with := rather than =.
22325         Use an existing include/ subdir of each sysdeps dir before it.
22326
22327 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22328
22329         * nscd/connection.c (register_traced_file): Comment function.
22330         [HAVE_INOTIFY] (union __inev): Define.
22331         [HAVE_INOTIFY] (inotify_check_files): New function.
22332         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22333         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22334         clear_db_cache.
22335         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22336
22337 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22338
22339         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22340         loaded if not already and that a failure is permanent.
22341
22342 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22343
22344         [BZ #15006]
22345         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22346         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22347
22348 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22349
22350         [BZ #13550]
22351         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22352         (CHECK_1_NULL_OK): Likewise.
22353         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22354         (__fxstat): Do not use CHECK_1.
22355         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22356         <bp-checks.h>.
22357         (___fxstat64): Do not use CHECK_1.
22358         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22359         <bp-checks.h>.
22360         (__fxstatat): Do not use CHECK_1.
22361         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22362         <bp-checks.h>.
22363         (__fxstatat64): Do not use CHECK_1.
22364         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22365         <bp-checks.h>.
22366         (__fxstat): Do not use CHECK_1.
22367         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22368         <bp-checks.h>.
22369         (__fxstatat): Do not use CHECK_1.
22370         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22371         <bp-checks.h>.
22372         (__getresgid): Do not use CHECK_1.
22373         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22374         <bp-checks.h>.
22375         (__getresuid): Do not use CHECK_1.
22376         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22377         <bp-checks.h>.
22378         (__lxstat): Do not use CHECK_1.
22379         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22380         <bp-checks.h>.
22381         (__old_msgctl): Do not use CHECK_1.
22382         (__new_msgctl): Likewise.
22383         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22384         <bp-checks.h>.
22385         (__new_setrlimit): Do not use CHECK_1.
22386         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22387         <bp-checks.h>.
22388         (__old_shmctl): Do not use CHECK_1.
22389         (__new_shmctl): Likewise.
22390         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22391         <bp-checks.h>.
22392         (__xstat): Do not use CHECK_1.
22393         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22394         (__lxstat): Do not use CHECK_1.
22395         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22396         <bp-checks.h>.
22397         (___lxstat64): Do not use CHECK_1.
22398         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22399         (__old_msgctl): Do not use CHECK_1.
22400         (__new_msgctl): Likewise.
22401         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22402         <bp-checks.h>.
22403         (__gettimeofday): Do not use CHECK_1.
22404         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22405         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22406         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22407         <bp-checks.h>.
22408         (__gettimeofday): Do not use CHECK_1.
22409         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22410         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22411         (__new_shmctl): Do not use CHECK_1.
22412         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22413         <bp-checks.h>.
22414         (do_sigtimedwait): Do not use CHECK_1.
22415         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22416         <bp-checks.h>.
22417         (do_sigwaitinfo): Do not use CHECK_1.
22418         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22419         <bp-checks.h>.
22420         (msgctl): Do not use CHECK_1.
22421         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22422         <bp-checks.h>.
22423         (shmctl): Do not use CHECK_1.
22424         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22425         (ustat): Do not use CHECK_1.
22426         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22427         <bp-checks.h>.
22428         (__fxstat): Do not use CHECK_1.
22429         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22430         <bp-checks.h>.
22431         (__fxstatat): Do not use CHECK_1.
22432         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22433         <bp-checks.h>.
22434         (__lxstat): Do not use CHECK_1.
22435         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22436         <bp-checks.h>.
22437         (__xstat): Do not use CHECK_1.
22438         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22439         (__xstat): Do not use CHECK_1.
22440         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22441         (___xstat64): Do not use CHECK_1.
22442
22443         [BZ #13550]
22444         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
22445         definitions.
22446         (CHECK_BOUNDS_HIGH): Likewise.
22447         * string/strcpy.c: Do not include <bp-checks.h>.
22448         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
22449
22450 2013-02-07  Roland McGrath  <roland@hack.frob.com>
22451
22452         * nscd/nscd-client.h (__nscd_drop_map_ref):
22453         Add __attribute__ ((unused)).
22454         * nis/nss-nisplus.h (niserr2nss): Likewise.
22455
22456         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
22457         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
22458
22459         * csu/libc-tls.c (init_static_tls, init_slotinfo):
22460         Remove inline keyword.
22461         * include/rounding-mode.h (round_away): Likewise.
22462         * libio/wfileops.c (adjust_wide_data): Likewise.
22463         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
22464         (__m128i_strloadu_tolower): Likewise.
22465         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
22466         (__m128i_strloadu_tolower): Likewise.
22467         * time/mktime.c (ydhms_diff): Likewise.
22468         * locale/elem-hash.h (elem_hash): Likewise.
22469         * locale/setlocale.c (setdata): Likewise.
22470         * posix/regex_internal.h (re_string_char_size_at): Likewise.
22471         (re_string_wchar_at): Likewise.
22472         (bitset_not, bitset_merge, bitset_mask): Likewise.
22473         [!(__GNUC__ > 3)] (inline): Remove macro.
22474         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
22475         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
22476         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22477         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22478         * string/memcmp.c (memcmp_bytes): Likewise.
22479         * locale/programs/locarchive.c (compute_hashval): Likewise.
22480         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
22481         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
22482         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
22483         * nss/getent.c (print_rpc, print_protocols): Likewise.
22484         (print_passwd, print_group, print_aliases): Likewise.
22485         * nis/nss-nisplus.h (niserr2nss): Likewise.
22486         * nscd/connections.c (restart_p): Likewise.
22487         Change return type to bool.
22488
22489 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22490
22491         * Makeconfig (all-Depend-files): Add existing
22492         $(sorted-subdirs:=/Depend) files.
22493         (all-subdirs): Remove nss.
22494         * sysdeps/unix/inet/Subdirs: Add it here instead.
22495         * hesiod/Depend: New file.
22496
22497         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22498         instead of calling alloca.
22499
22500         * io/lseek.c (__lseek): Rename to __libc_lseek.
22501         Define __lseek as an alias.
22502
22503         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22504
22505 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22506
22507         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22508         else clause and remove check for non-standard endianness.
22509
22510 2013-02-04  David S. Miller  <davem@davemloft.net>
22511
22512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22513
22514 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22515
22516         [BZ #13550]
22517         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22518         (__ubp_memchr): Remove prototype.
22519         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22520         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22521         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22522         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22523         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22524         Remove alias.
22525         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22526         (__ubp_memchr): Likewise.
22527         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22528         (__ubp_memchr): Likewise.
22529         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22530         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22531         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22532         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22533         CHECK_STRING.
22534         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22535         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22536         (__getcwd): Do not use CHECK_STRING.
22537         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22538         <bp-checks.h>.
22539         (__real_chown): Do not use CHECK_STRING.
22540         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22541         <bp-checks.h>.
22542         (fchownat): Do not use CHECK_STRING.
22543         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22544         CHECK_STRING.
22545         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22546         <bp-checks.h>.
22547         (__lchown): Do not use CHECK_STRING.
22548         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22549         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22550         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22551         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22553         include <bp-checks.h>.
22554         (truncate64): Do not use CHECK_STRING.
22555         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22556         <bp-checks.h>.
22557         (__real_chown): Do not use CHECK_STRING.
22558         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22559         <bp-checks.h>.
22560         (__lchown): Do not use CHECK_STRING.
22561         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22562         <bp-checks.h>.
22563         (__chown): Do not use CHECK_STRING.
22564         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22565         <bp-checks.h>.
22566         (truncate64): Do not use CHECK_STRING.
22567         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22568         Likewise.
22569         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22570         (__xmknod): Do not use CHECK_STRING.
22571         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22572         <bp-checks.h>.
22573         (__xmknodat): Do not use CHECK_STRING.
22574         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22575         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22576
22577 2013-02-04  Andreas Schwab  <schwab@suse.de>
22578
22579         [BZ #14142]
22580         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22581         * include/netdb.h: Likewise for h_errno.
22582         * elf/tst-stackguard1.c: Include <tls.h>.
22583
22584 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22585
22586         * elf/link.h (struct link_map): Extend the l_addr comment.
22587         * include/link.h (struct link_map): Likewise.
22588
22589 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22590
22591         [BZ #13550]
22592         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22593         (BOUNDED_1): Remove macro.
22594         * debug/backtrace.c: Don't include <bp-checks.h>.
22595         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22596         (__backtrace): Likewise.
22597         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22598         <bp-checks.h>.
22599         (__backtrace): Don't use BOUNDED_1.
22600         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22601         <bp-checks.h>.
22602         (__backtrace): Don't use BOUNDED_1.
22603         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22604         (__backtrace): Don't use BOUNDED_1.
22605         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22606         (shmat): Don't use BOUNDED_N.
22607
22608 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22609
22610         [BZ #13550]
22611         * sysdeps/generic/bp-start.h: Remove file.
22612         * csu/libc-start.c: Don't include <bp-start.h>.
22613         (LIBC_START_MAIN): Set up __environ directly instead of using
22614         INIT_ARGV_and_ENVIRON.
22615         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22616         <bp-start.h>.
22617
22618         [BZ #13550]
22619         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22620         definitions.
22621         (CHECK_FCNTL): Likewise.
22622         (CHECK_N_PAGES): Likewise.
22623
22624         [BZ #13550]
22625         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22626         definitions.
22627         (CHECK_SIGSET_NULL_OK): Likewise.
22628         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22629         <bp-checks.h>.
22630         (sigpending): Don't use CHECK_SIGSET.
22631         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22632         <bp-checks.h>.
22633         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22634         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22635         <bp-checks.h>.
22636         (do_sigsuspend): Don't use CHECK_SIGSET.
22637         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22638         use CHECK_SIGSET.
22639         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22640         (do_sigwait): Don't use CHECK_SIGSET.
22641         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22642         use CHECK_SIGSET.
22643         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22644         include <bp-checks.h>.
22645         (sigpending): Don't use CHECK_SIGSET.
22646         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22647         include <bp-checks.h>.
22648         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22649         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22650         <bp-checks.h>.
22651         (sigpending): Don't use CHECK_SIGSET.
22652         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22653         <bp-checks.h>.
22654         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22655
22656         [BZ #13550]
22657         * sysdeps/generic/bp-semctl.h: Remove file.
22658         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
22659         <bp-checks.h> and <bp-semctl.h>.
22660         (__old_semctl): Don't use CHECK_SEMCTL.
22661         (__new_semctl): Likewise.
22662         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
22663         and <bp-semctl.h>.
22664         (__old_semctl): Don't use CHECK_SEMCTL.
22665         (__new_semctl): Likewise.
22666         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22667         <bp-checks.h> and <bp-semctl.h>.
22668         (__old_semctl): Don't use CHECK_SEMCTL.
22669         (__new_semctl): Likewise.
22670         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22671         <bp-checks.h> and <bp-semctl.h>.
22672         (semctl): Don't use CHECK_SEMCTL.
22673
22674         [BZ #13550]
22675         * Makerules (elide-bp-thunks): Remove variable.
22676         (elide-routines.oS): Don't use $(elide-bp-thunks).
22677         (elide-routines.os): Likewise.
22678         (elide-routines.o): Likewise.
22679         (elide-routines.op): Likewise.
22680         (elide-routines.og): Likewise.
22681         (objects): Don't use $(bp-thunks).
22682         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22683         include.
22684         (common-generated): Do not add s-proto-bp.d.
22685         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22686         (int): Likewise.
22687         (typ): Likewise.
22688         Do not generate makefile rules for bounded-pointer thunks.
22689         * sysdeps/generic/bp-thunks.h: Remove file.
22690         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22691         * sysdeps/unix/s-proto-bp.S: Likewise.
22692
22693         [BZ #15062]
22694         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22695         parts of result separately when argument is not close to line from
22696         -i to i and one part of argument is small.
22697         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22698         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22699         * math/libm-test.inc (cacos_test): Add more tests.
22700         (casin_test): Likewise.
22701         (casinh_test): Likewise.
22702         * sysdeps/i386/fpu/libm-test-ulps: Update.
22703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22704
22705 2013-01-31  David S. Miller  <davem@davemloft.net>
22706
22707         * po/de.po: Update from translation team.
22708
22709 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22710
22711         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22712
22713 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22714
22715         * configure.in (_AC_PROG_CC_C89): New definition.
22716         * configure: Regenerate.
22717
22718         * configure.in (AC_PROG_CPP): New definition.
22719         * configure: Regenerate.
22720
22721 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22722
22723         * debug/tst-backtrace.h: New file.
22724         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22725         (ret): Remove variable.
22726         (x): Likewise.
22727         (FAIL): Remove macro.
22728         (NO_INLINE): Likewise.
22729         (fn1): Use match function instead of strstr.
22730         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22731         (ret): Remove variable.
22732         (x): Likewise.
22733         (FAIL): Remove macro.
22734         (NO_INLINE): Likewise.
22735         (fn): Use match function instead of strstr.
22736         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22737         (ret): Remove variable.
22738         (x): Likewise.
22739         (FAIL): Remove macro.
22740         (NO_INLINE): Likewise.
22741         (handle_signal): Use match function instead of strstr.
22742         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22743         (ret): Remove variable.
22744         (x): Likewise.
22745         (FAIL): Remove macro.
22746         (NO_INLINE): Likewise.
22747         (handle_signal): Use match function instead of strstr.
22748
22749 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22750
22751         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22752
22753 2013-01-23  David S. Miller  <davem@davemloft.net>
22754
22755         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22756         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22757         argument of CAS if possible.
22758         * sysdeps/sparc/sparc64/bits/atomic.h
22759         (__arch_compare_and_exchange_val_32_acq): Likewise.
22760         (__arch_compare_and_exchange_val_64_acq): Likewise.
22761
22762 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22763
22764         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22765         * sysdeps/posix/ulimit.c: ... this.
22766         Include <limits.h>.
22767         * sysdeps/unix/bsd/ulimit.c: Remove file.
22768
22769 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22770
22771         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22772         (LDFLAGS-tst-array5): Likewise.
22773
22774 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22775
22776         [BZ #15036]
22777         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22778         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22779         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22780         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22781
22782 2013-01-21  David S. Miller  <davem@davemloft.net>
22783
22784         * sysdeps/sparc/backtrace.c: New file.
22785         * sysdeps/sparc/sparc32/backtrace.h: New file.
22786         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22787         * sysdeps/sparc/sparc64/backtrace.h: New file.
22788         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22789         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22790         -funwind-tables.
22791
22792 2013-01-21  Andreas Schwab  <schwab@suse.de>
22793
22794         [BZ #15020]
22795         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22796         closed its stdout.
22797
22798 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22799
22800         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22801         "mpa2.h".
22802         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22803
22804 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22805             Mark Mitchell  <mark@codesourcery.com>
22806             Tom de Vries  <tom@codesourcery.com>
22807             Paul Pluzhnikov  <ppluzhnikov@google.com>
22808
22809         * debug/tst-backtrace2.c: New file.
22810         * debug/tst-backtrace3.c: Likewise.
22811         * debug/tst-backtrace4.c: Likewise.
22812         * debug/tst-backtrace5.c: Likewise.
22813         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22814         (CFLAGS-tst-backtrace3.c): Likewise.
22815         (CFLAGS-tst-backtrace4.c): Likewise.
22816         (CFLAGS-tst-backtrace5.c): Likewise.
22817         (LDFLAGS-tst-backtrace2): Likewise.
22818         (LDFLAGS-tst-backtrace3): Likewise.
22819         (LDFLAGS-tst-backtrace4): Likewise.
22820         (LDFLAGS-tst-backtrace5): Likewise.
22821         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22822         tst-backtrace4 and tst-backtrace5.
22823
22824 2013-01-18  Anton Blanchard  <anton@samba.org>
22825             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22826
22827         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22828         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22829         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22830         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22832         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22833         "+r" and remove output regs list as redundant.  Add explicit inline
22834         asm to specify register of return val to work around compiler codegen
22835         bug.  Remove (int) cast on return value.  Add return type parameter to
22836         use in macro so that this macro does not truncate return value for
22837         64-bit values.
22838         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22839         pass to INTERNAL_VSYSCALL_NCS.
22840         (INLINE_VSYSCALL): Add 'long int' as return type to
22841         INTERNAL_VSYSCALL_NCS macro invocation.
22842         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22843         INTERNAL_VSYSCALL_NCS macro invocation.
22844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22845
22846 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22847
22848         [BZ #14496]
22849         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22850         Fix application of SIMD FP exception mask.
22851
22852         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22853         mp_no from a power of two.
22854         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22855         __mpexp_twomm1.  Use __pow_mp.
22856
22857         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22858         multiplication.
22859
22860 2013-01-17  David S. Miller  <davem@davemloft.net>
22861
22862         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22863
22864 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22865
22866         [BZ #15023]
22867         * include/complex.h: Condition contents on [!_COMPLEX_H].
22868         (__kernel_casinhf): New prototype.
22869         (__kernel_casinh): Likewise.
22870         (__kernel_casinhl): Likewise.
22871         * math/Makefile (libm_calls): Add k_casinh.
22872         * math/k_casinh.c: New file.
22873         * math/k_casinhf.c: Likewise.
22874         * math/k_casinhl.c: Likewise.
22875         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22876         finite nonzero arguments.
22877         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22878         finite nonzero arguments.
22879         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22880         finite nonzero arguments.
22881         * math/s_casinh.c: Do not include <float.h>.
22882         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22883         * math/s_casinhf.c: Do not include <float.h>.
22884         (__casinhf): Move code for finite nonzero arguments to
22885         k_casinhf.c.
22886         * math/s_casinhl.c: Do not include <float.h>.
22887         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22888         redefine.
22889         (__casinhl): Move code for finite nonzero arguments to
22890         k_casinhl.c.
22891         * math/libm-test.inc (cacos_test): Add more tests.
22892         * sysdeps/i386/fpu/libm-test-ulps: Update.
22893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22894
22895 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22896
22897         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22898         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22899         [!HAVE_MREMAP]: Remove [defined linux] case.
22900         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22901
22902 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22903
22904         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22905
22906 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22907
22908         * elf/elf.h (R_386_SIZE32): New relocation.
22909         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22910         R_386_SIZE32.
22911         (elf_machine_rela): Likewise.
22912         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22913         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22914
22915 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22916
22917         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22918         (FP_FAST_FMA): Do not define.
22919         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22920         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22921         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22922         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22923         !_SOFT_FLOAT]: Likewise.
22924         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22925         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22926         value.
22927         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22928         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22929         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22930         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22931         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22932         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22933         file.
22934
22935 2013-01-16  Andreas Schwab  <schwab@suse.de>
22936
22937         [BZ #14327]
22938         * include/stdlib.h (__mktemp): Add declaration.
22939         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22940         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22941
22942 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22943
22944         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22945         definitions.
22946         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22947         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22948         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22949         definitions here.
22950         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22951         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22952         definitions.
22953         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22954         and ONE.
22955         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22956         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22957         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22958         definitions.
22959         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22960         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22961         definitions.
22962         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22963
22964         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22965
22966 2013-01-15  David S. Miller  <davem@davemloft.net>
22967
22968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22969         trunc{,f} to libm-sysdep_routes.
22970         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22972         file.
22973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22975         file.
22976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22977         file.
22978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22980         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22981         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22982         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22983         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22984         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22985         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22986
22987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22988         nearbyint{,f} to libm-sysdep_routes.
22989         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22991         New file.
22992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22993         file.
22994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22995         New file.
22996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22997         file.
22998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
23000         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
23001         file.
23002         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
23003         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
23004         file.
23005         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
23006         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
23007         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
23008
23009         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
23010         libc_feholdexcept and libc_fesetenv.
23011
23012 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
23013
23014         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
23015
23016 2013-01-14  David S. Miller  <davem@davemloft.net>
23017
23018         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
23019         (SPARC_ASM_VIS2_IFUNC): Likewise.
23020         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
23021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
23022         use of 'siam' instruction.
23023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
23024         Likewise.
23025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
23026         Likewise.
23027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
23028         Likewise.
23029         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
23030         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
23031         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
23032         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
23033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
23034         file.
23035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
23036         file.
23037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
23038         file.
23039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
23040         file.
23041         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
23042         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
23043         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
23044         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
23045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
23046         new VIS2 routines.
23047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23050         Likewise.
23051         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23052         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23053         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23054         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
23056         routines to libm-sysdep_routines.
23057         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23058
23059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23060         fdim/fdimf to libm-sysdep_routines.
23061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
23062         file.
23063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
23064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
23065         file.
23066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
23067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
23068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
23069         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
23070         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
23071         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
23072         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
23073
23074 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
23075
23076         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
23077         to optimize copies.
23078
23079         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
23080         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23081         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23082
23083         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
23084         local variable MPTWO.
23085         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
23086         Likewise.
23087
23088 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23089
23090         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
23091         GLOB_NOESCAPE.
23092
23093 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23094
23095         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
23096
23097 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23098
23099         * manual/pattern.texi (glob_t): Document gl_flags.
23100         (glob64_t): Likewise.
23101
23102 2013-01-11  David S. Miller  <davem@davemloft.net>
23103
23104         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23105         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23106         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23107         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23108         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23109         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23110         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23111         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23112         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23113         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23114         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23115         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23116         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23117
23118         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23119         sparc V9 rather than using V8 code.
23120         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23121         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23122
23123         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23124         Move to...
23125         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23126         Here.
23127
23128 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23129
23130         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23131         not in the main loop.
23132         * configure: Regenerated.
23133
23134 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23135
23136         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23137         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23138         to just #else.
23139         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23140         [!__GLIBC_HAVE_LONG_LONG] case.
23141         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23142         condition to just #else.
23143         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23144         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23145         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23146         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23147         unconditional.
23148         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23149         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23150         #elif condition to just #else.
23151         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23152         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23153         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23154         #elif condition to just #else.
23155
23156 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23157
23158         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23159         (EF_MIPS_ARCH_64): Fix value.
23160         (EF_MIPS_ARCH_32R2): New.
23161         (EF_MIPS_ARCH_64R2): New.
23162
23163 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23164
23165         * Makeconfig (+link-pie-before-libc): New.
23166         (+link-pie-after-libc): Likewise.
23167         (+link-pie-tests): Likewise.
23168         (+link-pie): Rewritten.
23169         (link-before-libc): Remove $(config-LDFLAGS).
23170         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23171         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23172         (config-LDFLAGS): Renamed to ...
23173         (rtld-LDFLAGS): This.
23174         (rtld-tests-LDFLAGS): New macro.
23175         (link-libc-rpath-link): Likewise.
23176         (link-libc-tests-rpath-link): Likewise.
23177         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23178         (link-libc): Prepand $(link-libc-rpath-link).
23179         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23180         (test-program-prefix): New macro.
23181         (test-via-rtld-prefix): Likewise.
23182         (test-program-cmd): Likewise.
23183         (host-test-program-cmd): Likewise.
23184         * Makefile ($(common-objpfx)testrun.sh): Replace
23185         $(run-program-prefix) with $(test-program-prefix).
23186         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23187         $(rtld-LDFLAGS).
23188         ($(common-objpfx)shlib.lds): Likewise.
23189         (build-module-helper): Likewise.
23190         ($(common-objpfx)format.lds): Likewise.
23191         * Rules (binaries-pie-tests): New.
23192         (binaries-pie-notests): Likewise.
23193         (binaries-pie): Rewritten.
23194         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23195         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23196         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23197         (make-test-out): Replace $(host-built-program-cmd) with
23198         $(host-test-program-cmd).
23199         * config.make.in (build-hardcoded-path-in-tests): New variable.
23200         * configure.in (--enable-hardcoded-path-in-tests): New configure
23201         option.
23202         (hardcoded_path_in_tests): New AC_SUBST.
23203         * configure: Regenerated.
23204         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23205         $(built-program-cmd) with $(test-program-cmd).
23206         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23207         (test_program_cmd): This.
23208         * elf/Makefile ($(objpfx)order.out): Run test with
23209         $(test-program-prefix).
23210         ($(objpfx)order2.out): Likewise.
23211         ($(objpfx)tst-initorder.out): Likewise.
23212         ($(objpfx)tst-initorder2.out): Likewise.
23213         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23214         $(test-program-cmd).
23215         ($(objpfx)tst-array1-static.out): Likewise.
23216         ($(objpfx)tst-array2.out): Likewise.
23217         ($(objpfx)tst-array3.out): Likewise.
23218         ($(objpfx)tst-array4.out): Likewise.
23219         ($(objpfx)tst-array5.out): Likewise.
23220         ($(objpfx)tst-array5-static.out): Likewise.
23221         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23222         $(test-program-cmd).
23223         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23224         $(run-program-prefix) with $(test-program-prefix).
23225         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23226         (test_program_prefix): This.
23227         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23228         $(run-program-prefix) with $(test-program-prefix).
23229         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23230         (test_program_prefix): This.
23231         * iconvdata/tst-tables.sh: Likewise.
23232         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23233         $(run-program-prefix) with $(test-program-prefix).
23234         ($(objpfx)tst-translit.out): Likewise.
23235         ($(objpfx)tst-gettext2.out): Likewise.
23236         ($(objpfx)tst-gettext4.out): Likewise.
23237         ($(objpfx)tst-gettext6.out): Likewise.
23238         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23239         (test_program_prefix): This.
23240         * intl/tst-gettext2.sh: Likewise.
23241         * intl/tst-gettext4.sh  Likewise.
23242         * intl/tst-gettext6.sh: Likewise.
23243         * intl/tst-translit.sh: Likewise.
23244         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23245         with $(test-program-cmd).
23246         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23247         $(run-program-prefix) with $(test-program-prefix).
23248         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23249         (test_program_prefix): This.
23250         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23251         $(run-program-prefix) with $(test-program-prefix).
23252         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23253         (test_program_prefix): This.
23254         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23255         * posix/Makefile ($(objpfx)globtest.out): Replace
23256         $(run-via-rtld-prefix) and $(test-wrapper) with
23257         $(test-program-prefix) and $(test-via-rtld-prefix).
23258         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23259         $(test-program-prefix).
23260         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23261         $(host-test-program-cmd).
23262         (tst-spawn-ARGS): Likewise.
23263         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23264         $(test-program-prefix).
23265         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23266         (test_via_rtld_prefix): This.
23267         (test_wrapper): Renamed to ...
23268         (test_program_prefix): This.
23269         (run_program_prefix): Replaced by test_program_prefix.
23270         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23271         (test_program_prefix): This.
23272         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23273         with $(host-test-program-cmd).
23274         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23275         $(run-program-prefix) with $(test-program-prefix).
23276         ($(objpfx)tst-printf.out): Likewise.
23277         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23278         $(test-program-cmd).
23279         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23280         (test_program_prefix): This.
23281         * stdio-common/tst-unbputc.sh: Likewise.
23282         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23283         $(run-program-prefix) with $(test-program-prefix).
23284         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23285         (test_program_prefix): This.
23286         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23287         $(built-program-cmd) with $(test-program-cmd).
23288
23289 2013-01-11  Andreas Jaeger  <aj@suse.de>
23290
23291         [BZ #15003]
23292         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23293         value. Sync with Linux 3.7.
23294
23295 2013-01-10  David S. Miller  <davem@davemloft.net>
23296
23297         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23298         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23299         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23300
23301 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23302
23303         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23304         never set.
23305         * configure: Regenerated.
23306
23307 2013-01-10  David S. Miller  <davem@davemloft.net>
23308
23309         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23310         sparc V9 rather than using V8 code.
23311         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23312         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23313
23314 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23315
23316         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23317         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23318         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23319         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23320         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23321         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23322         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23323         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23324         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23325         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23326         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23327         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23328         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23329         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23330         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23331         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23332         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23333         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23334         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23335         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23336         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23337         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23338         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23339         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23340         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23341         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23342         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23343
23344 2013-01-10  David S. Miller  <davem@davemloft.net>
23345
23346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23347
23348 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23349
23350         * posix/Makefile (tests-static): New variable.
23351         (tests): Add $(tests-static).
23352         (tst-exec-static-ARGS): New variable.
23353         (tst-spawn-static-ARGS): Likewise.
23354         * posix/tst-exec-static.c: New file.
23355         * posix/tst-spawn-static.c: Likewise.
23356         * posix/tst-exec.c: Support run directly.
23357         * posix/tst-spawn.c: Likewise.
23358
23359 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23360
23361         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23362         long.
23363         * math/bits/mathcalls.h (llrint): Likewise.
23364         (llround): Likewise.
23365         * stdlib/stdlib.h (struct drand48_data): Likewise.
23366         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23367         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23368         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23369         Likewise.
23370         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23371         Likewise.
23372         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23373         (elf_greg_t): Likewise.
23374         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23375         (__jmp_buf): Likewise.
23376         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23377         definitions.
23378         (llrint): Likewise, for all definitions.
23379         (llrintl): Likewise.
23380
23381         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23382         Remove [__GNUC__] condition.
23383         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23384         condition to just [__USE_ISOC99].
23385         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23386
23387 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23388
23389         [BZ #14200]
23390         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23391         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23392         defined.
23393         (_POSIX_V6_ILP32_OFF32): Likewise.
23394         (_XBS5_ILP32_OFF32): Likewise.
23395         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23396         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23397
23398 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23399
23400         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23401
23402         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23403         doubles __mpexp_twomm1.  Adjust usage.
23404         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23405         Remove.
23406
23407 2013-01-10  Andreas Schwab  <schwab@suse.de>
23408
23409         [BZ #14964]
23410         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23411         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23412
23413 2013-01-09  David S. Miller  <davem@davemloft.net>
23414
23415         [BZ #15003]
23416         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23417         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23418         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23419         (TCP_FASTOPEN): Define.
23420         (tcp_repair_opt): New structure.
23421         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23422         enum values.
23423         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23424         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23425         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23426         (tcp_cookie_transactions): New structure.
23427
23428 2013-01-09  Anton Blanchard  <anton@samba.org>
23429
23430         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23431         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23432         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23433         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23434
23435 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23436
23437         * include/features.h (__USE_ANSI): Remove.
23438
23439 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23440
23441         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23442
23443         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
23444
23445 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
23446
23447         * sysdeps/s390/fpu/libm-test-ulps: Update.
23448
23449         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23450
23451         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
23452         (__acr): Likewise.
23453         (__cpy): Likewise.
23454         (norm): Likewise.
23455         (denorm): Likewise.
23456         (__mp_dbl): Likewise.
23457         (__dbl_mp): Likewise.
23458         (add_magnitudes): Likewise.
23459         (sub_magnitudes): Likewise.
23460         (__add): Likewise.
23461         (__sub): Likewise.
23462         (__mul): Likewise.
23463         (__inv): Likewise.
23464         (__dvd): Likewise.
23465         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
23466         (__acr): Likewise.
23467         (__cpy): Likewise.
23468         (norm): Likewise.
23469         (denorm): Likewise.
23470         (__mp_dbl): Likewise.
23471         (__dbl_mp): Likewise.
23472         (add_magnitudes): Likewise.
23473         (sub_magnitudes): Likewise.
23474         (__add): Likewise.
23475         (__sub): Likewise.
23476         (__mul): Likewise.
23477         (__inv): Likewise.
23478         (__dvd): Likewise.
23479         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
23480         (__acr): Likewise.
23481         (__cpy): Likewise.
23482         (norm): Likewise.
23483         (denorm): Likewise.
23484         (__mp_dbl): Likewise.
23485         (__dbl_mp): Likewise.
23486         (add_magnitudes): Likewise.
23487         (sub_magnitudes): Likewise.
23488         (__add): Likewise.
23489         (__sub): Likewise.
23490         (__mul): Likewise.
23491         (__inv): Likewise.
23492         (__dvd): Likewise.
23493
23494 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23495
23496         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23497         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23498         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23499         2 && __USE_EXTERN_INLINES]: Likewise.
23500
23501 2013-01-08  Andreas Jaeger  <aj@suse.de>
23502
23503         [BZ# 14985]
23504         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23505         Remove.
23506         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23507         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23508
23509 2013-01-07  Anton Blanchard  <anton@samba.org>
23510
23511         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23512         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23513         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23514         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23515         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23516         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23517         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23518         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23519         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23520         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23521         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23522         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23523         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23524         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23525         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23526         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23527         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23528         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23529         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23530         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23531         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23532         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23533         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23534         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23535         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23536         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23537         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23538         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23539         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23540         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23541         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23542         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23543         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23544         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23545         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23546         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23547         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23548         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23549         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23550         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23551         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23552         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23553         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23554
23555 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23556
23557         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23558         (__MALLOC_PMT): Likewise.
23559         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23560         [__GNUC__], only on [_LIBC].
23561         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23562         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23563         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23564         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23565         forward declaration.
23566         (realloc_hook_ini): Likewise.
23567         (memalign_hook_ini): Likewise.
23568         (__libc_memalign): Do not use __MALLOC_PMT in variable
23569         declaration.
23570         (__libc_valloc): Likewise.
23571         (__libc_pvalloc): Likewise.
23572         (__libc_calloc): Likewise.
23573         (__posix_memalign): Likewise.
23574
23575         [BZ #14996]
23576         * math/s_casinh.c: Include <float.h>.
23577         (__casinh): Do not do computation with squaring and square root
23578         for large arguments.
23579         * math/s_casinhf.c: Include <float.h>.
23580         (__casinhf): Do not do computation with squaring and square root
23581         for large arguments.
23582         * math/s_casinhl.c: Include <float.h>.
23583         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23584         (__casinhl): Do not do computation with squaring and square root
23585         for large arguments.
23586         * math/libm-test.inc (casin_test): Add more tests.
23587         (casinh_test): Likewise.
23588         * sysdeps/i386/fpu/libm-test-ulps: Update.
23589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23590
23591 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23592
23593         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23594         (__x86_64_raw_data_cache_size): Likewise.
23595         (__x86_64_data_cache_size_half): Likewise.
23596         (__x86_64_raw_data_cache_size_half): Likewise.
23597         (__x86_64_shared_cache_size): Likewise.
23598         (__x86_64_raw_shared_cache_size): Likewise.
23599         (__x86_64_shared_cache_size_half): Likewise.
23600         (__x86_64_raw_shared_cache_size_half): Likewise.
23601         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23602         to ...
23603         (__x86_data_cache_size): This.
23604         (__x86_64_raw_data_cache_size): Renamed to ...
23605         (__x86_raw_data_cache_size): This.
23606         (__x86_64_data_cache_size_half): Renamed to ...
23607         (__x86_data_cache_size_half): This.
23608         (__x86_64_raw_data_cache_size_half): Renamed to ...
23609         (__x86_raw_data_cache_size_half): This.
23610         (__x86_64_shared_cache_size): Renamed to ...
23611         (__x86_shared_cache_size): This.
23612         (__x86_64_raw_shared_cache_size): Renamed to ...
23613         (__x86_raw_shared_cache_size): This.
23614         (__x86_64_shared_cache_size_half): Renamed to ...
23615         (__x86_shared_cache_size_half): This.
23616         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23617         (__x86_raw_shared_cache_size_half): This.
23618         * sysdeps/x86_64/memcpy.S: Updated.
23619         * sysdeps/x86_64/memset.S: Likewise.
23620         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23621         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23622         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23623
23624 2013-01-04  David S. Miller  <davem@davemloft.net>
23625
23626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23627
23628 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23629
23630         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23631         1 to avoid redefinition warning.
23632         (__USE_GNU): Don't define.
23633         (init_signaling_nan): Protoize.
23634
23635         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23636
23637 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23638
23639         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23640         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23641         (__cpymn): Likewise.
23642         (norm): Remove commented code.
23643         (denorm): Likewise.
23644         (__mp_dbl): Likewise.
23645         (__inv): Likewise.
23646         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23647         (__cpymn): Likewise.
23648         (norm): Remove commented code.
23649         (denorm): Likewise.
23650         (__mp_dbl): Likewise.
23651         (__inv): Likewise.
23652
23653         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23654         mp_no value for 1.0 and 2.0.
23655         (norm): Use RADIXI instead of radixi.d.
23656         (denorm): Likewise.
23657         (__mul): Use 0.0 instead of zero.d.
23658         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23659         mp_no value for 1.0 and 2.0.
23660         (norm): Use RADIXI instead of radixi.d.
23661         (denorm): Likewise.
23662         (__mul): Use 0.0 instead of zero.d.
23663
23664 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23665
23666         [BZ #14994]
23667         * math/s_casinh.c (__casinh): Reduce finite argument to first
23668         quadrant then set signs of results at the end.
23669         * math/s_casinhf.c (__casinhf): Likewise.
23670         * math/s_casinhl.c (__casinhl): Likewise.
23671         * math/libm-test.inc (casin_test): Add more tests.
23672         (casinh_test): Likewise.
23673         * sysdeps/i386/fpu/libm-test-ulps: Update.
23674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23675
23676 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23677
23678         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23679
23680         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23681
23682         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23683         declarations.
23684         (denorm): Likewise.
23685         (__mp_dbl): Likewise.
23686         (__inv): Likewise.
23687
23688         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23689         and adjust the header comment.
23690
23691         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23692         variable name from declaration.
23693
23694 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23695
23696         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23697         Initialize COMMON_CPUID_INDEX_7 element.
23698         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23699         (CPUID_RTM): Likewise.
23700         (HAS_RTM): Likewise.
23701         (COMMON_CPUID_INDEX_7): New enum.
23702
23703 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23704
23705         [BZ #14981]
23706         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23707         size is zero, record memory as freed.
23708
23709 2013-01-03  Andreas Jaeger  <aj@suse.de>
23710
23711         * po/ia.po: Add new Interlingua translation.
23712
23713 2012-01-03  Allan McRae  <allan@archlinux.org>
23714
23715         * locale/programs/localedef.c: Fix description of '--posix' flag.
23716
23717 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23718
23719         * NEWS: Update dates in second copyright notice.
23720         * README: Update copyright dates in example.
23721         * manual/libc.texinfo: Update copyright dates.
23722         * scripts/test-installation.pl: Update copyright date in --version
23723         output.
23724
23725         * hurd/ctty-input.c: Fix copyright notice formatting.
23726         * hurd/ctty-output.c: Likewise.
23727         * hurd/dtable.c: Likewise.
23728         * hurd/hurd-raise.c: Likewise.
23729         * hurd/hurdprio.c: Likewise.
23730         * hurd/msgportdemux.c: Likewise.
23731         * misc/sys/file.h: Likewise.
23732         * misc/sys/ioctl.h: Likewise.
23733         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23734         * sysdeps/mach/hurd/chdir.c: Likewise.
23735         * sysdeps/mach/hurd/fchdir.c: Likewise.
23736         * sysdeps/mach/hurd/rename.c: Likewise.
23737         * sysdeps/mach/hurd/rmdir.c: Likewise.
23738         * sysdeps/mach/hurd/seekdir.c: Likewise.
23739         * sysdeps/mach/hurd/setsid.c: Likewise.
23740         * sysdeps/posix/wait3.c: Likewise.
23741
23742         * All files with FSF copyright notices: Update copyright dates
23743         using scripts/update-copyrights.
23744         * intl/plural.c: Regenerated.
23745         * locale/programs/charmap-kw.h: Likewise.
23746         * locale/programs/locfile-kw.h: Likewise.
23747
23748 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23749
23750         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23751         four values.
23752
23753         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23754         calculation loop and add branch prediction.
23755
23756         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23757         check access beyond bounds of m1np.
23758
23759         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23760         MPTWO.
23761         (__inv): Remove local variable MPTWO to use the global
23762         constant.
23763         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23764         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23765         variable MPTWO.
23766         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23767         MP3HALFS static const.
23768
23769 2013-01-01  David S. Miller  <davem@davemloft.net>
23770
23771         * po/ca.po: Update from translation team.
23772
23773 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23774
23775         * scripts/update-copyrights: New file.
23776         * Makeconfig: Reformat copyright notice.
23777         * ctype/ctype.h: Likewise.
23778         * debug/swprintf_chk.c: Likewise.
23779         * elf/dl-cache.c: Likewise.
23780         * elf/dl-debug.c: Likewise.
23781         * elf/dl-object.c: Likewise.
23782         * grp/initgroups.c: Likewise.
23783         * hurd/Makefile: Likewise.
23784         * hurd/hurd/signal.h: Likewise.
23785         * hurd/hurdfault.c: Likewise.
23786         * hurd/hurdioctl.c: Likewise.
23787         * hurd/hurdlookup.c: Likewise.
23788         * hurd/intr-msg.c: Likewise.
23789         * iconv/gconv_open.c: Likewise.
23790         * libio/swprintf.c: Likewise.
23791         * locale/lc-ctype.c: Likewise.
23792         * locale/nl_langinfo.c: Likewise.
23793         * mach/Machrules: Likewise.
23794         * mach/Makefile: Likewise.
23795         * malloc/obstack.h: Likewise.
23796         * manual/Makefile: Likewise.
23797         * manual/tsort.awk: Likewise.
23798         * misc/bits/stab.def: Likewise.
23799         * nis/nis_print_group_entry.c: Likewise.
23800         * nis/nis_table.c: Likewise.
23801         * nis/nss_compat/compat-pwd.c: Likewise.
23802         * nis/nss_compat/compat-spwd.c: Likewise.
23803         * po/Makefile: Likewise.
23804         * posix/fnmatch.c: Likewise.
23805         * posix/regex.h: Likewise.
23806         * resolv/Makefile: Likewise.
23807         * resolv/nss_dns/dns-network.c: Likewise.
23808         * resolv/res_hconf.c: Likewise.
23809         * scripts/gen-sorted.awk: Likewise.
23810         * soft-fp/soft-fp.h: Likewise.
23811         * stdio-common/printf.h: Likewise.
23812         * stdlib/monetary.h: Likewise.
23813         * stdlib/random.c: Likewise.
23814         * stdlib/random_r.c: Likewise.
23815         * sysdeps/generic/Makefile: Likewise.
23816         * sysdeps/gnu/Makefile: Likewise.
23817         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23818         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23819         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23820         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23821         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23822         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23823         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23824         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23825         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23826         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23827         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23828         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23829         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23830         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23831         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23832         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23833         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23834         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23835         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23836         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23837         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23838         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23839         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23840         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23841         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23842         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23843         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23844         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23845         * sysdeps/mach/hurd/errnos.awk: Likewise.
23846         * sysdeps/mach/hurd/fork.c: Likewise.
23847         * sysdeps/mach/hurd/getcwd.c: Likewise.
23848         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23849         * sysdeps/mach/hurd/mmap.c: Likewise.
23850         * sysdeps/mach/hurd/utimes.c: Likewise.
23851         * sysdeps/mach/hurd/xmknod.c: Likewise.
23852         * sysdeps/posix/profil.c: Likewise.
23853         * sysdeps/posix/readdir_r.c: Likewise.
23854         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23855         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23856         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23857         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23858         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23859         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23860         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23861         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23862         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23863         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23864         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23865         * sysdeps/pthread/lio_listio.c: Likewise.
23866         * sysdeps/sparc/dl-procinfo.h: Likewise.
23867         * sysdeps/unix/i386/sysdep.S: Likewise.
23868         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23869         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23870         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23871         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23873         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23874         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23875         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23876         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23877         * sysdeps/wordsize-32/divdi3.c: Likewise.
23878         * time/sys/time.h: Likewise.
23879         * wcsmbs/Makefile: Likewise.
23880
23881 2013-01-01  David S. Miller  <davem@davemloft.net>
23882
23883         * po/fr.po: Update from translation team.
23884
23885         * catgets/gencat.c: Update copyright year.
23886         * csu/version.c: Likewise.
23887         * debug/catchsegv.sh: Likewise.
23888         * debug/pcprofiledump.c: Likewise.
23889         * debug/xtrace.sh: Likewise.
23890         * elf/ldconfig.c: Likewise.
23891         * elf/ldd.bash.in: Likewise.
23892         * elf/pldd.c: Likewise.
23893         * elf/sotruss.ksh: Likewise.
23894         * elf/sprof.c: Likewise.
23895         * iconv/iconv_prog.c: Likewise.
23896         * iconv/iconvconfig.c: Likewise.
23897         * locale/programs/locale.c: Likewise.
23898         * locale/programs/localedef.c: Likewise.
23899         * login/programs/pt_chown.c: Likewise.
23900         * malloc/memusage.sh: Likewise.
23901         * malloc/memusagestat.c: Likewise.
23902         * malloc/mtrace.pl: Likewise.
23903         * nscd/nscd.c: Likewise.
23904         * nss/getent.c: Likewise.
23905         * nss/makedb.c: Likewise.
23906         * posix/getconf.c: Likewise.
23907
23908 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23909
23910         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23911         numbers.
23912
23913 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23914
23915         * math/bits/mathcalls.h (modf): Use __nonnull.
23916
23917 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23918
23919         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23920         (split): Use macro CN instead of the bare value.
23921         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23922         could be used.
23923         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23924         instead of the bare value.
23925         (power1): Likewise.
23926
23927 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23928
23929         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23930         __ATAN_TWOM.
23931         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23932
23933         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23934         their values.
23935         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23936         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23937         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23938         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23939
23940 2012-12-28  Andreas Jaeger  <aj@suse.de>
23941
23942         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23943         values are from Linux 3.7.
23944
23945         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23946         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23947
23948 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23949
23950         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23951         TRUE case.
23952
23953         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23954         (norm): Likewise.
23955         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23956         variables with preprocessor constants.
23957         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23958         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23959         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23960
23961 2012-12-27  Bruno Haible  <bruno@clisp.org>
23962
23963         [BZ #14317]
23964         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23965         only if needed.
23966
23967 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23968
23969         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23970         and use variable directly.
23971         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23972
23973         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23974         MPONE.
23975         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23976         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23977         variable MPONE.
23978         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23979         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23980         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23981         include directive.  Remove local variable MPONE.
23982         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23983         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23984         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23985
23986 2012-12-25  David S. Miller  <davem@davemloft.net>
23987
23988         * version.h (RELEASE): Set to "development".
23989         (VERSION): Set to "2.17.90".
23990         * NEWS: Add 2.18 section.
23991
23992 2012-12-21  David S. Miller  <davem@davemloft.net>
23993
23994         * po/hr.po: Update from translation team.
23995
23996 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23997
23998         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23999
24000 2012-12-19  Steve Ellcey  <sellcey@mips.com>
24001
24002         * NEWS:  Mention new memcpy for MIPS.
24003
24004 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24005
24006         * manual/contrib.texi (Contributors): Spelling correction.
24007
24008 2012-12-15  David S. Miller  <davem@davemloft.net>
24009
24010         * po/ru.po: Update from translation team.
24011
24012 2012-12-13  David S. Miller  <davem@davemloft.net>
24013
24014         * NEWS: Mention IFUNC testsuite enhancements.
24015
24016         * po/pl.po: Update from translation team.
24017         * po/bg.po: Likewise.
24018
24019         * manual/contrib.texi (Contributors): Update entries for Hongjiu
24020         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
24021
24022 2012-12-11  David S. Miller  <davem@davemloft.net>
24023
24024         * po/sv.po: Update from translation team.
24025
24026         * po/vi.po: Update from translation team.
24027
24028         * po/cs.po: Update from translation team.
24029
24030         * po/de.po: Update from translation team.
24031         * po/eo.po: Likewise.
24032         * po/nl.po: Likewise.
24033
24034 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
24035
24036         [BZ #14246]
24037         * manual/argp.texi (Argp Helper Functions): Move node to follow
24038         Argp Parsing State.
24039
24040         [BZ #14872]
24041         * manual/conf.texi (Limits on File System Capacity): Mention if
24042         terminating null is included in the max size.
24043
24044 2012-12-10  Andreas Jaeger  <aj@suse.de>
24045
24046         * po/cs.po: Update from translation team.
24047
24048 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
24049
24050         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
24051         void pointer and cast to uintptr_t.
24052         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
24053         path.
24054         * sysdeps/s390/s390-64/memcpy.S: Likewise.
24055         * sysdeps/s390/s390-64/memset.S: Likewise.
24056
24057 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
24058
24059         [BZ #14833]
24060         * menual/message.texi (Message Translation): Fix typos.
24061         (Helper programs for gettext): Likewise.
24062
24063 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
24064
24065         [BZ #14898]
24066         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
24067         Change to -1.
24068
24069 2012-12-07  David S. Miller  <davem@davemloft.net>
24070
24071         * po/libc.pot: Update.
24072
24073 2012-12-07  Richard Henderson  <rth@redhat.com>
24074
24075         [BZ #10114]
24076         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
24077         normal/normal case to before the switch.
24078         (_FP_DIV): Likewise.
24079
24080 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
24081             Mike Frysinger  <vapier@gentoo.org>
24082
24083         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
24084         check for __NR_fadvise64_64.
24085
24086 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
24087
24088         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
24089         0, not just to plain "0" as a statement.
24090         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
24091         with cw.
24092
24093 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
24094
24095         * NEWS: Use sourceware.org in Bugzilla URL.
24096
24097 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
24098
24099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24100         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24101
24102         * stdio-common/tst-put-error.c (do_test): Add newline to the
24103         padded test to ensure flush.
24104
24105 2012-12-05  Jeff Law  <law@redhat.com>
24106
24107         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24108
24109 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24110
24111         * README: Don't refer to ports add-on as distributed separately.
24112         Mention AArch64 in list of systems supported in the ports add-on.
24113
24114         * LICENSES: Add more non-FSF copyright and license notices.
24115
24116         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24117         ((unused)).
24118
24119         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24120
24121         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24122         10000 as width of padded output.
24123
24124 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24125
24126         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24127
24128         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24129         variable LX with __attribute__ ((unused)).
24130         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24131         Likewise.
24132         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24133         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24134         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24135         with __attribute__ ((unused)).
24136
24137 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24138
24139         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24140
24141 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24142
24143         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24144         (CFLAGS-nldbl-acos.c): New variable.
24145         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24146         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24147         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24148         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24149         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24150         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24151         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24152         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24153         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24154         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24155         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24156         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24157         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24158         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24159         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24160         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24161         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24162         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24163         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24164         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24165         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24166         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24167         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24168         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24169         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24170         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24171         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24172         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24173         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24174         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24175         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24176         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24177         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24178         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24179         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24180         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24181         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24182         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24183         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24184         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24185         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24186         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24187         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24188         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24189         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24190         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24191         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24192         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24193         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24194         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24195         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24196         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24197         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24198         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24199         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24200         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24201         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24202         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24203         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24204         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24205         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24206         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24207         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24208         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24209         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24210         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24211         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24212         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24213         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24214         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24215         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24216         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24217         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24218         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24219         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24220         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24221         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24222         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24223         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24224         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24225         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24226         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24227         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24228         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24229         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24230         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24231         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24232         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24233         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24234         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24235         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24236         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24237         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24238         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24239         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24240         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24241         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24242
24243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24244         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24245
24246         [BZ #14914]
24247         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24248         whole low double instead of just low 47 bits when splitting values
24249         into two parts.
24250
24251 2012-12-03  Allan McRae  <allan@archlinux.org>
24252
24253         * manual/stdio.texi (Predefined Printf Handlers): Remove
24254         @hsep and @vsep usage.
24255
24256 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24257
24258         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24259         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24260
24261 2012-12-03  Jeff Law  <law@redhat.com>
24262
24263         * time/sys/time.h (settimeofday): Do not mark TV argument
24264         as __nonnull.
24265
24266 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24267
24268         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24269         when currently writing and seek to current position when not.
24270         * libio/Makefile (tests): Remove bug-fclose1.
24271         * libio/bug-fclose1.c: Delete.
24272
24273 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24274
24275         * manual/arith.texi (feenableexcept): Fix typo.
24276         (fedisableexcept): Likewise.
24277
24278 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24279
24280         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24281         second, differently-typed declaration, rather than a cast.
24282
24283 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24284
24285         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24286         * include/rpc/svc.h: ... here.
24287
24288 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24289
24290         [BZ #13013]
24291         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24292         depending n and resplen2 to catch cases where answer
24293         equals answerp2.
24294
24295 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24296
24297         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24298         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24299
24300 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24301
24302         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24303
24304 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24305
24306         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24307
24308 2012-11-28  Jeff Law  <law@redhat.com>
24309
24310         [BZ #13761]
24311         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24312         dataset_temporary.  Track alloca usage into alloca_used.
24313         If dataset is large allocate and release it via malloc/free.
24314
24315 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24316
24317         [BZ #14197]
24318         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24319
24320 2012-11-28  David S. Miller  <davem@davemloft.net>
24321
24322         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24323
24324 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24325
24326         [BZ #14803]
24327         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24328         of pi/2 rounded to nearest to 64 bits.
24329         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24330         nearest to 64 bits.
24331         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24332         bits.
24333
24334 2012-11-28  Jeff Law <law@redhat.com>
24335             Martin Osvald <mosvald@redhat.com>
24336
24337         [BZ #14889]
24338         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24339         * sunrpc/svc.c: Include time.h.
24340         (__svc_accept_failed): New function.
24341         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24342         any reason other than EINTR, call __svc_accept_failed.
24343         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24344         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24345
24346 2012-11-28  Andreas Schwab  <schwab@suse.de>
24347
24348         * scripts/abilist.awk: Also handle indirect functions in .opd
24349         section.
24350
24351 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24352
24353         [BZ #13881]
24354         * sysdeps/x86/fpu/powl_helper.c: New file.
24355         * sysdeps/x86/fpu/Makefile: Likewise.
24356         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24357         (p3): New object.
24358         (__ieee754_powl): Use __powl_helper for finite arguments except
24359         integer exponents below 8.
24360         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24361         (p3): New object.
24362         (__ieee754_powl): Use __powl_helper for finite arguments except
24363         integer exponents below 8.
24364         * math/libm-test.inc (pow_test): Add more tests and enable some
24365         previously disabled tests.
24366         * sysdeps/i386/fpu/libm-test-ulps: Update.
24367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24368
24369 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24370             Carlos O'Donell  <carlos_odonell@mentor.com>
24371
24372         * nss/makedb.c (is_prime): Assert that input is odd and greater
24373         than 4.  Note that fact in a comment too.
24374         (next_prime): Add 4 to input.
24375
24376 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24377
24378         [BZ #11741]
24379         * libio/Makefile (tests): Add test case tst-fwrite-error.
24380         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24381         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24382         * libio/tst-fwrite-error.c: New test case.
24383
24384 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24385
24386         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24387         before casting to void *.
24388         * include/libc-internal.h (__pointer_type): New macro.
24389         (__integer_if_pointer_type_sub): Likewise.
24390         (__integer_if_pointer_type): Likewise.
24391         (cast_to_integer): Likewise.
24392         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24393         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24394         before casting to atomic64_t.
24395         (atomic_exchange_acq): Likewise.
24396         (__arch_exchange_and_add_body): Likewise.
24397         (__arch_add_body): Likewise.
24398         (atomic_add_negative): Likewise.
24399         (atomic_add_zero): Likewise.
24400
24401 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24402
24403         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24404         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24405         (add_fdes): Likewise.
24406         (linear_search_fdes): Likewise.
24407         (binary_search_unencoded_fdes): Likewise.
24408
24409 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24410
24411         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24412
24413 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24414
24415         * configure.in: Autodetect C++ header directories.
24416         * configure: Regenerated.
24417
24418 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24419
24420         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24421
24422 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24423
24424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24425
24426 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24427
24428         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24429         LDBL_MANT_DIG == 106]: Disable some tests.
24430         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24431         Likewise.
24432         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24433         Likewise.
24434
24435         [BZ #14871]
24436         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24437         input for small inputs.  Return +/- pi/2 for large inputs.
24438         * math/libm-test.inc (atan_test): Add more tests.
24439
24440         * sysdeps/generic/unwind-dw2-fde-glibc.c
24441         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24442         __attribute__ ((unused)).
24443
24444         [BZ #14645]
24445         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
24446         x * y if x and y are nonzero and z is zero.
24447
24448         [BZ #14811]
24449         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
24450         nonzero exponents with absolute value below 0x1p-117 to +/-
24451         0x1p-117.
24452
24453         [BZ #14869]
24454         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
24455         up arguments below 2**-450, not just those below 2**-500.
24456         * math/libm-test.inc (hypot_test): Add another test.
24457
24458         [BZ #14868]
24459         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24460         Return a+b for ratio over 2**120, not 2**60.
24461         * math/libm-test.inc (hypot_test): Add another test.
24462
24463         * math/libm-test.inc (clog_test): Use
24464         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
24465         (clog10_test): Likewise.
24466
24467         [BZ #6778]
24468         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
24469
24470 2012-11-22  Andreas Schwab  <schwab@suse.de>
24471
24472         * sysdeps/i386/fpu/libm-test-ulps: Update.
24473
24474 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
24475
24476         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
24477         printf output with newline.
24478
24479 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
24480
24481         [BZ #14865]
24482         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
24483         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
24484         -z nodlopen, -z initfirst and -z execstack support.
24485         * configure: Regenerated.
24486
24487         * elf/elf.h (DF_1_NODIRECT): New macro.
24488         (DF_1_IGNMULDEF): Likewise.
24489         (DF_1_NOKSYMS): Likewise.
24490         (DF_1_NOHDR): Likewise.
24491         (DF_1_EDITED): Likewise.
24492         (DF_1_NORELOC): Likewise.
24493         (DF_1_SYMINTPOSE): Likewise.
24494         (DF_1_GLOBAUDIT): Likewise.
24495         (DF_1_SINGLETON): Likewise.
24496         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24497         DT_1_SUPPORTED_MASK bits.
24498         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24499
24500 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24501
24502         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24503
24504 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24505
24506         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24507         macro.
24508
24509         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24510         (sendmmsg): Move declarations...
24511         * socket/sys/socket.h: ... here.
24512         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24513         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24514         include it from...
24515         * socket/recvmmsg.c: ... this new file.
24516         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24517         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24518         definition of __sendmmsg hidden.
24519         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24520         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24521         Move ENOSYS stub into and include it from...
24522         * socket/sendmmsg.c: ... this new file.
24523         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24524         (sysdep_routines): Move recvmmsg and sendmmsg...
24525         * socket/Makefile (routines): ... here.
24526         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24527         (GLIBC_PRIVATE): Add __sendmmsg.
24528         * include/sys/socket.h (__sendmmsg): Add declarations.
24529         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24530         sendmmsg.
24531
24532 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24533
24534         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24535         variable I1 with __attribute__ ((unused)).
24536         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24537
24538 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24539
24540         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24541         DUMMY variables with __attribute__ ((unused)).
24542
24543         * bits/byteswap.h: Include <bits/types.h>.
24544         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24545
24546 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24547
24548         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24549         string_t.  Do not manually set errno.
24550         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24551         length with __strnlen.  Make sure to both set errno and return it on
24552         failure.
24553
24554 2012-11-19  David S. Miller  <davem@davemloft.net>
24555
24556         With help from Joseph Myers.
24557         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24558         very large arguments properly.
24559         * math/libm-test.inc (atan_test): New tests.
24560         (atan2_test): New tests.
24561         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24562         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24563
24564 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24565
24566         [BZ #14856]
24567         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24568         Define to 3.
24569
24570         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24571         [POSIX] (EADDRNOTAVAIL): Likewise.
24572         [POSIX] (EAFNOSUPPORT): Likewise.
24573         [POSIX] (EALREADY): Likewise.
24574         [POSIX] (ECONNABORTED): Likewise.
24575         [POSIX] (ECONNREFUSED): Likewise.
24576         [POSIX] (ECONNRESET): Likewise.
24577         [POSIX] (EDESTADDRREQ): Likewise.
24578         [POSIX] (EDQUOT): Likewise.
24579         [POSIX] (EHOSTUNREACH): Likewise.
24580         [POSIX] (EIDRM): Likewise.
24581         [POSIX] (EISCONN): Likewise.
24582         [POSIX] (ELOOP): Likewise.
24583         [POSIX] (EMULTIHOP): Likewise.
24584         [POSIX] (ENETDOWN): Likewise.
24585         [POSIX] (ENETUNREACH): Likewise.
24586         [POSIX] (ENOBUFS): Likewise.
24587         [POSIX] (ENODATA): Likewise.
24588         [POSIX] (ENOLINK): Likewise.
24589         [POSIX] (ENOMSG): Likewise.
24590         [POSIX] (ENOPROTOOPT): Likewise.
24591         [POSIX] (ENOSR): Likewise.
24592         [POSIX] (ENOSTR): Likewise.
24593         [POSIX] (ENOTCONN): Likewise.
24594         [POSIX] (ENOTSOCK): Likewise.
24595         [POSIX] (EOPNOTSUPP): Likewise.
24596         [POSIX] (EOVERFLOW): Likewise.
24597         [POSIX] (EPROTO): Likewise.
24598         [POSIX] (EPROTONOSUPPORT): Likewise.
24599         [POSIX] (EPROTOTYPE): Likewise.
24600         [POSIX] (ESTALE): Likewise.
24601         [POSIX] (ETIME): Likewise.
24602         [POSIX] (ETXTBSY): Likewise.
24603         [POSIX] (EWOULDBLOCK): Likewise.
24604         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24605         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24606         [POSIX] (SEEK_CUR): Likewise.
24607         [POSIX] (SEEK_END): Likewise.
24608         [POSIX || UNIX98] (mode_t): Do not require.
24609         [POSIX] (off_t): Likewise.
24610         [POSIX] (pid_t): Likewise.
24611         [POSIX] (sys/stat.h): Do not allow header.
24612         [POSIX] (unistd.h): Likewise.
24613         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24614         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24615         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24616         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24617         require.
24618         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24619         sigevent): Specify elements.
24620         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24621         entry.
24622         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24623         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24624
24625         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24626         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24627         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24628         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24629         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24630         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24631         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24632         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24633         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24634         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24635         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24636         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24637         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24638         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24639         Likewise.
24640         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24641         Likewise.
24642         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24643         Likewise.
24644         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24645         Likewise.
24646         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24647         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24648         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24649         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24650         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24651         Specify lower bound on value.
24652         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24653         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24654         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24655         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24656         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24657         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24658         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24659         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24660         value.
24661         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24662         as optional.
24663         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24664         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24665         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24666         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24667         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24668         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24669         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24670         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24671         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24672         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24673         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24674         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24675         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24676         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24677         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24678         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24679         entry.
24680         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24681         optional.
24682         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24683         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24684         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24685         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24686         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24687         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24688         Likewise.
24689         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24690         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24691         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24692         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24693         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24694         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24695         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24696         as optional.
24697         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24698         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24699         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24700         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24701         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24702         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24703         specify as optional.
24704         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24705         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24706         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24707         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24708         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24709         [XPG3] (NL_LANGMAX): Likewise.
24710         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24711         [POSIX || XPG3] (NL_NMAX): Likewise.
24712         [POSIX || XPG3] (NL_SETMAX): Likewise.
24713         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24714         [XPG3] (NZERO): Likewise.
24715         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24716         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24717         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24718         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24719         (REG_ERANGE): Expect.
24720         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24721         optional-constant.
24722         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24723         Use (void) in prototype.
24724         [POSIX] (*_t): Allow.
24725         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24726         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24727         (WRDE_BADVAL): Expect.
24728
24729         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24730         expect.
24731         [XPG3 || XPG4] (O_RSYNC): Likewise.
24732         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24733         Likewise.
24734         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24735         [XPG3 || XPG4] (sigqueue): Likewise.
24736         [XPG3 || XPG4] (sigtimedwait): Likewise.
24737         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24738         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24739         [XPG3 || XPG4] (vsnprintf): Likewise.
24740         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24741         Likewise.
24742         [XPG3 || XPG4] (blksize_t): Likewise.
24743         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24744         Likewise.
24745         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24746         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24747         [XPG3 || XPG4] (struct itimerspec): Likewise.
24748         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24749         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24750         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24751         [XPG3 || XPG4] (clockid_t): Likewise.
24752         [XPG3 || XPG4] (timer_t): Likewise.
24753         [XPG3 || XPG4] (clock_getres): Likewise.
24754         [XPG3 || XPG4] (clock_gettime): Likewise.
24755         [XPG3 || XPG4] (clock_settime): Likewise.
24756         [XPG3 || XPG4] (nanosleep): Likewise.
24757         [XPG3 || XPG4] (timer_create): Likewise.
24758         [XPG3 || XPG4] (timer_delete): Likewise.
24759         [XPG3 || XPG4] (timer_gettime): Likewise.
24760         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24761         [XPG3 || XPG4] (timer_settime): Likewise.
24762         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24763         [XPG3 || XPG4] (getlogin_r): Likewise.
24764         [XPG3 || XPG4] (pread): Likewise.
24765         [XPG3 || XPG4] (pthread_atfork): Likewise.
24766         [XPG3 || XPG4] (pwrite): Likewise.
24767
24768         [BZ #14835]
24769         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24770         <bits/siginfo.h>.
24771
24772 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24773
24774         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24775         finalizing MALLSTREAM.
24776
24777         * sysdeps/mach/hurd/syncfs.c: New file.
24778
24779 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24780
24781         [BZ #14719]
24782         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24783         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24784         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24785         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24786         (_nss_dns_gethostbyname4_r): Likewise.
24787         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24788         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24789
24790 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24791
24792         [BZ #13763]
24793         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24794
24795 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24796
24797         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24798         * elf/cache.c (print_entry): Print ",AArch64" for
24799         FLAG_AARCH64_LIB64
24800
24801         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24802         * elf/cache.c (print_entry): Print ",hard-float" for
24803         FLAG_ARM_LIBHF.
24804
24805 2012-11-18  David S. Miller  <davem@davemloft.net>
24806
24807         With help from Joseph Myers.
24808         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24809         cutoff to 2**-13.
24810         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24811         cutoff to 2**-25.
24812         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24813         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24814         small.
24815         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24816         * math/libm-test.inc (y0_test): New tests.
24817         (y1_test): New tests.
24818         * sysdeps/i386/fpu/libm-test-ulps: Update.
24819         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24820         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24821
24822 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24823
24824         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24825         64-bit targets.
24826         * configure: Regenerated.
24827
24828 2012-11-17  David S. Miller  <davem@davemloft.net>
24829
24830         [BZ #14811]
24831         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24832         nonzero exponents with absolute value below 0x1p-128 to +/-
24833         0x1p-128.
24834
24835 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24836
24837         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24838
24839         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24840
24841         * posix/getconf-speclist.c: New file.
24842         * posix/posix-envs.def: Likewise.
24843         * posix/confstr.c (START_ENV_GROUP): New macro.
24844         (END_ENV_GROUP): Likewise.
24845         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24846         (KNOWN_PRESENT_ENV_STRING): Likewise.
24847         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24848         (UNKNOWN_ENVIRONMENT): Likewise.
24849         (confstr): Include posix-envs.def instead of handling
24850         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24851         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24852         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24853         (END_ENV_GROUP): Likewise.
24854         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24855         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24856         (UNKNOWN_ENVIRONMENT): Likewise.
24857         (__sysconf): Include posix-envs.def instead of handling associated
24858         cases directly here.
24859         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24860         preprocessing getconf-speclist.c rather than running getconf or
24861         generating empty file.
24862
24863 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24864
24865         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24866
24867 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24868
24869         [BZ #14672]
24870         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24871
24872 2012-11-16  David S. Miller  <davem@davemloft.net>
24873
24874         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24875         smaller than LDBL_EPSILON/2.0L, just return xm1.
24876
24877 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24878
24879         * elf/tst-array1.c (init): Set constructor priority to 1000.
24880         (fini): Set destructor priority to 1000.
24881         * elf/tst-array2dep.c: Likewise.
24882
24883 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24884
24885         [BZ #11741]
24886         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24887         (_IO_new_file_xsputn): Also return EOF if none of the input
24888         data was written when overflow failed.
24889         * libio/iopadn.c (_IO_padn): Likewise.
24890         * libio/iowpadn.c (_IO_wpadn): Likewise.
24891         * stdio-common/tst-put-error.c: Add copyright notice.
24892         (do_test): Add case for printing padded string.
24893         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24894         _IO_padn returned error.
24895         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24896         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24897         return EOF.
24898
24899 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24900
24901         * libio/libioP.h: Add comment note that the references to C++
24902         bits are now obsolete.
24903
24904 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24905
24906         * math/libm-test.inc (check_complex): Use asprintf.
24907
24908 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24909
24910         * debug/pcprofiledump.c (print_version): Update copyright year.
24911         * malloc/memusagestat.c (print_version): Likewise.
24912
24913 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24914
24915         [BZ #14831]
24916         * elf/Makefile (tests): Add tst-audit8.
24917         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24918         ($(objpfx)tst-audit8.out): New target.
24919         (tst-audit8-ENV): New variable.
24920         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24921         audit if l_reloc_result is NULL.
24922         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24923         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24924         * elf/tst-audit8.c: New file.
24925
24926 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24927
24928         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24929         * misc/Makefile (CFLAGS-select.c): Define.
24930         * posix/Makefile (CFLAGS-pause.c): Define.
24931
24932 2012-11-13  David S. Miller  <davem@davemloft.net>
24933
24934         * crypt/Makefile: Move test targets after toplevel Rules
24935         inclusion.  Grab any necessary sysdep routines when linking.
24936         * crypt/md5.c (md5_process_block): Remove define, we will always
24937         name it __md5_process_block.
24938         (md5_finish_ctx): Update md5_process_block call.
24939         (md5_stream): Likewise.
24940         (md5_process_bytes): Likewise.
24941         (md5_process_block): Rename to __md5_process_block and move to ...
24942         * crypt/md5-block.c: ... here.
24943         * crypt/sha256.c (sha256_process_block): Move to ...
24944         * crypt/sha256-block.c: ... here.
24945         * crypt/sha512.c (sha512_process_block): Move to ...
24946         * crypt/sha512-block.c: ... here.
24947         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24948         path.
24949         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24950         * sysdeps/sparc/sparc64/multiarch/Makefile
24951         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24952         crypt subdir.
24953         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24954         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24955         multiarch changes.
24956         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24957         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24958         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24959         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24960         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24961         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24962         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24963         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24964         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24965         file.
24966         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24967         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24968         file.
24969         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24970
24971 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24972
24973         * timezone/tzselect.ksh: Update from tzcode git revision
24974         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24975         * timezone/zdump.c: Likewise.
24976         * timezone/zic.c: Likewise.
24977         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24978         in TZVERSION setting, not $(PKGVERSION).
24979         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24980         REPORT_BUGS_TO settings.
24981
24982         [BZ #14838]
24983         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24984         macro.
24985
24986 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24987
24988         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24989         detection to immediately after _FP_ROUND().
24990         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24991         bits are 0.
24992
24993 2012-11-11  David S. Miller  <davem@davemloft.net>
24994
24995         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24996         inttypes.h
24997         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24998         __close rather than their public counterparts.
24999
25000 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
25001
25002         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
25003         file.
25004         [UNIX98] (sem_timedwait): Do not expect.
25005         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
25006         [XPG4 || UNIX98] (sockatmark): Do not expect.
25007         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
25008         (clock_getcpuclockid): Do not expect.
25009         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
25010         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
25011         Do not expect.
25012         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
25013         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
25014         [UNIX98] (vwscanf): Likewise.
25015         [UNIX98] (vswscanf): Likewise.
25016
25017 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
25018
25019         * timezone/version.h: Remove file.
25020         * timezone/README: Do not refer to version.h.
25021         * timezone/Makefile ($(objpfx)zic.o): New dependency on
25022         $(objpfx)version.h.
25023         ($(objpfx)zdump.o): Likewise.
25024         ($(objpfx)version.h): New target.
25025
25026         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
25027         2012i.
25028         * timezone/README: Don't mention modification to tzselect.ksh.
25029         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
25030         work on unmodified tzselect.ksh.  Substitute version numbers in
25031         tzselect.ksh.
25032
25033         * Makefile (format-me): Remove.
25034         (INSTALL): Adjust indentation.  Use commands directly instead of
25035         using $(format-me).
25036
25037         * aclocal.m4 (ACX_PKGVERSION): New macro.
25038         (ACX_BUGURL): Likewise.
25039         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
25040         (PKGVERSION): New AC_DEFINE_UNQUOTED.
25041         (REPORT_BUGS_TO): Likewise.
25042         * configure: Regenerated.
25043         * config.h.in (PKGVERSION): New macro.
25044         (REPORT_BUGS_TO): Likewise.
25045         * config.make.in (PKGVERSION): New variable.
25046         (PKGVERSION_TEXI): Likewise.
25047         (REPORT_BUGS_TO): Likewise.
25048         (REPORT_BUGS_TEXI): Likewise.
25049         * Makefile (format-me): Use -I$(common-objpfx)manual.
25050         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
25051         ($(common-objpfx)manual/%): New target.
25052         (manual/%): Remove target.
25053         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
25054         (print_version): Use PKGVERSION.
25055         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
25056         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
25057         and REPORT_BUGS_TO.
25058         ($(objpfx)xtrace): Likewise.
25059         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
25060         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
25061         (print_version): Use PKGVERSION.
25062         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
25063         (do_version): Use PKGVERSION.
25064         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
25065         REPORT_BUGS_TO.
25066         (common-ldd-rewrite): Likewise.
25067         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
25068         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
25069         (print_version): Use PKGVERSION.
25070         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
25071         * elf/pldd.c (argp_program_bug_address): Remove variable.
25072         (more_help): New function.
25073         (argp): Use more_help.
25074         (print_version): Use PKGVERSION.
25075         * elf/sln.c (main): Use PKGVERSION.
25076         (usage): Use REPORT_BUGS_TO.
25077         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
25078         (top level): Use PKGVERSION.
25079         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
25080         (print_version): Use PKGVERSION.
25081         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
25082         (print_version): Use PKGVERSION.
25083         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
25084         (print_version): Use PKGVERSION.
25085         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
25086         (print_version): Use PKGVERSION.
25087         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
25088         (print_version): Use PKGVERSION.
25089         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
25090         (print_version): Use PKGVERSION.
25091         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
25092         and BUGURL.
25093         ($(objpfx)memusage): Likewise.
25094         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
25095         (do_version): Use PKGVERSION.
25096         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
25097         (print_version): Use PKGVERSION.
25098         * malloc/mtrace.pl ($PACKAGE): Remove variable.
25099         ($PKGVERSION): New variable.
25100         ($REPORT_BUGS_TO): Likewise.
25101         (usage): Use $REPORT_BUGS_TO.
25102         (top level): Use $PKGVERSION.
25103         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25104         ($(objpfx)pkgvers.texi): New rule.
25105         ($(objpfx)stamp-pkgvers): Likewise.
25106         * manual/install.texi: Include pkgvers.texi.
25107         (--with-pkgversion): Document new configure option.
25108         (--with-bugurl): Likewise.
25109         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25110         than necessarily for this particular distribution.  Use
25111         REPORT_BUGS_TO for where to report bugs.
25112         * INSTALL: Regenerated.
25113         * manual/libc.texinfo: Include pkgvers.texi.
25114         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25115         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25116         (print_version): Use PKGVERSION.
25117         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25118         (print_version): Use PKGVERSION.
25119         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25120         (print_version): Use PKGVERSION.
25121         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25122         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25123         macro.
25124         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25125         (print_version): Use PKGVERSION.
25126         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25127         (print_version): Use PKGVERSION.
25128         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25129         and PKGVERSION.
25130
25131         * timezone/checktab.awk: Update from tzcode 2012i.
25132         * timezone/ialloc.c: Likewise.
25133         * timezone/private.h: Likewise.
25134         * timezone/scheck.c: Likewise.
25135         * timezone/tzfile.h: Likewise.
25136         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25137         (TZVERSION): Hardcode tzcode version number.
25138         * timezone/zdump.c: Update from tzcode 2012i.
25139         * timezone/zic.c: Likewise.
25140         * timezone/version.h: New file.
25141         * timezone/README: Describe version.h.  Update upstream location.
25142
25143         [BZ #14824]
25144         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25145         (mktemp): Enable declaration.
25146         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25147         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25148         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25149         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25150         Likewise.
25151         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25152         Likewise.
25153         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25154         Likewise.
25155         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25156         Likewise.
25157         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25158         Likewise.
25159         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25160         Likewise.
25161
25162         [BZ #14821]
25163         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25164         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25165         for copies of such integer values.
25166         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25167         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25168
25169 2012-11-09  Andreas Jaeger  <aj@suse.de>
25170
25171         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25172         definitions and declarations that are provided by
25173         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25174
25175 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25176
25177         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25178         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25179         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25180         definition.
25181
25182 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25183
25184         * elf/elf.h: Update comment before AArch64 relocations.
25185
25186 2012-11-07  David S. Miller  <davem@davemloft.net>
25187
25188         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25189         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25190         (__start_context): Declare.
25191         (__makecontext_ret): Delete.
25192         (__makecontext): Hook up __start_context instead of
25193         __makecontext_ret.
25194         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25195         (sysdep_routines): Add __start_context when in stdlib.
25196
25197 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25198
25199         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25200         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25201         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25202         hardcoded "nm".
25203         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25204         (READELF): New variable.  Use it instead of hardcoded "readelf".
25205
25206 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25207
25208         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25209         * sysdeps/x86/Makefile: Here.
25210         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25211         * sysdeps/x86/tst-xmmymm.sh: This.
25212
25213 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25214
25215         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25216         expectations.
25217         [UNIX98] (pthread_barrier_t): Do not expect.
25218         [UNIX98] (pthread_barrierattr_t): Likewise.
25219         [UNIX98] (pthread_spinlock_t): Likewise.
25220         [UNIX98] (pthread_barrier_destroy): Likewise.
25221         [UNIX98] (pthread_barrier_init): Likewise.
25222         [UNIX98] (pthread_barrier_wait): Likewise.
25223         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25224         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25225         [UNIX98] (pthread_barrierattr_init): Likewise.
25226         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25227         [UNIX98] (pthread_getcpuclockid): Likewise.
25228         [UNIX98] (pthread_mutex_timedlock): Likewise.
25229         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25230         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25231         [UNIX98] (pthread_sigmask): Likewise.
25232         [UNIX98] (pthread_spin_destroy): Likewise.
25233         [UNIX98] (pthread_spin_init): Likewise.
25234         [UNIX98] (pthread_spin_lock): Likewise.
25235         [UNIX98] (pthread_spin_trylock): Likewise.
25236         [UNIX98] (pthread_spin_unlock): Likewise.
25237         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25238         Do not expect.
25239         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25240         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25241         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25242         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25243         [XPG3 || XPG4] (pthread_key_t): Likewise.
25244         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25245         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25246         [XPG3 || XPG4] (pthread_once_t): Likewise.
25247         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25248         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25249         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25250         [XPG3 || XPG4] (pthread_t): Likewise.
25251
25252         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25253         not expect.
25254         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25255
25256         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25257         Change function return type to int.
25258
25259         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25260         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25261         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25262         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25263         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25264         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25265         [!POSIX] (posix_madvise): Likewise.
25266         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25267         && !UNIX98].
25268         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25269         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25270         (mode_t): Likewise.
25271         (posix_mem_offset): Likewise.
25272         (posix_typed_mem_get_info): Likewise.
25273         (posix_typed_mem_open): Likewise.
25274
25275         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25276         Change condition to [XOPEN2K8].
25277
25278         * conform/conformtest.pl: Preprocess allow-header data with -x c
25279         instead of from stdin.
25280         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25281         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25282         [C99-based standards] (cerfc): Likewise.
25283         [C99-based standards] (cexp2): Likewise.
25284         [C99-based standards] (cexpm1): Likewise.
25285         [C99-based standards] (clog10): Likewise.
25286         [C99-based standards] (clog1p): Likewise.
25287         [C99-based standards] (clog2): Likewise.
25288         [C99-based standards] (clgamma): Likewise.
25289         [C99-based standards] (ctgamma): Likewise.
25290         [C99-based standards] (cerff): Likewise.
25291         [C99-based standards] (cerfcf): Likewise.
25292         [C99-based standards] (cexp2f): Likewise.
25293         [C99-based standards] (cexpm1f): Likewise.
25294         [C99-based standards] (clog10f): Likewise.
25295         [C99-based standards] (clog1pf): Likewise.
25296         [C99-based standards] (clog2f): Likewise.
25297         [C99-based standards] (clgammaf): Likewise.
25298         [C99-based standards] (ctgammaf): Likewise.
25299         [C99-based standards] (cerfl): Likewise.
25300         [C99-based standards] (cerfcl): Likewise.
25301         [C99-based standards] (cexp2l): Likewise.
25302         [C99-based standards] (cexpm1l): Likewise.
25303         [C99-based standards] (clog10l): Likewise.
25304         [C99-based standards] (clog1pl): Likewise.
25305         [C99-based standards] (clog2l): Likewise.
25306         [C99-based standards] (clgammal): Likewise.
25307         [C99-based standards] (ctgammal): Likewise.
25308         * conform/data/inttypes.h-data [C99-based standards]: Include
25309         stdint.h-data.  Remove all expectations for stdint.h contents.
25310         [C99-based standards] (PRI*): Do not allow.
25311         [C99-based standards] (SCN*): Likewise.
25312         [C99-based standards] (*_t): Likewise.
25313         [C99-based-standards] (PRId8): Expect macro.
25314         [C99-based-standards] (PRIi8): Likewise.
25315         [C99-based-standards] (PRIo8): Likewise.
25316         [C99-based-standards] (PRIu8): Likewise.
25317         [C99-based-standards] (PRIx8): Likewise.
25318         [C99-based-standards] (PRIX8): Likewise.
25319         [C99-based-standards] (SCNd8): Likewise.
25320         [C99-based-standards] (SCNi8): Likewise.
25321         [C99-based-standards] (SCNo8): Likewise.
25322         [C99-based-standards] (SCNu8): Likewise.
25323         [C99-based-standards] (SCNx8): Likewise.
25324         [C99-based-standards] (PRIdLEAST8): Likewise.
25325         [C99-based-standards] (PRIiLEAST8): Likewise.
25326         [C99-based-standards] (PRIoLEAST8): Likewise.
25327         [C99-based-standards] (PRIuLEAST8): Likewise.
25328         [C99-based-standards] (PRIxLEAST8): Likewise.
25329         [C99-based-standards] (PRIXLEAST8): Likewise.
25330         [C99-based-standards] (SCNdLEAST8): Likewise.
25331         [C99-based-standards] (SCNiLEAST8): Likewise.
25332         [C99-based-standards] (SCNoLEAST8): Likewise.
25333         [C99-based-standards] (SCNuLEAST8): Likewise.
25334         [C99-based-standards] (SCNxLEAST8): Likewise.
25335         [C99-based-standards] (PRIdFAST8): Likewise.
25336         [C99-based-standards] (PRIiFAST8): Likewise.
25337         [C99-based-standards] (PRIoFAST8): Likewise.
25338         [C99-based-standards] (PRIuFAST8): Likewise.
25339         [C99-based-standards] (PRIxFAST8): Likewise.
25340         [C99-based-standards] (PRIXFAST8): Likewise.
25341         [C99-based-standards] (SCNdFAST8): Likewise.
25342         [C99-based-standards] (SCNiFAST8): Likewise.
25343         [C99-based-standards] (SCNoFAST8): Likewise.
25344         [C99-based-standards] (SCNuFAST8): Likewise.
25345         [C99-based-standards] (SCNxFAST8): Likewise.
25346         [C99-based-standards] (PRId16): Likewise.
25347         [C99-based-standards] (PRIi16): Likewise.
25348         [C99-based-standards] (PRIo16): Likewise.
25349         [C99-based-standards] (PRIu16): Likewise.
25350         [C99-based-standards] (PRIx16): Likewise.
25351         [C99-based-standards] (PRIX16): Likewise.
25352         [C99-based-standards] (SCNd16): Likewise.
25353         [C99-based-standards] (SCNi16): Likewise.
25354         [C99-based-standards] (SCNo16): Likewise.
25355         [C99-based-standards] (SCNu16): Likewise.
25356         [C99-based-standards] (SCNx16): Likewise.
25357         [C99-based-standards] (PRIdLEAST16): Likewise.
25358         [C99-based-standards] (PRIiLEAST16): Likewise.
25359         [C99-based-standards] (PRIoLEAST16): Likewise.
25360         [C99-based-standards] (PRIuLEAST16): Likewise.
25361         [C99-based-standards] (PRIxLEAST16): Likewise.
25362         [C99-based-standards] (PRIXLEAST16): Likewise.
25363         [C99-based-standards] (SCNdLEAST16): Likewise.
25364         [C99-based-standards] (SCNiLEAST16): Likewise.
25365         [C99-based-standards] (SCNoLEAST16): Likewise.
25366         [C99-based-standards] (SCNuLEAST16): Likewise.
25367         [C99-based-standards] (SCNxLEAST16): Likewise.
25368         [C99-based-standards] (PRIdFAST16): Likewise.
25369         [C99-based-standards] (PRIiFAST16): Likewise.
25370         [C99-based-standards] (PRIoFAST16): Likewise.
25371         [C99-based-standards] (PRIuFAST16): Likewise.
25372         [C99-based-standards] (PRIxFAST16): Likewise.
25373         [C99-based-standards] (PRIXFAST16): Likewise.
25374         [C99-based-standards] (SCNdFAST16): Likewise.
25375         [C99-based-standards] (SCNiFAST16): Likewise.
25376         [C99-based-standards] (SCNoFAST16): Likewise.
25377         [C99-based-standards] (SCNuFAST16): Likewise.
25378         [C99-based-standards] (SCNxFAST16): Likewise.
25379         [C99-based-standards] (PRId32): Likewise.
25380         [C99-based-standards] (PRIi32): Likewise.
25381         [C99-based-standards] (PRIo32): Likewise.
25382         [C99-based-standards] (PRIu32): Likewise.
25383         [C99-based-standards] (PRIx32): Likewise.
25384         [C99-based-standards] (PRIX32): Likewise.
25385         [C99-based-standards] (SCNd32): Likewise.
25386         [C99-based-standards] (SCNi32): Likewise.
25387         [C99-based-standards] (SCNo32): Likewise.
25388         [C99-based-standards] (SCNu32): Likewise.
25389         [C99-based-standards] (SCNx32): Likewise.
25390         [C99-based-standards] (PRIdLEAST32): Likewise.
25391         [C99-based-standards] (PRIiLEAST32): Likewise.
25392         [C99-based-standards] (PRIoLEAST32): Likewise.
25393         [C99-based-standards] (PRIuLEAST32): Likewise.
25394         [C99-based-standards] (PRIxLEAST32): Likewise.
25395         [C99-based-standards] (PRIXLEAST32): Likewise.
25396         [C99-based-standards] (SCNdLEAST32): Likewise.
25397         [C99-based-standards] (SCNiLEAST32): Likewise.
25398         [C99-based-standards] (SCNoLEAST32): Likewise.
25399         [C99-based-standards] (SCNuLEAST32): Likewise.
25400         [C99-based-standards] (SCNxLEAST32): Likewise.
25401         [C99-based-standards] (PRIdFAST32): Likewise.
25402         [C99-based-standards] (PRIiFAST32): Likewise.
25403         [C99-based-standards] (PRIoFAST32): Likewise.
25404         [C99-based-standards] (PRIuFAST32): Likewise.
25405         [C99-based-standards] (PRIxFAST32): Likewise.
25406         [C99-based-standards] (PRIXFAST32): Likewise.
25407         [C99-based-standards] (SCNdFAST32): Likewise.
25408         [C99-based-standards] (SCNiFAST32): Likewise.
25409         [C99-based-standards] (SCNoFAST32): Likewise.
25410         [C99-based-standards] (SCNuFAST32): Likewise.
25411         [C99-based-standards] (SCNxFAST32): Likewise.
25412         [C99-based-standards] (PRId64): Likewise.
25413         [C99-based-standards] (PRIi64): Likewise.
25414         [C99-based-standards] (PRIo64): Likewise.
25415         [C99-based-standards] (PRIu64): Likewise.
25416         [C99-based-standards] (PRIx64): Likewise.
25417         [C99-based-standards] (PRIX64): Likewise.
25418         [C99-based-standards] (SCNd64): Likewise.
25419         [C99-based-standards] (SCNi64): Likewise.
25420         [C99-based-standards] (SCNo64): Likewise.
25421         [C99-based-standards] (SCNu64): Likewise.
25422         [C99-based-standards] (SCNx64): Likewise.
25423         [C99-based-standards] (PRIdLEAST64): Likewise.
25424         [C99-based-standards] (PRIiLEAST64): Likewise.
25425         [C99-based-standards] (PRIoLEAST64): Likewise.
25426         [C99-based-standards] (PRIuLEAST64): Likewise.
25427         [C99-based-standards] (PRIxLEAST64): Likewise.
25428         [C99-based-standards] (PRIXLEAST64): Likewise.
25429         [C99-based-standards] (SCNdLEAST64): Likewise.
25430         [C99-based-standards] (SCNiLEAST64): Likewise.
25431         [C99-based-standards] (SCNoLEAST64): Likewise.
25432         [C99-based-standards] (SCNuLEAST64): Likewise.
25433         [C99-based-standards] (SCNxLEAST64): Likewise.
25434         [C99-based-standards] (PRIdFAST64): Likewise.
25435         [C99-based-standards] (PRIiFAST64): Likewise.
25436         [C99-based-standards] (PRIoFAST64): Likewise.
25437         [C99-based-standards] (PRIuFAST64): Likewise.
25438         [C99-based-standards] (PRIxFAST64): Likewise.
25439         [C99-based-standards] (PRIXFAST64): Likewise.
25440         [C99-based-standards] (SCNdFAST64): Likewise.
25441         [C99-based-standards] (SCNiFAST64): Likewise.
25442         [C99-based-standards] (SCNoFAST64): Likewise.
25443         [C99-based-standards] (SCNuFAST64): Likewise.
25444         [C99-based-standards] (SCNxFAST64): Likewise.
25445         [C99-based-standards] (PRIdMAX): Likewise.
25446         [C99-based-standards] (PRIiMAX): Likewise.
25447         [C99-based-standards] (PRIoMAX): Likewise.
25448         [C99-based-standards] (PRIuMAX): Likewise.
25449         [C99-based-standards] (PRIxMAX): Likewise.
25450         [C99-based-standards] (PRIXMAX): Likewise.
25451         [C99-based-standards] (SCNdMAX): Likewise.
25452         [C99-based-standards] (SCNiMAX): Likewise.
25453         [C99-based-standards] (SCNoMAX): Likewise.
25454         [C99-based-standards] (SCNuMAX): Likewise.
25455         [C99-based-standards] (SCNxMAX): Likewise.
25456         [C99-based-standards] (PRIdPTR): Likewise.
25457         [C99-based-standards] (PRIiPTR): Likewise.
25458         [C99-based-standards] (PRIoPTR): Likewise.
25459         [C99-based-standards] (PRIuPTR): Likewise.
25460         [C99-based-standards] (PRIxPTR): Likewise.
25461         [C99-based-standards] (PRIXPTR): Likewise.
25462         [C99-based-standards] (SCNdPTR): Likewise.
25463         [C99-based-standards] (SCNiPTR): Likewise.
25464         [C99-based-standards] (SCNoPTR): Likewise.
25465         [C99-based-standards] (SCNuPTR): Likewise.
25466         [C99-based-standards] (SCNxPTR): Likewise.
25467         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
25468         allow.
25469         * conform/data/stdint.h-data: Update comments to clarify
25470         requirements.
25471         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
25472         type.
25473         [C99-based standards] (INT8_MAX): Likewise.
25474         [C99-based standards] (INT16_MIN): Likewise.
25475         [C99-based standards] (INT16_MAX): Likewise.
25476         [C99-based standards] (INT32_MIN): Likewise.
25477         [C99-based standards] (INT32_MAX): Likewise.
25478         [C99-based standards] (INT64_MIN): Likewise.
25479         [C99-based standards] (INT64_MAX): Likewise.
25480         [C99-based standards] (UINT8_MAX): Likewise.
25481         [C99-based standards] (UINT16_MAX): Likewise.
25482         [C99-based standards] (UINT32_MAX): Likewise.
25483         [C99-based standards] (UINT64_MAX): Likewise.
25484         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25485         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25486         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25487         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25488         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25489         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25490         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25491         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25492         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25493         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25494         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25495         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25496         [C99-based standards] (INT_FAST8_MIN): Likewise.
25497         [C99-based standards] (INT_FAST8_MAX): Likewise.
25498         [C99-based standards] (INT_FAST16_MIN): Likewise.
25499         [C99-based standards] (INT_FAST16_MAX): Likewise.
25500         [C99-based standards] (INT_FAST32_MIN): Likewise.
25501         [C99-based standards] (INT_FAST32_MAX): Likewise.
25502         [C99-based standards] (INT_FAST64_MIN): Likewise.
25503         [C99-based standards] (INT_FAST64_MAX): Likewise.
25504         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25505         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25506         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25507         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25508         [C99-based standards] (INTPTR_MIN): Likewise.
25509         [C99-based standards] (INTPTR_MAX): Likewise.
25510         [C99-based standards] (UINTPTR_MAX): Likewise.
25511         [C99-based standards] (INTMAX_MIN): Likewise.
25512         [C99-based standards] (INTMAX_MAX): Likewise.
25513         [C99-based standards] (UINTMAX_MAX): Likewise.
25514         [C99-based standards] (PTRDIFF_MIN): Likewise.
25515         [C99-based standards] (PTRDIFF_MAX): Likewise.
25516         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25517         [C99-based standards] (SIZE_MAX): Likewise.
25518         [C99-based standards] (WCHAR_MAX): Likewise.
25519         [C99-based standards] (WINT_MAX): Likewise.
25520         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25521         constraint on value.
25522         [C99-based standards] (WCHAR_MIN): Likewise.
25523         [C99-based standards] (WINT_MIN): Likewise.
25524         [C99-based standards] (*_t): Allow.
25525         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25526         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25527         Include math.h-data and complex.h-data.  Remove all expectations
25528         of math.h and complex.h contents.
25529         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25530         at end of line.
25531         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25532         (struct tm): Expect tag.
25533         [C99-based-standards] (wcstof): Expect function.
25534         [C99-based-standards] (wcstold): Likewise.
25535         [C99-based-standards] (wcstoll): Likewise.
25536         [C99-based-standards] (wcstoull): Likewise.
25537         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25538         macro-int-constant.  Specify type.
25539         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25540         constraint on value.
25541         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25542         Specify type.
25543         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25544         Specify value.
25545         [ISO C standards]: Do not allow headers.
25546         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25547         wcs[abcdefghijklmnopqrstuvwxyz]*.
25548         [ISO C standards] (*_t): Do not allow.
25549         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25550         Expect function.
25551         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25552         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25553         Specify type.
25554         [ISO C standards]: Do not allow headers.
25555         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25556         is[abcdefghijklmnopqrstuvwxyz]*.
25557         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25558         to[abcdefghijklmnopqrstuvwxyz]*.
25559         [ISO C standards] (*_t): Do not allow.
25560         * conform/data/stdalign.h-data: New file.
25561         * conform/data/stdbool.h-data: Likewise.
25562         * conform/data/stdnoreturn.h-data: Likewise.
25563
25564 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25565
25566         [BZ #14815]
25567         * manual/filesys.texi (Directory Entries): Typo fix.
25568         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25569
25570 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25571
25572         * elf/elf.h (EM_AARCH64): New macro.
25573         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25574         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25575         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25576         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25577         (R_AARCH64_TLSDESC): Likewise.
25578         (NT_ARM_TLS): Likewise.
25579         (NT_ARM_HW_BREAK): Likewise.
25580         (NT_ARM_HW_WATCH): Likewise.
25581
25582 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25583
25584         [BZ #14811]
25585         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25586         (__ieee754_powl): Saturate nonzero exponents with absolute value
25587         below 0x1p-79 to +/- 0x1p-79.
25588         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25589         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25590         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25591         nonzero exponents with absolute value below 0x1p-32 to +/-
25592         0x1p-32.
25593         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25594         (__ieee754_powl): Saturate nonzero exponents with absolute value
25595         below 0x1p-79 to +/- 0x1p-79.
25596         * math/libm-test.inc (pow_test): Add more tests.
25597
25598 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25599
25600         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25601         _dl_s390_cap_flags with kernel. Increase string length.
25602         (_dl_s390_platforms): Add z196 and zEC12.
25603
25604 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25605
25606         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25607         Change XOPEN21K to XOPEN2K.
25608
25609 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25610
25611         * string/memmove.c: Use memcpy when possible.
25612
25613 2012-11-06  Andreas Jaeger  <aj@suse.de>
25614
25615         * po/eo.po: Update from translation team.
25616
25617 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25618
25619         [BZ #14793]
25620         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25621         exponent and small x and y exponents, scale x or y up.  Increase
25622         by 2 the exponent used in scaling up.
25623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25624         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25625         * math/libm-test.inc (fma_test): Add more tests.
25626         (fma_test_towardzero): Likewise.
25627         (fma_test_downward): Likewise.
25628         (fma_test_upward): Likewise.
25629
25630 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25631
25632         [BZ #14805]
25633         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25634         fenv_t *.
25635
25636         [BZ #14801]
25637         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25638         namespace for names of struct fields.
25639         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25640         fenv_t fields.
25641         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25642         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25643
25644 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25645
25646         [BZ #3665]
25647         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25648
25649 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25650
25651         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25652         PTR_DEMANGLE.
25653
25654         [BZ #5246]
25655         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25656         PTR_DEMANGLE.
25657
25658 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25659
25660         [BZ #14797]
25661         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25662         definitely overflow as x * y not x * y + z.
25663         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25664         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25665         * math/libm-test.inc (fma_test): Add more tests.
25666         (fma_test_towardzero): Likewise.
25667         (fma_test_downward): Likewise.
25668         (fma_test_upward): Likewise.
25669
25670 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25671
25672         [BZ #157]
25673
25674         * include/stub-tag.h: Remove file.
25675         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25676         '#include' of it.
25677         * manual/maint.texi (Porting): Don't reference it.
25678         * Makerules ($(objpfx)stubs): Likewise.
25679         * dirent/closedir.c: Don't include <stub-tag.h>.
25680         * dirent/dirfd.c: Likewise.
25681         * dirent/fdopendir.c: Likewise.
25682         * dirent/getdents.c: Likewise.
25683         * dirent/getdents64.c: Likewise.
25684         * dirent/opendir.c: Likewise.
25685         * dirent/readdir.c: Likewise.
25686         * dirent/readdir64.c: Likewise.
25687         * dirent/readdir64_r.c: Likewise.
25688         * dirent/readdir_r.c: Likewise.
25689         * dirent/rewinddir.c: Likewise.
25690         * dirent/seekdir.c: Likewise.
25691         * dirent/telldir.c: Likewise.
25692         * gmon/profil.c: Likewise.
25693         * grp/setgroups.c: Likewise.
25694         * inet/if_index.c: Likewise.
25695         * io/access.c: Likewise.
25696         * io/chdir.c: Likewise.
25697         * io/chmod.c: Likewise.
25698         * io/chown.c: Likewise.
25699         * io/close.c: Likewise.
25700         * io/dup.c: Likewise.
25701         * io/dup2.c: Likewise.
25702         * io/dup3.c: Likewise.
25703         * io/euidaccess.c: Likewise.
25704         * io/faccessat.c: Likewise.
25705         * io/fchdir.c: Likewise.
25706         * io/fchmod.c: Likewise.
25707         * io/fchmodat.c: Likewise.
25708         * io/fchown.c: Likewise.
25709         * io/fchownat.c: Likewise.
25710         * io/fcntl.c: Likewise.
25711         * io/flock.c: Likewise.
25712         * io/fstatfs.c: Likewise.
25713         * io/fstatfs64.c: Likewise.
25714         * io/fstatvfs.c: Likewise.
25715         * io/fstatvfs64.c: Likewise.
25716         * io/futimens.c: Likewise.
25717         * io/fxstat.c: Likewise.
25718         * io/fxstat64.c: Likewise.
25719         * io/fxstatat.c: Likewise.
25720         * io/fxstatat64.c: Likewise.
25721         * io/getcwd.c: Likewise.
25722         * io/isatty.c: Likewise.
25723         * io/lchmod.c: Likewise.
25724         * io/lchown.c: Likewise.
25725         * io/link.c: Likewise.
25726         * io/linkat.c: Likewise.
25727         * io/lseek.c: Likewise.
25728         * io/lseek64.c: Likewise.
25729         * io/lxstat64.c: Likewise.
25730         * io/mkdir.c: Likewise.
25731         * io/mkdirat.c: Likewise.
25732         * io/mkfifo.c: Likewise.
25733         * io/mkfifoat.c: Likewise.
25734         * io/open.c: Likewise.
25735         * io/open64.c: Likewise.
25736         * io/openat.c: Likewise.
25737         * io/openat64.c: Likewise.
25738         * io/pipe.c: Likewise.
25739         * io/pipe2.c: Likewise.
25740         * io/poll.c: Likewise.
25741         * io/posix_fadvise.c: Likewise.
25742         * io/posix_fadvise64.c: Likewise.
25743         * io/posix_fallocate.c: Likewise.
25744         * io/posix_fallocate64.c: Likewise.
25745         * io/read.c: Likewise.
25746         * io/readlink.c: Likewise.
25747         * io/readlinkat.c: Likewise.
25748         * io/rmdir.c: Likewise.
25749         * io/sendfile.c: Likewise.
25750         * io/sendfile64.c: Likewise.
25751         * io/statfs.c: Likewise.
25752         * io/statfs64.c: Likewise.
25753         * io/statvfs.c: Likewise.
25754         * io/statvfs64.c: Likewise.
25755         * io/symlink.c: Likewise.
25756         * io/symlinkat.c: Likewise.
25757         * io/ttyname.c: Likewise.
25758         * io/ttyname_r.c: Likewise.
25759         * io/umask.c: Likewise.
25760         * io/unlink.c: Likewise.
25761         * io/unlinkat.c: Likewise.
25762         * io/utime.c: Likewise.
25763         * io/utimensat.c: Likewise.
25764         * io/write.c: Likewise.
25765         * io/xmknod.c: Likewise.
25766         * io/xmknodat.c: Likewise.
25767         * io/xstat.c: Likewise.
25768         * io/xstat64.c: Likewise.
25769         * login/getpt.c: Likewise.
25770         * login/grantpt.c: Likewise.
25771         * login/unlockpt.c: Likewise.
25772         * math/e_acoshl.c: Likewise.
25773         * math/e_acosl.c: Likewise.
25774         * math/e_asinl.c: Likewise.
25775         * math/e_atan2l.c: Likewise.
25776         * math/e_atanhl.c: Likewise.
25777         * math/e_coshl.c: Likewise.
25778         * math/e_expl.c: Likewise.
25779         * math/e_fmodl.c: Likewise.
25780         * math/e_gammal_r.c: Likewise.
25781         * math/e_hypotl.c: Likewise.
25782         * math/e_j0l.c: Likewise.
25783         * math/e_j1l.c: Likewise.
25784         * math/e_jnl.c: Likewise.
25785         * math/e_lgammal_r.c: Likewise.
25786         * math/e_log10l.c: Likewise.
25787         * math/e_log2l.c: Likewise.
25788         * math/e_logl.c: Likewise.
25789         * math/e_powl.c: Likewise.
25790         * math/e_rem_pio2l.c: Likewise.
25791         * math/e_sinhl.c: Likewise.
25792         * math/e_sqrtl.c: Likewise.
25793         * math/fclrexcpt.c: Likewise.
25794         * math/fedisblxcpt.c: Likewise.
25795         * math/feenablxcpt.c: Likewise.
25796         * math/fegetenv.c: Likewise.
25797         * math/fegetexcept.c: Likewise.
25798         * math/fegetround.c: Likewise.
25799         * math/feholdexcpt.c: Likewise.
25800         * math/fesetenv.c: Likewise.
25801         * math/fesetround.c: Likewise.
25802         * math/feupdateenv.c: Likewise.
25803         * math/fgetexcptflg.c: Likewise.
25804         * math/fraiseexcpt.c: Likewise.
25805         * math/fsetexcptflg.c: Likewise.
25806         * math/ftestexcept.c: Likewise.
25807         * math/k_cosl.c: Likewise.
25808         * math/k_rem_pio2l.c: Likewise.
25809         * math/k_sinl.c: Likewise.
25810         * math/k_tanl.c: Likewise.
25811         * math/s_asinhl.c: Likewise.
25812         * math/s_atanl.c: Likewise.
25813         * math/s_cbrtl.c: Likewise.
25814         * math/s_erfl.c: Likewise.
25815         * math/s_expm1l.c: Likewise.
25816         * math/s_log1pl.c: Likewise.
25817         * math/s_tanhl.c: Likewise.
25818         * misc/acct.c: Likewise.
25819         * misc/brk.c: Likewise.
25820         * misc/chflags.c: Likewise.
25821         * misc/chroot.c: Likewise.
25822         * misc/fchflags.c: Likewise.
25823         * misc/fgetxattr.c: Likewise.
25824         * misc/flistxattr.c: Likewise.
25825         * misc/fremovexattr.c: Likewise.
25826         * misc/fsetxattr.c: Likewise.
25827         * misc/fsync.c: Likewise.
25828         * misc/ftruncate.c: Likewise.
25829         * misc/futimes.c: Likewise.
25830         * misc/futimesat.c: Likewise.
25831         * misc/getdomain.c: Likewise.
25832         * misc/getdtsz.c: Likewise.
25833         * misc/gethostid.c: Likewise.
25834         * misc/gethostname.c: Likewise.
25835         * misc/getloadavg.c: Likewise.
25836         * misc/getpagesize.c: Likewise.
25837         * misc/getsysstats.c: Likewise.
25838         * misc/getxattr.c: Likewise.
25839         * misc/gtty.c: Likewise.
25840         * misc/ioctl.c: Likewise.
25841         * misc/lgetxattr.c: Likewise.
25842         * misc/listxattr.c: Likewise.
25843         * misc/llistxattr.c: Likewise.
25844         * misc/lremovexattr.c: Likewise.
25845         * misc/lsetxattr.c: Likewise.
25846         * misc/lutimes.c: Likewise.
25847         * misc/madvise.c: Likewise.
25848         * misc/mincore.c: Likewise.
25849         * misc/mlock.c: Likewise.
25850         * misc/mlockall.c: Likewise.
25851         * misc/mmap.c: Likewise.
25852         * misc/mprotect.c: Likewise.
25853         * misc/msync.c: Likewise.
25854         * misc/munlock.c: Likewise.
25855         * misc/munlockall.c: Likewise.
25856         * misc/munmap.c: Likewise.
25857         * misc/preadv.c: Likewise.
25858         * misc/preadv64.c: Likewise.
25859         * misc/ptrace.c: Likewise.
25860         * misc/pwritev.c: Likewise.
25861         * misc/pwritev64.c: Likewise.
25862         * misc/readv.c: Likewise.
25863         * misc/reboot.c: Likewise.
25864         * misc/remap_file_pages.c: Likewise.
25865         * misc/removexattr.c: Likewise.
25866         * misc/revoke.c: Likewise.
25867         * misc/select.c: Likewise.
25868         * misc/setdomain.c: Likewise.
25869         * misc/setegid.c: Likewise.
25870         * misc/seteuid.c: Likewise.
25871         * misc/sethostid.c: Likewise.
25872         * misc/sethostname.c: Likewise.
25873         * misc/setregid.c: Likewise.
25874         * misc/setreuid.c: Likewise.
25875         * misc/setxattr.c: Likewise.
25876         * misc/sstk.c: Likewise.
25877         * misc/stty.c: Likewise.
25878         * misc/swapoff.c: Likewise.
25879         * misc/swapon.c: Likewise.
25880         * misc/sync.c: Likewise.
25881         * misc/syncfs.c: Likewise.
25882         * misc/syscall.c: Likewise.
25883         * misc/truncate.c: Likewise.
25884         * misc/ualarm.c: Likewise.
25885         * misc/usleep.c: Likewise.
25886         * misc/ustat.c: Likewise.
25887         * misc/utimes.c: Likewise.
25888         * misc/vhangup.c: Likewise.
25889         * misc/writev.c: Likewise.
25890         * posix/_exit.c: Likewise.
25891         * posix/alarm.c: Likewise.
25892         * posix/execve.c: Likewise.
25893         * posix/fexecve.c: Likewise.
25894         * posix/fork.c: Likewise.
25895         * posix/fpathconf.c: Likewise.
25896         * posix/getaddrinfo.c: Likewise.
25897         * posix/getegid.c: Likewise.
25898         * posix/geteuid.c: Likewise.
25899         * posix/getgid.c: Likewise.
25900         * posix/getgroups.c: Likewise.
25901         * posix/getlogin.c: Likewise.
25902         * posix/getlogin_r.c: Likewise.
25903         * posix/getpgid.c: Likewise.
25904         * posix/getpid.c: Likewise.
25905         * posix/getppid.c: Likewise.
25906         * posix/getresgid.c: Likewise.
25907         * posix/getresuid.c: Likewise.
25908         * posix/getsid.c: Likewise.
25909         * posix/getuid.c: Likewise.
25910         * posix/glob64.c: Likewise.
25911         * posix/nanosleep.c: Likewise.
25912         * posix/pathconf.c: Likewise.
25913         * posix/pause.c: Likewise.
25914         * posix/posix_madvise.c: Likewise.
25915         * posix/pread.c: Likewise.
25916         * posix/pread64.c: Likewise.
25917         * posix/pwrite.c: Likewise.
25918         * posix/pwrite64.c: Likewise.
25919         * posix/sched_getaffinity.c: Likewise.
25920         * posix/sched_getp.c: Likewise.
25921         * posix/sched_gets.c: Likewise.
25922         * posix/sched_primax.c: Likewise.
25923         * posix/sched_primin.c: Likewise.
25924         * posix/sched_rr_gi.c: Likewise.
25925         * posix/sched_setaffinity.c: Likewise.
25926         * posix/sched_setp.c: Likewise.
25927         * posix/sched_sets.c: Likewise.
25928         * posix/sched_yield.c: Likewise.
25929         * posix/setgid.c: Likewise.
25930         * posix/setlogin.c: Likewise.
25931         * posix/setpgid.c: Likewise.
25932         * posix/setresgid.c: Likewise.
25933         * posix/setresuid.c: Likewise.
25934         * posix/setsid.c: Likewise.
25935         * posix/setuid.c: Likewise.
25936         * posix/sleep.c: Likewise.
25937         * posix/spawni.c: Likewise.
25938         * posix/sysconf.c: Likewise.
25939         * posix/times.c: Likewise.
25940         * posix/wait.c: Likewise.
25941         * posix/wait3.c: Likewise.
25942         * posix/wait4.c: Likewise.
25943         * posix/waitpid.c: Likewise.
25944         * resolv/gai_sigqueue.c: Likewise.
25945         * resource/getpriority.c: Likewise.
25946         * resource/getrlimit.c: Likewise.
25947         * resource/getrusage.c: Likewise.
25948         * resource/nice.c: Likewise.
25949         * resource/setpriority.c: Likewise.
25950         * resource/setrlimit.c: Likewise.
25951         * resource/ulimit.c: Likewise.
25952         * rt/aio_cancel.c: Likewise.
25953         * rt/aio_fsync.c: Likewise.
25954         * rt/aio_read.c: Likewise.
25955         * rt/aio_sigqueue.c: Likewise.
25956         * rt/aio_suspend.c: Likewise.
25957         * rt/aio_write.c: Likewise.
25958         * rt/clock_getres.c: Likewise.
25959         * rt/clock_gettime.c: Likewise.
25960         * rt/clock_nanosleep.c: Likewise.
25961         * rt/clock_settime.c: Likewise.
25962         * rt/lio_listio.c: Likewise.
25963         * rt/mq_close.c: Likewise.
25964         * rt/mq_getattr.c: Likewise.
25965         * rt/mq_notify.c: Likewise.
25966         * rt/mq_open.c: Likewise.
25967         * rt/mq_receive.c: Likewise.
25968         * rt/mq_send.c: Likewise.
25969         * rt/mq_setattr.c: Likewise.
25970         * rt/mq_timedreceive.c: Likewise.
25971         * rt/mq_timedsend.c: Likewise.
25972         * rt/mq_unlink.c: Likewise.
25973         * rt/shm_open.c: Likewise.
25974         * rt/shm_unlink.c: Likewise.
25975         * rt/timer_create.c: Likewise.
25976         * rt/timer_delete.c: Likewise.
25977         * rt/timer_getoverr.c: Likewise.
25978         * rt/timer_gettime.c: Likewise.
25979         * rt/timer_settime.c: Likewise.
25980         * setjmp/__longjmp.c: Likewise.
25981         * setjmp/setjmp.c: Likewise.
25982         * signal/kill.c: Likewise.
25983         * signal/killpg.c: Likewise.
25984         * signal/raise.c: Likewise.
25985         * signal/sigaction.c: Likewise.
25986         * signal/sigaltstack.c: Likewise.
25987         * signal/sigblock.c: Likewise.
25988         * signal/sigignore.c: Likewise.
25989         * signal/sigintr.c: Likewise.
25990         * signal/signal.c: Likewise.
25991         * signal/sigpause.c: Likewise.
25992         * signal/sigpending.c: Likewise.
25993         * signal/sigqueue.c: Likewise.
25994         * signal/sigreturn.c: Likewise.
25995         * signal/sigset.c: Likewise.
25996         * signal/sigsetmask.c: Likewise.
25997         * signal/sigstack.c: Likewise.
25998         * signal/sigsuspend.c: Likewise.
25999         * signal/sigtimedwait.c: Likewise.
26000         * signal/sigvec.c: Likewise.
26001         * signal/sigwait.c: Likewise.
26002         * signal/sigwaitinfo.c: Likewise.
26003         * signal/sysv_signal.c: Likewise.
26004         * socket/accept.c: Likewise.
26005         * socket/accept4.c: Likewise.
26006         * socket/bind.c: Likewise.
26007         * socket/connect.c: Likewise.
26008         * socket/getpeername.c: Likewise.
26009         * socket/getsockname.c: Likewise.
26010         * socket/getsockopt.c: Likewise.
26011         * socket/isfdtype.c: Likewise.
26012         * socket/listen.c: Likewise.
26013         * socket/recv.c: Likewise.
26014         * socket/recvfrom.c: Likewise.
26015         * socket/recvmsg.c: Likewise.
26016         * socket/send.c: Likewise.
26017         * socket/sendmsg.c: Likewise.
26018         * socket/sendto.c: Likewise.
26019         * socket/setsockopt.c: Likewise.
26020         * socket/shutdown.c: Likewise.
26021         * socket/sockatmark.c: Likewise.
26022         * socket/socket.c: Likewise.
26023         * socket/socketpair.c: Likewise.
26024         * stdio-common/ctermid.c: Likewise.
26025         * stdio-common/cuserid.c: Likewise.
26026         * stdio-common/remove.c: Likewise.
26027         * stdio-common/rename.c: Likewise.
26028         * stdio-common/renameat.c: Likewise.
26029         * stdio-common/tempname.c: Likewise.
26030         * stdlib/getcontext.c: Likewise.
26031         * stdlib/makecontext.c: Likewise.
26032         * stdlib/setcontext.c: Likewise.
26033         * stdlib/swapcontext.c: Likewise.
26034         * stdlib/system.c: Likewise.
26035         * streams/fattach.c: Likewise.
26036         * streams/fdetach.c: Likewise.
26037         * streams/getmsg.c: Likewise.
26038         * streams/getpmsg.c: Likewise.
26039         * streams/putmsg.c: Likewise.
26040         * streams/putpmsg.c: Likewise.
26041         * sysdeps/unix/bsd/getpt.c: Likewise.
26042         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
26043         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
26044         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
26045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26046         Likewise.
26047         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
26048         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26049         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
26050         * sysvipc/msgctl.c: Likewise.
26051         * sysvipc/msgget.c: Likewise.
26052         * sysvipc/msgrcv.c: Likewise.
26053         * sysvipc/msgsnd.c: Likewise.
26054         * sysvipc/semctl.c: Likewise.
26055         * sysvipc/semget.c: Likewise.
26056         * sysvipc/semop.c: Likewise.
26057         * sysvipc/semtimedop.c: Likewise.
26058         * sysvipc/shmat.c: Likewise.
26059         * sysvipc/shmctl.c: Likewise.
26060         * sysvipc/shmdt.c: Likewise.
26061         * sysvipc/shmget.c: Likewise.
26062         * termios/tcdrain.c: Likewise.
26063         * termios/tcflow.c: Likewise.
26064         * termios/tcflush.c: Likewise.
26065         * termios/tcgetattr.c: Likewise.
26066         * termios/tcgetpgrp.c: Likewise.
26067         * termios/tcsendbrk.c: Likewise.
26068         * termios/tcsetattr.c: Likewise.
26069         * termios/tcsetpgrp.c: Likewise.
26070         * time/adjtime.c: Likewise.
26071         * time/clock.c: Likewise.
26072         * time/getitimer.c: Likewise.
26073         * time/gettimeofday.c: Likewise.
26074         * time/setitimer.c: Likewise.
26075         * time/settimeofday.c: Likewise.
26076         * time/stime.c: Likewise.
26077         * time/time.c: Likewise.
26078
26079 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
26080
26081         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
26082         /usr/old/bin.
26083
26084         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
26085         instead of spaces.
26086         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
26087
26088 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
26089
26090         [BZ #14796]
26091         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
26092         FE_TONEAREST before applying Dekker multiplication and Knuth
26093         addition.  Clear inexact exceptions and check for exact zero
26094         results afterwards.
26095         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26096         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26097         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26098         * math/libm-test.inc (fma_test): Add more tests.
26099         (fma_test_towardzero): Likewise.
26100         (fma_test_downward): Likewise.
26101         (fma_test_upward): Likewise.
26102         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26103         function.
26104         (libc_fesetround): New macro.
26105         (libc_fesetroundf): Likewise.
26106         (libc_fesetroundl): Likewise.
26107         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26108         function.
26109         (libc_fesetround_387): Likewise.
26110         (libc_fesetroundf): New macro.
26111         (libc_fesetround): Likewise.
26112         (libc_fesetroundl): Likewise.
26113         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26114         function.
26115         (libc_fesetroundf): New macro.
26116         (libc_fesetround): Likewise.
26117         (libc_fesetroundl): Likewise.
26118         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26119         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26120         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26121         libm_hidden_ver.
26122         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26123         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26124         libm_hidden_def.
26125         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26126         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26127         libm_hidden_ver.
26128         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26129         libm_hidden_def.
26130
26131         [BZ #3439]
26132         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26133         integer constant usable in #if and use that to give value to enum
26134         constant.
26135         (FE_DIVBYZERO): Likewise.
26136         (FE_UNDERFLOW): Likewise.
26137         (FE_OVERFLOW): Likewise.
26138         (FE_INVALID): Likewise.
26139         (FE_INVALID_SNAN): Likewise.
26140         (FE_INVALID_ISI): Likewise.
26141         (FE_INVALID_IDI): Likewise.
26142         (FE_INVALID_ZDZ): Likewise.
26143         (FE_INVALID_IMZ): Likewise.
26144         (FE_INVALID_COMPARE): Likewise.
26145         (FE_INVALID_SOFTWARE): Likewise.
26146         (FE_INVALID_SQRT): Likewise.
26147         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26148         (FE_TONEAREST): Likewise.
26149         (FE_TOWARDZERO): Likewise.
26150         (FE_UPWARD): Likewise.
26151         (FE_DOWNWARD): Likewise.
26152         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26153         (FE_DIVBYZERO): Likewise.
26154         (FE_OVERFLOW): Likewise.
26155         (FE_UNDERFLOW): Likewise.
26156         (FE_INEXACT): Likewise.
26157         (FE_TONEAREST): Likewise.
26158         (FE_DOWNWARD): Likewise.
26159         (FE_UPWARD): Likewise.
26160         (FE_TOWARDZERO): Likewise.
26161         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26162         (FE_UNDERFLOW): Likewise.
26163         (FE_OVERFLOW): Likewise.
26164         (FE_DIVBYZERO): Likewise.
26165         (FE_INVALID): Likewise.
26166         (FE_TONEAREST): Likewise.
26167         (FE_TOWARDZERO): Likewise.
26168         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26169         (FE_OVERFLOW): Likewise.
26170         (FE_UNDERFLOW): Likewise.
26171         (FE_DIVBYZERO): Likewise.
26172         (FE_INEXACT): Likewise.
26173         (FE_TONEAREST): Likewise.
26174         (FE_TOWARDZERO): Likewise.
26175         (FE_UPWARD): Likewise.
26176         (FE_DOWNWARD): Likewise.
26177         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26178         (FE_DIVBYZERO): Likewise.
26179         (FE_OVERFLOW): Likewise.
26180         (FE_UNDERFLOW): Likewise.
26181         (FE_INEXACT): Likewise.
26182         (FE_TONEAREST): Likewise.
26183         (FE_DOWNWARD): Likewise.
26184         (FE_UPWARD): Likewise.
26185         (FE_TOWARDZERO): Likewise.
26186
26187 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26188
26189         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26190
26191 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26192
26193         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26194         commands.  Quote $PWD.
26195         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26196         -x" by "export".
26197         (remove_newlines): Remove.
26198
26199 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26200
26201         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26202         * stdlib/stdlib.h (atof): Moved to ...
26203         * include/bits/stdlib-float.h: Here.  New file.
26204         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26205         * stdlib/bits/stdlib-float.h: New file.
26206         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26207         -mno-sse -mno-mmx.
26208         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26209         <xmmintrin.h>.
26210
26211 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26212
26213         * conform/conformtest.pl (@headers): Add fenv.h.
26214         * conform/data/fenv.h-data: New file.
26215         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26216         include of <math/fenv.h>.
26217
26218         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26219         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26220         && !UNIX98].  Enables tests for XOPEN2K8.
26221         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26222         POSIX2008]: Likewise.
26223
26224         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26225         (struct rusage): Do not expect type or its members.
26226
26227         [BZ #3439]
26228         * math/math.h (FP_NAN): Define macro to integer constant usable in
26229         #if and use that to give value to enum constant.
26230         (FP_INFINITE): Likewise.
26231         (FP_ZERO): Likewise.
26232         (FP_SUBNORMAL): Likewise.
26233         (FP_NORMAL): Likewise.
26234
26235 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26236
26237         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26238         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26239         arguments.
26240
26241 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26242
26243         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26244         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26245         autoconf-time if not.
26246         * configure.in: Remove AC_PREREQ.
26247
26248 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26249
26250         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26251         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26252         of the internal implementation.
26253
26254 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26255
26256         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26257         except include of <misc/sys/syslog.h>.
26258
26259 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26260
26261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26262         function returns with a NULL context exit with zero.
26263
26264 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26265
26266         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26267
26268 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26269
26270         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26271         (run_program_cmd): This.
26272         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26273         (tst_langinfo): New variable.  Use it.
26274
26275 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26276
26277         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26278         floating point opcodes.
26279
26280 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26281
26282         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26283         variable.
26284
26285         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26286
26287         * sysdeps/mach/hurd/powerpc: Remove directory.
26288         * sysdeps/mach/powerpc: Likewise.
26289
26290 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26291
26292         * scripts/check-local-headers.sh: Ignore c++ headers.
26293
26294 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26295
26296         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26297         __libc_cleanup_region_start argument.
26298
26299 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26300
26301         [BZ #14784]
26302         [BZ #14785]
26303         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26304         x * y using scaling, not as x * y + z.
26305         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26306         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26307         * math/libm-test.inc (fma_test): Add more tests.
26308         (fma_test_towardzero): Likewise.
26309         (fma_test_downward): Likewise.
26310         (fma_test_upward): Likewise.
26311
26312 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26313
26314         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26315
26316 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26317
26318         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26319         New variable.
26320
26321 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26322
26323         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26324
26325 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26326
26327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26328         Fix sort order.
26329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26330         Likewise.
26331
26332 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26333
26334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26335         Fix the order of the list for glibc 2.17.
26336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26337         Likewise.
26338
26339 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26340
26341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26342
26343 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26344
26345         [BZ #14610]
26346         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26347         for low part of x being zero before using __atanl (y).
26348         * math/libm-test.inc (atan2_test): Add another test.
26349
26350         * manual/install.texi (Configuring and compiling): Document
26351         general use of test-wrapper and test-wrapper-env.
26352         * INSTALL: Regenerated.
26353
26354         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26355         (__fma): Do not extract and scale down low bits on after-rounding
26356         systems when result rounded to normal precision would have normal
26357         exponent.
26358         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26359         (__fmal): Do not extract and scale down low bits on after-rounding
26360         systems when result rounded to normal precision would have normal
26361         exponent.
26362         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26363         (__fmal): Do not extract and scale down low bits on after-rounding
26364         systems when result rounded to normal precision would have normal
26365         exponent.
26366         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26367         macro.
26368         (fma_test): Add more tests.
26369         (fma_test_towardzero): Likewise.
26370         (fma_test_downward): Likewise.
26371         (fma_test_upward): Likewise.
26372
26373 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26374
26375         * sysdeps/i386/tininess.h: Renamed to ...
26376         * sysdeps/x86/tininess.h: This.
26377         * sysdeps/x86_64/tininess.h: Removed.
26378
26379 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26380
26381         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26382         input.  Use $(build-program-cmd).
26383         ($(objpfx)tst-array1-static.out): Likewise.
26384         ($(objpfx)tst-array2.out): Likewise.
26385         ($(objpfx)tst-array3.out): Likewise.
26386         ($(objpfx)tst-array4.out): Likewise.
26387         ($(objpfx)tst-array5.out): Likewise.
26388         ($(objpfx)tst-array5-static.out): Likewise.
26389
26390 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26391
26392         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26393         if defined.
26394
26395         * nss/nsswitch.h (nss_interface_function): Provide new
26396         macro for use with NSS functions.
26397         * grp/initgroups.c: Use new macro.
26398         * nss/getXXbyYY.c: Likewise.
26399         * nss/getXXbyYY_r.c: Likewise.
26400         * nss/getXXent.c: Likewise.
26401         * nss/getXXent_r.c: Likewise.
26402         * sysdeps/posix/getaddrinfo.c: Likewise.
26403
26404 2012-10-30  Andreas Jaeger  <aj@suse.de>
26405
26406         * po/ru.po: Update Russion translation from translation project.
26407
26408 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26409
26410         [BZ #14152]
26411         [BZ #14783]
26412         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26413         result and shift together with sticky bit instead of replicating
26414         round-to-nearest rounding.
26415         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26416         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26417         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26418         missing underflow exceptions.
26419         (fma_test_towardzero): Add more tests.
26420         (fma_test_downward): Likewise.
26421         (fma_test_upward): Likewise.
26422
26423         [BZ #14047]
26424         * sysdeps/generic/tininess.h: New file.
26425         * sysdeps/i386/tininess.h: Likewise.
26426         * sysdeps/sh/tininess.h: Likewise.
26427         * sysdeps/x86_64/tininess.h: Likewise.
26428         * stdlib/tst-strtod-underflow.c: Likewise.
26429         * stdlib/tst-tininess.c: Likewise.
26430         * stdlib/strtod_l.c: Include <tininess.h>.
26431         (round_and_return): Do not set errno for exact underflow cases.
26432         Force an underflow exception when setting errno for underflow.
26433         Determine underflow based on rounding to normal precision if
26434         TININESS_AFTER_ROUNDING.
26435         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26436         ERANGE for exact underflow cases.
26437         * stdlib/Makefile (tests): Add tst-tininess and
26438         tst-strtod-underflow.
26439         ($(objpfx)tst-tininess): Use $(link-libm).
26440         ($(objpfx)tst-strtod-underflow): Likewise.
26441
26442 2012-10-30  Andreas Jaeger  <aj@suse.de>
26443
26444         [BZ#14767]
26445         * elf/Makefile (tests): Remove conditional for have-initfini-array
26446         since this is now always required and the variable does not exist
26447         anymore.
26448         (tests-static): Likewise.
26449         (modules-names): Likewise.
26450
26451         * po/eo.po: Add Esperanto translation from translation project.
26452
26453         * elf/tst-array1.c (fini_array): Make writeable so that it can be
26454         merged with constructor/destructor.
26455         (init_array): Likewise.
26456         * elf/tst-array2dep.c (fini_array): Likewise.
26457         (init_array): Likewise.
26458
26459 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
26460
26461         * manual/message.texi: Delete @cartouche tags.
26462
26463 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
26464
26465         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
26466         EOPNOTSUPP.
26467         * sysdeps/mach/hurd/fsync.c: Likewise.
26468
26469         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
26470         [_POSIX_REALTIME_SIGNALS]: Change condition to
26471         [_POSIX_REALTIME_SIGNALS > 0].
26472
26473 2012-10-27  Andreas Jaeger  <aj@suse.de>
26474
26475         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
26476         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
26477         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
26478         [__WORDSIZE != 64]: Likewise.
26479
26480 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
26481
26482         *  iconvdata/tst-table.sh: Remove ${SHELL}.
26483         *  iconvdata/tst-tables.sh: Likewise.
26484
26485 2012-10-25  David S. Miller  <davem@davemloft.net>
26486
26487         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26488         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26489         of strtoull.
26490
26491         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26492         ifunc-impl-list.c
26493         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26494         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26495         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26496         file.
26497
26498 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26499
26500         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26501         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26502         __getdirentries.
26503
26504 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26505             Jim Blandy  <jimb@codesourcery.com>
26506
26507         * scripts/cross-test-ssh.sh: New file.
26508         * manual/install.texi (Configuring and compiling): Document use of
26509         cross-test-ssh.sh.
26510         * INSTALL: Regenerated.
26511
26512 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26513
26514         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26515         EOPNOTSUPP.
26516
26517 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26518
26519         * Makeconfig (run-program-prefix): Fix comment.
26520
26521 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26522             Jim Blandy  <jimb@codesourcery.com>
26523
26524         * Makeconfig (test-wrapper): New variable,
26525         (test-wrapper-env): Likewise.
26526         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26527         (run-built-tests): Define to yes.
26528         (run-program-prefix): Use $(test-wrapper).
26529         (built-program-cmd): Likewise.
26530         * Rules (make-test-out): Use $(test-wrapper-env) and
26531         $(host-built-program-cmd).
26532         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26533         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26534         tst-pathopt.sh.
26535         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26536         $(test-wrapper-env) to tst-rtld-load-self.sh.
26537         ($(objpfx)order2.out): Use $(test-wrapper).
26538         ($(objpfx)tst-initorder.out): Likewise.
26539         ($(objpfx)tst-initorder2.out): Likewise.
26540         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26541         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26542         (test_wrapper_env): New variable.  Use it to run ld.so.
26543         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26544         Use it to run ld.so.
26545         (test_wrapper_env): Likewise.
26546         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26547         $(test-wrapper) to run-iconv-test.sh.
26548         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26549         (ICONV): Use $test_wrapper.
26550         * posix/Makefile ($(objpfx)globtest.out): Pass
26551         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26552         globtest.sh, not $(run-program-prefix).
26553         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26554         (test_wrapper): Likewise.
26555         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26556         set together with run_via_rtld_prefix.
26557         (run_program_prefix): Define in terms of test_wrapper and
26558         run_via_rtld_prefix.
26559
26560 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26561
26562         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26563         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26564         Targets removed.
26565
26566         [BZ #14743]
26567         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26568         Declare __clock_getres, __clock_gettime, __clock_settime,
26569         __clock_nanosleep, and __clock_getcpuclockid.
26570         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26571         Remove librt_hidden_def (clock_gettime).
26572         * sysdeps/unix/clock_gettime.c: Likewise.
26573         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26574         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26575         * rt/clock_getres.c: Define __clock_getres as an alias.
26576         * sysdeps/posix/clock_getres.c: Likewise.
26577         * rt/clock_settime.c: Define __clock_settime as an alias.
26578         * sysdeps/unix/clock_settime.c: Likewise.
26579         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26580         * sysdeps/unix/clock_nanosleep.c: Likewise.
26581         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26582         * rt/clock-compat.c: New file.
26583         * rt/Makefile (librt-routines): Add clock-compat and move
26584         $(clock-routines) to ...
26585         (routines): ... here, new variable.
26586         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26587         Don't add get_clockfreq here.
26588         * rt/Versions (libc: GLIBC_2.17): New version set.
26589         Add clock_* symbols here.
26590         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26591         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26592         (GLIBC_2.17): Add clock_* symbols.
26593         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26595         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26597         Likewise.
26598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26599         Likewise.
26600         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26603         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26604         * NEWS: Mention the move.
26605
26606         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26607         Use __open, __read, __close rather than their public counterparts.
26608         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26609         (__get_clockfreq_via_cpuinfo): Likewise.
26610         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26611         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26612
26613         * config.h.in (HAVE_IFUNC): New #undef.
26614         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26615         was successful.
26616         * configure: Regenerated.
26617
26618 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26619
26620         * configure.in: Move READELF check to start of file.
26621         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26622         libc_cv_asm_gnu_indirect_function in the process.
26623         * configure: Regenerated.
26624
26625 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26626
26627         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26628         send the output to /dev/null.
26629         (libc_cv_cc_with_libunwind): Likewise.
26630         (libc_cv_as_noexecstack): Likewise.
26631         * configure: Regenerate.
26632
26633 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26634
26635         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26636
26637         * posix/globtest.sh (TMPDIR): Do not set.
26638         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26639         (testout): Likewise.
26640
26641 2012-10-24  Andreas Jaeger  <aj@suse.de>
26642
26643         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26644         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26645         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26646         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26647         posix_fadvise64, posix_fallocate64.
26648
26649         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26650         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26651         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26652         Likewise.
26653         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26654         Likewise.
26655         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26656
26657         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26658         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26659         <bits/fcntl-linux.h>.
26660         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26661
26662         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26663         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26664         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26665         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26666         [__WORDSIZE != 64]: Likewise.
26667
26668 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26669
26670         * Makeconfig (run-built-tests): New variable.
26671         * Rules [$(cross-compiling) = yes]: Change condition to
26672         [$(run-built-tests) = no].
26673         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26674         to [$(run-built-tests) = yes].
26675         * elf/Makefile [$(cross-compiling) = no]: Likewise
26676         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26677         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26678         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26679         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26680         * io/Makefile [$(cross-compiling) = no]: Likewise.
26681         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26682         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26683         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26684         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26685         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26686         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26687         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26688         * string/Makefile [$(cross-compiling) = no]: Likewise.
26689
26690         * posix/Makefile ($(objpfx)globtest.out): Pass
26691         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26692         $(rtld-installed-name).
26693         * posix/globtest.sh (elf_objpfx): Remove variable.
26694         (rtld_installed_name): Likewise.
26695         (library_path): Likewise.
26696         (run_program_prefix): New variable.  Use for running globtest
26697         binary.
26698
26699 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26700             Joseph Myers  <joseph@codesourcery.com>
26701
26702         * Makeconfig (host-built-program-cmd): New variable.
26703         * elf/Makefile (tst-stackguard1-ARGS): Use
26704         $(host-built-program-cmd).
26705         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26706         (tst-spawn-ARGS): Likewise.
26707         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26708
26709 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26710             Jim Blandy  <jimb@codesourcery.com>
26711
26712         * Makeconfig (run-via-rtld-prefix): New variable.
26713         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26714         (built-program-cmd): Likewise.
26715
26716 2012-10-22  Andreas Jaeger  <aj@suse.de>
26717
26718         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26719         __O_RSYNC if it exists, otherwise to O_SYNC.
26720
26721 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26722             Joseph Myers  <joseph@codesourcery.com>
26723
26724         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26725         /dev/null.
26726         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26727         from /dev/null
26728         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26729         /dev/null.
26730
26731 2012-10-22  Andreas Jaeger  <aj@suse.de>
26732
26733         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26734         Define always.
26735         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26736
26737         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26738         bits/fcntl-linux.h.
26739
26740         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26741         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26742
26743         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26744         to __O_LARGEFILE.
26745         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26746         to __O_LARGEFILE.
26747
26748 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26749             Joseph Myers  <joseph@codesourcery.com>
26750
26751         * config.make.in (NM): New variable.
26752
26753 2012-10-21  Andreas Jaeger  <aj@suse.de>
26754
26755         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26756         definitions and declarations that are provided by
26757         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26758
26759 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26760
26761         [BZ #14683]
26762         * elf/Makefile (tests-static): Add tst-leaks1-static.
26763         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26764         ($(objpfx)tst-leaks1-static): New rule.
26765         ($(objpfx)tst-leaks1-static-mem): Likewise.
26766         (tst-leaks1-static-ENV): New macro.
26767         * elf/dl-open.c (dl_open_worker): Check the main application
26768         only if SHARED is defined.
26769         * elf/tst-leaks1-static.c: New file.
26770
26771 2012-10-20  Andreas Jaeger  <aj@suse.de>
26772
26773         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26774         generic values for Linux.
26775         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26776         and declarations that are provided by <bits/fcntl-linux.h> and
26777         include <bits/fcntl-linux.h>.
26778         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26779         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26780
26781 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26782
26783         * io/fcntl.h: Move include of <bits/types.h> to the top and
26784         include it unconditionally.
26785
26786 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26787
26788         * wcsmbs/Makefile (tests-ifunc): New variable.
26789         (tests): Add $(tests-ifunc).
26790         * wcsmbs/test-wcschr-ifunc.c: New file.
26791         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26792         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26793         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26794         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26795         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26796
26797         * string/Makefile (tests-ifunc): New variable.
26798         (tests): Add $(tests-ifunc).
26799         * string/test-memccpy.c (TEST_NAME): New macro.
26800         * string/test-memchr.c (TEST_NAME): Likewise.
26801         * string/test-memcmp.c (TEST_NAME): Likewise.
26802         * string/test-memcpy.c (TEST_NAME): Likewise.
26803         * string/test-memmem.c (TEST_NAME): Likewise.
26804         * string/test-memmove.c (TEST_NAME): Likewise.
26805         * string/test-memset.c (TEST_NAME): Likewise.
26806         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26807         * string/test-stpcpy.c (TEST_NAME): Likewise.
26808         * string/test-stpncpy.c (TEST_NAME): Likewise.
26809         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26810         * string/test-strcasestr.c (TEST_NAME): Likewise.
26811         * string/test-strcat.c (TEST_NAME): Likewise.
26812         * string/test-strchr.c (TEST_NAME): Likewise.
26813         * string/test-strcmp.c(TEST_NAME): Likewise.
26814         * string/test-strcpy.c (TEST_NAME): Likewise.
26815         * string/test-strcspn.c (TEST_NAME): Likewise.
26816         * string/test-strlen.c (TEST_NAME): Likewise.
26817         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26818         * string/test-strncmp.c (TEST_NAME): Likewise.
26819         * string/test-strncpy.c (TEST_NAME): Likewise.
26820         * string/test-strnlen.c (TEST_NAME): Likewise.
26821         * string/test-strpbrk.c (TEST_NAME): Likewise.
26822         * string/test-strrchr.c (TEST_NAME): Likewise.
26823         * string/test-strspn.c (TEST_NAME): Likewise.
26824         * string/test-strstr.c (TEST_NAME): Likewise.
26825         * string/test-bcopy-ifunc.c: New file.
26826         * string/test-bzero-ifunc.c: Likewise.
26827         * string/test-memccpy-ifunc.c: Likewise.
26828         * string/test-memchr-ifunc.c: Likewise.
26829         * string/test-memcmp-ifunc.c: Likewise.
26830         * string/test-memcpy-ifunc.c: Likewise.
26831         * string/test-memmem-ifunc.c: Likewise.
26832         * string/test-memmove-ifunc.c: Likewise.
26833         * string/test-mempcpy-ifunc.c: Likewise.
26834         * string/test-memset-ifunc.c: Likewise.
26835         * string/test-rawmemchr-ifunc.c: Likewise.
26836         * string/test-stpcpy-ifunc.c: Likewise.
26837         * string/test-stpncpy-ifunc.c: Likewise.
26838         * string/test-strcasecmp-ifunc.c: Likewise.
26839         * string/test-strcasestr-ifunc.c: Likewise.
26840         * string/test-strcat-ifunc.c: Likewise.
26841         * string/test-strchr-ifunc.c: Likewise.
26842         * string/test-strchrnul-ifunc.c: Likewise.
26843         * string/test-strcmp-ifunc.c: Likewise.
26844         * string/test-strcpy-ifunc.c: Likewise.
26845         * string/test-strcspn-ifunc.c: Likewise.
26846         * string/test-strlen-ifunc.c: Likewise.
26847         * string/test-strncasecmp-ifunc.c: Likewise.
26848         * string/test-strncat-ifunc.c: Likewise.
26849         * string/test-strncmp-ifunc.c: Likewise.
26850         * string/test-strncpy-ifunc.c: Likewise.
26851         * string/test-strnlen-ifunc.c: Likewise.
26852         * string/test-strpbrk-ifunc.c: Likewise.
26853         * string/test-strrchr-ifunc.c: Likewise.
26854         * string/test-strspn-ifunc.c: Likewise.
26855         * string/test-strstr-ifunc.c: Likewise.
26856
26857         * debug/Makefile (tests-ifunc): New variable.
26858         (tests): Add $(tests-ifunc).
26859         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26860         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26861         * debug/test-stpcpy_chk-ifunc.c: New file.
26862         * debug/test-strcpy_chk-ifunc.c: Likewise.
26863
26864 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26865
26866         [BZ #13601]
26867         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26868         header is not read in.
26869
26870 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26871
26872         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26873         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26874         directly.  Pass built executable to script as
26875         $(built-program-cmd).
26876         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26877         $testprogram without using LD_LIBRARY_PATH and $ldso.
26878
26879         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26880         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26881         $(rtld-installed-name).
26882         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26883         (rtld_installed_name): Likewise.
26884         (library_path): Likewise.
26885         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26886         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26887         $(run-program-prefix) to tst-tables.sh.
26888         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26889         it to run tst-table-from and tst-table-to.
26890         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26891         Pass it to tst-table.sh.
26892         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26893         $(run-program-prefix) to tst-gettext.sh.
26894         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26895         tst-translit.sh.
26896         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26897         tst-gettext2.sh.
26898         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26899         to run tst-gettext.
26900         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26901         to run tst-gettext2.
26902         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26903         to run tst-translit.
26904         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26905         $(run-program-prefix) to tst-mtrace.sh.
26906         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26907         to run tst-mtrace.
26908         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26909         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26910         $(rtld-installed-name).
26911         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26912         (rtld_installed_name): Likewise.
26913         (run_program_prefix): New variable.  Use it to run wordexp-test.
26914
26915         * Makeconfig (ARCH): Remove all definitions.
26916         (machine): Likewise.
26917         [ARCH]: Remove conditional code.
26918         [!objdir]: Give error.
26919         [!objdir] (objpfx): Remove.
26920         [!objdir] (common-objpfx): Likewise.
26921         [!objdir] (common-objdir): Likewise.
26922         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26923         AC_CONFIG_FILES call.
26924         * configure: Regenerated.
26925
26926         [BZ #13888]
26927         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26928         or TMPDIR.
26929         (testout): Likewise.
26930
26931         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26932         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26933         $(rtld-installed-name).
26934         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26935         (rtld_installed_name): Likwise.
26936         (runit): Remove function.
26937         (run_getconf): New variable,  Use it for running getconf binary.
26938
26939 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26940
26941         [BZ #14716]
26942         * string/test-memmem.c (check_result): New function.
26943         (do_one_test): Use it.
26944         (check1): New function.
26945         (test_main): Use it.
26946
26947 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26948
26949         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26950
26951 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26952
26953         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26954         (_G_LSEEK64): Likewise.
26955         (_G_MMAP64): Likewise.
26956         (_G_FSTAT64): Likewise.
26957         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26958         (_G_LSEEK64): Likewise.
26959         (_G_MMAP64): Likewise.
26960         (_G_FSTAT64): Likewise.
26961         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26962         unconditional.  Call __mmap64 directly.
26963         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26964         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26965         __lseek64 directly.
26966         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26967         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26968         __mmap64 directly.
26969         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26970         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26971         __lseek64 directly.
26972         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26973         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26974         __lseek64 directly.
26975         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26976         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26977         __lseek64 directly.
26978         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26979         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26980         __fxstat64 directly.
26981         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26982         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26983         unconditional.
26984         (freopen64) [!_G_OPEN64]: Remove conditional code.
26985         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26986         unconditional.
26987         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26988         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26989         unconditional.
26990         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26991         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26992         unconditional.
26993         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26994         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26995         unconditional.
26996         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26997         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26998         unconditional.
26999         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27000         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
27001         unconditional.
27002         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
27003         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
27004         unconditional.
27005         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27006
27007 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
27008
27009         [BZ #12140]
27010         * manual/memory.texi (Malloc Tunable Parameters): Add note
27011         about free list pointers overwriting some perturb bytes.
27012         Wording suggested by Roland McGrath.
27013
27014 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
27015
27016         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
27017         (lgamma_test): Likewise.
27018         (tgamma_test): Likewise.
27019
27020 2012-10-16  Florian Weimer  <fweimer@redhat.com>
27021
27022         [BZ #14700]
27023         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
27024         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
27025
27026 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
27027
27028         * NEWS: Mention BZ #14716.
27029         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
27030         when removing AVAILABLE1_USES_J macro.
27031
27032 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
27033
27034         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
27035         (__bswap_64): __uint64_t for unsigned 64-bit int.
27036
27037 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
27038
27039         * include/string.h (memmem): Declare libc hidden alias.
27040         * string/memmem.c (memmem): Define libc hidden alias.
27041         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
27042         __read, __close instead of open, read, close.
27043
27044 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
27045
27046         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
27047         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
27048         global and hidden.
27049         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
27050         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
27051         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
27052         Likewise.
27053         (__rawmemchr_sse2): Likewise.
27054         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
27055         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
27056         (__strchr_sse2): Likewise.
27057         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
27058         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
27059         (__strcasecmp_sse2): Likewise.
27060         (__strncasecmp_sse2): Likewise.
27061         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
27062         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
27063         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
27064         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
27065         (__strrchr_sse2): Likewise.
27066         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
27067         ifunc-impl-list.c.
27068         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27069         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27070         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27071         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27072         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27073         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27074         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27075         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27076         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
27077         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
27078         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
27079         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
27080         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
27081         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27082         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27083         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27084         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27085         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27086         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
27087         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
27088         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
27089         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
27090         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
27091         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
27092         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
27093         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
27094         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27095         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27096         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27097         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27098
27099         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
27100         global and hidden.
27101         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27102         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27103         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27104         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27105         Likewise.
27106         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27107         Likewise.
27108         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27109         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27110         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27111         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27112         ifunc-impl-list.c.
27113         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27114         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27115         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27116         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27117         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27118         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27119         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27120         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27121         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27122         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27123         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27124         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27125         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27126         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27127         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27128         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27129         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27130         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27131         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27132         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27133         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27134         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27135         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27136         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27137         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27138         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27139         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27140         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27141         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27142         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27143         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27144         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27145         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27146         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27147         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27148         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27149         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27150         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27151         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27152         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27153         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27154
27155         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27156         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27157         * include/ifunc-impl-list.h: New file.
27158         * misc/ifunc-impl-list.c: Likewise.
27159         * misc/Makefile (routines): Add ifunc-impl-list.
27160         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27161         * string/test-string.h: Include <ifunc-impl-list.h>.
27162         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27163         TEST_NAME]: New variables.
27164         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27165         are defined.
27166         (test_init): Call __libc_ifunc_impl_list to initialize
27167         func_list if TEST_IFUNC and TEST_NAME are defined.
27168
27169         * string/Makefile (strop-tests): Add bcopy and bzero.
27170         * string/test-bcopy.c: New file.
27171         * string/test-bzero.c: Likewise.
27172         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27173         defined.
27174         * string/test-memset.c: Support bzero test if TEST_BZERO is
27175         defined.
27176         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27177         __libc_memmove.
27178         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27179         __libc_memset.
27180         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27181         of memset.
27182
27183 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27184
27185         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27186         * configure: Regenerated.
27187
27188         * Makeconfig (+link-static-before-libc): Don't include
27189         $(link-static-libc).
27190
27191         * libio/libio.h (_IO_pos_t): Remove.
27192
27193 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27194
27195         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27196         McGrath.
27197
27198 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27199
27200         * crypt/crypt-entry.c: Include fips-private.h.
27201         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27202         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27203         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27204         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27205
27206 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27207
27208         * crypt/crypt-private.h: Include stdbool.h.
27209         (_ufc_setup_salt_r): Return bool.
27210         * crypt/crypt-entry.c: Include errno.h.
27211         (__crypt_r): Return NULL with EINVAL for bad salt.
27212         * crypt/crypt_util.c (bad_for_salt): New.
27213         (_ufc_setup_salt_r): Check that salt is long enough and within
27214         the specified alphabet.
27215         * crypt/badsalttest.c: New file.
27216         * crypt/Makefile (tests): Add it.
27217         ($(objpfx)badsalttest): New.
27218
27219 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27220
27221         * NEWS: Add entry for BZ #14602.
27222
27223 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27224
27225         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27226         type-generic.
27227         * math/libm-test.inc: Update comment listing what functions and
27228         macros are tested.
27229         (isgreater_test): New function.
27230         (isgreaterequal_test): Likewise.
27231         (isless_test): Likewise.
27232         (islessequal_test): Likewise.
27233         (islessgreater_test): Likewise.
27234         (isunordered_test): Likewise.
27235         (main): Call the new functions.
27236
27237 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27238
27239         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27240         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27241         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27242         * sysdeps/i386/configure: Regenerated.
27243         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27244         * sysdeps/mach/configure: Regenerated.
27245         * sysdeps/mach/hurd/configure: Regenerated.
27246         * sysdeps/powerpc/configure: Regenerated.
27247         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27248         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27249         * sysdeps/s390/s390-32/configure: Regenerated.
27250         * sysdeps/s390/s390-64/configure: Regenerated.
27251         * sysdeps/sh/configure: Regenerated.
27252         * sysdeps/sparc/configure: Regenerated.
27253         * sysdeps/unix/sysv/linux/configure: Regenerated.
27254         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27255         * sysdeps/x86_64/configure: Regenerated.
27256
27257         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27258         defined.  Don't check if MAP is NULL.
27259
27260 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27261
27262         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27263         (_G_stat64): Likewise.
27264         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27265         (_G_stat64): Likewise.
27266         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27267         instead of struct _G_stat64.
27268         * libio/fileops.c (mmap_remap_check): Likewise.
27269         (decide_maybe_mmap): Likewise.
27270         (_IO_new_file_seekoff): Likewise.
27271         (_IO_file_stat): Likewise.
27272         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27273         _G_off64_t.
27274         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27275         instead of struct _G_stat64.
27276         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27277
27278 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27279
27280         [BZ #14602]
27281         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27282         Replace with ...
27283         (CHECK_EOL): New macro.
27284         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27285         CHECK_EOL.
27286         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27287         Replace with CHECK_EOL.
27288         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27289         Replace with CHECK_EOL.
27290
27291 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27292
27293         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27294         type-generic.
27295         * math/libm-test.inc: Update comment listing what functions and
27296         macros are tested.
27297         (finite_test): New function.
27298         (isinf_test): Likewise.
27299         (isnan_test): Likewise.
27300         (fpclassify_test): Test subnormal input.
27301         (isfinite_test): Likewise.
27302         (isnormal_test): Likewise.
27303         (main): Call the new functions.
27304
27305 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27306
27307         [BZ #14660]
27308         * Makerules (%.dynsym): Force C locale when running
27309         $(OBJDUMP) --dynamic-syms.
27310
27311 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27312
27313         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27314         <stdint.h>.
27315
27316 2012-10-06  David S. Miller  <davem@davemloft.net>
27317
27318         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27319         upper 32-bits of the length value in %o2 since we use branch-on-register
27320         tests which consider the entire 64-bit register.
27321
27322 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27323
27324         * string/test-strstr.c (check2): Add a test for page boundary.
27325
27326 2012-10-05  David S. Miller  <davem@davemloft.net>
27327
27328         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27329         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27330         file.
27331         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27332         sysdep_routines.
27333         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27334         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27335         and bzero when HWCAP_SPARC_CRYPTO is present.
27336
27337 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27338
27339         [BZ #14602]
27340         * string/test-strstr.c (check2): New function.
27341         (test_main): Call check2.
27342
27343         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27344         and bug-strchr1.
27345         * string/bug-strcasestr1.c (do_test): Moved to ...
27346         * string/test-strcasestr.c (check1): Here.  New function.
27347         (do_one_test): Break out result checking code into ...
27348         (check_result): This.  New function.
27349         (do_one_test): Call check_result.
27350         (test_main): Call check1.
27351         * string/bug-strchr1.c (do_test): Moved to ...
27352         * string/test-strchr.c (check1): Here.  New function.
27353         (do_one_test): Break out result checking code into ...
27354         (check_result): This.  New function.
27355         (do_one_test): Call check_result.
27356         (test_main): Call check1.
27357         * string/bug-strstr1.c (main): Moved to ...
27358         * string/test-strstr.c (check1): Here.  New function.
27359         (do_one_test): Break out result checking code into ...
27360         (check_result): This.  New function.
27361         (do_one_test): Call check_result.
27362         (test_main): Call check1.
27363         * string/bug-strcasestr1.c: Removed.
27364         * string/bug-strchr1.c: Likewise.
27365         * string/bug-strstr1.c: Likewise.
27366
27367         * elf/Makefile (dl-routines): Add hwcaps.
27368         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27369         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27370         (_dl_important_hwcaps): Moved to ...
27371         * elf/dl-hwcaps.c: Here.  New file.
27372         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27373
27374         [BZ #14557]
27375         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27376         if IS_IN_rtld isn't defined.
27377
27378         * elf/dl-support.c (_dl_sysinfo_map): New.
27379         Include "get-dynamic-info.h" and "setup-vdso.h".
27380         (_dl_non_dynamic_init): Call setup_vdso.
27381         * elf/dynamic-link.h: Don't include <assert.h>.
27382         (elf_get_dynamic_info): Moved to ...
27383         * elf/get-dynamic-info.h: Here.  New file.
27384         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27385         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27386         * elf/setup-vdso.h: Here.  New file.
27387         * elf/rtld.c: Include "setup-vdso.h".
27388         (dl_main): Call setup_vdso.
27389
27390 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27391
27392         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27393         creal in comment listing functions tested.  List finite, isinf,
27394         isnan, isless, islessequal, isgreater, isgreaterequal,
27395         islessgreater, isunordered, lgamma_r and pow10 as functions and
27396         macros not tested.  Mention which functions not tested are aliases
27397         for other functions.  Fix typo.  Note that signs of NaNs are not
27398         tested.
27399
27400         * scripts/config.guess: Update from config.git.
27401         * scripts/config.sub: Likewise.
27402
27403 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27404
27405         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27406         * misc/madvise.c (madvise): Renamed to __madvise.
27407         Make madvise a weak alias.
27408         * include/sys/mman.h: Declare __madvise.
27409         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27410         * sysdeps/unix/syscalls.list
27411         (madvise): Make __madvise the strong name, and madvise a weak alias.
27412         * sysdeps/unix/sysv/linux/syscalls.list
27413         (madvise, mmap): Remove redundant entries.
27414         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27415         * malloc/malloc.c (mtrim): Likewise.
27416         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27417
27418 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27419
27420         * sysdeps/mach/hurd/dl-cache.c: File removed.
27421         * config.h.in (USE_LDCONFIG): New #undef.
27422         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27423         * configure: Regenerated.
27424         * elf/Makefile (dl-routines): Add dl-cache only under
27425         [$(use-ldconfig) = yes].
27426         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27427         cache on [USE_LDCONFIG].
27428         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27429         [USE_LDCONFIG].
27430         * elf/rtld.c (dl_main): Likewise.
27431
27432 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27433
27434         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27435         _SC_LEVEL4_CACHE_LINESIZE.
27436
27437 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27438
27439         * sysdeps/unix/bsd/confstr.h: File removed.
27440
27441 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27442
27443         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
27444         sys/sdt-config.h.
27445
27446 2012-10-02  Roland McGrath  <roland@hack.frob.com>
27447
27448         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
27449         Make 'mapoff' field ElfW(Off) rather than off_t.
27450
27451 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
27452
27453         * nscd/Makefile: Remove nscd-cflags and all its users.
27454         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
27455         (CFLAGS-nonlib): Add compiler flags for nscd modules.
27456
27457         [BZ #10631]
27458         * malloc.c (malloc_printerr): Clarify error message.
27459
27460 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
27461
27462         [BZ #14648]
27463         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27464         Set bit_FMA_Usable if FMA is supported.
27465         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
27466         macro.
27467         (bit_FMA4_Usable): Updated.
27468         (index_FMA_Usable): New macro.
27469         (CPUID_FMA): Likewise
27470         (HAS_FMA): Defined with bit_FMA_Usable.
27471
27472 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27473
27474         * bits/types.h (__swblk_t): Type removed.
27475         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
27476         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
27477         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27478         (__SWBLK_T_TYPE): Likewise.
27479         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27480         (__SWBLK_T_TYPE): Likewise.
27481         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27482         (__SWBLK_T_TYPE): Likewise.
27483         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27484         (__SWBLK_T_TYPE): Likewise.
27485
27486 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27487             Honza Horak <hhorak@redhat.com>
27488
27489         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27490         (xdr_mapname): Use YPMAXMAP as maxsize.
27491         (xdr_peername): Use YPMAXPEER as maxsize.
27492         (xdr_keydat): Use YPAXRECORD as maxsize.
27493         (xdr_valdat): Use YPMAXRECORD as maxsize.
27494
27495 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27496
27497         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27498
27499         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27500         * csu/init-first.c: ... here.
27501         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27502         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27503         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27504         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27505         * sysdeps/i386/init-first.c: File removed.
27506         * sysdeps/sh/init-first.c: File removed.
27507
27508 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27509
27510         [BZ #14645]
27511         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27512         if x * y might underflow to zero and z is zero.
27513         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27514         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27515         * math/libm-test.inc (min_subnorm_value): New variable.
27516         (fma_test): Add more tests.
27517         (fma_test_towardzero): Likewise.
27518         (fma_test_downward): Likewise
27519         (fma_test_upward): Likewise.
27520         (initialize): Set min_subnorm_value.
27521
27522 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27523
27524         [BZ #14638]
27525         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27526         0 + 0.
27527         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27528         mode for addition resulting in exact zero.
27529         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27530         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27531         exact 0 + 0.
27532         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27533         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27534         * math/libm-test.inc (fma_test): Add more tests.
27535         (fma_test_towardzero): New function.
27536         (fma_test_downward): Likewise.
27537         (fma_test_upward): Likewise.
27538         (main): Call the new functions.
27539
27540 2012-09-28  David S. Miller  <davem@davemloft.net>
27541
27542         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27543
27544 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27545
27546         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27547         instead of SIGALRM.
27548
27549         * sysdeps/gnu/_G_config.h: Moved to ...
27550         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27551         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27552         * sysdeps/generic/_G_config.h: ... here.
27553
27554         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27555
27556         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27557
27558         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27559         Conditionalize target on [libnss_test1.so-version].
27560
27561         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27562
27563         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27564         (elfobjdir): Move out of conditionals.
27565
27566         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27567         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27568         (__nss_lookup_function): Conditionalize label remove_from_tree on
27569         [!DO_STATIC_NSS || SHARED], matching its only use.
27570
27571 2012-09-28  David S. Miller  <davem@davemloft.net>
27572
27573         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27574         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27575         file.
27576         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27577         sysdep_routines.
27578         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27579         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27580         when HWCAP_SPARC_CRYPTO is present.
27581
27582 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27583
27584         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27585
27586 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27587
27588         [BZ #6530]
27589         * stdio-common/vfprintf.c (process_string_arg): Revert
27590         2000-07-22 change.
27591
27592 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27593
27594         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27595         for testcase.
27596         * stdio-common/tst-sprintf.c: Include <locale.h>
27597         (main): Test sprintf's handling of incomplete multibyte
27598         characters.
27599
27600 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27601
27602         * elf/dl-runtime.c (VERSYMIDX): Removed.
27603         * elf/dl-version.c (VERSYMIDX): Likewise.
27604         * elf/do-rel.h (VERSYMIDX): Likewise.
27605         (VALIDX): Likewise.
27606         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27607         * elf/rtld.c (VALIDX): Likewise.
27608         (ADDRIDX): Likewise.
27609         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27610         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27611         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27612         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27613         (VALIDX): Likewise.
27614         (ADDRIDX): Likewise.
27615
27616 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27617
27618         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27619
27620 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27621
27622         [BZ #11438]
27623         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27624         to global scope.
27625         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27626         addresses are in the same scope as 192.0.2/24.
27627         * posix/gai.conf: Document new scope table defaults.
27628
27629 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27630
27631         [BZ #5298]
27632         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27633         for ftell.  Compute offsets from write pointers instead.
27634         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27635
27636 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27637
27638         [BZ #14543]
27639         * libio/Makefile (tests): New test case tst-fseek.
27640         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27641         combination works in wide mode.
27642         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27643         state when the external buffer state changes.
27644
27645 2012-09-27  David S. Miller  <davem@davemloft.net>
27646
27647         [BZ #14376]
27648         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27649         pass reloc->r_addend in as the 'high' argument to
27650         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27651
27652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27653
27654 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27655
27656         * rt/tst-aio2.c: Include <pthread.h>.
27657         * rt/tst-aio3.c: Likewise.
27658
27659 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27660
27661         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27662
27663 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27664
27665         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27666         contents on [SHARED].
27667
27668 2012-09-26  Marek Polacek  <polacek@redhat.com>
27669
27670         [BZ #14530]
27671         [BZ #13741]
27672         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27673         for C++ and GCC <4.3 as well as for non GCC compilers.
27674
27675 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27676
27677         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27678
27679 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27680
27681         * Makefile.in (all, install): Declare with .PHONY.
27682         Reported by Michael Hope <michael.hope@linaro.org>.
27683
27684 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27685
27686         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27687         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27688         system header.
27689         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27690         Likewise.
27691         (sydep_routines): Add the new and the internal functions.
27692         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27693         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27695         (GLIBC_2.17): Add the new function.
27696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27697         (GLIBC_2.17): Likewise.
27698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27699         (GLIBC_2.17): Likewise.
27700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27701         (GLIBC_2.17): Likewise.
27702         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27703
27704 2012-09-25  Alan Modra  <amodra@gmail.com>
27705
27706         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27707         Add release barrier before setting once_control to say
27708         initialisation is done.  Add hints on lwarx.  Use macro in
27709         place of isync.
27710         (clear_once_control): Add release barrier.
27711
27712 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27713
27714         [BZ #13629]
27715         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27716         specially.
27717         * math/s_clog10.c (__clog10): Likewise.
27718         * math/s_clog10f.c (__clog10f): Likewise.
27719         * math/s_clog10l.c (__clog10l): Likewise.
27720         * math/s_clogf.c (__clogf): Likewise.
27721         * math/s_clogl.c (__clogl): Likewise.
27722         * math/Makefile (libm-calls): Add x2y2m1.
27723         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27724         (__x2y2m1): Likewise.
27725         (__x2y2m1l): Likewise.
27726         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27727         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27728         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27729         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27730         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27731         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27732         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27733         * sysdeps/i386/fpu/libm-test-ulps: Update.
27734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27735
27736         [BZ #14621]
27737         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27738         int as type of variable DEPTH.
27739         (glob): Use size_t instead of int as type of variables NEWCOUNT
27740         and OLD_PATHC.
27741
27742 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27743
27744         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27745         Add s_sincosf-sse2.
27746         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27747         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27748         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27749         macros for using routine as __sincosf_ia32.
27750         Use macro for function declaration and weak_alias.
27751         * sysdeps/i386/fpu/libm-test-ulps: Update.
27752
27753         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27754         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27755
27756         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27757         subnormal argument.
27758         * math/s_cexpf.c (__cexpf): Likewise.
27759         * math/s_csinf.c (__csinf): Likewise.
27760         * math/s_csinhf.c (__csinhf): Likewise.
27761         * math/s_ctanf.c (__ctanf): Likewise.
27762         * math/s_ctanhf.c (__ctanhf): Likewise.
27763         * math/s_ccosh.c (__ccoshf): Likewise.
27764         * math/s_cexp.c (__cexpl): Likewise.
27765         * math/s_csin.c (__csin): Likewise.
27766         * math/s_csinh.c (__csinh): Likewise.
27767         * math/s_ctan.c (__ctan): Likewise.
27768         * math/s_ctanh.c (ctanh): Likewise.
27769         * math/s_ccoshl.c (__ccoshl): Likewise.
27770         * math/s_cexpl.c (__cexpl): Likewise.
27771         * math/s_csinl.c (__csinl): Likewise.
27772         * math/s_csinhl.c (__csinhl): Likewise.
27773         * math/s_ctanl.c (__ctanl): Likewise.
27774         * math/s_ctanhl.c (__ctanhl): Likewise.
27775
27776 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27777
27778         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27779         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27780         (_IO_off_t): Define to __off_t, not _G_off_t.
27781         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27782         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27783         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27784         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27785         type of __dummy and __dummy2 fields.
27786         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27787         (_G_ssize_t): Likewise.
27788         (_G_off_t): Likewise.
27789         (_G_pid_t): Likewise.
27790         (_G_uid_t): Likewise.
27791         (_G_wchar_t): Likewise.
27792         (_G_wint_t): Likewise.
27793         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27794         (_G_ssize_t): Likewise.
27795         (_G_off_t): Likewise.
27796         (_G_pid_t): Likewise.
27797         (_G_uid_t): Likewise.
27798         (_G_wchar_t): Likewise.
27799         (_G_wint_t): Likewise.
27800         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27801         (_G_ssize_t): Likewise.
27802         (_G_off_t): Likewise.
27803         (_G_pid_t): Likewise.
27804         (_G_uid_t): Likewise.
27805         (_G_wchar_t): Likewise.
27806         (_G_wint_t): Likewise.
27807
27808 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27809
27810         * malloc/arena.c: Include malloc-sysdep.h.
27811         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27812         is sufficient to shrink the heap or an unmap is needed.
27813         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27814         new function check_may_shrink_heap.
27815         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27816         new function check_may_shrink_heap.
27817
27818 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27819
27820         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27821         comments.
27822
27823 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27824
27825         * catgets/test-gencat.sh: Add "set -e".
27826         * elf/tst-pathopt.sh: Likewise.
27827         * grp/tst_fgetgrent.sh: Likewise.
27828         * iconvdata/run-iconv-test.sh: Likewise.
27829         * intl/tst-gettext.sh: Likewise.
27830         * intl/tst-gettext2.sh: Likewise.
27831         * intl/tst-gettext4.sh: Likewise.
27832         * intl/tst-gettext6.sh: Likewise.
27833         * intl/tst-translit.sh: Likewise.
27834         * io/ftwtest-sh: Likewise.
27835         * libio/test-freopen.sh: Likewise.
27836         * malloc/tst-mtrace.sh: Likewise.
27837         * posix/globtest.sh: Likewise.
27838         * posix/tst-getconf.sh: Likewise.
27839         * posix/wordexp-tst.sh: Likewise.
27840         * stdio-common/tst-printf.sh: Likewise.
27841         * stdio-common/tst-unbputc.sh: Likewise.
27842         * stdlib/tst-fmtmsg.sh: Likewise.
27843         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27844         * catgets/Makefile: Do not specify -e option when running
27845         testsuite shell scripts.
27846         * elf/Makefile: Likewise.
27847         * grp/Makefile: Likewise.
27848         * iconvdata/Makefile: Likewise.
27849         * intl/Makefile: Likewise.
27850         * io/Makefile: Likewise.
27851         * libio/Makefile: Likewise.
27852         * malloc/Makefile: Likewise.
27853         * posix/Makefile: Likewise.
27854         * stdio-common/Makefile: Likewise.
27855         * stdlib/Makefile: Likewise.
27856         * sysdeps/x86_64/Makefile: Likewise.
27857
27858         * io/ftwtest-sh: Add copyright header.
27859         * posix/globtest.sh: Likewise.
27860         * posix/tst-getconf.sh: Likewise.
27861         * posix/wordexp-tst.sh: Likewise.
27862         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27863
27864 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27865
27866         [BZ #13679]
27867         * Makeconfig (+link): Defined as $(+link-static) if
27868         $(build-shared) isn't yes.
27869         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27870         isn't yes.
27871         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27872
27873         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27874
27875         [BZ #14562]
27876         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27877         new chunk size with MALLOC_ALIGN_MASK.
27878
27879 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27880
27881         [BZ #5044]
27882         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27883         <rounding-mode.h>.
27884         (__printf_fphex): Determine rounding using get_rounding_mode and
27885         round_away.
27886         * stdio-common/tst-printf-round.c (struct hex_test): New
27887         structure.
27888         (hex_tests): New variable.
27889         (test_hex_in_one_mode): New function.
27890         (do_test): Also run tests for hex float output.
27891
27892 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27893
27894         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27895         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27896         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27897         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27898         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27899         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27900         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27901         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27902
27903 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27904
27905         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27906         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27907         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27908         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27909
27910 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27911
27912         [BZ #14579]
27913         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27914         mode only.
27915         * elf/tst-rtld-load-self.sh: New test.
27916         * elf/Makefile: Run it.
27917
27918 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27919
27920         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27921         (tst-writev-ENV): Remove.
27922         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27923
27924 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27925
27926         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27927
27928 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27929
27930         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27931         unconditional.
27932         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27933         Likewise.
27934         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27935         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27936         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27937         Likewise.
27938
27939 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27940
27941         [BZ #14587]
27942         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27943         * config.make.in (have-cpp-asm-debuginfo): Removed.
27944         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27945         * configure: Regenerated.
27946
27947 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27948
27949         [BZ #5044]
27950         * stdio-common/printf_fp.c: Include <stdbool.h> and
27951         <rounding-mode.h>.
27952         (___printf_fp): Determine rounding using get_rounding_mode and
27953         round_away.
27954         * stdio-common/tst-printf-round.c: New file.
27955         * stdio-common/Makefile (tests): Add tst-printf-round.
27956         (link-libm): New variable.
27957         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27958
27959 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27960
27961         [BZ #14576]
27962         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27963         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27964         Likewise.
27965         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27966         Likewise.
27967
27968 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27969
27970         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27971         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27972         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27973         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27974
27975 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27976
27977         [BZ #14518]
27978         * include/rounding-mode.h: New file.
27979         * sysdeps/generic/get-rounding-mode.h: Likewise.
27980         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27981         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27982         (MAX_VALUE): New macro.
27983         (MIN_VALUE): Likewise.
27984         (overflow_value): New function.
27985         (underflow_value): Likewise.
27986         (round_and_return): Use overflow_value and underflow_value to
27987         determine return values in overflow and underflow cases.  Use
27988         round_away to determine rounding depending on rounding mode.
27989         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27990         determine return values in overflow and underflow cases.
27991         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27992         (struct test_results): New structure.
27993         (struct test): Use struct test_results to store expected results
27994         for all rounding modes.
27995         (TEST): Include expected results for all rounding modes.
27996         (test_in_one_mode): New function.
27997         (do_test): Use test_in_one_mode to compute and check results.
27998         Check results for all rounding modes.
27999         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
28000         $(link-libm).
28001
28002 2012-12-09  Allan McRae  <allan@archlinux.org>
28003
28004         * sysdeps/i386/fpu/libm-test-ulps: Update
28005
28006 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
28007
28008         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
28009         (_G_int32_t): Likewise.
28010         (_G_uint16_t): Likewise.
28011         (_G_uint32_t): Likewise.
28012         (_G_HAVE_BOOL): Likewise.
28013         (_G_HAVE_ATEXIT): Likewise.
28014         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28015         (_G_HAVE_IO_FILE_OPEN): Likewise.
28016         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
28017         (_G_int32_t): Likewise.
28018         (_G_uint16_t): Likewise.
28019         (_G_uint32_t): Likewise.
28020         (_G_HAVE_BOOL): Likewise.
28021         (_G_HAVE_ATEXIT): Likewise.
28022         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28023         (_G_HAVE_IO_FILE_OPEN): Likewise.
28024         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
28025         (_G_int32_t): Likewise.
28026         (_G_uint16_t): Likewise.
28027         (_G_uint32_t): Likewise.
28028         (_G_HAVE_BOOL): Likewise.
28029         (_G_HAVE_ATEXIT): Likewise.
28030         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28031         (_G_HAVE_IO_FILE_OPEN): Likewise.
28032
28033 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
28034
28035         * csu/libc-tls.c: Update copyright years.
28036
28037 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
28038
28039         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
28040         [!_G_USING_THUNKS]: Remove conditional code.
28041         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
28042         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
28043
28044         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
28045         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
28046         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28047         (_G_VTABLE_LABEL_PREFIX): Likewise.
28048         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28049         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28050         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28051         (_G_VTABLE_LABEL_PREFIX): Likewise.
28052         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28053         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28054         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28055         (_G_VTABLE_LABEL_PREFIX): Likewise.
28056         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28057
28058 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
28059
28060         * libio/Makefile: Include ../Makeconfig before tests.
28061         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
28062         only if $(build-shared) is yes.
28063
28064         * iconv/gconv_db.c: Update copyright years.
28065
28066 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28067
28068         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
28069         unwind info if defined PIC. Fix special cases description.
28070         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
28071
28072         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
28073         DP_HI_MASK entry.
28074         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
28075
28076 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
28077
28078         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
28079
28080         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
28081         is NULL.
28082
28083         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
28084         (LDLIBS-tst-chk4): This.
28085         (LDFLAGS-tst-chk5): Renamed to ...
28086         (LDLIBS-tst-chk5): This.
28087         (LDFLAGS-tst-chk6): Renamed to ...
28088         (LDLIBS-tst-chk6): This.
28089         (LDFLAGS-tst-lfschk4): Renamed to ...
28090         (LDLIBS-tst-lfschk4): This.
28091         (LDFLAGS-tst-lfschk5): Renamed to ...
28092         (LDLIBS-tst-lfschk5): This.
28093         (LDFLAGS-tst-lfschk6): Renamed to ...
28094         (LDLIBS-tst-lfschk6): This.
28095
28096         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
28097         on $(common-objpfx)soversions.mk.
28098
28099 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
28100
28101         [BZ #10014]
28102         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28103         example host name.
28104
28105 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28106
28107         * malloc/arena.c (arena_get_retry): New function that gets
28108         another arena for the caller to try its request on.
28109         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28110         current arena cannot fulfill the request.
28111         (__libc_memalign): Likewise.
28112         (__libc_memalign): Likewise.
28113         (__libc_pvalloc): Likewise.
28114         (__libc_calloc): Likewise.
28115
28116 2012-09-05  John Tobey  <john.tobey@gmail.com>
28117
28118         [BZ #13542]
28119         * manual/arith.texi (Operations on Complex): Fix description
28120         of carg branch cut.
28121
28122 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28123
28124         [BZ #10014]
28125         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28126         host name.
28127
28128         [BZ #10038]
28129         * manual/memory.texi (Memory): Make order of menu items match
28130         order of sections.
28131
28132 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28133
28134         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28135         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28136         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28137
28138 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28139
28140         * csu/libc-tls.c (static_dtv): Renamed to ...
28141         (_dl_static_dtv): This.  Make it global.
28142         (_dl_initial_dtv): Removed.
28143         (__libc_setup_tls): Updated.
28144         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28145         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28146         DL_INITIAL_DTV.
28147
28148 2012-09-06  Petr Machata  <pmachata@redhat.com>
28149
28150         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28151         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28152         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28153         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28154
28155 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28156
28157         [BZ #14545]
28158         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28159         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28160         freeing dtv[-1].
28161
28162 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28163
28164         [BZ #14544]
28165         * Makeconfig (link-static-before-libc): Replace $(+prector)
28166         with $(+prectorT).
28167         (link-static-after-libc): Replace $(+postctor) with
28168         $(+postctorT).
28169         (link-bounded): Replace $(+prector)/$(+postctor) with
28170         $(+prectorT)/$(+postctorT).
28171         (+prectorT): New macro.
28172         (+postctorT): Likewise.
28173
28174 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28175
28176         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28177         (round_str): Handle values above the maximum for IBM long double
28178         as inexact.
28179         * stdlib/tst-strtod-round.c (tests): Regenerated.
28180
28181 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28182
28183         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28184         assembler flag.
28185         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28186         zarch_nohighgprs around the zarch optimized routines.
28187         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28188         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28189         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28190         for zarch.
28191
28192 2012-09-05  David S. Miller  <davem@davemloft.net>
28193
28194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28195
28196         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28197         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28198         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28199         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28200         entries.
28201
28202 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28203
28204         * malloc/arena.c: Fold copyright years.
28205         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28206
28207 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28208
28209         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28210
28211 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28212
28213         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28214
28215 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28216
28217         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28218         change internal state upon failure.
28219
28220 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28221
28222         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28223         * malloc/memusage.c (mmap): Likewise.
28224         (mmap64, mremap): Likewise.  Adjust name in comment.
28225
28226 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28227
28228         * libio/fileops.c: Fix typos in comments.
28229         * libio/oldfileops.c: Likewise.
28230         * libio/wfileops.c: Likewise.
28231
28232 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28233
28234         [BZ #1349]
28235         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28236         (tst-malloc-usable-ENV): Set environment for test case.
28237         * malloc/hooks.c (malloc_check_get_size): New function to get
28238         requested size.
28239         * malloc/malloc.c (musable): Use malloc_check_get_size.
28240         * malloc/tst-malloc-usable.c: New test case.
28241
28242 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28243
28244         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28245
28246 2012-09-05  Allan McRae  <allan@archlinux.org>
28247
28248         [BZ #13966]
28249         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28250         determine header location.
28251         * configure: Regenerated.
28252
28253 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28254
28255         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28256         float format.
28257         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28258         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28259         format.
28260         (test): Regenerate.
28261
28262 2012-09-04  David S. Miller  <davem@davemloft.net>
28263
28264         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28265         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28266         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28267
28268 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28269
28270         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28271         failures.
28272
28273         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28274
28275 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28276
28277         [BZ #9914]
28278         * libio/iogetdelim.c: Include <limits.h>.
28279         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28280         + len + 1 would overflow.
28281
28282 2012-09-03  Andreas Jaeger  <aj@suse.de>
28283
28284         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28285         * sysdeps/i386/fpu/libm-test-ulps: Update.
28286
28287 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28288
28289         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28290         Add s_sinf-sse2, s_conf-sse2.
28291
28292         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28293         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28294         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28295         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28296
28297         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28298         for using routine as __sinf_ia32.
28299         Use macro for function declaration and weak_alias.
28300         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28301         for using routine as __cosf_ia32.
28302         Use macro for function declaration and weak_alias.
28303
28304         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28305         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28306
28307         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28308         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28309         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28310
28311         * math/libm-test.inc (cos_test): Add more test cases.
28312         (sin_test): Likewise.
28313         (sincos_test): Likewise.
28314
28315 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28316
28317         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28318         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28319         hidden.
28320         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28321
28322 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28323
28324         [BZ #14538]
28325         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28326         first element of the GOT.
28327         (elf_machine_load_address): Return the difference between
28328         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28329
28330 2012-09-01  Allan McRae  <allan@archlinux.org>
28331
28332         [BZ #13412]
28333         * configure.in (AWK): Require gawk version 3.0 or later.
28334         * configure: Regenerated.
28335
28336 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28337
28338         * sysdeps/unix/sysv/linux/kernel-features.h
28339         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28340         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28341         [__NR_clock_getres]: Make code unconditional.
28342         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28343         (clock_getcpuclockid): Remove code left unreachable by removal of
28344         conditionals.
28345         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28346         code unconditional.
28347         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28348         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28349         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28350         Make code unconditional.
28351         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28352         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28353         * sysdeps/unix/sysv/linux/clock_settime.c
28354         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28355         conditional code.
28356         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28357         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28358
28359 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28360
28361         [BZ #14476]
28362         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28363         scripts/test-installation.pl.
28364
28365         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28366         and $ld_so_version if it is set.
28367
28368 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28369
28370         [BZ #14516]
28371         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28372         failure if reading from procfs failed.
28373         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28374
28375 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28376
28377         * sysdeps/unix/sysv/linux/kernel-features.h
28378         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28379         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28380         Remove conditional code.
28381         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28382         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28383         Remove conditional code.
28384         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28385         * sysdeps/unix/sysv/linux/i386/fxstat.c
28386         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28387         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28388         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28389         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28390         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28391         * sysdeps/unix/sysv/linux/i386/lxstat.c
28392         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28393         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28394         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28395         Remove conditional code.
28396         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28397         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28398         Remove conditional code.
28399         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28400         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28401         <kernel-features.h>.
28402         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28403         Remove.
28404         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28405         Remove conditional code.
28406         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28407         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28408         Remove conditional.
28409
28410 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28411
28412         [BZ #5400]
28413         * NEWS: Add fixed bug number.
28414
28415 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28416
28417         [BZ #14519]
28418         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28419         underflowing exponent in case of negative sign.
28420         * stdlib/tst-strtod-round-data: Add more tests.
28421         * stdlib/tst-strtod-round.c (tests): Regenerated.
28422
28423         [BZ #3479]
28424         * stdlib/strtod_l.c (NDIG): Remove.
28425         (HEXNDIG): Likewise.
28426         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28427         smallest representable value.
28428         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28429         lie within an exact representation of 1/2 ulp of the result.
28430         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28431         unconditionally.
28432         (TENS_P9_IDX): Define unconditionally.
28433         (TENS_P9_SIZE): Likewise.
28434         (TENS_P10_IDX): Likewise.
28435         (TENS_P10_SIZE): Likewise.
28436         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28437         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28438         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28439         entries for 10^2^13 and 10^2^14.
28440         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28441         (TENS_P13_IDX): Define.
28442         (TENS_P13_SIZE): Likewise.
28443         (TENS_P14_IDX): Likewise.
28444         (TENS_P14_SIZE): Likewise.
28445         (_fpioconst_pow10): Change array size to
28446         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
28447         unconditional.
28448         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
28449         1024]: Add entries for 10^2^13 and 10^2^14.
28450         [LAST_POW10 > _LAST_POW10]: Remove #error.
28451         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
28452         (_fpioconst_pow10): Change array size to
28453         FPIOCONST_POW10_ARRAY_SIZE.
28454         * stdlib/gen-fpioconst.c: New file.
28455         * stdlib/gen-tst-strtod-round.c: Likewise.
28456         * stdlib/tst-strtod-round-data: Likewise.
28457         * stdlib/tst-strtod-round.c: Likewise.
28458         * stdlib/Makefile (tests): Add tst-strtod-round.
28459
28460         [BZ #14459]
28461         * stdlib/strtod_l.c: Include <stdint.h>.
28462         (NDEBUG): Do not define.
28463         (round_and_return): Change EXPONENT parameter to type intmax_t.
28464         Rearrange calculations to avoid internal overflow possibilities.
28465         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
28466         Rearrange calculations to avoid internal overflow possibilities.
28467         Assert that number fits inside MPNSIZE limbs.
28468         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
28469         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
28470         calculations and add assertions to avoid internal overflow
28471         possibilities.  Add casts to avoid signed/unsigned operations.
28472         * stdlib/tst-strtod-overflow.c: New file.
28473         * stdlib/Makefile (tests): Add tst-strtod-overflow.
28474
28475 2012-08-25  Marek Polacek  <polacek@redhat.com>
28476
28477         * time/time.h: Fix some typos in comments.
28478
28479 2012-08-23  Roland McGrath  <roland@hack.frob.com>
28480
28481         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
28482         * posix/tst-rfc3484-2.c: Likewise.
28483         * posix/tst-rfc3484-3.c: Likewise.
28484
28485 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28486
28487         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28488         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28489
28490 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28491
28492         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28493         #include of fxstatat64.c.
28494
28495 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28496
28497         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28498         * shadow/getspent_r.c: Likewise.
28499         * shadow/getspnam.c: Likewise.
28500         * shadow/getspnam_r.c: Likewise.
28501         * gshadow/getsgent.c: Likewise.
28502         * gshadow/getsgent_r.c: Likewise.
28503         * gshadow/getsgnam.c: Likewise.
28504         * gshadow/getsgnam_r.c: Likewise.
28505         * inet/getnetbyad.c: Likewise.
28506         * inet/getnetbyad_r.c: Likewise.
28507         * inet/getnetbynm.c: Likewise.
28508         * inet/getnetbynm_r.c: Likewise.
28509         * inet/getnetent.c: Likewise.
28510         * inet/getnetent_r.c: Likewise.
28511         * inet/getproto.c: Likewise.
28512         * inet/getproto_r.c: Likewise.
28513         * inet/getprtent.c: Likewise.
28514         * inet/getprtent_r.c: Likewise.
28515         * inet/getprtname.c: Likewise.
28516         * inet/getprtname_r.c: Likewise.
28517         * inet/getrpcbyname.c: Likewise.
28518         * inet/getrpcbyname_r.c: Likewise.
28519         * inet/getrpcbynumber.c: Likewise.
28520         * inet/getrpcbynumber_r.c: Likewise.
28521         * inet/getrpcent.c: Likewise.
28522         * inet/getrpcent_r.c: Likewise.
28523         * inet/getaliasent.c: Likewise.
28524         * inet/getaliasent_r.c: Likewise.
28525         * inet/getaliasname.c: Likewise.
28526         * inet/getaliasname_r.c: Likewise.
28527         * nscd/getgrgid_r.c: Likewise.
28528         * nscd/getgrnam_r.c: Likewise.
28529         * nscd/gethstbyad_r.c: Likewise.
28530         * nscd/gethstbynm3_r.c: Likewise.
28531         * nscd/getpwnam_r.c: Likewise.
28532         * nscd/getpwuid_r.c: Likewise.
28533         * nscd/getsrvbynm_r.c: Likewise.
28534         * nscd/getsrvbypt_r.c: Likewise.
28535         * nscd/gai.c: Likewise.
28536
28537         * configure.in (build_nscd): New substituted variable, set
28538         by --disable-build-nscd and defaults to $use_nscd.
28539         * configure: Regenerated.
28540         * config.make.in (build-nscd): New substituted variable.
28541         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28542         Change conditional to require [$(build-nscd) = yes] as well.
28543         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28544
28545         [BZ# 13696]
28546         * configure.in (use_nscd): New substituted variable, set by
28547         --disable-nscd.  If enabled, define USE_NSCD.
28548         * configure: Regenerated.
28549         * config.h.in: Add USE_NSCD.
28550         * config.make.in (use-nscd): New substituted variable.
28551         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28552         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28553         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28554         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28555         (CFLAGS-getgrnam_r.c): Likewise.
28556         (CFLAGS-initgroups.c): Likewise.
28557         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28558         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28559         Variables removed.
28560         * inet/getnetgrent_r.c
28561         (nscd_setnetgrent): New function, broken out of ...
28562         (setnetgrent): ... here.  Call it.
28563         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28564         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28565         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28566         * nscd/Makefile (routines, aux): Move definitions after include of
28567         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28568         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28569         Conditionalize on [USE_NSCD].
28570         (is_nscd, nscd_init_cb): Likewise.
28571         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28572         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28573         * nss/nss_db/db-init.c: Likewise.
28574         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28575         [USE_NSCD].
28576         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28577         (make_request): Use it.
28578         (cache_valid_p): New function.
28579         (__check_pf): Use it.
28580         * NEWS: Add item for --disable-nscd.
28581
28582 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28583
28584         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28585         to support sed >= 4.2.1-20-ga9bf076.
28586         * configure: Regenerated.
28587
28588 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28589
28590         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28591         Conditionalize whole body on [IREL].
28592
28593 2012-08-22  Jeff Law <law@redhat.com>
28594
28595         [BZ #14505]
28596         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28597         if the family is PF_UNSPEC.
28598
28599 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28600
28601         * Makerules (lib-version): Rename from V.
28602         (install-lib-nosubdir): Change V to lib-version.
28603
28604 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28605
28606         [BZ #14252]
28607         * powerpc32/power6/wcschr.c: New file.
28608         * powerpc32/power6/wcscpy.c: New file.
28609         * powerpc32/power6/wcsrchr.c: New file.
28610         * powerpc64/power6/wcschr.c: New file.
28611         * powerpc64/power6/wcscpy.c: New file.
28612         * powerpc64/power6/wcsrchr.c: New file.
28613
28614 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28615
28616         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28617         (two_way_short_needle): Use it.
28618         * string/strstr.c (AVAILABLE1_USES_J): Define.
28619         * string/strcasestr.c: Likewise.
28620
28621         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28622         array references.
28623         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28624
28625         [BZ #11607]
28626         * NEWS: Add an entry.
28627         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28628         define their defaults.
28629         (two_way_short_needle): Detect end-of-string on-the-fly.
28630         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28631         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28632         * string/bug-strcasestr1.c: New test.
28633         * string/Makefile: Run it.
28634
28635 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28636
28637         [BZ #11607]
28638         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28639         the first character.
28640
28641 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28642
28643         * csu/elf-init.c (__libc_csu_irel): Function removed.
28644         * csu/libc-start.c (apply_irel): New function.
28645         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28646
28647 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28648
28649         * sysdeps/unix/sysv/linux/kernel-features.h
28650         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28651         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28652         <kernel-features.h>.
28653         [__NR_fadvise64_64]: Make code unconditional.
28654         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28655         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28656         !__NR_fadvise64_64)]: Likewise.
28657         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28658         !__NR_fadvise64_64))]: Likewise.
28659         [__NR_fadvise64]: Make code unconditional.
28660         [!__NR_fadvise64]: Remove conditional code.
28661         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28662         <kernel-features.h>.
28663         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28664         unconditional.
28665         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28666         conditional code.
28667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28668         not include <kernel-features.h>.
28669         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28670         unconditional.
28671         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28672         conditional code.
28673         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28674         include <kernel-features.h>.
28675         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28676         unconditional.
28677         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28678         conditional code.
28679
28680 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28681
28682         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28683         slight instruction rearrangements per scrollpipe analysis.
28684         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28685
28686 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28687
28688         * manual/syslog.texi (syslog; vsyslog, closelog):
28689         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28690         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28691
28692         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28693         DSOCAPS to match condition on defining it.
28694
28695 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28696
28697         * sysdeps/unix/sysv/linux/kernel-features.h
28698         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28700         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28701         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28703         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28704         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28706         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28707         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28708
28709         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28710         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28711
28712         * sysdeps/unix/sysv/linux/kernel-features.h
28713         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28714         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28715         unconditional.
28716         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28717         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28718         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28719         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28720         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28721         Make code unconditional.
28722         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28723         (__mmap64) [!__NR_mmap2]: Likewise.
28724         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28725         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28726         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28727         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28728         [__NR_mmap2]: Make code unconditional.
28729         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28730         (__mmap64) [!__NR_mmap2]: Likewise.
28731
28732 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28733
28734         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28735
28736 2012-08-18  Andreas Jaeger  <aj@suse.de>
28737
28738         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28739
28740 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28741
28742         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28743         * include/unistd.h (__have_sock_cloexec): Likewise.
28744         (__have_pipe2): Likewise.
28745         (__have_dup3): Likewise.
28746
28747 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28748
28749         [BZ #9685]
28750         * include/unistd.h (__have_pipe2): Change define into an extern int.
28751         (__have_dup3): Likewise.
28752         * socket/have_sock_cloexec.c: Include fcntl.h.
28753         (__have_pipe2): New variable.
28754         (__have_dup3): Likewise.
28755
28756 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28757
28758         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28759
28760 2012-08-17  Marek Polacek  <polacek@redhat.com>
28761
28762         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28763         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28764
28765 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28766
28767         * configure.in: Add AC_SUBST for sysheaders.
28768         * configure: Regenerated.
28769         * config.make.in (sysheaders): New substituted variable.
28770
28771         * sysdeps/unix/mkfifo.c: Moved ...
28772         * sysdeps/posix/mkfifo.c: ... here.
28773         * sysdeps/unix/mkfifoat.c: Moved ...
28774         * sysdeps/posix/mkfifoat.c: ... here.
28775
28776         * sysdeps/unix/utime.c: Moved ...
28777         * sysdeps/posix/utime.c: ... here.
28778
28779         * sysdeps/unix/time.c: Moved ...
28780         * sysdeps/posix/time.c: ... here.
28781         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28782         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28783
28784         * sysdeps/unix/nice.c: Moved ...
28785         * sysdeps/posix/nice.c: ... here.
28786
28787         * sysdeps/unix/alarm.c: Moved ...
28788         * sysdeps/posix/alarm.c: ... here.
28789
28790         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28791
28792 2012-08-17  Jeff Law <law@redhat.com>
28793
28794         * intl/Makefile (codeset_mo): New variable.
28795         ($(codeset_mo)): New target.
28796         (tst-codeset.out): Depend on that.  Remove explicit rule.
28797         (tst-gettext3.out, tst-gettext5.out): Likewise.
28798         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28799         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28800         * intl/tst-codeset.sh: Remove.
28801         * intl/tst-gettext3.sh: Likewise.
28802         * intl/tst-gettext5.sh: Likewise.
28803
28804 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28805
28806         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28807         * sysdeps/unix/syscalls.list: ... here.
28808
28809         * sysdeps/posix/getaddrinfo.c
28810         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28811         (gaiconf_init, gaiconf_reload): Use them.
28812         [!_STATBUF_ST_NSEC]
28813         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28814         Define using time_t rather than struct timespec.
28815
28816         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28817         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28818         Macros removed.
28819         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28820         [!NO_THREADS].
28821         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28822         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28823         Likewise.
28824
28825         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28826         __libc_cleanup_push argument.
28827
28828         * bits/param.h: New file.
28829         * misc/sys/param.h: New file.
28830         * include/sys/param.h: New file.
28831         * misc/Makefile (headers): Add bits/param.h.
28832         * sysdeps/generic/sys/param.h: File removed.
28833         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28834         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28835         * sysdeps/mach/hurd/bits/param.h: New file.
28836         * sysdeps/mach/hurd/sys/param.h: File removed.
28837
28838         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28839         last change.
28840
28841         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28842         [_IO_MTSAFE_IO].
28843         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28844         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28845         New macros.
28846
28847         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28848         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28849         rather than -D_IO_MTSAFE_IO conditionally.
28850         * stdio-common/Makefile (CPPFLAGS): Likewise.
28851         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28852         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28853         Use $(libio-mtsafe).
28854         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28855         of -D_IO_MTSAFE_IO.
28856         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28857         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28858         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28859         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28860         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28861         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28862         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28863         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28864         (CFLAGS-fread_u_chk.c): Likewise.
28865         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28866         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28867         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28868         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28869         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28870         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28871         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28872         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28873         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28874
28875         * libio/Makefile: Test [$(libc-reentrant) = yes]
28876         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28877
28878         * Makeconfig
28879         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28880         * sysdeps/pthread/configure: File removed.
28881         * sysdeps/pthread/Makeconfig: New file.
28882         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28883         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28884
28885 2012-08-16  Gary Benson  <gbenson@redhat.com>
28886
28887         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28888         unmapping the first object in a namespace.
28889
28890 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28891
28892         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28893         (__internal_setnetgrent): ... this.  Add internal_function to
28894         definition.  Add libc_hidden_def.
28895         (setnetgrent): Update caller.
28896         (internal_endnetgrent): Renamed to ...
28897         (__internal_endnetgrent): ... this.  Add internal_function to
28898         definition.  Add libc_hidden_def.
28899         (endnetgrent): Update caller.
28900         (internal_getnetgrent_r): Renamed to ...
28901         (__internal_getnetgrent_r): ... this.  Add internal_function to
28902         definition.  Add libc_hidden_def.
28903         (__getnetgrent_r): Update caller.
28904         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28905
28906 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28907
28908         * stdlib/longlong.h: Update from GCC.
28909
28910 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28911
28912         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28913         on _QL, which is set by umul_ppmm but never used.
28914         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28915         variables, which are set by GMP macros but never used.
28916         * stdio-common/_itowa.c (_itowa): Likewise.
28917         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28918         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28919
28920 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28921
28922         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28923         struct La_sh_regs is not constant.
28924         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28925         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28926         and struct La_sparc64_regs are not constant.
28927
28928 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28929
28930         * sysdeps/unix/sysv/linux/kernel-features.h
28931         (__ASSUME_POSIX_TIMERS): Remove.
28932         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28933         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28934         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28935         Make code unconditional.
28936         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28937         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28938         Make code unconditional.
28939         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28940         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28941         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28942         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28943         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28944         Make code unconditional.
28945         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28946         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28947         (__libc_missing_posix_timers): Remove.
28948
28949 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28950
28951         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28952         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28953
28954         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28955
28956         * elf/dl-sym.c: Include <stdlib.h>.
28957
28958         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28959         constants, which avoids warnings in 32-bit builds.
28960
28961         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28962         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28963
28964         * misc/lseek.c: File moved to ...
28965         * io/lseek.c: ... here.
28966
28967         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28968
28969         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28970         shifting LEN more than 31 bits at once.
28971
28972 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28973
28974         [BZ #14195]
28975         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28976         segmentation fault for a case of two empty input strings.
28977         * string/test-strncasecmp.c (check1): Renamed to...
28978         (bz12205): ...this.
28979         (bz14195): Add new testcase for two empty input strings and N > 0.
28980         (test_main): Call new testcase, adapt for renamed function.
28981
28982 2012-08-15  Andreas Jaeger  <aj@suse.de>
28983
28984         [BZ #14090]
28985         * crypt/md5test2.c: New test, based on test supplied by Serge
28986         Belyshev <belyshev@depni.sinp.msu.ru>.
28987         * crypt/Makefile (xtests): Add md5test-giant..
28988         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28989
28990 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28991
28992         [BZ #14090]
28993         * crypt/md5.c (md5_process_block): Don't assume the buffer
28994         length is less than 2**32.
28995         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28996         length is less than 2**64.
28997
28998 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28999
29000         * string/str-two-way.h: Include <sys/param.h>.
29001         (MAX): Macro removed.
29002
29003         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
29004         Move #define and #undef of memmove to just before and after
29005         including <string.h>.
29006
29007         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
29008         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
29009         and after including <string.h>.  Move declarations of
29010         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
29011         to before #include "string/memmove.c".
29012
29013         * include/dirent.h: Declare __getdirentries.
29014
29015         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
29016         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
29017
29018 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
29019
29020         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
29021         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
29022         * sysdeps/i386/configure: Regenerated.
29023         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
29024         STABS_CURRENT_FILE, and STABS_FUN.
29025         (END): Remove call to STABS_FUN_END.
29026         (STABS_CURRENT_FILE1): Delete.
29027         (STABS_CURRENT_FILE): Likewise.
29028         (STABS_FUN): Likewise.
29029         (STABS_FUN_END): Likewise.
29030         (STABS_FUN2): Likewise.
29031         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
29032         * sysdeps/x86_64/configure: Regenerated.
29033
29034 2012-08-14  Roland McGrath  <roland@hack.frob.com>
29035
29036         * elf/dl-open.c: Include <atomic.h>.
29037         * elf/dl-lookup.c: Likewise.
29038
29039 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
29040
29041         * sysdeps/unix/sysv/linux/kernel-features.h
29042         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
29043         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
29044         unconditionally.
29045         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
29046         unconditionally.
29047         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
29048         condition on __ASSUME_CLONE_THREAD_FLAGS.
29049
29050 2012-08-14  Andreas Jaeger  <aj@suse.de>
29051
29052         * sysdeps/i386/fpu/libm-test-ulps: Update.
29053
29054 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
29055
29056         * include/atomic.h (atomic_exchange_and_add): Split into ...
29057         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
29058         New atomic macros.
29059
29060 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
29061
29062         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29063
29064 2012-08-13  Jeff Law <law@redhat.com>
29065
29066         * manual/stdio.texi (snprintf): Clarify handling of the trailing
29067         null byte in the output string.
29068
29069 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
29070
29071         * sysdeps/unix/sysv/linux/kernel-features.h
29072         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
29073         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
29074         (__ASSUME_ARG_MAX_STACK_BASED): Define.
29075         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
29076         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
29077         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
29078         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
29079
29080 2012-08-09  Jeff Law <law@redhat.com>
29081
29082         [BZ #13939]
29083         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
29084         When avoid_arena is set, don't retry in the that arena.  Pick the
29085         next one, whatever it might be.
29086         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
29087         (arena_lock): Pass in new parameter to arena_get2.
29088         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
29089         arena_get2.
29090         (__libc_malloc): Unify retrying after main arena failure with
29091         __libc_memalign version.
29092         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
29093
29094 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
29095
29096         [BZ #14166]
29097         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
29098         to __redirect_strstr.
29099         (__strstr_sse42): Use typeof __redirect_strstr.
29100         (__strstr_ia32): Likewise.
29101         (__libc_strstr): New prototype.
29102         (strstr): Renamed to ...
29103         (__libc_strstr): This.
29104         (strstr): New strong alias of __libc_strstr.
29105         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29106         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29107         __redirect_time.
29108         Include <time.h>.
29109         (__libc_time): New prototype.
29110         (time_ifunc): Replace time with __libc_time.
29111         (time): New strong alias and hidden definition of __libc_time.
29112         (__GI_time): Remove strong alias.
29113         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29114         Include <stddef.h>.
29115         (memmove): Redefined to __redirect_memmove.
29116         (__memmove_sse2): Use typeof __redirect_memmove.
29117         (__memmove_ssse3): Likewise.
29118         (__memmove_ssse3_back): Likewise.
29119         (__libc_memmove): New prototype.
29120         (memmove): Renamed to ...
29121         (__libc_memmove): This.
29122         (memmove): New strong alias of __libc_memmove.
29123
29124 2012-08-08  Mark Salter  <msalter@redhat.com>
29125
29126         * elf/elf.h
29127         (R_MN10300_TLS_GD): Define.
29128         (R_MN10300_TLS_LD): Likewise.
29129         (R_MN10300_TLS_LDO): Likewise.
29130         (R_MN10300_TLS_GOTIE): Likewise.
29131         (R_MN10300_TLS_IE): Likewise.
29132         (R_MN10300_TLS_LE): Likewise.
29133         (R_MN10300_TLS_DTPMOD): Likewise.
29134         (R_MN10300_TLS_DTPOFF): Likewise.
29135         (R_MN10300_TLS_TPOFF): Likewise.
29136         (R_MN10300_SYM_DIFF): Likewise.
29137         (R_MN10300_ALIGN): Likewise.
29138         (R_MN10300_NUM): Update.
29139
29140 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29141
29142         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29143         Remove.
29144
29145 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29146
29147         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29148
29149         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29150         sysdeps/unix -> sysdeps/posix move.
29151         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29152
29153 2012-08-07      Allan McRae     <allan@archlinux.org>
29154
29155         [BZ #14303]
29156         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29157         (SUNOS_CPP): Likewise.
29158         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29159         not found.
29160         (open_input): Call CPP using execvp.
29161
29162 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29163
29164         * sysdeps/unix/sysv/linux/kernel-features.h
29165         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29166         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29167         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29168         (__ASSUME_WAITID_SYSCALL): Likewise.
29169         * sysdeps/unix/sysv/linux/dl-execstack.c
29170         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29171         code unconditional.
29172         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29173         conditional code.
29174         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29175         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29176         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29177         code.
29178         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29179         unconditional.
29180         [__ASSUME_WAITID_SYSCALL]: Likewise.
29181         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29182
29183 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29184
29185         * sysdeps/unix/closedir.c: Renamed to ...
29186         * sysdeps/posix/closedir.c: ... here.
29187         * sysdeps/unix/dirfd.c: Renamed to ...
29188         * sysdeps/posix/dirfd.c: ... here.
29189         * sysdeps/unix/dirstream.h: Renamed to ...
29190         * sysdeps/posix/dirstream.h: ... here.
29191         * sysdeps/unix/fdopendir.c: Renamed to ...
29192         * sysdeps/posix/fdopendir.c: ... here.
29193         * sysdeps/unix/opendir.c: Renamed to ...
29194         * sysdeps/posix/opendir.c: ... here.
29195         * sysdeps/unix/readdir.c: Renamed to ...
29196         * sysdeps/posix/readdir.c: ... here.
29197         * sysdeps/unix/readdir_r.c: Renamed to ...
29198         * sysdeps/posix/readdir_r.c: ... here.
29199         * sysdeps/unix/rewinddir.c: Renamed to ...
29200         * sysdeps/posix/rewinddir.c: ... here.
29201         * sysdeps/unix/seekdir.c: Renamed to ...
29202         * sysdeps/posix/seekdir.c: ... here.
29203         * sysdeps/unix/telldir.c: Renamed to ...
29204         * sysdeps/posix/telldir.c: ... here.
29205         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29206         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29207         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29208         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29209
29210         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29211         * bits/fcntl.h: ... here.
29212
29213         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29214         not 0.
29215         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29216         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29217         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29218         (struct flock): Move l_start, l_len to the beginning.
29219         Use __pid_t for l_pid.
29220         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29221         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29222         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29223         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29224         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29225         [__USE_LARGEFILE64] (struct flock64): New type.
29226         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29227
29228         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29229         * bits/dirent.h: ... here.
29230
29231         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29232         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29233
29234 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29235
29236         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29237         Change from 2.6.0 to 2.6.16.
29238         * sysdeps/unix/sysv/linux/configure: Regenerated.
29239         * sysdeps/unix/sysv/linux/kernel-features.h
29240         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29241         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29242         version.
29243         (__ASSUME_UTIMES): Likewise.
29244         (__ASSUME_CLONE_STOPPED): Remove.
29245         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29246         architectures, not kernel version.
29247         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29248         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29249         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29250         (__ASSUME_WAITID_SYSCALL): Likewise.
29251         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29252         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29253         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29254         refer to older versions.
29255
29256 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29257
29258         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29259         Define alphasort64 as an alias.
29260         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29261         Define versionsort64 as an alias.
29262         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29263         Define scandir64 as an alias.
29264         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29265         Define scandirat64 as an alias.
29266         * dirent/alphasort64.c (alphasort64):
29267         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29268         * dirent/versionsort64.c: Likewise.
29269         * dirent/scandir64.c: Likewise.
29270         * dirent/scandirat64.c: Likewise.
29271         * sysdeps/wordsize-64/alphasort.c: File removed.
29272         * sysdeps/wordsize-64/alphasort64.c: File removed.
29273         * sysdeps/wordsize-64/scandir.c: File removed.
29274         * sysdeps/wordsize-64/scandir64.c: File removed.
29275         * sysdeps/wordsize-64/scandirat.c: File removed.
29276         * sysdeps/wordsize-64/scandirat64.c: File removed.
29277         * sysdeps/wordsize-64/versionsort.c: File removed.
29278         * sysdeps/wordsize-64/versionsort64.c: File removed.
29279         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29280         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29281         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29282         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29283         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29284         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29285         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29286         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29287
29288         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29289         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29290         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29291         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29292         [defined __arch64__ || defined __sparcv9]
29293         (__INO_T_MATCHES_INO64_T): New macro.
29294         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29295         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29296         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29297         * sysdeps/unix/sysv/linux/bits/dirent.h
29298         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29299         (_DIRENT_MATCHES_DIRENT64): New macro.
29300
29301         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29302         Define lockf64 as an alias.
29303         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29304         Define fseeko64 as an alias.
29305         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29306         Define ftello64 as an alias.
29307         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29308         Define _IO_fgetpos64 and fgetpos64 as aliases.
29309         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29310         Define _IO_fsetpos64 and fsetpos64 as aliases.
29311         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29312         Conditionalize body on this.
29313         * libio/fseeko64.c: Likewise.
29314         * libio/ftello64.c: Likewise.
29315         * libio/iofgetpos64.c: Likewise.
29316         * libio/iofsetpos64.c: Likewise.
29317         * sysdeps/wordsize-64/lockf.c: File removed.
29318         * sysdeps/wordsize-64/lockf64.c: File removed.
29319         * sysdeps/wordsize-64/fseeko.c: File removed.
29320         * sysdeps/wordsize-64/fseeko64.c: File removed.
29321         * sysdeps/wordsize-64/ftello.c: File removed.
29322         * sysdeps/wordsize-64/ftello64.c: File removed.
29323         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29324         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29325         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29326         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29327         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29328         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29329         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29330         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29331         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29332         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29333         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29334         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29335         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29336         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29337
29338         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29339         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29340         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29341         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29342         [defined __arch64__ || defined __sparcv9]
29343         (__OFF_T_MATCHES_OFF64_T): New macro.
29344         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29345         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29346         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29347         (__OFF_T_MATCHES_OFF64_T): New macro.
29348
29349 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29350
29351         * stdlib/secure-getenv.c (__secure_getenv): Replace
29352         GLIBC_2_16 with GLIBC_2_17.
29353
29354 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29355
29356         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29357         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29358
29359 2012-08-03  David S. Miller  <davem@davemloft.net>
29360
29361         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29362
29363 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29364
29365         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29366         Remove.
29367         (__ASSUME_CORRECT_SI_PID): Likewise.
29368         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29369         (__ASSUME_TMPFS_NAME): Likewise.
29370         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29371         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29372         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29373         (HAVE_AUX_SECURE): Make definition unconditional.
29374         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29375         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29376
29377 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29378
29379         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29380         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29381         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29382         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29383         __eloop_threshold instead of SYMLOOP_MAX.
29384
29385         * sysdeps/generic/eloop-threshold.h: New file.
29386         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29387         of MAXSYMLINKS.
29388         * elf/chroot_canon.c (chroot_canon): Likewise.
29389
29390 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29391
29392         [BZ #13717]
29393         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29394         Change to 2.6.0 everywhere.
29395         * sysdeps/unix/sysv/linux/configure: Regenerated.
29396         * sysdeps/unix/sysv/linux/kernel-features.h
29397         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29398         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29399         kernel versions.
29400         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29401         (__ASSUME_FUTEX_REQUEUE): Remove.
29402         (__ASSUME_STATFS64): Define unconditionally.
29403         (__ASSUME_AT_SECURE): Likewise.
29404         (__ASSUME_CORRECT_SI_PID): Likewise.
29405         (__ASSUME_TGKILL): Define without depending on kernel version for
29406         i386.
29407         (__ASSUME_UTIMES): Likewise.
29408         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29409         kernel version.
29410         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29411         (__ASSUME_TMPFS_NAME): Likewise.
29412         * README: Update reference to Linux kernel versions.
29413
29414 2012-08-02  Marek Polacek  <polacek@redhat.com>
29415
29416         [BZ# 14150]
29417         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29418         libc_cv_asm_type_prefix with %.
29419         * configure: Regenerated.
29420         * include/libc-symbols.h: Remove comment about
29421         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29422         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29423         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29424         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29425         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29426         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29427         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29428         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29429         * elf/tst-unique2mod1.c: Likewise.
29430         * elf/tst-unique1mod2.c: Likewise.
29431         * elf/tst-unique1mod1.c: Likewise.
29432         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29433         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29434         Replace ASM_TYPE_DIRECTIVE with .type.
29435         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29436         * sysdeps/i386/sysdep.h: Likewise.
29437         * sysdeps/x86_64/sysdep.h: Likewise.
29438         * sysdeps/sh/sysdep.h: Likewise.
29439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29440         Do not define ASM_TYPE_DIRECTIVE.
29441         * sysdeps/powerpc/sysdep.h: Likewise.
29442         * sysdeps/powerpc/powerpc32/sysdep.h:
29443         Replace ASM_TYPE_DIRECTIVE with .type.
29444         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29445         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29446         * sysdeps/i386/fpu/e_powf.S: Likewise.
29447         * sysdeps/i386/fpu/e_expl.S: Likewise.
29448         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29449         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29450         * sysdeps/i386/fpu/e_pow.S: Likewise.
29451         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29452         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29453         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29454         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29455         * sysdeps/i386/fpu/e_log2.S: Likewise.
29456         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29457         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29458         * sysdeps/i386/fpu/e_powl.S: Likewise.
29459         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29460         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29461         * sysdeps/i386/fpu/e_logl.S: Likewise.
29462         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29463         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29464         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29465         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29466         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29467         * sysdeps/i386/fpu/e_log.S: Likewise.
29468         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29469         * sysdeps/i386/fpu/e_logf.S: Likewise.
29470         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29471         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29472         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29473         * sysdeps/i386/fpu/e_log10.S: Likewise.
29474         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29475         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29476         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29477         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29478         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29479         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29480         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29481         * sysdeps/i386/i686/strtok.S: Likewise.
29482         * sysdeps/i386/i386-mcount.S: Likewise.
29483         * sysdeps/i386/strtok.S: Likewise.
29484         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29485         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29486         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29487         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29488         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29489         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29490         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29491         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29492         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29493         * sysdeps/x86_64/_mcount.S: Likewise.
29494         * sysdeps/x86_64/strtok.S: Likewise.
29495         * sysdeps/sh/_mcount.S: Likewise.
29496
29497 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29498
29499         * libio/iofopen.c: Include <fcntl.h>.
29500         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29501         (_IO_fopen64, fopen64): Define as aliases.
29502         * libio/iofopen64.c: Include <fcntl.h>.
29503         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29504         Conditionalize body on this.
29505         * sysdeps/wordsize-64/iofopen.c: File removed.
29506         * sysdeps/wordsize-64/iofopen64.c: File removed.
29507
29508 2012-08-01  Marek Polacek  <polacek@redhat.com>
29509
29510         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29511         Use dlfcn directly instead of a variable.
29512         (binfmt-subdir): Do not define.
29513         (dlfcn): Likewise.
29514
29515 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29516
29517         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29518         Remove all definitions.
29519         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29520         <kernel-features.h>.
29521         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29522         (miss_F_GETOWN_EX): Remove all definitions.
29523         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29524         macro definition.
29525         [!__ASSUME_FCNTL64]: Remove conditional code.
29526         [__ASSUME_FCNTL64]: Make code unconditional.
29527         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29528         <kernel-features.h>.
29529         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29530         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29531         (lockf64) [__NR_fcntl64]: Make code unconditional.
29532         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29533
29534         * sysdeps/unix/sysv/linux/kernel-features.h
29535         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29536         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29537         Make code unconditional.
29538         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29539         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29541         [__NR_vfork]: Make code unconditional.
29542         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29543         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29545         [__NR_vfork]: Make code unconditional.
29546         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29547         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29548
29549 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29550
29551         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29552         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29553
29554         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29555         Define mkstemp64 as an alias.
29556         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29557         Define mkstemps64 as an alias.
29558         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29559         Define mkostemp64 as an alias.
29560         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29561         Define mkostemps64 as an alias.
29562         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29563         Conditionalize body on this.
29564         * misc/mkostemp64.c: Likewise.
29565         * misc/mkostemps64.c: Likewise.
29566         * misc/mkstemps64.c: Likewise.
29567         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29568         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29569         * sysdeps/wordsize-64/mkostemp.c: File removed.
29570         * sysdeps/wordsize-64/mkstemp.c: File removed.
29571         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29572         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29573         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29574         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29575
29576         [BZ #14138]
29577         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29578         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29579         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29580         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29581
29582         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29583         compat_symbol macros from <shlib-compat.h> rather than the underlying
29584         default_symbol_version and symbol_version macros, so that DEFAULT
29585         lines in shlib-versions are respected.
29586         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29587
29588 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29589
29590         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29591         Declare with warn_unused_result.
29592         (setgid, setregid, setegid, setresgid): Likewise.
29593         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29594         Likewise.
29595         * WUR-REPORT: Remove set*id functions.
29596
29597 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29598
29599         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29600
29601 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29602
29603         [BZ #10191]
29604         * include/sys/socket.h (__libc_accept, __libc_accept4):
29605         Add attribute_hidden.
29606         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29607
29608         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29609         use of PTR_MANGLE.
29610         * inet/getnetgrent_r.c (setup): Likewise.
29611
29612         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29613
29614 2012-07-31  David S. Miller  <davem@davemloft.net>
29615
29616         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29617
29618 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29619
29620         [BZ #13629]
29621         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29622         value between 1.0 and 2.0 and smaller part has absolute value less
29623         than 1.0.
29624         * math/s_clog10.c (__clog10): Likewise.
29625         * math/s_clog10f.c (__clog10f): Likewise.
29626         * math/s_clog10l.c (__clog10l): Likewise.
29627         * math/s_clogf.c (__clogf): Likewise.
29628         * math/s_clogl.c (__clogl): Likewise.
29629         * math/libm-test.inc (clog_test): Add more tests.
29630         (clog10_test): Likewise.
29631         * sysdeps/i386/fpu/libm-test-ulps: Update.
29632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29633
29634 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29635
29636         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29637         Exit with zero in case no suitable GID is found, and write a
29638         message to standard error.
29639
29640 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29641
29642         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29643         rather than to 1.
29644         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29645         (MAXPATHLEN): Removed.
29646         (NOGROUP, NODEV): New macros.
29647         (setbit, clrbit, isset, isclr): New macros.
29648         (howmany, roundup, powerof2): New macros.
29649         (DEV_BSIZE): New macro.
29650
29651         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29652         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29653
29654         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29655         definition on [!__NO_LONG_DOUBLE_MATH].
29656
29657         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29658         PTR_MANGLE and PTR_DEMANGLE.
29659
29660         * socket/accept4.c (accept4): Rename to __libc_accept4.
29661         Define accept4 as a weak alias.
29662
29663         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29664         on [_DIRENT_HAVE_D_TYPE].
29665         * io/ftw.c (ftw_dir): Likewise.
29666
29667         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29668
29669         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29670
29671         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29672         Use the BSD numbers rather than the arbitrary ones we had.
29673         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29674         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29675         (SIGXCPU, SIGXFSZ): New macros.
29676         (_NSIG): Now 32.
29677
29678         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29679         initializer on [_LIBC_REENTRANT].
29680
29681         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29682         definitions inside [_POSIX_MAPPED_FILES].
29683
29684         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29685
29686         * dirent/opendir.c: Include <fcntl.h>.
29687
29688         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29689         (__libc_getspecific): Likewise.
29690         (__libc_key_create): Likewise.
29691
29692         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29693         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29694         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29695         (tmpfile64): Define as alias.
29696         * sysdeps/wordsize-64/tmpfile.c: File removed.
29697         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29698         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29699         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29700
29701         * stdio-common/vfscanf.c: Include <stdbool.h>.
29702         * nss/makedb.c: Likewise.
29703         * stdio-common/_i18n_number.h: Likewise.
29704         * argp/argp-help.c: Likewise.
29705         * posix/wordexp.c: Likewise.
29706         * sysdeps/posix/spawni.c: Likewise.
29707         * nss/nss_files/files-initgroups.c: Likewise.
29708         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29709         * nss/nss_files/files-initgroups.c: Likewise.
29710         * nss/nss_db/db-netgrp.c: Likewise.
29711         * nss/nss_db/db-initgroups.c: Likewise.
29712         * io/fchmodat.c: Include <sys/stat.h>.
29713
29714         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29715         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29716
29717         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29718         [HAVE_MMAP].
29719
29720         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29721         Add multiple inclusion protection.
29722
29723 2012-07-27  David S. Miller  <davem@davemloft.net>
29724
29725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29726
29727 2012-07-27  Gary Benson  <gbenson@redhat.com>
29728
29729         [BZ #14298]
29730         * elf/rtld.c: Include <stap-probe.h>.
29731         (dl_main): Added static probes "init_start" and "init_complete".
29732         * elf/dl-load.c: Include <stap-probe.h>.
29733         (lose): Take new parameter "nsid".
29734         Added static probe "map_failed".
29735         (_dl_map_object_from_fd): Pass namespace id to lose.
29736         Added static probe "map_start".
29737         (open_verify): Pass namespace id to lose.
29738         * elf/dl-open.c: Include <stap-probe.h>.
29739         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29740         and "reloc_complete".
29741         * elf/dl-close.c: Include <stap-probe.h>.
29742         (_dl_close_worker): Added static probes "unmap_start" and
29743         "unmap_complete".
29744         * elf/rtld-debugger-interface.txt: New file documenting the above.
29745
29746 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29747
29748         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29749         rather than a string variable.
29750         * sunrpc/rpc_main.c (h_output): Likewise.
29751         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29752
29753 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29754
29755         * inet/check_native.c: New file.
29756
29757 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29758
29759         [BZ #13629]
29760         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29761         if larger part has absolute value 1.0.
29762         * math/s_clog10.c (__clog10): Likewise.
29763         * math/s_clog10f.c (__clog10f): Likewise.
29764         * math/s_clog10l.c (__clog10l): Likewise.
29765         * math/s_clogf.c (__clogf): Likewise.
29766         * math/s_clogl.c (__clogl): Likewise.
29767         * math/libm-test.inc (clog_test): Add more tests.
29768         (clog10_test): Likewise.
29769         * sysdeps/i386/fpu/libm-test-ulps: Update.
29770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29771
29772         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29773         (pltexit): Likewise.
29774         (La_regs): Likewise.
29775         (La_retval): Likewise.
29776         (int_retval): Likewise.
29777         Update #error for removed macros to refer only to definitions in
29778         tst-audit.h.
29779         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29780         macro.
29781         (pltexit): Likewise.
29782         (La_regs): Likewise.
29783         (La_retval): Likewise.
29784         (int_retval): Likewise.
29785         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29786         macro.
29787         (pltexit): Likewise.
29788         (La_regs): Likewise.
29789         (La_retval): Likewise.
29790         (int_retval): Likewise.
29791         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29792         macro.
29793         (pltexit): Likewise.
29794         (La_regs): Likewise.
29795         (La_retval): Likewise.
29796         (int_retval): Likewise.
29797         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29798         macro.
29799         (pltexit): Likewise.
29800         (La_regs): Likewise.
29801         (La_retval): Likewise.
29802         (int_retval): Likewise.
29803         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29804         macro.
29805         (pltexit): Likewise.
29806         (La_regs): Likewise.
29807         (La_retval): Likewise.
29808         (int_retval): Likewise.
29809         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29810         macro.
29811         (pltexit): Likewise.
29812         (La_regs): Likewise.
29813         (La_retval): Likewise.
29814         (int_retval): Likewise.
29815         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29816         macro definitions in tst-audit.h.
29817         * sysdeps/i386/tst-audit.h: New file.
29818         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29819         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29820         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29821         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29822         * sysdeps/sh/tst-audit.h: Likewise.
29823         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29824         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29825         * sysdeps/x86_64/tst-audit.h: Likewise.
29826
29827 2012-07-26  Andreas Jaeger  <aj@suse.de>
29828
29829         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29830         ptrace.
29831
29832         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29833         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29834         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29835         PTRACE_O_MASK.
29836         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29837         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29838         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29839
29840         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29841         value.
29842
29843         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29844         _sigsys.
29845         (si_call_addr, si_syscall, si_arch): Define new macro.
29846         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29847         _sigsys.
29848         (si_call_addr, si_syscall, si_arch): Define new marcro.
29849         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29850         _sigsys.
29851         (si_call_addr, si_syscall, si_arch): Define new macro.
29852         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29853         _sigsys.
29854         (si_call_addr, si_syscall, si_arch): Define new macro.
29855
29856 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29857
29858         [BZ #13717]
29859         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29860         Change to 2.4.21 where previously 2.4.1.
29861         * sysdeps/unix/sysv/linux/configure: Regenerated.
29862         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29863         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29864         Linux kernel version.
29865         (__ASSUME_STD_AUXV): Remove.
29866         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29867         kernel version.
29868         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29869         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29870         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29871         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29872         (__ASSUME_NETLINK_SUPPORT): Likewise.
29873         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29874         (__no_netlink_support): Remove conditional definition.
29875         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29876         Remove.
29877         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29878         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29879         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29880         (if_nameindex_ioctl): Remove.
29881         (if_nameindex_netlink): Do not handle __no_netlink_support.
29882         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29883         code.
29884         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29885         Remove conditional code.
29886         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29887         code.
29888         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29889         unconditional.
29890         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29891         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29892         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29893         Remove.
29894         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29895         [!__ASSUME_STD_AUXV]: Remove conditional code.
29896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29897         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29898         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29900         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29901         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29902         code.
29903         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29905         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29906         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29907         conditional code.
29908         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29910         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29911         code.
29912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29913         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29914         conditional code.
29915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29916         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29917         code unconditional.
29918         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29919         conditional code.
29920         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29921         unconditional.
29922         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29923         conditional code.
29924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29925         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29926         unconditional.
29927         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29928         conditional code.
29929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29930         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29931         code unconditional.
29932         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29933         conditional code.
29934         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29935         unconditional.
29936         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29937         conditional code.
29938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29939         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29940         code unconditional.
29941         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29942         conditional code.
29943         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29944         unconditional.
29945         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29946         conditional code.
29947
29948 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29949
29950         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29951         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29952         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29953         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29954         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29955         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29956         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29957         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29958         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29959         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29960         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29961         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29962         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29963         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29964         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29965         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29966         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29967         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29968         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29969         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29970         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29971         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29972         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29973
29974 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29975
29976         * Versions.def: Add GLIBC_2.17.
29977         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29978         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29979         Introduce __libc_secure_getenv.
29980         * stdlib/Versions (2.17): Add secure_getenv
29981         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29982         * stdlib/secure-getenv.c: Rename __secure_getenv to
29983         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29984         symbol __secure_getenv for GLIBC_2.0.
29985         * stdlib/tst-secure-getenv.c: New.
29986         * stdlib/Makefile (tests): Add testcase.
29987         * manual/startup.texi (Environment Access): Document
29988         secure_getenv.
29989         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29990         __libc_secure_getenv.
29991         * inet/ruserpass.c (ruserpass): Likewise.
29992         * malloc/mtrace.c (mtrace): Likewise.
29993         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29994         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29995         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29996         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29997         HAVE_SECURE_GETENV.
29998         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29999         __secure_getenv to __libc_secure_getenv.
30000         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
30001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30002         Likewise.
30003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30004         Likewise.
30005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
30006         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
30007         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
30008         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
30009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
30010         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
30011         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
30012
30013 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
30014
30015         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
30016         (struct La_i86_retval): Likewise.
30017         (struct La_x86_64_regs): Likewise.
30018         (struct La_x86_64_retval): Likewise.
30019         (struct La_x32_regs): Likewise.
30020         (struct La_x32_retval): Likewise.
30021         (struct La_ppc32_regs): Likewise.
30022         (struct La_ppc32_retval): Likewise.
30023         (struct La_ppc64_regs): Likewise.
30024         (struct La_ppc64_retval): Likewise.
30025         (struct La_sh_regs): Likewise.
30026         (struct La_sh_retval): Likewise.
30027         (struct La_s390_32_regs): Likewise.
30028         (struct La_s390_32_retval): Likewise.
30029         (struct La_s390_64_regs): Likewise.
30030         (struct La_s390_64_retval): Likewise.
30031         (struct La_sparc32_regs): Likewise.
30032         (struct La_sparc32_retval): Likewise.
30033         (struct La_sparc64_regs): Likewise.
30034         (struct La_sparc64_retval): Likewise.
30035         (struct audit_ifaces): Remove architecture-specific pltenter and
30036         pltexit members.
30037         * sysdeps/i386/ldsodefs.h: New file.
30038         * sysdeps/powerpc/ldsodefs.h: Likewise.
30039         * sysdeps/s390/ldsodefs.h: Likewise.
30040         * sysdeps/sh/ldsodefs.h: Likewise.
30041         * sysdeps/sparc/ldsodefs.h: Likewise.
30042         * sysdeps/x86_64/ldsodefs.h: Likewise.
30043
30044 2012-07-25  Marek Polacek  <polacek@redhat.com>
30045
30046         [BZ #6808]
30047         * math/libm-test.inc (yn_test): Add another test.
30048         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
30049         to ERANGE when the result is +-Inf.
30050         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
30051         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
30052         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
30053         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
30054
30055 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
30056
30057         * conform/data/time.h-data (NULL): Use macro-constant.  Require
30058         equal to 0.
30059         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
30060         clock_t.
30061         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
30062
30063 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
30064
30065         * configure.in <sysdeps resolving>: Correct printing
30066         Implies_before.
30067         * configure: Regenerate.
30068
30069 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
30070
30071         * math/w_ilogb.c: Include <limits.h>.
30072         * math/w_ilogbl.c: Likewise.
30073
30074 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30075
30076         * manual/lang.texi (__va_copy): Document primarily as ISO C99
30077         va_copy.  Document allowing for unavailable va_copy only as
30078         pre-C99 compatibility.
30079         * manual/string.texi (Copying and Concatenation): Use va_copy
30080         instead of __va_copy in concat example.
30081
30082 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
30083
30084         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
30085         (__sendto): Use create_address_port.  Initialize APORT and deallocate
30086         it if not null.
30087
30088         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
30089         with O_NOLINK passed to __file_name_lookup.
30090
30091         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
30092         with O_NOLINK passed to __file_name_lookup.
30093
30094         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
30095         negative N or less than NGIDS.
30096
30097         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
30098         type to string_t.  Set ERANGE as errno and return it if NAME is not big
30099         enough.  Use memcpy instead of strncpy.
30100
30101 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30102
30103         * elf/Makefile (check-data): Remove.
30104         (localplt.data): New vpath directive.
30105         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30106         instead of $(check-data).
30107         * scripts/data/localplt-generic.data: Move to ...
30108         * sysdeps/generic/localplt.data: ... here.
30109         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30110         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30111         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30113         ... here.
30114         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30116         ... here.
30117         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30119         ... here.
30120         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30122         ... here.
30123         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30125         ... here.
30126         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30128         ... here.
30129
30130 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30131
30132         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30133         PPC32 and PPC64 files.
30134         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30135         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30136
30137 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30138
30139         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30140         __makecontext_ret to ...
30141         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30142         ... here and call exit if uc_link is NULL.  New file.
30143         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30144         __makecontext_ret.S.
30145         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30146         __makecontext_ret to ...
30147         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30148         ... here and call exit if uc_link is NULL.  New file.
30149         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30150         __makecontext_ret.S.
30151
30152 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30153
30154         * elf/elf.h (R_390_IRELATIVE): New definition.
30155         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30156         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30157         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30158         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30159         (elf_machine_lazy_rel): Likewise.
30160         * sysdeps/s390/dl-irel.h: New file.
30161         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30162         * sysdeps/s390/s390-64/memset.S: New asm code.
30163         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30164         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30165         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30166         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30167         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30168         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30169         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30170         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30171         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30172         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30173         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30174         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30175         * sysdeps/s390/s390-32/memset.S: New asm code.
30176         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30177
30178 2012-07-17  Marek Polacek  <polacek@redhat.com>
30179
30180         [BZ #14349]
30181         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30182         * sysdeps/s390/s390-64/configure.in: Likewise.
30183         * sysdeps/sparc/configure.in: Likewise.
30184         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30185         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30186         * sysdeps/i386/configure.in: Likewise.
30187         * sysdeps/x86_64/configure.in: Likewise.
30188         * sysdeps/sh/configure.in: Likewise.
30189         * sysdeps/s390/s390-32/configure: Regenerated.
30190         * sysdeps/s390/s390-64/configure: Likewise.
30191         * sysdeps/x86_64/configure: Likewise.
30192         * sysdeps/sh/configure: Likewise.
30193         * sysdeps/powerpc/powerpc64/configure: Likewise.
30194         * sysdeps/powerpc/powerpc32/configure: Likewise.
30195         * sysdeps/sparc/configure: Likwise.
30196         * sysdeps/i386/configure: Likewise.
30197
30198         * elf/dl-open.c: Comment fixes.
30199
30200 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30201
30202         * Makefile [CXX] (check-data): Remove.
30203         [CXX] (c++-types.data): New vpath directive.
30204         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30205         vpath.  Do not allow for C++ type data being missing.
30206         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30207         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30208         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30209         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30210         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30211         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30212         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30214         ... here.
30215         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30217         ... here.
30218         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30219         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30220         ... here.
30221         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30223         ... here.
30224         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30225         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30226         ... here.
30227         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30229         ... here.
30230         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30231         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30232         ... here.
30233         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30234         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30235
30236         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30237         definitions to architecture-specific files.
30238         (TLS_IE): Likewise.
30239         (TLS_LD): Likewise.
30240         (TLS_GD): Likewise.
30241         * sysdeps/i386/tls-macros.h: New file.
30242         * sysdeps/powerpc/tls-macros.h: Likewise.
30243         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30244         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30245         * sysdeps/sh/tls-macros.h: Likewise.
30246         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30247         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30248         * sysdeps/x86_64/tls-macros.h: Likewise.
30249
30250 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30251
30252         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30253         zero value for regular exit case.
30254
30255         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30256         (__start_context): Preserve zero value for regular exit case.
30257
30258 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30259             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30260
30261         * manual/setjmp.texi (setcontext): Clarify normal process
30262         termination when uc_link is the null pointer.
30263         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30264         exit call.
30265
30266 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30267
30268         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30269         preprocessor.  Test for each exception mask separately.
30270
30271 2012-07-16  Andreas Jaeger  <aj@suse.de>
30272
30273         * po/ru.po: Update from translation team.
30274
30275 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30276
30277         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30278         equal to 0.
30279         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30280         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30281         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30282         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30283         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30284
30285 2012-07-13  Andreas Jaeger  <aj@suse.de>
30286
30287         * po/fr.po: Update from translation team.
30288
30289 2012-07-12  Marek Polacek  <polacek@redhat.com>
30290
30291         [BZ #14173]
30292         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30293         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30294         loop condition.
30295
30296 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30297
30298         [BZ #13717]
30299         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30300         Change to 2.4.1 where previously 2.4.0.
30301         * sysdeps/unix/sysv/linux/configure: Regenerated.
30302         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30303         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30304         version.
30305         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30306         (__ASSUME_AT_CLKTCK): Remove.
30307         (__ASSUME_AT_PAGESIZE): Likewise.
30308         (__ASSUME_AT_XID): Likewise.
30309         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30310         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30311         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30312         unconditionally.
30313         (HAVE_AUX_PAGESIZE): Likewise.
30314         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30315         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30316         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30317
30318 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30319
30320         [BZ #14307]
30321         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30322         the temporary buffer used to invoke __gethostbyname2_r,
30323         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30324         host_data / struct gaih_addrtuple.
30325         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30326         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30327         header file nss/nsswitch.h.
30328         * nss/nsswitch.h (global scope): Add definition of implementation
30329         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30330         resolv/nss_dns/dns-host.c).
30331
30332 2012-07-11  Andreas Jaeger  <aj@suse.de>
30333
30334         * po/fr.po: Update from translation team.
30335
30336         * po/sv.po: Update from translation team
30337         * po/fr.po: Another update from translation team.
30338
30339 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30340
30341         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30342         for subnormals or multiply small sinh result by itself.
30343         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30344         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30345
30346 2012-07-11  David S. Miller  <davem@davemloft.net>
30347
30348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30349
30350 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30351
30352         [BZ #14347]
30353         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30354         (INTERNAL_MARK): Shift it here.
30355
30356 2012-07-10  Marek Polacek  <polacek@redhat.com>
30357
30358         [BZ #14151]
30359         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30360         libc_cv_asm_global_directive with .globl.
30361         * configure: Regenerated.
30362         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30363         with .globl.
30364         * sysdeps/i386/configure: Regenerated.
30365         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30366         with .globl.
30367         * sysdeps/x86_64/configure: Regenerated.
30368         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30369         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30370         * elf/tst-unique2mod2.c: Likewise.
30371         * elf/tst-unique2mod1.c: Likewise.
30372         * elf/tst-unique1mod2.c: Likewise.
30373         * elf/tst-unique1mod1.c: Likewise.
30374         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30375         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30376         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30377         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30378         * sysdeps/mach/sysdep.h: Likewise.
30379         * sysdeps/i386/sysdep.h: Likewise.
30380         * sysdeps/i386/i386-mcount.S: Likewise.
30381         * sysdeps/x86_64/_mcount.S: Likewise.
30382         * sysdeps/x86_64/sysdep.h: Likewise.
30383         * sysdeps/sh/_mcount.S: Likewise.
30384         * sysdeps/sh/sysdep.h: Likewise.
30385         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30386         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30387         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30388         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30389         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30390         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30391         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30392         * locale/localeinfo.h: Likewise.
30393         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30394         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30395
30396 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30397
30398         [BZ #14336]
30399         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30400         system".
30401         * manual/message.texi (The Uniforum approach): Likewise.
30402         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30403         (glibc iconv Implementation): Likewise.
30404
30405 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30406
30407         [BZ #14337]
30408         * math/s_clog.c (__clog): Avoid scaling a value down where that
30409         could result in underflow.
30410         * math/s_clog10.c (__clog10): Likewise.
30411         * math/s_clog10f.c (__clog10f): Likewise.
30412         * math/s_clog10l.c (__clog10l): Likewise.
30413         * math/s_clogf.c (__clogf): Likewise.
30414         * math/s_clogl.c (__clogl): Likewise.
30415         * math/libm-test.inc (clog_test): Add more tests.
30416         (clog10_test): Likewise.
30417         * sysdeps/i386/fpu/libm-test-ulps: Update.
30418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30419
30420 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30421
30422         [BZ #14283]
30423         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30424         by 7 not 8 to examine high bit of fractional part.
30425
30426         [BZ #14042]
30427         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30428         for call to __mcount_internal.
30429         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30430         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30431         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30432
30433 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30434
30435         [BZ #14154]
30436         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30437         approximation for values within 0x1p-13f of an odd multiple of
30438         pi/4.
30439         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30440         exception.  Add more tests.
30441         * sysdeps/i386/fpu/libm-test-ulps: Update.
30442
30443         [BZ #6778]
30444         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
30445         inputs and return -1 for them.  Do not check for +Inf in case not
30446         reachable for +Inf.
30447         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
30448         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30449         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30450         and return -1 for them.  Do not check for +Inf in case not
30451         reachable for +Inf.
30452         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
30453         define.
30454         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30455         and return -1 for them.  Do not check for +Inf in case not
30456         reachable for +Inf.
30457         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
30458         spurious underflow.
30459         * sysdeps/i386/fpu/libm-test-ulps: Update.
30460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30461
30462 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
30463
30464         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
30465
30466 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
30467
30468         [BZ #14157]
30469         [BZ #14331]
30470         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
30471         could result in spurious underflow.  Scale down values above
30472         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
30473         * math/s_csqrtf.c (__csqrtf): Likewise.
30474         * math/s_csqrtl.c (__csqrtl): Likewise.
30475         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
30476         spurious underflow.
30477         * sysdeps/i386/fpu/libm-test-ulps: Update.
30478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30479
30480 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
30481
30482         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
30483         xopen-msg.sed.
30484         * catgets/xopen-msg.awk: New file.
30485         * catgets/xopen-msg.sed: Removed.
30486
30487         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30488         po2text.sed.
30489         * intl/po2test.awk: New file.
30490         * intl/po2test.sed: Removed.
30491
30492 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30493
30494         [BZ #14328]
30495         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30496         or multiply small sinh result by itself.
30497         * math/s_ctanf.c (__ctanf): Likewise.
30498         * math/s_ctanh.c (__ctanh): Likewise.
30499         * math/s_ctanhf.c (__ctanhf): Likewise.
30500         * math/s_ctanhl.c (__ctanhl): Likewise.
30501         * math/s_ctanl.c (__ctanl): Likewise.
30502         * math/libm-test.inc (ctan_test_tonearest): New function.
30503         (ctan_test_towardzero): Likewise.
30504         (ctan_test_downward): Likewise.
30505         (ctan_test_upward): Likewise.
30506         (ctanh_test_tonearest): Likewise.
30507         (ctanh_test_towardzero): Likewise.
30508         (ctanh_test_downward): Likewise.
30509         (ctanh_test_upward): Likewise.
30510         (main): Call these new functions.
30511         * sysdeps/i386/fpu/libm-test-ulps: Update.
30512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30513
30514 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30515
30516         * .gitignore: Delete /ports entry.
30517
30518 2012-07-03  Andreas Jaeger  <aj@suse.de>
30519
30520         * po/bg.po: Update from translation team.
30521         * po/cs.po: Likewise.
30522         * po/de.po: Likewise.
30523         * po/hr.po: Likewise.
30524         * po/nl.pl: Likewise.
30525         * po/pl.po: Likewise.
30526         * po/vi.po: Likewise.
30527
30528 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30529
30530         * Makeconfig [!+link] (+link-before-libc): New variable.
30531         [!+link] (+link-after-libc): Likewise.
30532         [!+link] (+link-tests): Likewise.
30533         [!+link] (+link): Define in terms of $(+link-before-libc) and
30534         $(+link-after-libc).
30535         [!+link-static] (+link-static-before-libc): New variable.
30536         [!+link-static] (+link-static-after-libc): Likewise.
30537         [!+link-static] (+link-static-tests): Likewise.
30538         [!+link-static] (+link-static): Define in terms of
30539         $(+link-static-before-libc) and $(+link-static-after-libc).
30540         [build-shared] (link-libc-before-gnulib): New variable.
30541         [build-shared] (link-libc-tests): Likewise.
30542         [build-shared] (link-libc): Define in terms of
30543         $(link-libc-before-gnulib).
30544         [!build-shared] (link-libc-tests): New variable.
30545         (link-libc-static-tests): New variable.
30546         [!gnulib] (gnulib-arch): New variable.
30547         [!gnulib] (gnulib-tests): Likewise.
30548         [!gnulib] (static-gnulib-arch): Likewise.
30549         [!gnulib] (static-gnulib-tests): Likewise.
30550         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30551         Define with "=" instead of ":=".
30552         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30553         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30554         * Rules (binaries-all-notests): New variable.
30555         (binaries-all-tests): Likewise.
30556         (binaries-static-notests): Likewise.
30557         (binaries-static-tests): Likewise.
30558         (binaries-all): Define using $(binaries-all-notests) and
30559         $(binaries-all-tests).
30560         (binaries-static): Define using $(binaries-static-notests) and
30561         $(binaries-static-tests).
30562         (binaries-shared-tests): New variable.
30563         (binaries-shared-notests): Likewise.
30564         (binaries-shared): Remove variable.
30565         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30566         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30567         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30568         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30569         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30570         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30571         * elf/Makefile (sln-modules): New variable.
30572         (extra-objs): Add $(sln-modules:=.o).
30573         (ldconfig-modules): Add static-stubs.
30574         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30575         * elf/static-stubs.c: New file.
30576
30577         [BZ #14283]
30578         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30579         by 7 not 8 to examine high bit of fractional part.  Use volatile
30580         variables when splitting into final array of floats if
30581         __FLT_EVAL_METHOD__ != 0.
30582         * math/libm-test.inc (cos_test): Add another test.
30583         (sin_test): Likewise.
30584         * sysdeps/i386/fpu/libm-test-ulps: Update.
30585
30586         [BZ #14273]
30587         * math/libm-test.inc (cosh_test): Add more tests.
30588
30589         * version.h (RELEASE): Set to "development".
30590         (VERSION): Set to "2.16.90".
30591
30592 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30593
30594         * NEWS: Update copyright. Remove last-updated date.
30595         Mention math library bug fixes and timezone data changes.
30596         * README: Mention GNU/Hurd, x32, and HPPA support status.
30597
30598 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30599
30600         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30601
30602 2012-06-27  Andreas Jaeger  <aj@suse.de>
30603
30604         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30605
30606 2012-06-25  Andreas Jaeger  <aj@suse.de>
30607
30608         * sysdeps/s390/fpu/libm-test-ulps: Update.
30609
30610 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30611             Thomas Schwinge  <thomas@codesourcery.com>
30612
30613         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30614         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30615         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30616         fanotify_mark.
30617
30618 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30619
30620         * sysdeps/mach/start.c: Remove file.
30621         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30622         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30623         * sysdeps/sh/init-first.c: Likewise.
30624
30625         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30626         registers for frame unwinding purposes, add CFI directives.
30627         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30628         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30629         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30630         Likewise.
30631
30632         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30633         __fortify_fail returning.
30634         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30635
30636         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30637         sysdeps/sh/____longjmp_chk.S.
30638         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30639         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30640         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30641         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30642
30643         * sysdeps/sh/abort-instr.h: New file.
30644         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30645         process in case exit returns.
30646
30647         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30648         initialize the GOT register before use.
30649
30650         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30651         calculation of ARGC > 4.
30652
30653         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30654         meaningful names to some local labels.
30655
30656 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30657             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30658
30659         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30660         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30661         (__arch_compare_and_exchange_val_16_acq): Likewise.
30662         (__arch_compare_and_exchange_val_32_acq): Likewise.
30663         (atomic_exchange_and_add): Fix gUSA sequence.
30664         (atomic_add): Likewise.
30665         (atomic_add_negative): Likewise.
30666         (atomic_add_zero): Likewise.
30667         (atomic_bit_test_set): Likewise.
30668
30669 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30670
30671         [BZ #13579]
30672         * include/link.h (struct link_map): Add l_free_initfini.
30673         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30674         l_initfini.
30675         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30676         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30677         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30678         set.
30679
30680 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30681
30682         * configure.in: Use AC_LANG_SOURCE.
30683         * configure: Regenerate.
30684
30685 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30686
30687         * configure.in (libc_cv_localstatedir): New substituted variable.
30688         * configure: Regenerated.
30689         * config.make.in (localstatedir): New variable, substituted from
30690         libc_cv_localstatedir.
30691         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30692         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30693         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30694         * sysdeps/gnu/configure: Regenerated.
30695
30696 2012-06-21  Jeff Law  <law@redhat.com>
30697
30698         [BZ #14277]
30699         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30700         free.  Simplify list management for _LIBC case.
30701
30702 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30703
30704         [BZ #14273]
30705         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30706         Clear sign bit of 64-bit integer value before comparing against
30707         overflow value.
30708
30709         * sysdeps/mach/configure: Regenerated.
30710
30711 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30712
30713         [BZ #14278]
30714         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30715
30716 2012-06-21  Jeff Law  <law@redhat.com>
30717
30718         [BZ #13882]
30719         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30720         uint16_t for elements in the "seen" array to avoid char overflows.
30721         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30722         * elf/dl-open.c (dl_open_worker): Likewise.
30723
30724 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30725
30726         * scripts/list-sources.sh: Scan PORTS for translations.
30727         * po/libc.pot: Regenerated.
30728
30729 2012-06-21  Andreas Jaeger  <aj@suse.de>
30730
30731         [BZ #12194]
30732         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30733         warning.
30734         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30735         * bits/byteswap-16.h (__bswap_16): Likewise.
30736         * bits/byteswap.h (__bswap_constant_16): Likewise.
30737
30738 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30739
30740         [BZ #14117]
30741         * sysdeps/i386/fpu_control.h: Removed.
30742         * sysdeps/x86_64/fpu_control.h: Moved to ...
30743         * sysdeps/x86/fpu_control.h: Here.
30744
30745         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30746         (_FPU_SETCW): Likewise.
30747
30748 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30749
30750         [BZ #14117]
30751         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30752         * sysdeps/x86/fpu/bits/mathinline.h: This.
30753         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30754
30755         [BZ #14050]
30756         [BZ #14117]
30757         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30758         functions if __x86_64__ is defined.
30759
30760 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30761
30762         * string/endian.h: Add !__ASSEMBLER__ condition for including
30763         conversion interfaces.
30764
30765 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30766
30767         [BZ #14241]
30768         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30769         of ABS(x) in calculating zero to negative powers other than odd
30770         integers.
30771         * math/libm-test.inc (pow_test): Add more tests.
30772
30773 2012-06-15  Andreas Jaeger  <aj@suse.de>
30774
30775         * manual/contrib.texi (Contributors): Update entry of Liubov
30776         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30777         Machado Filho.
30778
30779 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30780
30781         * string/string.h: Add __wur to GNU version of strerror_r.
30782
30783 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30784
30785         [BZ #14229]
30786         * string/Makefile (tests): Add tst-strtok_r.
30787         * string/tst-strtok_r.c: New file.
30788         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30789         RAX_LP/RDX_LP on SAVE_PTR.
30790
30791 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30792
30793         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30794
30795 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30796
30797         * libm_test.inc (csqrt_test): Allow more spurious underflow
30798         exceptions.
30799         (j0_test): Likewise.
30800         (j1_test): Likewise.
30801         (y0_test): Likewise.
30802         (y1_test): Likewise.
30803
30804 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30805
30806         * po/Makefile (libc.pot): Use UTF-8 charset.
30807
30808 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30809
30810         [BZ #14210]
30811         Suppress sign-conversion warning from FD_SET.
30812         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30813         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30814         not unsigned long int.
30815         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30816
30817 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30818
30819         [BZ #14050]
30820         [BZ #14117]
30821         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30822         __extern_always_inline instead of __extern_inline.
30823         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30824         (__signbit): Likewise.
30825         (__signbitl): Support C++ namespace.
30826         (lrintf): New inline function.
30827         (lrint): Likewise.
30828         (llrintf): Likewise.
30829         (llrint): Likewise.
30830         (fmaxf): Likewise.
30831         (fmax): Likewise.
30832         (fminf): Likewise.
30833         (fmin): Likewise.
30834         (rint): Likewise.
30835         (rintf): Likewise.
30836         (ceil): Likewise.
30837         (ceilf): Likewise.
30838         (floor): Likewise.
30839         (floorf): Likewise.
30840         (nearbyint): Likewise.
30841         (nearbyintf): Likewise.
30842
30843 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30844
30845         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30846         non-default versions.
30847
30848 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30849
30850         [BZ #14218]
30851         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30852
30853 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30854
30855         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30856         (FE_UPWARD, FE_DOWNWARD): Don't define.
30857         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30858         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30859
30860         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30861         reading it.
30862         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30863         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30864
30865 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30866
30867         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30868         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30869         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30870         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30871
30872 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30873
30874         [BZ #14117]
30875         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30876         * sysdeps/i386/fpu/Implies: New file.
30877         * sysdeps/x86_64/fpu/Implies: Likewise.
30878         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30879         * sysdeps/x86/fpu/bits/fenv.h: This.
30880
30881         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30882         __SSE_MATH__.
30883
30884 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30885
30886         [BZ #14134]
30887         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30888         character 0xffff that matches the last element of the
30889         conversion table.
30890
30891 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30892
30893         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30894         fmodl commit.
30895
30896 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30897
30898         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30899         values higher than 25.6283.
30900
30901 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30902
30903         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30904         subnormal exponent extraction and add some __builtin_expect.
30905         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30906         Fix for subnormal mantissa calculation.
30907
30908 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30909
30910         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30911         cpu2 is -1 and errno is not ENOSYS.
30912
30913 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30914
30915         [BZ #14117]
30916         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30917         * sysdeps/x86/bits/string.h: This.
30918         * sysdeps/x86_64/bits/string.h: Removed.
30919
30920         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30921         if not compiling for x86-64, but compiling for >= i486.
30922
30923         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30924         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30925
30926         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30927         New macro from Linux kernel 3.4.0.
30928         (FP_XSTATE_MAGIC2): Likewise.
30929         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30930         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30931         (struct _fpx_sw_bytes): New struct.
30932         (struct _xsave_hdr): Likewise.
30933         (struct _ymmh_state): Likewise.
30934         (struct _xstate): Likewise.
30935
30936         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30937         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30938         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30939         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30940         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30941         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30942
30943         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30944         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30945         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30946         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30947         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30948         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30949
30950 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30951
30952         [BZ #13743]
30953         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30954         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30955         (sysdep_headers): Include sys/platform/ppc.h.
30956         * sysdeps/powerpc/test-gettimebase.c: Test for
30957         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30958         * manual/Makefile (appendices): Include platform.texi.
30959         * manual/contrib.texi (Contributors): Update @node pointers.
30960         * manual/maint.texi (Maintenance): Likewise.
30961         (Platform): New node.
30962         * manual/platform.texi: New file.  Document the new features.
30963
30964 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30965             Jakub Jelinek  <jakub@redhat.com>
30966
30967         [BZ #14188]
30968         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30969         where __builtin_expect is unavailable.
30970
30971 2012-06-03  David S. Miller  <davem@davemloft.net>
30972
30973         * stdlib/longlong.h: Updated from GCC.
30974
30975 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30976
30977         [BZ #14042]
30978         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30979         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30980         __mcount_internal.
30981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30982         (GLIBC_2.16): Likewise.
30983
30984 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30985
30986         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30987
30988 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30989
30990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30991         (default-abi): New variable.
30992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30993         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30994         variable.
30995         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30996         Likewise.
30997         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30998         Likewise.
30999         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
31000         Likewise.
31001
31002         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
31003         definition.  Document in comment.
31004
31005 2012-06-01  David S. Miller  <davem@davemloft.net>
31006
31007         * stdlib/longlong.h: Updated from GCC.
31008
31009 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31010
31011         [BZ #14117]
31012         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
31013         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
31014         sys/debugreg.h sys/io.h here.
31015         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
31016         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
31017         sys/io.h.
31018         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
31019         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
31020         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
31021         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
31022         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
31023         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
31024
31025         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
31026         Define only if __x86_64__ is defined.
31027
31028 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
31029
31030         [BZ #14048]
31031         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
31032         Use int64_t for variable i.
31033         * math/libm-test.inc (fmod_test): Add more tests.
31034
31035         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
31036         z computation is not scheduled after fetestexcept.
31037         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
31038         Use math_force_eval instead of asm to ensure calculation scheduled
31039         before exception test.
31040         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
31041         Ensure a1 + u.d computation is not scheduled after fetestexcept.
31042
31043 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
31044
31045         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
31046         computation is not scheduled after fetestexcept.
31047
31048 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31049
31050         [BZ #14117]
31051         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
31052         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
31053
31054 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31055
31056         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
31057         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
31058
31059 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31060
31061         [BZ #14117]
31062         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
31063         <bits/wordsize.h>.
31064         (__WCHAR_MIN): Support __WORDSIZE == 64.
31065         (__WCHAR_MAX): Likewise.
31066
31067         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
31068         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
31069
31070         [BZ #14183]
31071         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
31072         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
31073
31074         [BZ #14117]
31075         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
31076         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
31077
31078         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
31079         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
31080
31081         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
31082         Defined to 1 if __x86_64__ isn't defined.
31083         (_STAT_VER_LINUX_OLD): New.
31084         (st_atime): Remove duplicate.
31085         (st_mtime): Likewise.
31086         (st_ctime): Likewise.
31087
31088 2012-05-31  David S. Miller  <davem@davemloft.net>
31089
31090         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
31091         entries.
31092
31093 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
31094
31095         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
31096         gen-libm-test.pl.
31097
31098         [BZ #14132]
31099         * elf/dl-reloc.c: Include <_itoa.h>.
31100         (_dl_reloc_bad_type): Remove use of INTUSE.
31101         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31102         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31103         * stdio-common/psiginfo.c (psiginfo): Likewise.
31104         * stdio-common/psignal.c (psignal): Likewise.
31105         * string/strsignal.c (strsignal): Likewise.
31106         * include/signal.h (_sys_siglist): Declare hidden proto.
31107         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31108         INTVARDEF with libc_hidden_data_def.
31109         * stdio-common/itoa-udigits.c: Likewise.
31110         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31111         (_itoa_lower_digits_internal): Remove declaration.
31112         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31113         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31114         (_sys_sigabbrev_internal): Remove aliases.
31115         (_sys_siglist): Define hidden alias.
31116
31117 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31118
31119         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31120         bits/sysctl.h.
31121
31122 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31123
31124         [BZ #14117]
31125         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31126         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31127
31128         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31129         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31130         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31131         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31132         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31133         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31134
31135         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31136         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31137         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31138
31139         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31140         with __addr.
31141         (insw): Likewise.
31142         (insl): Likewise.
31143         (outsb): Likewise.
31144         (outsw): Likewise.
31145         (outsl): Likewise.
31146
31147         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31148         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31149         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31150
31151         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31152         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31153         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31154         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31155         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31156         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31157
31158         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31159         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31160
31161         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31162         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31163
31164         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31165         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31166         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31167
31168         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31169         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31170         to ...
31171         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31172
31173         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31174         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31175         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31176
31177         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31178         for x86-64.
31179         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31180
31181 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31182
31183         * math/math.h (M_El): Use two more decimal places.
31184         (M_LOG2El): Likewise.
31185         (M_LOG10El): Likewise.
31186         (M_LN2l): Likewise.
31187         (M_LN10l): Likewise.
31188         (M_PIl): Likewise.
31189         (M_PI_2l): Likewise.
31190         (M_PI_4l): Likewise.
31191         (M_1_PIl): Likewise.
31192         (M_2_PIl): Likewise.
31193         (M_2_SQRTPIl): Likewise.
31194         (M_SQRT2l): Likewise.
31195         (M_SQRT1_2l): Likewise.
31196
31197 2012-05-31  David S. Miller  <davem@davemloft.net>
31198
31199         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31200         values between float registers.
31201         * sysdeps/sparc/sparc64/memset.S: Likewise.
31202         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31203
31204 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31205
31206         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31207         -D_FORTIFY_SOURCE=1.
31208         (CPPFLAGS-tst-longjmp_chk.c): Define.
31209         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31210         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31211         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31212         CFLAGS-tst-wchar-h.c.
31213
31214 2012-05-31  Marek Polacek  <polacek@redhat.com>
31215
31216         [BZ #14132]
31217         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31218         __endmntent_internal): Remove declaration.
31219         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31220         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31221         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31222
31223 2012-05-30  David S. Miller  <davem@davemloft.net>
31224
31225         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31226         (___Q_simulate_exceptions): Use real FP ops rather than writing
31227         into the %fsr.
31228         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31229         Likewise.
31230
31231 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31232
31233         [BZ #14117]
31234         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31235         * sysdeps/x86/bits/xtitypes.h: This.
31236
31237         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31238         * sysdeps/x86/bits/wordsize.h: This.
31239
31240         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31241         * sysdeps/x86/bits/huge_vall.h: This.
31242
31243         * sysdeps/i386/bits/select.h: Removed.
31244         * sysdeps/x86_64/bits/select.h: Renamed to ...
31245         * sysdeps/x86/bits/select.h: This.
31246
31247         * sysdeps/i386/bits/setjmp.h: Removed.
31248         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31249         * sysdeps/x86/bits/setjmp.h: This.
31250
31251         * sysdeps/i386/bits/mathdef.h: Removed.
31252         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31253         * sysdeps/x86/bits/mathdef.h: This.
31254
31255 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31256
31257         [BZ #14132]
31258         * include/sys/socket.h (__connect_internal)
31259         (__libc_sa_len_internal): Remove declaration.
31260         (__connect, __libc_sa_len): Declare hidden_proto.
31261         (SA_LEN): Remove use of INTUSE.
31262         * socket/connect.c: Add libc_hidden_def.
31263         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31264         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31265         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31266         alias.
31267         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31268         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31269         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31270         of adding _internal alias.
31271
31272 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31273
31274         [BZ #14117]
31275         * sysdeps/i386/bits/link.h: Removed.
31276         * sysdeps/i386/bits/linkmap.h: Likewise.
31277         * sysdeps/x86_64/bits/link.h: Renamed to ...
31278         * sysdeps/x86/bits/link.h: This.
31279         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31280         * sysdeps/x86/bits/linkmap.h: This.
31281
31282         * sysdeps/i386/bits/endian.h: Removed.
31283         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31284         * sysdeps/x86/bits/endian.h: This.
31285
31286         * sysdeps/i386/bits/byteswap.h: Removed.
31287         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31288         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31289         * sysdeps/x86/bits/byteswap.h: This.
31290         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31291         * sysdeps/x86/bits/byteswap-16.h: This.
31292         * sysdeps/i386/Implies: Add x86.
31293         * sysdeps/x86_64/Implies: Likewise.
31294
31295 2012-05-30  David S. Miller  <davem@davemloft.net>
31296
31297         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31298         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31299         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31300         (FP_TRAPPING_EXCEPTIONS): Define.
31301         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31302         (FP_TRAPPING_EXCEPTIONS): Define.
31303         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31304         subnormals only when inexact has been signalled or underflow
31305         exceptions are enabled.
31306         (_FP_PACK_CANONICAL): Likewise.
31307
31308 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31309
31310         [BZ #14183]
31311         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31312         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31313
31314 2012-05-30  Richard Henderson  <rth@twiddle.net>
31315
31316         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31317         with #ifndef NOT_IN_libc.
31318
31319         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31320         marked to avoid plt entry.
31321
31322 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31323
31324         [BZ #14112]
31325         * Makeconfig (default-abi): New macro.
31326         (abi-includes): Likewise.
31327         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31328         $(abi-$(default-abi)-lib-soname) for soname if defined.
31329         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31330         abi-variants.
31331         * Makefile (installed-stubs): Likewise.
31332         * include/stubs-biarch.h: Removed.
31333         * scripts/lib-names.awk: Only handle one library at a time.
31334         * scripts/soversions.awk: Remove WORDSIZE support.
31335         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31336         entries.
31337         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31338         Removed.
31339         (syscall-list-default-condition): Likewise.
31340         (syscall-list-default-condition): Likewise.
31341         (syscall-list-includes): Likewise.
31342         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31343         syscall-list-* with abi-*.  Handle undefined abi-variants.
31344         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31345         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31346         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31347         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31348         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31349         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31350         Removed.
31351         (syscall-list-32-options): Likewise.
31352         (syscall-list-32-condition): Likewise.
31353         (syscall-list-64-options): Likewise.
31354         (syscall-list-64-condition): Likewise.
31355         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31356         macro.
31357         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31358         Renamed to ...
31359         (abi-*): This.
31360         (abi-64-ld-soname): New macro.
31361         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31362         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31363         Renamed to ...
31364         (abi-*): This.
31365         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31366         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31367
31368 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31369
31370         * sysdeps/unix/sysv/linux/kernel-features.h
31371         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31372         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31373         include <kernel-features.h>.
31374         [!__NR_ftruncate64]: Remove conditional code.
31375         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31376         [__NR_ftruncate64]: Make code unconditional.
31377         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31378         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31379         include <kernel-features.h>.
31380         [!__NR_ftruncate64]: Remove conditional code.
31381         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31382         [__NR_ftruncate64]: Make code unconditional.
31383         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31385         include <kernel-features.h>.
31386         [!__NR_ftruncate64]: Remove conditional code.
31387         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31388         [__NR_ftruncate64]: Make code unconditional.
31389         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31391         include <kernel-features.h>.
31392         [!__NR_ftruncate64]: Remove conditional code.
31393         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31394         [__NR_ftruncate64]: Make code unconditional.
31395         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31396
31397         * configure.in (libc_cv_fpie): Weaken to a compile test using
31398         LIBC_TRY_CC_OPTION.
31399         * configure: Regenerated.
31400
31401 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31402
31403         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31407         Refreshed.
31408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31409         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31410         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31411         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31412         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31413         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31414         Refreshed.
31415
31416 2012-05-27  David S. Miller  <davem@davemloft.net>
31417
31418         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31419         (___Q_zero): New.
31420         (__Q_simulate_exceptions): Return void.  Change to simulate
31421         exceptions by writing into the %fsr.
31422         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31423         (__Qp_handle_exceptions): Likewise.
31424         (numbers): Delete.
31425         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31426         __Qp_handle_exceptions.
31427         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31428         __Qp_handle_exceptions.
31429         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31430         as unused and give dummy FP_RND_NEAREST initializer.
31431         (FP_INHIBIT_RESULTS): Define.
31432         (___Q_simulate_exceptions): Update declaration.
31433         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31434         formatting.
31435         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31436         as unused and give dummy FP_RND_NEAREST initializer.
31437         (__Qp_handle_exceptions): Update declaration.
31438         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31439         formatting.
31440
31441 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31442
31443         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
31444         the temporary FPU control word.
31445         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
31446         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
31447         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
31448         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31449         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
31450         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
31451         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
31452         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31453         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
31454         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
31455         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31456
31457 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31458
31459         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
31460         fields.
31461
31462 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
31463
31464         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
31465         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
31466         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
31467         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
31468         Likewise.
31469         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
31470         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
31471         Likewise.
31472
31473 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
31474
31475         * po/h.po: Update from translation team.
31476
31477 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
31478
31479         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
31480
31481         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
31482         handling of denormals.
31483         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31484         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31485         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31486         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31487         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31488         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31489         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31490         Likewise.
31491
31492 2012-05-26  Marek Polacek  <polacek@redhat.com>
31493
31494         [BZ #14152]
31495         * math/libm-test.inc (fma_test): Don't always expect underflow
31496         exception.
31497
31498 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31499
31500         [BZ #12416]
31501         * elf/tst-execstack.c: Include stackinfo.h.
31502         (do_test): Adjust test case to ensure that pthread_getattr_np
31503         behaviour remains the same after marking stack executable.
31504
31505 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31506
31507         * sysdeps/unix/sysv/linux/kernel-features.h
31508         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31509         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31510         kernel-features.h.
31511         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31512         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31513         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31514         kernel-features.h.
31515         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31516         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31517
31518 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31519
31520         * configure.in: Define the default includes to being none.
31521         * configure: Regenerated.
31522
31523 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31524
31525         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31526         * sysdeps/x86_64/setjmp.S: Likewise.
31527         * sysdeps/i386/bsd-setjmp.S: Likewise.
31528         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31529         * sysdeps/i386/setjmp.S: Likewise.
31530         * sysdeps/i386/__longjmp.S: Likewise.
31531         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31532         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31533
31534         * include/stap-probe.h: New file.
31535         * configure.in: Handle --enable-systemtap.
31536         * configure: Regenerated.
31537         * config.h.in (USE_STAP_PROBE): New #undef.
31538         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31539         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31540         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31541
31542 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31543
31544         [BZ #13717]
31545         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31546         to 2.4.0 where earlier.
31547         * sysdeps/unix/sysv/linux/configure: Regenerated.
31548         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
31549         <kernel-features.h>.
31550         [__ASSUME_32BITUIDS]: Make code unconditional.
31551         [!__ASSUME_32BITUIDS]: Remove conditional code.
31552         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
31553         <kernel-features.h>.
31554         [__ASSUME_32BITUIDS]: Make code unconditional.
31555         [!__ASSUME_32BITUIDS]: Remove conditional code.
31556         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
31557         [__ASSUME_32BITUIDS]: Make code unconditional.
31558         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31559         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
31560         <kernel-features.h>.
31561         [__ASSUME_32BITUIDS]: Make code unconditional.
31562         [!__ASSUME_32BITUIDS]: Remove conditional code.
31563         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
31564         <kernel-features.h>.
31565         [__ASSUME_32BITUIDS]: Make code unconditional.
31566         [!__ASSUME_32BITUIDS]: Remove conditional code.
31567         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
31568         <kernel-features.h>.
31569         [__ASSUME_32BITUIDS]: Make code unconditional.
31570         [!__ASSUME_32BITUIDS]: Remove conditional code.
31571         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
31572         <kernel-features.h>.
31573         [__ASSUME_32BITUIDS]: Make code unconditional.
31574         [!__ASSUME_32BITUIDS]: Remove conditional code.
31575         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
31576         <kernel-features.h>.
31577         [__ASSUME_32BITUIDS]: Make code unconditional.
31578         [!__ASSUME_32BITUIDS]: Remove conditional code.
31579         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
31580         <kernel-features.h>.
31581         [__ASSUME_32BITUIDS]: Make code unconditional.
31582         [!__ASSUME_32BITUIDS]: Remove conditional code.
31583         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
31584         <kernel-features.h>.
31585         [__ASSUME_32BITUIDS]: Make code unconditional.
31586         [!__ASSUME_32BITUIDS]: Remove conditional code.
31587         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
31588         <kernel-features.h>.
31589         [__ASSUME_32BITUIDS]: Make code unconditional.
31590         [!__ASSUME_32BITUIDS]: Remove conditional code.
31591         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
31592         <kernel-features.h>.
31593         [__ASSUME_32BITUIDS]: Make code unconditional.
31594         [!__ASSUME_32BITUIDS]: Remove conditional code.
31595         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
31596         <kernel-features.h>.
31597         [__ASSUME_32BITUIDS]: Make code unconditional.
31598         [!__ASSUME_32BITUIDS]: Remove conditional code.
31599         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
31600         <kernel-features.h>.
31601         [__NR_setresgid] (__setresgid): Do not declare.
31602         [__ASSUME_32BITUIDS]: Make code unconditional.
31603         [!__ASSUME_32BITUIDS]: Remove conditional code.
31604         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31605         <kernel-features.h>.
31606         [__NR_setresuid] (__setresuid): Do not declare.
31607         [__ASSUME_32BITUIDS]: Make code unconditional.
31608         [!__ASSUME_32BITUIDS]: Remove conditional code.
31609         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
31610         <kernel-features.h>.
31611         [__ASSUME_32BITUIDS]: Make code unconditional.
31612         [!__ASSUME_32BITUIDS]: Remove conditional code.
31613         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
31614         <kernel-features.h>.
31615         [__ASSUME_32BITUIDS]: Make code unconditional.
31616         [!__ASSUME_32BITUIDS]: Remove conditional code.
31617         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
31618         <kernel-features.h>.
31619         [__ASSUME_32BITUIDS]: Make code unconditional.
31620         [!__ASSUME_32BITUIDS]: Remove conditional code.
31621         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
31622         <kernel-features.h>.
31623         [__ASSUME_32BITUIDS]: Make code unconditional.
31624         [!__ASSUME_32BITUIDS]: Remove conditional code.
31625         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
31626         <kernel-features.h>.
31627         [__ASSUME_32BITUIDS]: Make code unconditional.
31628         [!__ASSUME_32BITUIDS]: Remove conditional code.
31629         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
31630         <kernel-features.h>.
31631         [__ASSUME_32BITUIDS]: Make code unconditional.
31632         [!__ASSUME_32BITUIDS]: Remove conditional code.
31633         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
31634         <kernel-features.h>.
31635         [__ASSUME_32BITUIDS]: Make code unconditional.
31636         [!__ASSUME_32BITUIDS]: Remove conditional code.
31637         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
31638         <kernel-features.h>.
31639         [__ASSUME_32BITUIDS]: Make code unconditional.
31640         [!__ASSUME_32BITUIDS]: Remove conditional code.
31641         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
31642         <kernel-features.h>.
31643         [__ASSUME_32BITUIDS]: Make code unconditional.
31644         [!__ASSUME_32BITUIDS]: Remove conditional code.
31645         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
31646         <kernel-features.h>.
31647         [__ASSUME_32BITUIDS]: Make code unconditional.
31648         [!__ASSUME_32BITUIDS]: Remove conditional code.
31649         * sysdeps/unix/sysv/linux/kernel-features.h
31650         (__ASSUME_SETRESUID_SYSCALL): Remove.
31651         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31652         (__ASSUME_32BITUIDS): Likewise.
31653         (__ASSUME_LDT_WORKS): Likewise.
31654         (__ASSUME_O_DIRECTORY): Likewise.
31655         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31656         architecture but not kernel version.
31657         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31658         (__ASSUME_MMAP2_SYSCALL): Likewise.
31659         (__ASSUME_STAT64_SYSCALL): Likewise.
31660         (__ASSUME_IPC64): Likewise.
31661         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31662         <kernel-features.h>.
31663         [__ASSUME_32BITUIDS]: Make code unconditional.
31664         [!__ASSUME_32BITUIDS]: Remove conditional code.
31665         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31666         <kernel-features.h>.
31667         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31668         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31669         132096]: Remove conditional code.
31670         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31671         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31672         <kernel-features.h>.
31673         [__ASSUME_32BITUIDS]: Make code unconditional.
31674         [!__ASSUME_32BITUIDS]: Remove conditional code.
31675         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31676         <kernel-features.h>.
31677         [__ASSUME_32BITUIDS]: Make code unconditional.
31678         [!__ASSUME_32BITUIDS]: Remove conditional code.
31679         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31680         <kernel-features.h>.
31681         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31682         unconditional.
31683         (__setresgid): Do not declare.
31684         [__ASSUME_32BITUIDS]: Make code unconditional.
31685         [!__ASSUME_32BITUIDS]: Remove conditional code.
31686         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31687         <kernel-features.h>.
31688         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31689         unconditional.
31690         (__setresuid): Do not declare.
31691         [__ASSUME_32BITUIDS]: Make code unconditional.
31692         [!__ASSUME_32BITUIDS]: Remove conditional code.
31693         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31694         <kernel-features.h>.
31695         [__ASSUME_32BITUIDS]: Make code unconditional.
31696         [!__ASSUME_32BITUIDS]: Remove conditional code.
31697         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31698         <kernel-features.h>.
31699         [__ASSUME_32BITUIDS]: Make code unconditional.
31700         [!__ASSUME_32BITUIDS]: Remove conditional code.
31701
31702 2012-05-25  Richard Henderson  <rth@twiddle.net>
31703
31704         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31705         dl_hwcap to ifunc resolver.
31706         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31707         elf_ifunc_invoke.
31708         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31709         dl_hwcap to ifunc resolver.
31710         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31711
31712 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31713
31714         [BZ #14153]
31715         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31716         for |x| <= 2**-26, not 2**-57.
31717         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31718         exception.
31719
31720 2012-05-24  Jeff Law  <law@redhat.com>
31721
31722         * stdio-common/Makefile (tests): Add bug25.
31723         * stdio-common/bug25.c: New test.
31724
31725 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31726
31727         [BZ #13576]
31728         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31729         multiple of MALLOC_ALIGNMENT in size.
31730         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31731
31732 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31733
31734         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31735         Require >= 256.
31736         (FILENAME_MAX): Use macro-int-constant.
31737         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31738         (_IOFBF): Use macro-int-constant.
31739         (_IOLBF): Likewise.
31740         (_IONBF): Likewise.
31741         (SEEK_CUR): Likewise.
31742         (SEEK_END): Likewise.
31743         (SEEK_SET): Likewise.
31744         (TMP_MAX): Likewise.
31745         (EOF): Use macro-int-constant.  Require < 0.
31746         (NULL): Use macro-constant.  Require == 0.
31747         (stdin): Require type to be FILE *.
31748         (stdout): Likewise.
31749         (stderr): Likewise.
31750         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31751         macro-int-constant.
31752         (EXIT_SUCCESS): Likewise.
31753         (NULL): Use macro-constant.  Require == 0.
31754         (RAND_MAX): Use macro-int-constant.
31755         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31756         [C99-based standards] (strtof): Require function.
31757         [C99-based standards] (strtold): Likewise.
31758         [C99-based standards] (strtoll): Likewise.
31759         [C99-based standards] (strtoull): Likewise.
31760         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31761         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31762         [ISO || ISO99 || ISO11] (math.h): Likewise.
31763         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31764         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31765         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31766
31767 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31768
31769         [BZ #14132]
31770         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31771         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31772         * intl/dgettext.c (DCGETTEXT): Likewise.
31773         * intl/gettext.c (DCGETTEXT): Likewise.
31774         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31775         * posix/regex_internal.h (gettext): Likewise.
31776         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31777         Remove declaration.
31778         * include/argz.h (__argz_count_internal)
31779         (__argz_stringify_internal): Remove declaration.
31780         (__argz_count, __argz_stringify): Declare hidden proto.
31781         * intl/dcgettext.c: Remove use of INTDEF.
31782         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31783         * string/argz-stringify.c: Likewise.
31784         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31785         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31786         Declare hidden proto.
31787         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31788         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31789         Declare hidden proto.
31790         * include/stdio.h (__asprintf_internal): Don't declare.
31791         (__asprintf): Don't define as macro.  Declare hidden proto.
31792         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31793         (__fsetlocking): Declare hidden proto.
31794         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31795         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31796         hidden proto.
31797         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31798         (_IO_setlinebuf): Remove use of INTUSE.
31799         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31800         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31801         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31802         Remove declaration.
31803         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31804         (_IO_do_flush): Remove use of INTUSE.
31805         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31806         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31807         (_IO_adjust_column, _IO_least_wmarker)
31808         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31809         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31810         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31811         (_IO_default_doallocate, _IO_wdefault_doallocate)
31812         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31813         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31814         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31815         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31816         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31817         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31818         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31819         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31820         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31821         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31822         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31823         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31824         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31825         proto.
31826         (_IO_flush_all_internal, _IO_adjust_column_internal)
31827         (_IO_default_uflow_internal, _IO_default_finish_internal)
31828         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31829         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31830         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31831         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31832         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31833         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31834         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31835         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31836         (_IO_file_close_internal, _IO_file_close_it_internal)
31837         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31838         (_IO_file_init_internal, _IO_file_attach_internal)
31839         (_IO_file_fopen_internal, _IO_file_read_internal)
31840         (_IO_file_sync_internal, _IO_file_seek_internal)
31841         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31842         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31843         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31844         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31845         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31846         (_IO_list_all_internal, _IO_link_in_internal)
31847         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31848         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31849         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31850         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31851         (_IO_do_write_internal, _IO_padn_internal)
31852         (_IO_getline_info_internal, _IO_getline_internal)
31853         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31854         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31855         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31856         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31857         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31858         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31859         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31860         with libc_hidden_ver, remove use of INTUSE.
31861         * libio/genops.c: Likewise.
31862         * libio/freopen.c: Likewise.
31863         * libio/freopen64.c: Likewise.
31864         * libio/iofclose.c: Likewise.
31865         * libio/iofdopen.c: Likewise.
31866         * libio/iofflush.c: Likewise.
31867         * libio/iofflush_u.c: Likewise.
31868         * libio/iofgets.c: Likewise.
31869         * libio/iofgets_u.c: Likewise.
31870         * libio/iofopen.c: Likewise.
31871         * libio/iofopncook.c: Likewise.
31872         * libio/iofread.c: Likewise.
31873         * libio/iofread_u.c: Likewise.
31874         * libio/ioftell.c: Likewise.
31875         * libio/iofwrite.c: Likewise.
31876         * libio/iogetline.c: Likewise.
31877         * libio/iogets.c: Likewise.
31878         * libio/iogetwline.c: Likewise.
31879         * libio/iopadn.c: Likewise.
31880         * libio/iopopen.c: Likewise.
31881         * libio/ioseekoff.c: Likewise.
31882         * libio/ioseekpos.c: Likewise.
31883         * libio/iosetbuffer.c: Likewise.
31884         * libio/iosetvbuf.c: Likewise.
31885         * libio/ioungetc.c: Likewise.
31886         * libio/ioungetwc.c: Likewise.
31887         * libio/iovdprintf.c: Likewise.
31888         * libio/iovsprintf.c: Likewise.
31889         * libio/iovsscanf.c: Likewise.
31890         * libio/memstream.c: Likewise.
31891         * libio/obprintf.c: Likewise.
31892         * libio/oldfileops.c: Likewise.
31893         * libio/oldiofclose.c: Likewise.
31894         * libio/oldiofdopen.c: Likewise.
31895         * libio/oldiofopen.c: Likewise.
31896         * libio/oldiopopen.c: Likewise.
31897         * libio/oldstdfiles.c: Likewise.
31898         * libio/putc.c: Likewise.
31899         * libio/setbuf.c: Likewise.
31900         * libio/setlinebuf.c: Likewise.
31901         * libio/stdfiles.c: Likewise.
31902         * libio/strops.c: Likewise.
31903         * libio/vasprintf.c: Likewise.
31904         * libio/vscanf.c: Likewise.
31905         * libio/vsnprintf.c: Likewise.
31906         * libio/vswprintf.c: Likewise.
31907         * libio/wfiledoalloc.c: Likewise.
31908         * libio/wfileops.c: Likewise.
31909         * libio/wgenops.c: Likewise.
31910         * libio/wmemstream.c: Likewise.
31911         * libio/wstrops.c: Likewise.
31912         * libio/__fpurge.c: Likewise.
31913         * libio/__fsetlocking.c: Likewise.
31914         * assert/assert.c: Likewise.
31915         * debug/fgets_chk.c: Likewise.
31916         * debug/fgets_u_chk.c: Likewise.
31917         * debug/fread_chk.c: Likewise.
31918         * debug/fread_u_chk.c: Likewise.
31919         * debug/gets_chk.c: Likewise.
31920         * debug/obprintf_chk.c: Likewise.
31921         * debug/vasprintf_chk.c: Likewise.
31922         * debug/vdprintf_chk.c: Likewise.
31923         * debug/vsnprintf_chk.c: Likewise.
31924         * debug/vsprintf_chk.c: Likewise.
31925         * malloc/mtrace.c: Likewise.
31926         * misc/error.c: Likewise.
31927         * misc/syslog.c: Likewise.
31928         * stdio-common/asprintf.c: Likewise.
31929         * stdio-common/fxprintf.c: Likewise.
31930         * stdio-common/getw.c: Likewise.
31931         * stdio-common/isoc99_fscanf.c: Likewise.
31932         * stdio-common/isoc99_scanf.c: Likewise.
31933         * stdio-common/isoc99_vfscanf.c: Likewise.
31934         * stdio-common/isoc99_vscanf.c: Likewise.
31935         * stdio-common/isoc99_vsscanf.c: Likewise.
31936         * stdio-common/printf-prs.c: Likewise.
31937         * stdio-common/printf_fp.c: Likewise.
31938         * stdio-common/printf_fphex.c: Likewise.
31939         * stdio-common/printf_size.c: Likewise.
31940         * stdio-common/putw.c: Likewise.
31941         * stdio-common/scanf.c: Likewise.
31942         * stdio-common/sprintf.c: Likewise.
31943         * stdio-common/tmpfile.c: Likewise.
31944         * stdio-common/vfprintf.c: Likewise.
31945         * stdio-common/vfscanf.c: Likewise.
31946         * stdlib/strfmon_l.c: Likewise.
31947         * sunrpc/openchild.c: Likewise.
31948         * sunrpc/xdr_stdio.c: Likewise.
31949         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31950         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31951
31952 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31953
31954         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31955
31956         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31957         in the third column, to generate for the shared library an IFUNC
31958         that uses _dl_vdso_vsym.
31959         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31960         * Makeconfig (object-suffixes-noshared): New variable.
31961
31962         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31963         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31964         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31965         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31966
31967         [BZ #14132]
31968         * include/sys/time.h (__gettimeofday): Remove macro.
31969         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31970         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31971         Remove INTDEF.
31972         (__gettimeofday): Add libc_hidden_def.
31973         (gettimeofday): Add libc_hidden_weak.
31974         * sysdeps/mach/gettimeofday.c: Likewise.
31975         * sysdeps/posix/gettimeofday.c: Likewise.
31976         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31977         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31978         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31979         (__gettimeofday_internal): Remove strong_alias.
31980         (__gettimeofday): Add libc_hidden_def.
31981         (gettimeofday): Add libc_hidden_weak.
31982         * sysdeps/unix/syscalls.list (gettimeofday):
31983         Remove __gettimeofday_internal alias.
31984
31985 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31986             H.J. Lu  <hongjiu.lu@intel.com>
31987
31988         [BZ #12495]
31989         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31990         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31991         (largebin_index_32_big): New.
31992         (largebin_index): Use it for 16-byte alignment.
31993         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31994         correction with front_misalign.
31995
31996 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31997
31998         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31999         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32000         Likewise.
32001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
32002         Likewise.
32003         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
32004         Likewise.
32005         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
32006         Likewise.
32007         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
32008         Likewise.
32009         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
32010         Likewise.
32011         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
32012         Likewise.
32013         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
32014         Likewise.
32015         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
32016         Likewise.
32017         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
32018         Likewise.
32019         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32020         Likewise.
32021         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
32022         Likewise.
32023
32024         * scripts/data/c++-types-x32-linux-gnu.data: New file.
32025         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
32026
32027 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32028
32029         [BZ #10846]
32030         [BZ #14036]
32031         * math/libm-test.inc (exp_test): Add test from bug 14036.
32032         (pow_test): Add test from bug 10846.
32033
32034         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
32035         and other flags.
32036         (special_function): Do not include flags in test name.
32037         (parse_args): Likewise.
32038         * sysdeps/i386/fpu/libm-test-ulps: Update.
32039         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
32040         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
32041         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
32042         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32043
32044         * math/gen-libm-test.pl (%beautify): Add entries for underflow
32045         exceptions.
32046         * math/libm-test.inc ("Philosophy"): Update comment about
32047         exception testing.
32048         (UNDERFLOW_EXCEPTION): New macro.
32049         (UNDERFLOW_EXCEPTION_OK): Likewise.
32050         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
32051         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
32052         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
32053         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
32054         (INVALID_EXCEPTION_OK): Update value.
32055         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
32056         (OVERFLOW_EXCEPTION_OK): Likewise.
32057         (IGNORE_ZERO_INF_SIGN): Likewise.
32058         (test_exceptions): Handle underflow exceptions.
32059         (acos_test): Update for underflow exception expectations.
32060         (cexp_test): Likewise.
32061         (clog_test): Likewise.
32062         (clog10_test): Likewise.
32063         (csqrt_test): Likewise.
32064         (ctan_test): Likewise.
32065         (ctanh_test): Likewise.
32066         (exp_test): Likewise.
32067         (exp10_test): Likewise.
32068         (exp2_test): Likewise.
32069         (expm1_test): Likewise.
32070         (fma_test): Likewise.
32071         (j0_test): Likewise.
32072         (jn_test): Likewise.
32073         (nexttoward_test): Likewise.
32074         (pow_test): Likewise.
32075         (scalbn_test): Likewise.
32076         (scalbln_test): Likewise.
32077         (tan_test): Likewise.
32078         (y1_test): Likewise.
32079         * sysdeps/i386/fpu/libm-test-ulps: Update.
32080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32081
32082 2012-05-23  David S. Miller  <davem@davemloft.net>
32083
32084         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32085         (__libc_sigaction): Remove unused local variables.
32086
32087 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32088
32089         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
32090
32091 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32092
32093         mktime: avoid signed integer overflow
32094         * time/mktime.c (__mktime_internal): Do not mishandle the case
32095         where diff == INT_MIN.
32096
32097         mktime: simplify computation of average
32098         * time/mktime.c (ranged_convert): Use new time_t_avg function
32099         instead of rolling our own (probably-slower) code.
32100
32101         mktime: do not assume signed right shift propagates sign bit
32102         * time/mktime.c (isdst_differ): New static function.
32103         (__mktime_internal): No need to normalize tm_isdst now.
32104         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32105         tm_isdst values.
32106
32107         mktime: merge another wrapv change from gnulib
32108         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32109         from some compilers.
32110
32111         mktime: remove incorrect attempt at unusual arithmetics
32112         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32113         The code didn't really work on such machines anyway.
32114         (TYPE_MINIMUM): Assume two's complement.
32115         (twos_complement_arithmetic): Verify that long_int and time_t
32116         are two's complement (or unsigned, in the latter case).
32117
32118         mktime: check signed shifts on long_int and time_t, too
32119         * time/mktime.c (SHR): Check that shifts work as desired
32120         on the types long_int and time_t too, as SHR is used on
32121         such types.
32122
32123         mktime: do not assume 'long' is wide enough
32124         * time/mktime.c (verify): Move decl up.
32125         (long_int): New type.
32126         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32127         to remove assumption in the code that 'long' is wide enough to
32128         store year values.  This assumption is not true on x32 and on
32129         some non-glibc platforms.
32130
32131         mktime: merge wrapv change from gnulib
32132         * time/mktime.c (WRAPV): New macro.
32133         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32134         (guess_time_tm, __mktime_internal): Do not assume that signed
32135         integer overflow wraps around; modern compilers generate code
32136         where this assumption is no longer valid.
32137
32138 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32139
32140         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32141         Replace "jmp L(pseudo_end)" with "ret".
32142         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32143         Likewise.
32144
32145 2012-05-23  Andreas Jaeger  <aj@suse.de>
32146
32147         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32148         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32149
32150 2012-05-23  Andreas Jaeger  <aj@suse.de>
32151             Maximilian Attems  <max@stro.at>
32152
32153         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32154         New macros.
32155
32156 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32157
32158         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32159         code so that pseudo_end is just ret and the stack pointer is
32160         correct also for static library in error case.
32161
32162 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32163
32164         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32165         move to syscalls.list.
32166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32170
32171         * manual/install.texi (Running make install): Do not mention Linux
32172         kernel version for which pt_chown is not needed.
32173         (Linux): Do not mention problems with nscd with 2.0 kernels.
32174         * INSTALL: Regenerated.
32175
32176 2012-05-23  Andreas Jaeger  <aj@suse.de>
32177
32178         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32179         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32180         macro.
32181         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32182         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32183         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32184         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32185         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32186         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32187         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32188         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32189         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32190         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32191         * sysdeps/unix/sysv/linux/bits/in.h
32192         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32193
32194 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32195
32196         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32197         (PREPARE_VERSION): Just use assert instead, it will be elided
32198         under [NDEBUG] anyway.
32199
32200 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32201
32202         * sysdeps/unix/sysv/linux/Makefile: Include
32203         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32204         (sysdep_routines): Remove sysctl.
32205         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32206         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32207         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32208         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32209         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32210
32211 2012-05-22  Andreas Jaeger  <aj@suse.de>
32212
32213         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32214         that pseudo_end is just ret and the stack pointer is correct also
32215         for static library in error case.
32216
32217 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32218
32219         [BZ #14122]
32220         * nss/nsswitch.c (defconfig_entries): New variable.
32221         (__nss_database_lookup): Don't leak defconfig entries.
32222         (nss_parse_service_list): Don't leak on error paths.
32223         (free_database_entries): New function.
32224         (free_defconfig): New function.
32225         (free_mem): Move common code to free_database_entries.
32226
32227 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32228
32229         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32230         Add arch_prctl.
32231         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32232
32233         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32234         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32235         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32236         New macro.
32237         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32238         (INTERNAL_SYSCALL_TYPES): Likewise.
32239         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32240         (LOAD_REGS_TYPES_[1-6]): Likewise.
32241         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32242         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32243
32244 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32245
32246         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32247         copysignl for GLIBC_2_0.
32248         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32249         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32250         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32251         logbl for GLIBC_2_0.
32252         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32253         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32254
32255 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32256
32257         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32258         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32259
32260         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32261         Use "neg %eax".
32262
32263         * time/mktime.c: Update copyright years.
32264
32265 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32266
32267         mktime: merge comment-quoting-style change from gnulib
32268         * time/mktime.c: Quote 'like this' in comments.
32269         The GNU coding standards suggest that we no longer quote `like this',
32270         as "`" and "'" are typically rendered asymmetrically nowadays.
32271         The typical gnulib style is to quote 'like this' when quoting
32272         code, and "like this" when quoting English.
32273
32274         * time/mktime.c (compile-command): Add "-I.".
32275
32276         mktime: merge mktime-internal.h change from gnulib
32277         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32278
32279         mktime: merge time_r change from gnulib
32280         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32281
32282         mktime: merge DEBUG change from gnulib
32283         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32284         case system <time.h> has a #define.
32285
32286         mktime: merge <sys/types.h> change from gnulib
32287         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32288         since <time.t> is now guaranteed to define time_t.
32289
32290         mktime: merge HAVE_CONFIG_H change from gnulib
32291         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32292
32293 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32294
32295         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32296         Use "neg %eax".
32297
32298         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32299         __rlim_t cast.
32300         (struct rusage): Use anonymous union to pad each field to
32301         __syscall_slong_t.
32302
32303 2012-05-21  David S. Miller  <davem@davemloft.net>
32304
32305         * Makefules (o-iterator): Remove .s cases.
32306         (compile-command.s): Delete.
32307         (COMPILE.s): Delete.
32308         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32309
32310 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32311
32312         * configure.in (libc_cv_predef_stack_protector): Only consider
32313         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32314         * configure: Regenerated.
32315
32316 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32317
32318         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32319         New macro.  Use R*LP on int and pointer.
32320         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32321         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32322         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32323         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32324
32325         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32326         [__WORDSIZE_TIME64_COMPAT32] instead of
32327         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32328         (struct utmp): Likewise.
32329         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32330         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32331         Renamed to ...
32332         (__WORDSIZE_TIME64_COMPAT32): This.
32333         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32334         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32335         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32336         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32337         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32338         (__WORDSIZE_TIME64_COMPAT32): New macro.
32339
32340 2012-05-21  Andreas Jaeger  <aj@suse.de>
32341
32342         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32343         only if [SHARED]. Add prototype for __wcschr_ia32.
32344
32345 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32346
32347         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32348         of %rbp unmolested in the jmp_buf while mangling the low bits.
32349         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32350         unmolested high bits of %rbp while demangling the low bits.
32351         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32352
32353 2012-05-21  Andreas Jaeger  <aj@suse.de>
32354
32355         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32356         * sunrpc/svc_simple.c: Use it for registerrpc.
32357         * sunrpc/xcrypt.c: Use it for passwd2des.
32358
32359         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32360
32361 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32362
32363         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32364         Don't define if [__SYSCALL_WORDSIZE != 32].
32365         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32366         New macro.
32367
32368 2012-05-21  Bruno Haible  <bruno@clisp.org>
32369             Andreas Jaeger  <aj@suse.de>
32370
32371         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32372         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32373         inptr and inend for must_buffer_ch.
32374         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32375         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32376         * stdio-common/Makefile (tests): Remove bug15.
32377         (bug15-ENV): Remove macro.
32378         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32379         anymore.
32380
32381 2012-05-19  Andreas Jaeger  <aj@suse.de>
32382             Roland McGrath  <roland@hack.frob.com>
32383
32384         * manual/contrib.texi: Completely rewritten. It contains now an
32385         alphabetical list of contributors and their contributions.
32386
32387 2012-05-21  Richard Henderson  <rth@twiddle.net>
32388
32389         * misc/getauxval.c (__getauxval): Use unsigned long int.
32390         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32391         (getauxval): Use unsigned long int.
32392
32393 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32394
32395         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32396
32397 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32398
32399         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32400         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32401         __alignof__ (long double).
32402
32403 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32404
32405         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32406
32407 2012-05-20  Richard Henderson  <rth@twiddle.net>
32408
32409         * misc/getauxval.c: New file.
32410         * misc/sys/auxv.h: New file.
32411         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32412         (routines): Add getauxval.
32413         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32414         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32415         * elf/dl-sysdep.c (_dl_auxv): Remove.
32416         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32417         * elf/dl-support.c (_dl_auxv): New variable.
32418         (_dl_aux_init): Initialize it.
32419         * manual/startup.texi (Auxiliary Vector): New node.
32420         * sysdeps/generic/bits/hwcap.h: New file.
32421         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32422         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32423         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32424         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32425         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32426         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32428         Update.
32429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32430         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32432         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32434         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32435         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32436         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32437
32438 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32439
32440         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32441
32442 2012-05-19  David S. Miller  <davem@davemloft.net>
32443
32444         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32445
32446 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32447
32448         [BZ #14123]
32449         * math/s_ccosh.c: Include <float.h>
32450         (__ccosh): Avoid internal overflow calculating sinh and cosh
32451         values before multiplying by sin and cos values.
32452         * math/s_ccoshf.c: Likewise.
32453         * math/s_ccoshl.c: Likewise.
32454         * math/s_csin.c: Likewise.
32455         * math/s_csinf.c: Likewise.
32456         * math/s_csinl.c: Likewise.
32457         * math/s_csinh.c: Likewise.
32458         * math/s_csinhf.c: Likewise.
32459         * math/s_csinhl.c: Likewise.
32460         * math/libm-test.inc (ccos_test): Add more tests.
32461         (ccosh_test): Likewise.
32462         (csin_test): Likewise.
32463         (csinh_test): Likewise.
32464         * sysdeps/i386/fpu/libm-test-ulps: Update.
32465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32466
32467 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
32468
32469         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
32470         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
32471
32472         * sysdeps/x86_64/x32/_itoa.h: Add comment.
32473
32474 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32475
32476         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
32477         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
32478         * sysdeps/powerpc/soft-fp/Versions: Likewise.
32479         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
32480         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
32481         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
32482         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
32483         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
32484         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32485         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32486         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32487         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32488         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32489         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32490         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32491         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32492         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32493         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32494         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32495         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32496         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32497         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32498         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32499         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32500         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32501         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32502         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32503         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32504         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32505         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32506         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32507
32508 2012-05-18  Andreas Jaeger  <aj@suse.de>
32509
32510         * csu/.gitignore: Delete.
32511
32512 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32513
32514         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32515         (timex): Use __syscall_slong_t.
32516
32517 2012-05-18  Andreas Jaeger  <aj@suse.de>
32518             Carlos O'Donell  <carlos_odonell@mentor.com>
32519
32520         * manual/install.texi (Configuring and compiling): Update
32521         description about files modified in the source directory.
32522         * INSTALL: Regenerated.
32523
32524 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32525
32526         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32527         value.  Use "or" to set return value to -1.
32528         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32529         negate return value.
32530
32531 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32532
32533         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32534         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32535         failure if the compiler has Graphite support disabled.
32536         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32537         Likewise.
32538         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32539         (CFLAGS-memmove.c): Likewise.
32540         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32541         Likewise.
32542
32543 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32544
32545         * sysdeps/x86_64/x32/_itoa.h: New file.
32546
32547         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32548         getdents system call only if kernel and user dirents have the
32549         same d_ino and d_off.
32550
32551         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32552         LLONG_MAX != LONG_MAX.
32553         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32554         (_fitoa_word): Likewise.
32555
32556         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32557         years.
32558         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32559         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32560         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32561
32562         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32563         include <bits/wordsize.h>.  Check __x86_64__ instead of
32564         __WORDSIZE.
32565         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32566         if __x86_64__ is defined.  Use anonymous union on fpstate.
32567
32568         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32569         anonymous union.
32570
32571 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32572
32573         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32574         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32575         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32576         Refer to _rtld_local_ro instead of _rtld_global_ro.
32577         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32578         Likewise.
32579         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32580         Likewise.
32581         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32582         Likewise.
32583         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32584         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32585         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32586
32587         * sysdeps/powerpc/powerpc32/dl-machine.c
32588         (__elf_machine_runtime_setup) [PROF]: Don't reference
32589         _dl_prof_resolve.
32590
32591 2012-05-18  Andreas Jaeger  <aj@suse.de>
32592
32593         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32594         function only available for GCCs before 3.4 since GCC 3.4
32595         introduced a builtin.
32596         (lrint): Likewise.
32597         (llrintf): Likewise.
32598         (llrint): Likewise.
32599         (fmaxf): Likewise.
32600         (fmax): Likewise.
32601         (fminf): Likewise.
32602         (fmin): Likewise.
32603         (rint): Likewise.
32604         (rintf): Likewise.
32605         (nearbyint): Likewise.
32606         (nearbyintf): Likewise.
32607         (ceil): Likewise.
32608         (ceilf): Likewise.
32609         (floor): Likewise.
32610         (floorf): Likewise.
32611
32612 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32613
32614         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32615         on both fields and cast pointer to __syscall_ulong_t.
32616
32617         * bits/types.h (__fsword_t): New type.
32618         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32619         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32620         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32621         (__FSWORD_T_TYPE): Likewise.
32622         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32623         (__FSWORD_T_TYPE): Likewise.
32624         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32625         (__FSWORD_T_TYPE): Likewise.
32626         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32627         (__FSWORD_T_TYPE): Likewise.
32628         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32629         __SWORD_TYPE with __fsword_t.
32630         (statfs64): Likewise.
32631
32632 2012-05-17  David S. Miller  <davem@davemloft.net>
32633
32634         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32635
32636 2012-05-17  Andreas Jaeger  <aj@suse.de>
32637
32638         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32639         warning.
32640
32641 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32642
32643         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32644
32645 2012-05-17  Andreas Jaeger  <aj@suse.de>
32646
32647         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32648         when it is used.
32649
32650 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32651
32652         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32653
32654 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32655
32656         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32657         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32658
32659 2012-05-17  Andreas Jaeger  <aj@suse.de>
32660             Carlos O'Donell  <carlos_odonell@mentor.com>
32661
32662         [BZ #14059]
32663         * sysdeps/x86_64/multiarch/init-arch.h
32664         (bit_YMM_Usable): Rename to...
32665         (bit_AVX_Usable): ... this.
32666         (bit_FMA4_Usable): New macro.
32667         (bit_XMM_state): New macro.
32668         (bit_YMM_state): New macro.
32669         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32670         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32671         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32672         (CPUID_OSXSAVE): New macro.
32673         (CPUID_AVX): New macro.
32674         (CPUID_FMA4): New macro.
32675         (index_YMM_Usable): Rename to...
32676         (index_AVX_Usable): ... this.
32677         (HAS_AVX): Use HAS_ARCH_FEATURE.
32678         (HAS_FMA4): Likewise.
32679         (HAS_YMM_USABLE): Remove.
32680         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32681         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32682         are present.
32683         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32684         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32685         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32686         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32687         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32688
32689 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32690
32691         * math/libm-test.c: Support platforms without multiple rounding modes.
32692         * math/bug-nextafter.c: Support platforms without FP exceptions.
32693         * math/bug-nexttoward.c: Likewise.
32694         * math/test-fenv.c: Likewise.
32695         * math/test-misc.c: Likewise.
32696         * stdlib/bug-getcontext.c: Likewise.
32697
32698 2012-05-17  Andreas Jaeger  <aj@suse.de>
32699
32700         * manual/examples/search.c (critter_cmp): Change signature to
32701         avoid warnings.
32702         * manual/string.texi (Collation Functions): Likewise.
32703
32704 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32705
32706         * bits/types.h: Fold copyright years.
32707         * bits/typesizes.h: Likewise.
32708         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32709         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32710         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32711         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32712         * time/time.h: Likewise.
32713
32714 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32715
32716         [BZ #208]
32717         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32718         in instead of returning them.  Return void.
32719         (__libc_mallinfo): Accumulate over all arenas.
32720         (__malloc_stats): Adjust for change in int_mallinfo interface.
32721
32722 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32723
32724         [BZ #10375]
32725         * configure.in (NM): Add AC_CHECK_TOOL for it.
32726         (libc_extra_cflags): New substituted variable.
32727         Check for -fstack-protector being used implicitly.
32728         * configure: Regenerated.
32729         * config.make.in (config-extra-cflags): New variable,
32730         gets @libc_extra_cflags@.
32731         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32732
32733         [BZ #10375]
32734         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32735         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32736         * configure: Regenerated.
32737         * config.make.in (CPPUNDEFS): New substituted variable.
32738         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32739         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32740         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32741
32742 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32743
32744         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32745         (mq_attr): Use __syscall_slong_t.
32746
32747 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32748
32749         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32750         Check __x86_64__ instead of __WORDSIZE.
32751         (_STAT_VER_LINUX): Likewise.
32752         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32753         __syscall_ulong_t and __syscall_slong_t.
32754         (stat64): Likewise.
32755
32756 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32757
32758         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32759
32760 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32761
32762         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32763
32764 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32765
32766         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32767         __syscall_ulong_t.
32768
32769         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32770         include <bits/wordsize.h>.  Check __x86_64__ instead of
32771         __WORDSIZE.
32772         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32773         defined.
32774         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32775
32776         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32777         include <bits/wordsize.h>.  Check __x86_64__ instead of
32778         __WORDSIZE.
32779         (user_regs_struct): Use "__extension__ unsigned long long"
32780         instead of "unsigned long" if __x86_64__ is defined.
32781         (user): Likewise.  Pad after pointer field if __ILP32__ is
32782         defined.
32783
32784 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32785
32786         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32787         versions 5 to 9.
32788         * configure: Regenerated.
32789         * manual/install.texi (texinfo): Increase version requirement to
32790         4.5 or later.
32791         * INSTALL: Regenerated.
32792
32793         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32794
32795 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32796
32797         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32798
32799         * sysdeps/x86_64/x32/ffs.c: New file.
32800
32801         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32802         __syscall_ulong_t.
32803         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32804         defined.  Use __syscall_ulong_t.
32805         (shminfo): Use __syscall_ulong_t.
32806         (shm_info): Likewise.
32807
32808         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32809         __syscall_ulong_t.
32810
32811         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32812         <bits/wordsize.h>.
32813         (msgqnum_t): Use __syscall_ulong_t.
32814         (msglen_t): Likewise.
32815         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32816         __syscall_ulong_t.
32817
32818         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32819         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32820
32821         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32822
32823         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32824         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32825
32826         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32827         __syscall_slong_t.
32828
32829         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32830         include <bits/wordsize.h>.  Check __x86_64__ instead of
32831         __WORDSIZE.
32832
32833         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32834         "unsigned long long int" if __x86_64__ is defined.
32835         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32836
32837         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32838         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32839         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32840
32841         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32842         <stdint.h>.
32843         (GET_PC): Cast to uintptr_t first.
32844         (GET_FRAME): Likewise.
32845         (GET_STACK): Likewise.
32846
32847         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32848         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32849         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32850         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32851         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32852         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32853         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32854         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32855         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32856         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32857         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32858         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32859         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32860         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32861         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32862         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32863         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32864         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32865         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32866         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32867         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32868         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32869         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32870         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32871         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32872         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32873         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32874         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32875         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32876
32877 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32878
32879         * Makerules (+depfiles): Also collect depfiles from .oS in
32880         $(extra-objs).
32881         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32882         .oS, $(libnldbl-routines)).
32883
32884         * Makerules (native-compile-mkdep-flags): Define.
32885         * sunrpc/Makefile (extra-objs): Add $(addprefix
32886         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32887         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32888         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32889         calling $(make-target-directory).
32890
32891 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32892
32893         * bits/types.h (__snseconds_t): Removed.
32894         * time/time.h (struct timespec): Replace __snseconds_t with
32895         __syscall_slong_t.
32896         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32897         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32898         Likewise.
32899         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32900         (__SNSECONDS_T_TYPE): Likewise.
32901         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32902         (__SNSECONDS_T_TYPE): Likewise.
32903         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32904         (__SNSECONDS_T_TYPE): Likewise.
32905
32906 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32907
32908         * sysdeps/mach/hurd/bits/typesizes.h
32909         (__SYSCALL_SLONG_TYPE): New macro.
32910         (__SYSCALL_ULONG_TYPE): Likewise.
32911
32912 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32913
32914         * bits/types.h (__syscall_slong_t): New type.
32915         (__syscall_ulong_t): Likewise.
32916
32917         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32918         (__SYSCALL_ULONG_TYPE): Likewise.
32919         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32920         (__SYSCALL_SLONG_TYPE): Likewise.
32921         (__SYSCALL_ULONG_TYPE): Likewise.
32922         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32923         (__SYSCALL_SLONG_TYPE): Likewise.
32924         (__SYSCALL_ULONG_TYPE): Likewise.
32925         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32926         (__SYSCALL_SLONG_TYPE): Likewise.
32927         (__SYSCALL_ULONG_TYPE): Likewise.
32928
32929 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32930
32931         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32932         Add sigaltstack-offsets.sym.
32933         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32934         <sigaltstack-offsets.h>.
32935         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32936         longjmp_msg pointer.
32937         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32938         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32939         signal stack.
32940         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32941
32942 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32943
32944         * elf/stackguard-macros.h: Remove file.
32945         * sysdeps/generic/stackguard-macros.h: New file.
32946         * sysdeps/i386/stackguard-macros.h: Likewise.
32947         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32948         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32949         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32950         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32951         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32952         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32953         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32954         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32955         <elf/stackguard-macros.h>.
32956
32957         [BZ #14109]
32958         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32959         __aligned__ in attribute.
32960         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32961         (gregset_t): Likewise.
32962
32963 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32964
32965         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32966         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32967         * sysdeps/x86_64/x32/Implies-after: New file.
32968
32969 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32970
32971         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32972         and access return value for _dl_profile_fixup.  Use R10_LP to
32973         load frame size.
32974
32975 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32976
32977         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32978
32979 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32980
32981         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32982         * sysdeps/x86_64/x32/sysdep.h: New file.
32983
32984 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32985
32986         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32987         * sysdeps/x86_64/setjmp.S: Likewise.
32988
32989 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32990
32991         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32992         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32993         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32994         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32995         remove unused global constant.
32996
32997 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32998
32999         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
33000         include of <not-cancel.h>.
33001
33002 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33003
33004         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
33005
33006 2012-05-15  Jeff Law  <law@redhat.com>
33007             Andreas Jaeger  <aj@suse.de>
33008
33009         [BZ #13594]
33010         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
33011         out from...
33012         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
33013         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
33014         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
33015         code changing __hst_map_handle.map.
33016
33017 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33018
33019         * configure.in (sysnames): Look for Implies-before and Implies-after
33020         files.
33021         * configure: Regenerated.
33022
33023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33024
33025         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
33026         8-byte data alignment with LP_SIZE alignment.
33027
33028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33029
33030         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
33031         into R10_LP.
33032
33033 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33034
33035         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
33036
33037 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33038
33039         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
33040         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
33041         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
33042         Likewise.
33043         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
33044
33045 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33046
33047         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
33048         (stackinfo_sub_sp): Likewise.
33049
33050 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33051
33052         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
33053         RAX_LP.
33054
33055 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33056
33057         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
33058         into R*_LP.
33059
33060 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33061
33062         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
33063         sizes into R*_LP.
33064
33065 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33066
33067         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
33068
33069 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33070
33071         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
33072         into R11_LP and load __x86_64_shared_cache_size_half into
33073         R8_LP.
33074
33075 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33076
33077         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
33078         R8_LP.
33079
33080 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33081
33082         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
33083         logb for POWER7.
33084         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
33085         logbf for POWER7.
33086         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
33087         logbl for POWER7.
33088         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
33089         powerpc32/power7/fpu/s_logb.c via #include.
33090         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
33091         powerpc32/power7/fpu/s_logbf.c via #include.
33092         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
33093         powerpc32/power7/fpu/s_logbl.c via #include.
33094
33095 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33096
33097         * README.libm: Remove file.
33098
33099 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33100
33101         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33102         count for x32.  Use R*_LP and omit operand-size suffix.
33103
33104 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33105
33106         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33107         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33108         * sysdeps/x86_64/x32/shlib-versions: New file.
33109
33110 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33111
33112         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33113         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33114         Use _dl_fatal_printf instead.
33115
33116 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33117
33118         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33119         set if not set by the user.  Do not allow for being unset.
33120         * sysdeps/unix/sysv/linux/configure: Regenerated.
33121
33122 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33123
33124         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33125         the `q' suffix from lea and replace .quad with ASM_ADDR.
33126
33127 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33128
33129         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33130         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33131         instead of $17.
33132         (PTR_DEMANGLE): Likewise.
33133
33134 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33135
33136         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33137         (LP_OP): Likewise.
33138         (ASM_ADDR): Likewise.
33139         (RAX_LP): Likewise.
33140         (RBP_LP): Likewise.
33141         (RBX_LP): Likewise.
33142         (RCX_LP): Likewise.
33143         (RDI_LP): Likewise.
33144         (RSI_LP): Likewise.
33145         (RSP_LP): Likewise.
33146         (R8_LP): Likewise.
33147         (R9_LP): Likewise.
33148         (R10_LP): Likewise.
33149         (R10_LP): Likewise.
33150         (R11_LP): Likewise.
33151         (R12_LP): Likewise.
33152         (R13_LP): Likewise.
33153         (R14_LP): Likewise.
33154         (R15_LP): Likewise.
33155
33156 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33157
33158         * sysdeps/x86_64/x32/dl-machine.h: New file.
33159
33160 2012-05-14  Andreas Jaeger  <aj@suse.de>
33161
33162         * manual/Makefile (subdir): Remove export of subdir.
33163         (all): Remove target.
33164         (.PHONY): Remove all from list.
33165         (mkinstalldirs): Remove.
33166         (.PHONY): Remove installdirs from list.
33167         ($(inst_infodir)/libc.info): Use make-target-directory.
33168         (installdirs): Remove.
33169         (subdir_%): Remove.
33170         (glibc-targets): Remove.
33171         (lib): Remove.
33172         (stubs): Remove.
33173         ($(objpfx)stubs ../po/manual.pot): Remove.
33174         ($(objpfx)stamp%): Remove.
33175         (make-target-directory): Remove.
33176         (subdir_install): Remove.
33177         (routines): Remove.
33178         (aux): Remove.
33179         (sources): Remove.
33180         (objects): Remove.
33181         (headers): Remove.
33182
33183         [BZ #13750]
33184         * manual/.gitignore: Remove, it's not needed anymore.
33185         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33186         all files in it.
33187         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33188         directory.
33189         (texis): Renamed to $(objpfx)texis.
33190         (texis-path): New, contains path to generated files.
33191         (chapters.%): Use texis-path for complete path, add extra argument
33192         libc-texinfo.sh.
33193         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33194         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33195         (summary,texi, stamp-summary): Use complete path of
33196         files. Generate files in build dir.
33197         (dir-add.texi): Build in build dir.
33198         (libm-err.texi,stamp-libm-err): Likewise.
33199         (version.texi, stamp-version): Likewise.
33200         (.%c.texi): Likewise.
33201         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33202         (mostlyclean): Remove target.
33203         (realclean): Remove target.
33204         (generated): Add new variable with contents from mostlyclean and
33205         realclean, remove entries duplicated in common-mostlyclean, add
33206         stamp-libm-err and stamp-version.
33207         (generated-dirs): Add libc directory.
33208         ($(inst_infodir)/libc.info): Install files from build dir.
33209
33210         * manual/install.texi (Configuring and compiling): Adjust since
33211         the info files are not part of the tar ball anymore.
33212
33213 2012-05-14  Andreas Jaeger  <aj@suse.de>
33214
33215         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33216         variable.
33217
33218 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33219
33220         [BZ #13717]
33221         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33222         to 2.2.0 where earlier.
33223         * sysdeps/unix/sysv/linux/configure: Regenerated.
33224         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33225         Remove conditional code.
33226         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33227         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33228         Remove conditional code.
33229         [!__NR_lchown]: Likewise.
33230         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33231         [__NR_lchown]: Likewise.
33232         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33233         comment referencing __ASSUME_LCHOWN_SYSCALL.
33234         * sysdeps/unix/sysv/linux/i386/sigaction.c
33235         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33236         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33237         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33238         Remove conditional code.
33239         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33240         (__protocol_available): Remove #if 0 code.
33241         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33242         conditional code.
33243         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33244         * sysdeps/unix/sysv/linux/kernel-features.h
33245         (__ASSUME_GETCWD_SYSCALL): Don't define.
33246         (__ASSUME_REALTIME_SIGNALS): Likewise.
33247         (__ASSUME_PREAD_SYSCALL): Likewise.
33248         (__ASSUME_PWRITE_SYSCALL): Likewise.
33249         (__ASSUME_POLL_SYSCALL): Likewise.
33250         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33251         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33252         non-SPARC.
33253         (__ASSUME_SIOCGIFNAME): Don't define.
33254         (__ASSUME_MSG_NOSIGNAL): Likewise.
33255         (__ASSUME_SENDFILE): Define unconditionally.
33256         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33257         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33258         conditional code.
33259         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33260         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33261         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33262         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33263         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33264         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33265         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33267         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33268         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33270         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33271         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33273         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33274         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33276         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33277         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33279         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33280         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33282         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33283         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33285         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33286         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33288         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33289         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33290         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33291         Remove conditional code.
33292         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33293         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33294         Remove conditional code.
33295         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33296         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33297         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33298         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33299         Remove conditional code.
33300         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33301         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33302         Remove conditional code.
33303         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33304         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33305         Remove conditional code.
33306         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33307         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33308         Remove conditional code.
33309         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33310         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33311         Remove conditional code.
33312         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33313         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33314         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33315         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33316         * sysdeps/unix/sysv/linux/sigaction.c
33317         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33318         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33319         * sysdeps/unix/sysv/linux/sigpending.c
33320         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33321         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33322         * sysdeps/unix/sysv/linux/sigprocmask.c
33323         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33324         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33325         * sysdeps/unix/sysv/linux/sigsuspend.c
33326         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33327         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33328         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33329         (__libc_missing_rt_sigs): Remove.
33330         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33331         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33332         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33333         Remove conditional code.
33334         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33335         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33336         return 1.
33337         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33338         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33339         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33340         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33341
33342 2012-05-14  Andreas Jaeger  <aj@suse.de>
33343
33344         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33345         it's not used in glibc.
33346         (__coshm1): Likewise.
33347         (__acosh1p): Likewise.
33348         (__sgn): Likewise.
33349
33350         * manual/string.texi (Copying and Concatenation): Add missing
33351         variable in concat example.
33352         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33353
33354 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33355
33356         [BZ #14103]
33357         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33358         __builtin_clzl with __builtin_clzll.
33359
33360 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33361
33362         [BZ #14104]
33363         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33364         libc_freeres_ptr.
33365
33366 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33367
33368         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33369         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33370         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33371         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33372
33373 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33374
33375         * NEWS: Update ia64 info.
33376
33377 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33378
33379         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33380         used as bcopy.
33381
33382 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33383
33384         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33385         * sysdeps/unix/syscalls.list (dup3): Likewise.
33386         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33387         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33388
33389 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33390
33391         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33392         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33393
33394 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33395
33396         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33397         thread pointer.
33398         (TLS_IE): Use mov/add instead of movq/addq to load thread
33399         pointer.
33400         (TLS_GD_PREFIX): New.
33401         (TLS_GD): Use it.
33402
33403 2012-05-11  David S. Miller  <davem@davemloft.net>
33404
33405         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33406         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33407         (_FPU_SETCW): Likewise.
33408
33409 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33410
33411         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33412         is 32-byte aligned.
33413
33414 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33415
33416         [BZ #11837]
33417         * iconvdata/gb18030.c: Update tables.
33418         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33419         characters specially.
33420         (BODY for TO_LOOP): Add encoding of missing ranges.
33421
33422 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33423
33424         [BZ #13673]
33425         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33426         * sysdeps/mach/hurd/dup3.c: Likewise.
33427         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33428         * sysdeps/powerpc/memmove.c:: Likewise.
33429
33430 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33431
33432         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33433         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33434
33435 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33436
33437         * elf/elf.h (R_X86_64_RELATIVE64): New.
33438         (R_X86_64_NUM): Updated.
33439         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33440         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33441         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33442         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
33443         tst-quad1pie tst-quad2pie
33444         (modules-names): Add tst-quadmod1 tst-quadmod2.
33445         ($(objpfx)tst-quad1): New dependency.
33446         ($(objpfx)tst-quad2): Likewise.
33447         ($(objpfx)tst-quad1pie): Likewise.
33448         ($(objpfx)tst-quad2pie): Likewise.
33449         * sysdeps/x86_64/tst-quad1.c: New file.
33450         * sysdeps/x86_64/tst-quad1pie.c: New file.
33451         * sysdeps/x86_64/tst-quad2.c: Likewise.
33452         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
33453         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
33454         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
33455         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
33456         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
33457
33458 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33459
33460         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
33461         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
33462         * streams/stropts.h (t_scalar_t): Define type.
33463
33464         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
33465         (_PATH_PRESERVE): Set to "/var/lib".
33466         (_PATH_RWHODIR): Set to "/var/spool/rwho".
33467
33468         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
33469         instead of int.
33470
33471         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
33472         if __dir_mkfile succeeded.
33473
33474         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
33475         checking for _hurd_dtablesize.  Unlock it right after having
33476         finished _hurd_dtable allocation.
33477
33478 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33479
33480         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
33481         * sysdeps/mach/hurd/configure: Regenerated.
33482         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
33483         special-casing to...
33484         * sysdeps/gnu/configure.in: ... this new file.
33485         * sysdeps/unix/sysv/linux/configure: Regenerated.
33486         * sysdeps/gnu/configure: New generated file.
33487
33488         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33489         for Linux: use nsec instead of usec, as well as:
33490         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33491         members of type struct timespec.
33492         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33493         New macros.
33494         (struct stat64): Likewise.
33495         (_STATBUF_ST_NSEC): New macro.
33496         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33497
33498         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33499         __strtoul_internal rather than strtoul.
33500
33501 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33502
33503         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33504         and reject them.
33505
33506 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33507
33508         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33509         which preserves existing values.
33510         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33511
33512 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33513
33514         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33515         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33516         greater than FD_SETSIZE.
33517
33518 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33519
33520         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33521         allocated, call __vm_protect to finish enabling the existing space, and
33522         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33523         allocate the remainder.
33524
33525 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33526
33527         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33528         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33529
33530 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33531
33532         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33533         sysdeps/mach/hurd/readlink.c.
33534
33535         * posix/tst-sysconf.c (posix_options): Only use
33536         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33537         _POSIX_SYNCHRONIZED_IO when they are defined
33538         * sysdeps/mach/hurd/bits/posix_opt.h:
33539         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33540         (_XOPEN_REALTIME): Undefine macro.
33541         (_XOPEN_REALTIME_THREADS): Undefine macro.
33542         (_XOPEN_SHM): Undefine macro.
33543         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33544         macro to -1.
33545         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33546         macro to -1.
33547         (_POSIX_ASYNC_IO): Undefine macro.
33548         (_POSIX_PRIORITIZED_IO): Undefine macro.
33549         (_POSIX_SPIN_LOCKS): Define macro to -1.
33550
33551         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33552         SA_NODEFER, SA_RESETHAND.
33553         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33554         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33555         F_DUPFD_CLOEXEC.
33556
33557 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33558
33559         * elf/Makefile (pldd-modules): Define unconditionally.
33560
33561 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33562
33563         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33564
33565 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33566
33567         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33568         Return ENOENT when name is empty.
33569         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33570
33571 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33572
33573         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33574
33575         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33576
33577 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33578
33579         Fix mlock in all cases except non-readable pages.
33580         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33581         instead of VM_PROT_ALL as parameter to __vm_wire function.
33582
33583         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33584         (__mkdir): When path is `/', just fail with EEXIST.
33585         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33586
33587 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33588
33589         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33590         <sys/uio.h> (for writev).
33591         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33592         and <sys/param.h> (for MIN).
33593
33594 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33595
33596         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33597         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33598         if interrupted.
33599
33600 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33601
33602         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33603         Depend on against $(link-rpcuserlibs).
33604
33605 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33606
33607         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33608         (__libc_stack_end): Do not use attribute_relro.
33609         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33610         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33611         to libthread-provided value.
33612         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33613         attribute_relro.
33614
33615 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33616
33617         [BZ #3748]
33618         * bits/libc-lock.h (__libc_once_get): New macro.
33619         * sysdeps/mach/bits/libc-lock.h: Likewise.
33620         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33621         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33622         instead of using implementation details.
33623
33624         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33625         * libio/freopen.c: Likewise.
33626         * libio/freopen64.c: Likewise.
33627         * misc/syslog.c: Likewise.
33628         * nscd/connections.c: Likewise.
33629         * nscd/netgroupcache.c: Likewise.
33630         * sysdeps/posix/getcwd.c: Likewise.
33631
33632 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33633
33634         * math/w_ilogbf.c: Add #include <limits.h>.
33635
33636 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33637
33638         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33639         path instead of returning without unlocking.
33640
33641         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33642         immediate-write ioctls.
33643         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33644
33645 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33646
33647         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33648         __builtin_frame_address instead of making assumptions about the
33649         location of the return address relative to DATA.  Force early load of
33650         the return address.
33651         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33652         __builtin_frame_address.
33653
33654         dup3 for GNU Hurd.
33655         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33656         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33657         implement dup3 and do some further code clean-ups.
33658         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33659         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33660
33661 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33662
33663         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33664
33665         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33666         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33667         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33668         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33669         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33670         d->port.lock.
33671
33672         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33673         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33674         when handler == SIG_ERR, not when handler != SIG_ERR.
33675
33676 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33677
33678         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33679         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33680         definitions.
33681
33682         accept4 for GNU Hurd.
33683         * include/sys/socket.h (__libc_accept4): New prototype.
33684         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33685         to implement __libc_accept4.
33686         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33687         __libc_accept4.
33688         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33689
33690         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33691         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33692         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33693         signal-defines.sym.
33694
33695 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33696
33697         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33698
33699 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33700
33701         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33702         assertion on O_CLOEXEC flag.
33703         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33704         * hurd/intern-fd.c: Likewise.
33705         * hurd/port2fd.c: Likewise.
33706
33707 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33708
33709         [BZ #3906]
33710         * bits/in.h (IPV6_PKTINFO): Define new macro.
33711         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33712
33713 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33714
33715         [BZ #13954]
33716         [BZ #13955]
33717         [BZ #13956]
33718         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33719         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33720         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33721         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33722         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33723         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33724         * math/libm-test.inc (logb_test) : Additional logb tests.
33725
33726 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33727             Andreas Jaeger  <aj@suse.de>
33728
33729         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33730         * configure: Regenerated.
33731         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33732         * config.make.in (link-obsolete-rpc): New substituted variable.
33733         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33734         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33735         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33736         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33737         so that libc.a contains the symbols.
33738         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33739         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33740         * sunrpc/auth_none.c: Likewise.
33741         * sunrpc/auth_unix.c: Likewise.
33742         * sunrpc/authdes_prot.c: Likewise.
33743         * sunrpc/authuxprot.c: Likewise.
33744         * sunrpc/clnt_gen.c: Likewise.
33745         * sunrpc/clnt_perr.c: Likewise.
33746         * sunrpc/clnt_raw.c: Likewise.
33747         * sunrpc/clnt_simp.c: Likewise.
33748         * sunrpc/clnt_tcp.c: Likewise.
33749         * sunrpc/clnt_udp.c: Likewise.
33750         * sunrpc/clnt_unix.c: Likewise.
33751         * sunrpc/des_crypt.c: Likewise.
33752         * sunrpc/des_soft.c: Likewise.
33753         * sunrpc/get_myaddr.c: Likewise.
33754         * sunrpc/key_call.c: Likewise.
33755         * sunrpc/key_prot.c: Likewise.
33756         * sunrpc/netname.c: Likewise.
33757         * sunrpc/pm_getmaps.c: Likewise.
33758         * sunrpc/pm_getport.c: Likewise.
33759         * sunrpc/pmap_clnt.c: Likewise.
33760         * sunrpc/pmap_prot.c: Likewise.
33761         * sunrpc/pmap_prot2.c: Likewise.
33762         * sunrpc/pmap_rmt.c: Likewise.
33763         * sunrpc/publickey.c: Likewise.
33764         * sunrpc/rpc_cmsg.c: Likewise.
33765         * sunrpc/rpc_common.c: Likewise.
33766         * sunrpc/rpc_dtable.c: Likewise.
33767         * sunrpc/rpc_prot.c: Likewise.
33768         * sunrpc/rpc_thread.c: Likewise.
33769         * sunrpc/rtime.c: Likewise.
33770         * sunrpc/svc.c: Likewise.
33771         * sunrpc/svc_auth.c: Likewise.
33772         * sunrpc/svc_raw.c: Likewise.
33773         * sunrpc/svc_run.c: Likewise.
33774         * sunrpc/svc_tcp.c: Likewise.
33775         * sunrpc/svc_udp.c: Likewise.
33776         * sunrpc/svc_unix.c: Likewise.
33777         * sunrpc/svcauth_des.c: Likewise.
33778         * sunrpc/xcrypt.c: Likewise.
33779         * sunrpc/xdr.c: Likewise.
33780         * sunrpc/xdr_array.c: Likewise.
33781         * sunrpc/xdr_float.c: Likewise.
33782         * sunrpc/xdr_intXX_t.c: Likewise.
33783         * sunrpc/xdr_mem.c: Likewise.
33784         * sunrpc/xdr_rec.c: Likewise.
33785         * sunrpc/xdr_ref.c: Likewise.
33786         * sunrpc/xdr_sizeof.c: Likewise.
33787         * sunrpc/xdr_stdio.c: Likewise.
33788
33789 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33790
33791         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33792         change.  Update copyright years.
33793
33794 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33795
33796         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33797
33798 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33799             Joseph Myers  <joseph@codesourcery.com>
33800             Paul Pluzhnikov  <ppluzhnikov@google.com>
33801
33802         [BZ #14012]
33803         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33804         requiring rpcgen.
33805         [cross-compiling] (extra-libs): Likewise.
33806         [cross-compiling] (extra-libs-others): Likewise.
33807         [cross-compiling] (librpcsvc-routines): Likewise.
33808         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33809         [cross-compiling] (omit-deps): Likewise.
33810         (sunrpc-CPPFLAGS): New variable.
33811         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33812         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33813         (cross-rpcgen-objs): New variable.
33814         (extra-objs): Append $(cross-rpcgen-objs).
33815         ($(cross-rpcgen-objs)): New rule.
33816         ($(objpfx)cross-rpcgen): Likewise.
33817         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33818         comment.
33819         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33820         ($(objpfx)x%.stmp): Likewise.
33821         * sunrpc/proto.h [IS_IN_build] (_): Define.
33822         [IS_IN_build] (_libc_intl_domainname): Likewise.
33823
33824 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33825
33826         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33827         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33828         and R_X86_64_TPOFF64.
33829
33830 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33831
33832         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33833         sysdeps/unix/sysv/syscalls.list.
33834         (stime): Likewise.
33835         (utime): Likewise.
33836         * sysdeps/unix/sysv/syscalls.list: Remove file.
33837
33838 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33839
33840         [BZ #3440]
33841         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33842         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33843         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33844         (__LC_IDENTIFICATION): Make these macros useful in #if
33845         expressions, as required by C99.
33846
33847 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33848
33849         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33850         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33851         after this.
33852
33853 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33854
33855         * stdlib/longlong.h: Updated from GCC.
33856
33857 2012-05-09  Andreas Jaeger  <aj@suse.de>
33858
33859         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33860         default is first entry.
33861         (run_mode): Set type.
33862         (main): Remove informal message about syslog.
33863         (options): Fix typo.
33864
33865         [BZ #14053]
33866         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33867         to asm.
33868         (lrint): Likewise.
33869         (llrintf): Likewise.
33870         (llrint): Likewise.
33871         (rint): Likewise.
33872         (rintf): Likewise.
33873         (nearbyint): Likewise.
33874         (nearbyintf): Likewise.
33875
33876 2012-05-09  Andreas Jaeger  <aj@suse.de>
33877             Pedro Alves  <palves@redhat.com>
33878
33879         * nscd/nscd.c (run_mode): Use enum.
33880         (main): Cleanup coding style issue.
33881
33882 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33883             Andreas Jaeger  <aj@suse.de>
33884
33885         * nscd/nscd.c (go_background): Replaced with...
33886         (run_mode): ... this.
33887         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33888         (options): Add -F --foreground.
33889         (main): Implement it.
33890         (parse_opt): Parse it.
33891
33892 2012-05-09  Andreas Jaeger  <aj@suse.de>
33893
33894         [BZ #14083]
33895         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33896         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33897         -Wconversion warning.
33898         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33899         Likewise.
33900
33901 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33902
33903         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33904         == 0.
33905         (LC_ALL): Use macro-int-constant.
33906         (LC_COLLATE): Likewise.
33907         (LC_CTYPE): Likewise.
33908         (LC_MESSAGES): Likewise.
33909         (LC_MONETARY): Likewise.
33910         (LC_NUMERIC): Likewise.
33911         (LC_TIME): Likewise.
33912         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33913         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33914         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33915         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33916         Specify type.
33917         [C99-based standards] (float_t): Expect type.
33918         [C99-based standards] (double_t): Expect type.
33919         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33920         type.
33921         [C99-based standards] (HUGE_VALL): Likewise.
33922         [C99-based standards] (INFINITY): Likewise.
33923         [C99-based standards] (NAN): Likewise.
33924         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33925         [C99-based standards] (FP_NAN): Likewise.
33926         [C99-based standards] (FP_NORMAL): Likewise.
33927         [C99-based standards] (FP_SUBNORMAL): Likewise.
33928         [C99-based standards] (FP_ZERO): Likewise.
33929         [C99-based standards] (FP_FAST_FMA): Use
33930         optional-macro-int-constant.  Specify type.  Require == 1.
33931         [C99-based standards] (FP_FAST_FMAF): Likewise.
33932         [C99-based standards] (FP_FAST_FMAL): Likewise.
33933         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33934         [C99-based standards] (FP_ILOGBNAN): Likewise.
33935         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33936         Specify type.
33937         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33938         [C99-based standards] (math_errhandling): Specify type.
33939         [ISO99 || ISO11] (signgam): Do not allow.
33940         [non-C99-based standards] (copysignf): Do not allow.
33941         [non-C99-based standards] (exp2f): Likewise.
33942         [non-C99-based standards] (log2f): Likewise.
33943         [non-C99-based standards] (modff): Allow.
33944         [non-C99-based standards] (erff): Do not allow.
33945         [non-C99-based standards] (erfcf): Likewise.
33946         [non-C99-based standards] (gammaf): Likewise.
33947         [non-C99-based standards] (hypotf): Likewise.
33948         [non-C99-based standards] (j0f): Likewise.
33949         [non-C99-based standards] (j1f): Likewise.
33950         [non-C99-based standards] (jnf): Likewise.
33951         [non-C99-based standards] (lgammaf): Likewise.
33952         [non-C99-based standards] (tgammaf): Likewise.
33953         [non-C99-based standards] (y0f): Likewise.
33954         [non-C99-based standards] (y1f): Likewise.
33955         [non-C99-based standards] (ynf): Likewise.
33956         [non-C99-based standards] (isnanf): Likewise.
33957         [non-C99-based standards] (acoshf): Likewise.
33958         [non-C99-based standards] (asinhf): Likewise.
33959         [non-C99-based standards] (atanhf): Likewise.
33960         [non-C99-based standards] (cbrtf): Likewise.
33961         [non-C99-based standards] (expm1f): Likewise.
33962         [non-C99-based standards] (ilogbf): Likewise.
33963         [non-C99-based standards] (log1pf): Likewise.
33964         [non-C99-based standards] (logbf): Likewise.
33965         [non-C99-based standards] (nextafterf): Likewise.
33966         [non-C99-based standards] (remainderf): Likewise.
33967         [non-C99-based standards] (rintf): Likewise.
33968         [non-C99-based standards] (scalbf): Likewise.
33969         [non-C99-based standards] (copysignl): Likewise.
33970         [non-C99-based standards] (exp2l): Likewise.
33971         [non-C99-based standards] (log2l): Likewise.
33972         [non-C99-based standards] (modfl): Allow.
33973         [non-C99-based standards] (erfl): Do not allow.
33974         [non-C99-based standards] (erfcl): Likewise.
33975         [non-C99-based standards] (gammal): Likewise.
33976         [non-C99-based standards] (hypotl): Likewise.
33977         [non-C99-based standards] (j0l): Likewise.
33978         [non-C99-based standards] (j1l): Likewise.
33979         [non-C99-based standards] (jnl): Likewise.
33980         [non-C99-based standards] (lgammal): Likewise.
33981         [non-C99-based standards] (tgammal): Likewise.
33982         [non-C99-based standards] (y0l): Likewise.
33983         [non-C99-based standards] (y1l): Likewise.
33984         [non-C99-based standards] (ynl): Likewise.
33985         [non-C99-based standards] (isnanl): Likewise.
33986         [non-C99-based standards] (acoshl): Likewise.
33987         [non-C99-based standards] (asinhl): Likewise.
33988         [non-C99-based standards] (atanhl): Likewise.
33989         [non-C99-based standards] (cbrtl): Likewise.
33990         [non-C99-based standards] (expm1l): Likewise.
33991         [non-C99-based standards] (ilogbl): Likewise.
33992         [non-C99-based standards] (log1pl): Likewise.
33993         [non-C99-based standards] (logbl): Likewise.
33994         [non-C99-based standards] (nextafterl): Likewise.
33995         [non-C99-based standards] (remainderl): Likewise.
33996         [non-C99-based standards] (rintl): Likewise.
33997         [non-C99-based standards] (scalbl): Likewise.
33998         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33999         [non-C99-based standards] (FP_*): Do not allow.
34000         [C99-based standards] (FP_*): Change to
34001         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
34002         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34003         allow.
34004         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
34005         (SIG_ERR): Likewise.
34006         [X/Open-based standards] (SIG_HOLD): Likewise.
34007         (SIG_IGN): Likewise.
34008         (SIGABRT): Use macro-int-constant.  Specify type.  Require
34009         positive value.
34010         (SIGFPE): Likewise.
34011         (SIGILL): Likewise.
34012         (SIGINT): Likewise.
34013         (SIGSEGV): Likewise.
34014         (SIGTER): Likewise.
34015         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
34016         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
34017         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
34018         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
34019         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
34020         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
34021         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
34022         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
34023         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
34024         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
34025         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
34026         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
34027         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
34028         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
34029         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
34030         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
34031         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
34032         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
34033         [X/Open-based standards] (SIGTRAP): Likewise.
34034         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
34035         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
34036         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
34037         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
34038         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34039         allow.
34040
34041 2012-05-08  Ian Wienand  <ianw@vmware.com>
34042
34043         [BZ #14080]
34044         * time/tzset.c (__tzset_parse_tz): Update default rules for
34045         daylight time changes in the Energy Policy Act of 2005.
34046
34047 2012-05-09  Andreas Jaeger  <aj@suse.de>
34048
34049         [BZ #13983]
34050         * elf/ldconfig.c (parse_conf): Change string to make clear that
34051         ldconfig only issued a warning if ld.so.conf does not exist.
34052
34053 2012-05-08  David S. Miller  <davem@davemloft.net>
34054
34055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
34056         movxtod instead of popping the value on the stack.
34057
34058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34059
34060 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
34061
34062         * config.h.in: Add HAVE_ARM_PCS_VFP.
34063
34064 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
34065
34066         [BZ #13979]
34067         * include/features.h: Warn if user requests __FORTIFY_SOURCE
34068         checking but the checks are disabled for any reason.
34069
34070 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
34071
34072         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
34073         and ELF64_R_TYPE with ELFW(R_TYPE).
34074
34075 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
34076
34077         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
34078         (ulimit): Likewise.
34079
34080         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
34081         (settimeofday): Likewise.
34082
34083 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
34084
34085         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
34086         a struct th_u2 inside the union, and move tu_block/tu_code into
34087         a new th_u3 union of tu_block/tu_code inside of that.  Move
34088         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
34089         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
34090         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
34091         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
34092         (th_stuff): Change to th_u1.tu_stuff.
34093         (th_data): Define.
34094         (th_msg): Change to th_u1.th_u2.tu_data.
34095
34096 2012-05-07  David S. Miller  <davem@davemloft.net>
34097
34098         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34099
34100         [BZ #14074]
34101         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34102         (SETUP_PIC_REG): Use it.
34103         (SETUP_PIC_REG_LEAF): Use it.
34104
34105 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34106
34107         [BZ #13885]
34108         [BZ #13923]
34109         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34110         USE_AS_EXPM1L.
34111         (EXPL_FINITE): Likewise.
34112         (FLDLOG): Likewise.
34113         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34114         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34115         e_expl.S.
34116         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34117         USE_AS_EXPM1L.
34118         (EXPL_FINITE): Likewise.
34119         (FLDLOG): Likewise.
34120         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34121         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34122         e_expl.S.
34123         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34124         test of -max_value argument for long double.
34125         * sysdeps/i386/fpu/libm-test-ulps: Update.
34126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34127
34128 2012-05-06  David S. Miller  <davem@davemloft.net>
34129
34130         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34131         quad soft-float symbols whose references which are compiler
34132         generated.
34133         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34134
34135 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34136
34137         [BZ #13884]
34138         [BZ #13914]
34139         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34140         USE_AS_EXP10L.
34141         (EXPL_FINITE): Likewise.
34142         (FLDLOG): Likewise.
34143         (c0): Likewise.
34144         (c1): Likewise.
34145         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34146         Adjust comments for base varying.
34147         (__expl_finite): Change alias to EXPL_FINITE.
34148         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34149         e_expl.S.
34150         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34151         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34152         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34153         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34154         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34155         USE_AS_EXP10L.
34156         (EXPL_FINITE): Likewise.
34157         (FLDLOG): Likewise.
34158         (c0): Likewise.
34159         (c1): Likewise.
34160         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34161         Adjust comments for base varying.
34162         (__expl_finite): Change alias to EXPL_FINITE.
34163         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34164         tests for bugs.
34165         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34166
34167         [BZ #14064]
34168         * math/libm-test.inc (check_float_internal): Correct ulp
34169         calculation for subnormal expected results.
34170
34171 2012-05-06  Andreas Jaeger  <aj@suse.de>
34172
34173         * Makeconfig (+math-flags): New, set to -frounding-math.
34174         (+cflags): Add +math-flags so that all of glibc gets compiled with
34175         it.
34176
34177         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34178
34179 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34180
34181         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34182         Disable one test.
34183
34184         [BZ #13787]
34185         [BZ #13922]
34186         [BZ #14036]
34187         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34188         (__ieee754_expl): Allow for and saturate large arguments.
34189         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34190         (u_threshold): Likewise.
34191         (__exp): Call __ieee754_exp before checking for overflow and
34192         underflow.
34193         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34194         (u_threshold): Likewise.
34195         (__expf): Call __ieee754_expf before checking for overflow and
34196         underflow.
34197         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34198         (u_threshold): Likewise.
34199         (__expl): Call __ieee754_expl before checking for overflow and
34200         underflow.
34201         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34202         (__ieee754_expl): Allow for and saturate large arguments.
34203         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34204         missing overflow exception on overflow.
34205         (expm1_test): Do not allow missing overflow exception on overflow.
34206
34207         * sysdeps/i386/fpu/e_expl.c: Move to ...
34208         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34209         rather than using inline asm.
34210         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34211         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34212         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34213
34214         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34215         (nice): Likewise.
34216         (poll): Likewise.
34217         (signal): Likewise.
34218         (time): Likewise.
34219         (times): Likewise.
34220
34221 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34222
34223         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34224         sysdeps/unix/common/syscalls.list.
34225         (fchmod): Likewise.
34226         (fchown): Likewise.
34227         (ftruncate): Likewise.
34228         (getrusage): Likewise.
34229         (gettimeofday): Likewise.
34230         (setpgid): Likewise.
34231         (setregid): Likewise.
34232         (setreuid): Likewise.
34233         (sigaction): Likewise.
34234         (truncate): Likewise.
34235         (vhangup): Likewise.
34236         * sysdeps/unix/common/syscalls.list: Remove file.
34237         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34238         * sysdeps/unix/sysv/linux/Implies: Likewise.
34239
34240 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34241
34242         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34243         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34244         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34245         Moved to ...
34246         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34247         Here.
34248         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34249         to ...
34250         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34251         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34252         to ...
34253         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34254         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34255         to ...
34256         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34257         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34258         to ...
34259         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34260         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34261         to ...
34262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34263         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34264         to ...
34265         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34266         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34267         to ...
34268         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34269         Here.
34270         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34271         to ...
34272         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34273         Here.
34274         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34275         to ...
34276         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34277         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34278         Moved to ...
34279         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34280         Here.
34281         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34282         to ...
34283         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34284
34285 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34286
34287         * sysdeps/unix/common/bits/dirent.h: Remove file.
34288         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34289
34290         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34291         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34292         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34293         * sysdeps/unix/bsd/isatty.c: Likewise.
34294         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34295         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34296         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34297
34298 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34299
34300         [BZ #13563]
34301         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34302         long double comparison inaccuracies.
34303         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34304         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34305
34306 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34307
34308         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34309         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34310
34311 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34312
34313         [BZ #14049]
34314         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34315         nonzero digits before rounding a hex value.
34316         * stdlib/tst-strtod.c (tests): Add another test.
34317
34318 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34319
34320         * sysdeps/s390/fpu/libm-test-ulps: Update.
34321
34322 2012-05-03  Andreas Jaeger  <aj@suse.de>
34323
34324         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34325         does not get optimized out.
34326         (malloc_opt_barrier): New.
34327
34328 2012-05-03  Andreas Jaeger  <aj@suse.de>
34329             Roland McGrath  <roland@hack.frob.com>
34330
34331         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34332         intermediate file deletion.
34333         (generated): Add .symlist files.
34334
34335 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34336
34337         [BZ #13775]
34338         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34339         Redirect under this condition.
34340         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34341         [__USE_GNU] (__dprintf_chk): Not under this condition.
34342         [__USE_GNU] (__vdprintf_chk): Likewise.
34343         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34344         under this condition.
34345         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34346         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34347         [__USE_XOPEN2K8] (vdprintf): Likewise.
34348         [__USE_GNU] (__dprintf_chk): Not under this condition.
34349         [__USE_GNU] (__vdprintf_chk): Likewise.
34350         [__USE_GNU] (dprintf): Likewise.
34351         [__USE_GNU] (vdprintf): Likewise.
34352
34353 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34354
34355         * elf/Makefile (common-generated): Set this instead of generated for
34356         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34357         $(all-built-dso)-derived lists.
34358
34359 2012-05-03  Andreas Jaeger  <aj@suse.de>
34360
34361         * sysdeps/i386/fpu/libm-test-ulps: Update.
34362
34363         * FAQ: Removed.
34364         * FAQ.in: Likewise.
34365         * scripts/gen-FAQ.pl: Likewise.
34366         * manual/install.texi (Installation): Point to online location of
34367         FAQ.
34368         * Makefile (files-for-dist): Remove FAQ.
34369         (FAQ): Remove.
34370
34371 2012-05-02  Allan McRae  <allan@archlinux.org>
34372
34373         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34374         (LDFLAGS-reldepmod5.so): Likewise.
34375         (LDFLAGS-reldep6mod1.so): Likewise.
34376         (LDFLAGS-reldep6mod4.so): Likewise.
34377         (LDFLAGS-reldep8mod3.so): Likewise.
34378         (LDFLAGS-unload4mod1.so): Likewise.
34379         (LDFLAGS-unload4mod2.so): Likewise.
34380         (LDFLAGS-tst-initorder): Likewise.
34381         (LDFLAGS-tst-initordera2.so): Likewise.
34382         (LDFLAGS-tst-initordera3.so): Likewise.
34383         (LDFLAGS-tst-initordera4.so): Likewise.
34384         (LDFLAGS-tst-initorderb2.so): Likewise.
34385         (LDFLAGS-noload): Likewise.
34386         (LDFLAGS-next): Likewise.
34387         (LDFLAGS-order2mod1.so): Likewise.
34388         (LDFLAGS-order2mod2.so): Likewise.
34389         (LDFLAGS-tst-initorder2): Likewise.
34390         (LDFLAGS-tst-initorder2a.so): Likewise.
34391         (LDFLAGS-tst-initorder2b.so): Likewise.
34392         (LDFLAGS-tst-initorder2c.so): Likewise.
34393         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34394
34395 2012-05-02  David S. Miller  <davem@davemloft.net>
34396
34397         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34398
34399 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34400
34401         [BZ #14055]
34402         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34403
34404 2012-05-02  Andreas Jaeger  <aj@suse.de>
34405
34406         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34407         since we manipulate rounding mode.
34408         (CPPFLAGS-test-idouble.c): Likewise.
34409         (CPPFLAGS-test-ifloat.c): Likewise.
34410         (CFLAGS-test-ldouble.c): Likewise.
34411         (CFLAGS-test-double.c): Likewise.
34412         (CFLAGS-test-float.c): Likewise.
34413         (CFLAGS-test-misc.c): Likewise.
34414         (CFLAGS-test-test-fenv.c): Likewise.
34415
34416 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34417
34418         [BZ #2550]
34419         [BZ #2570]
34420         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34421         comparisons to determine direction to adjust input.
34422
34423 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34424
34425         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34426         output to the target.
34427
34428         * scripts/localplt.awk: New file.
34429         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34430         (check-localplt-CFLAGS): Variable removed.
34431         ($(all-built-dso:=.jmprel)): New static pattern rule.
34432         (generated): Add those targets.
34433         (localplt-built-dso): New variable.
34434         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34435
34436         * elf/check-localplt.c: File removed.
34437
34438         * scripts/check-execstack.awk: New file.
34439         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34440         (check-execstack-CFLAGS): Variable removed.
34441         ($(objpfx)check-execstack.h): Target removed.
34442         ($(objpfx)execstack-default): New target.
34443         (generated): Add that instead of check-execstack.h.
34444         ($(all-built-dso:=.phdr)): New static pattern rule.
34445         (generated): Add those targets.
34446         * elf/check-execstack.c: File removed.
34447
34448         * scripts/check-textrel.awk: New file.
34449         * elf/Makefile ($(objpfx)check-textrel): Target removed.
34450         (check-textrel-CFLAGS): Variable removed.
34451         (all-built-dso): Use := to define.o
34452         ($(all-built-dso:=.dyn)): New static pattern rule.
34453         (generated): Add those targets.
34454         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
34455         * config.make.in (READELF): New substituted variable.
34456         * elf/check-textrel.c: File removed.
34457
34458 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34459
34460         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34461         allow.
34462         * conform/data/ctype.h-data [C99-based standards] (isblank):
34463         Expect function.
34464         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
34465         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
34466         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34467         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
34468         Specify type.  Require positive value.
34469         (EILSEQ): Likewise.
34470         (ERANGE): Likewise.
34471         [ISO || POSIX] (EILSEQ): Do not expect.
34472         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
34473         Specify type.  Require positive value.
34474         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
34475         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
34476         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
34477         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
34478         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
34479         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
34480         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
34481         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
34482         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
34483         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
34484         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34485         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34486         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34487         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34488         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34489         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34490         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34491         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34492         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34493         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34494         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34495         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34496         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34497         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34498         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34499         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34500         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34501         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34502         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34503         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34504         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34505         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34506         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34507         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34508         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34509         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34510         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34511         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34512         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34513         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34514         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34515         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34516         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34517         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34518         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34519         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34520         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34521         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34522         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34523         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34524         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34525         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34526         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34527         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34528         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34529         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34530         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34531         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34532         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34533         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34534         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34535         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34536         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34537         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34538         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34539         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34540         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34541         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34542         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34543         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34544         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34545         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34546         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34547         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34548         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34549         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34550         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34551         Require >= 2.
34552         (FLT_ROUNDS): Expect as macro, not constant.
34553         (FLT_MANT_DIG): Use macro-int-constant.
34554         (DBL_MANT_DIG): Likewise.
34555         (LDBL_MANT_DIG): Likewise.
34556         (FLT_DIG): Likewise.
34557         (DBL_DIG): Likewise.
34558         (LDBL_DIG): Likewise.
34559         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34560         (DBL_MIN_EXP): Likewise.
34561         (LDBL_MIN_EXP): Likewise.
34562         (FLT_MAX_EXP): Use macro-int-constant.
34563         (DBL_MAX_EXP): Likewise.
34564         (LDBL_MAX_EXP): Likewise.
34565         (FLT_MAX_10_EXP): Likewise.
34566         (DBL_MAX_10_EXP): Likewise.
34567         (LDBL_MAX_10_EXP): Likewise.
34568         (FLT_MAX): Use macro-constant.
34569         (DBL_MAX): Likewise.
34570         (LDBL_MAX): Likewise.
34571         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34572         (DBL_EPSILON): Likewise.
34573         (LDBL_EPSILON): Likewise.
34574         (FLT_MIN): Likewise.
34575         (DBL_MIN): Likewise.
34576         (LDBL_MIN): Likewise.
34577         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34578         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34579         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34580         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34581         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34582         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34583         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34584         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34585         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34586         [ISO11] (FLT_TRUE_MIN): Likewise.
34587         [ISO11] (LDBL_TRUE_MIN): Likewise.
34588         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34589         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34590         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34591         (SCHAR_MAX): Likewise.
34592         (UCHAR_MAX): Likewise.
34593         (CHAR_MIN): Likewise.
34594         (CHAR_MAX): Likewise.
34595         (MB_LEN_MAX): Use macro-int-constant.
34596         (SHRT_MIN): Use macro-int-constant.  Specify type.
34597         (SHRT_MAX): Likewise.
34598         (USHRT_MAX): Likewise.
34599         (INT_MAX): Likewise.
34600         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34601         bound negative.
34602         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34603         bound with "U".
34604         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34605         bound with "L".
34606         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34607         bound negative.  Suffix upper bound with "L".
34608         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34609         bound with "UL".
34610         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34611         Specify type.
34612         [C99-based standards] (LLONG_MAX): Likewise.
34613         [C99-based standards] (ULLONG_MAX): Likewise.
34614         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34615         == 0.
34616         [ISO11] (max_align_t): Require type.
34617         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34618
34619         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34620         from $CFLAGS, without defining away __attribute__ calls.
34621         (checknamespace): Use $CFLAGS_namespace.
34622
34623         * conform/conformtest.pl (@keywords): Only include C99 keywords
34624         for standards based on C99 or C11.
34625
34626         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34627         Disable tests.
34628         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34629         UNIX98]: Likewise.
34630
34631         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34632         usability of symbols in #if.
34633
34634         * conform/conformtest.pl: If macro or constant types start
34635         "promoted:", expect the symbol to be of the following type
34636         promoted by the integer promotions.
34637
34638         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34639         in one place.  Also handle "macro-constant".
34640
34641         * conform/conformtest.pl: Only accept expected macro values with
34642         "==".  Parse all "macro" lines in one place.
34643         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34644
34645         * conform/conformtest.pl: Handle braced types on "constant" lines
34646         instead of handling "typed-constant".
34647         * conform/data/signal.h-data: Use "constant" instead of
34648         "typed-constant".
34649
34650         * conform/conformtest.pl: Handle "optional-" at start of lines in
34651         one place rather than duplicating several cases.  Handle each
34652         format of "macro" line with initial "optional-".
34653
34654         * conform/conformtest.pl: Only accept expected constant or
34655         optional-constant values with "==".  Parse all "constant" lines in
34656         one place.  Parse all "optional-constant" lines in one place.
34657         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34658         * conform/data/fmtmsg.h-data: Likewise.
34659         * conform/data/netinet/in.h-data: Likewise.
34660         * conform/data/tar.h-data: Likewise.
34661         * conform/data/limits.h-data: Use "==" form on "constant" and
34662         "optional-constant" lines.
34663
34664         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34665         Use -std=c99 for XOPEN2K.
34666         (@knownproblems): Remove.
34667         (newtoken): Don't check %isknown.
34668
34669         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34670         Do not expect macro.
34671         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34672         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34673         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34674         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34675         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34676         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34677         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34678         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34679         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34680         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34681         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34682         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34683         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34684         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34685         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34686         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34687         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34688         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34689         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34690         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34691         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34692         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34693         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34694         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34695         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34696         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34697         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34698         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34699         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34700         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34701         [XPG3] (acosh): Likewise.
34702         [XPG3] (asinh): Likewise.
34703         [XPG3] (atanh): Likewise.
34704         [XPG3] (cbrt): Likewise.
34705         [XPG3] (expm1): Likewise.
34706         [XPG3] (ilogb): Likewise.
34707         [XPG3] (log1p): Likewise.
34708         [XPG3] (logb): Likewise.
34709         [XPG3] (nextafter): Likewise.
34710         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34711         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34712         [XPG3] (remainder): Likewise.
34713         [XPG3] (rint): Likewise.
34714         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34715         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34716         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34717         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34718         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34719         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34720         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34721         [UNIX98 || XOPEN2K] (scalb): Expect.
34722         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34723         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34724         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34725         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34726         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34727         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34728         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34729         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34730         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34731         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34732         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34733         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34734         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34735         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34736         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34737         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34738         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34739         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34740         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34741         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34742         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34743         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34744         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34745         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34746         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34747         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34748         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34749         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34750         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34751         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34752         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34753         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34754         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34755         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34756         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34757         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34758         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34759         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34760         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34761         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34762         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34763         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34764         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34765         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34766         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34767         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34768         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34769         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34770         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34771         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34772         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34773         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34774         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34775         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34776         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34777         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34778         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34779         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34780         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34781         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34782         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34783         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34784         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34785         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34786         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34787         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34788         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34789         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34790         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34791         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34792         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34793         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34794         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34795         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34796         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34797         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34798         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34799         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34800         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34801         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34802         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34803         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34804         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34805         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34806         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34807         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34808         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34809         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34810         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34811         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34812         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34813         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34814         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34815         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34816         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34817         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34818         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34819         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34820         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34821         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34822         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34823         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34824         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34825         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34826         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34827         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34828         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34829         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34830         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34831         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34832         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34833         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34834         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34835         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34836         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34837         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34838         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34839         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34840         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34841         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34842         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34843         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34844         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34845         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34846         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34847         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34848         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34849         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34850         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34851         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34852         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34853         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34854         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34855         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34856         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34857         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34858         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34859
34860         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34861         _XOPEN_SOURCE_EXTENDED for XPG4.
34862
34863         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34864
34865         * Makeconfig (localtime): Remove variable.
34866         (inst_localtime-file): Likewise.
34867
34868 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34869
34870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34871         Update.
34872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34873         Update.
34874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34875         Update.
34876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34877         Update.
34878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34879         Update.
34880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34881         Update.
34882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34883         Update.
34884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34885         Update.
34886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34887         Update.
34888
34889 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34890
34891         [BZ #2550]
34892         [BZ #2570]
34893         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34894         comparisons to determine direction to adjust input.
34895         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34896         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34897         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34898         Likewise.
34899         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34900         Likewise.
34901         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34902         Likewise.
34903         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34904         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34905         Likewise.
34906         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34907         Likewise.
34908         * math/libm-test.inc (nexttoward_test): Add more tests.
34909
34910 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34911
34912         [BZ #14040]
34913         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34914         in version GLIBC_2.1, not GLIBC_2.0.
34915         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34916         Likewise.
34917
34918 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34919
34920         [BZ #13942]
34921         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34922         (1 - x) * (1 + x).
34923         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34924         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34925         * math/libm-test.inc (acos_test): Add more tests.
34926         (asin_test): Likewise.
34927         * sysdeps/i386/fpu/libm-test-ulps: Update.
34928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34929
34930         [BZ #14034]
34931         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34932         of square root.
34933         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34934         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34935         * math/libm-test.inc (acos_test_tonearest): New function.
34936         (acos_test_towardzero): Likewise.
34937         (acos_test_downward): Likewise.
34938         (acos_test_upward): Likewise.
34939         (asin_test_tonearest): Likewise.
34940         (asin_test_towardzero): Likewise.
34941         (asin_test_downward): Likewise.
34942         (asin_test_upward): Likewise.
34943         (main): Call the new functions.
34944         * sysdeps/i386/fpu/libm-test-ulps: Update.
34945         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34946
34947         [BZ #13884]
34948         [BZ #13924]
34949         * math/e_exp10.c: Include <float.h>.
34950         (__ieee754_exp10): Handle underflow here rather than multiplying
34951         large negative argument by M_LN10.
34952         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34953         of __ieee754_expf.
34954         * math/e_exp10l.c: Include <float.h>.
34955         (__ieee754_exp10l): Handle underflow here rather than multiplying
34956         large negative argument by M_LN10l.
34957         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34958         spurious overflow exception on underflow.
34959
34960 2012-04-29  Marek Polacek  <polacek@redhat.com>
34961
34962         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34963         (__fortify_function): New macro.
34964         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34965         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34966         __extern_always_inline.
34967         * libio/bits/stdio2.h: Likewise.
34968         * libio/bits/stdio.h: Likewise.
34969         * string/string.h: Likewise.
34970         * string/bits/string3.h: Likewise.
34971         * include/stdio.h: Likewise.
34972         * stdlib/bits/stdlib.h: Likewise.
34973         * stdlib/stdlib.h: Likewise.
34974         * rt/bits/mqueue2.h: Likewise.
34975         * rt/mqueue.h: Likewise.
34976         * posix/bits/unistd.h: Likewise.
34977         * posix/unistd.h: Likewise.
34978         * io/bits/poll2.h: Likewise.
34979         * io/bits/fcntl2.h: Likewise.
34980         * io/fcntl.h: Likewise.
34981         * io/sys/poll.h: Likewise.
34982         * misc/bits/syslog.h: Likewise.
34983         * misc/bits/syslog-ldbl.h: Likewise.
34984         * misc/sys/syslog.h: Likewise.
34985         * socket/bits/socket2.h: Likewise.
34986         * socket/sys/socket.h: Likewise.
34987         * debug/tst-chk1.c: Likewise.
34988         * wcsmbs/bits/wchar2.h: Likewise.
34989         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34990         * wcsmbs/wchar.h: Likewise.
34991
34992 2012-04-29  Andreas Jaeger  <aj@suse.de>
34993
34994         * Makerules (tests): Remove enable-check-abi protection.
34995         (check-abi-warn): Remove.
34996         (check-abi-%): Remove check-abi-warn usage.
34997
34998         * configure.in: Remove check-abi configure option.
34999         * configure: Regenerated.
35000         * config.make.in (enable-check-abi): Remove.
35001
35002 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
35003
35004         [BZ #14033]
35005         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
35006         double functions to double *_finite functions.
35007
35008         [BZ #13941]
35009         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
35010         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
35011         LDBL_MIN_EXP.
35012         * stdio-common/Makefile (tests): Add tst-sprintf3.
35013         * stdio-common/tst-sprintf3.c: New file.
35014
35015         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
35016         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
35017
35018 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35019
35020         * conform/conformtest.pl: Remove duplicate typed-constant
35021         handling.
35022
35023 2012-04-28  David S. Miller  <davem@davemloft.net>
35024
35025         * Makerules (%.abilist): Add vpath on sysdep_dirs.
35026         (check-abi-%): Remove AWK script prerequisite and explicit
35027         abilist directory.
35028         (check-abi): Rewrite to just diff the symlist with the abilist.
35029         (config-tls, config-abi-config): Delete, no longer used.
35030         (update-abi-%): Remove AWK script and explicit abilist directory.
35031         (update-abi): Rewrite to simply compare and conditionally copy the
35032         symlist and the sysdep abilist file.  Remove update-abi-config
35033         checks.
35034         * abilist/ld.abilist: Remove.
35035         * abilist/libBrokenLocale.abilist: Remove.
35036         * abilist/libanl.abilist: Remove.
35037         * abilist/libcrypt.abilist: Remove.
35038         * abilist/libdl.abilist: Remove.
35039         * abilist/librt.abilist: Remove.
35040         * abilist/libthread_db.abilist: Remove.
35041         * abilist/libutil.abilist: Remove.
35042         * scripts/extract-abilist.awk: Remove.
35043         * scripts/merge-abilist.awk: Remove.
35044         * sysdeps/generic/libcidn.abilist: New file.
35045         * sysdeps/generic/libnss_compat.abilist: New file.
35046         * sysdeps/generic/libnss_db.abilist: New file.
35047         * sysdeps/generic/libnss_dns.abilist: New file.
35048         * sysdeps/generic/libnss_files.abilist: New file.
35049         * sysdeps/generic/libnss_hesiod.abilist: New file.
35050         * sysdeps/generic/libnss_nis.abilist: New file.
35051         * sysdeps/generic/libnss_nisplus.abilist: New file.
35052         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
35053         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
35054         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
35055         file.
35056         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
35057         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
35058         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
35059         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
35060         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
35061         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
35062         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
35063         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
35064         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
35065         file.
35066         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
35067         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
35068         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
35069         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
35070         file.
35071         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
35072         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
35073         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
35074         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
35075         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
35076         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
35077         file.
35078         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
35079         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
35080         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
35081         file.
35082         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
35083         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
35084         New file.
35085         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
35086         New file.
35087         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
35088         New file.
35089         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
35090         New file.
35091         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
35092         New file.
35093         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
35094         New file.
35095         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
35096         New file.
35097         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
35098         New file.
35099         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
35100         New file.
35101         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35102         New file.
35103         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35104         New file.
35105         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35106         New file.
35107         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35108         New file.
35109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35110         file.
35111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35112         New file.
35113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35114         New file.
35115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35116         file.
35117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35118         New file.
35119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35120         New file.
35121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35122         file.
35123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35124         New file.
35125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35126         New file.
35127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35128         New file.
35129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35130         New file.
35131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35132         New file.
35133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35134         New file.
35135         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35136         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35137         file.
35138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35139         New file.
35140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35141         file.
35142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35143         file.
35144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35145         file.
35146         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35147         file.
35148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35149         file.
35150         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35151         New file.
35152         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35153         file.
35154         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35155         file.
35156         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35157         New file.
35158         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35159         file.
35160         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35161         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35162         file.
35163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35164         New file.
35165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35166         file.
35167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35168         file.
35169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35170         file.
35171         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35172         file.
35173         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35174         file.
35175         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35176         New file.
35177         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35178         file.
35179         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35180         file.
35181         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35182         New file.
35183         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35184         file.
35185         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35186         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35187         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35188         file.
35189         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35190         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35191         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35192         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35193         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35194         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35195         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35196         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35197         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35198         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35199         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35201         file.
35202         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35203         New file.
35204         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35205         file.
35206         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35207         file.
35208         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35209         file.
35210         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35211         file.
35212         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35213         file.
35214         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35215         New file.
35216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35217         New file.
35218         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35219         file.
35220         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35221         New file.
35222         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35223         file.
35224         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35225         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35226         file.
35227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35228         New file.
35229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35230         file.
35231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35232         file.
35233         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35234         file.
35235         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35236         file.
35237         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35238         file.
35239         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35240         New file.
35241         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35242         New file.
35243         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35244         file.
35245         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35246         New file.
35247         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35248         file.
35249
35250 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35251
35252         * conform/conformtest.pl: Fix typo in handling typed-constant from
35253         allow-header.
35254
35255 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35256
35257         * README: Cut down references to pre-2.6 Linux kernels and
35258         Linuxthreads.  Update lists of configurations in libc and ports
35259         and sort alphabetically.  Say "or newer" with Linux kernel version
35260         requirements.
35261
35262         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35263
35264 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35265
35266         [BZ #887]
35267         * math/libm-test.inc (logb_test_downward): New test to expose
35268         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35269         rounding mode.
35270
35271 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35272
35273         [BZ #14027]
35274         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35275         to be done.
35276         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35277         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35278
35279 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35280
35281         * sysdeps/unix/i386/brk.S: Remove file.
35282         * sysdeps/unix/i386/dl-brk.S: Likewise.
35283         * sysdeps/unix/i386/pipe.S: Likewise.
35284         * sysdeps/unix/i386/sigreturn.S: Likewise.
35285         * sysdeps/unix/i386/syscall.S: Likewise.
35286         * sysdeps/unix/i386/vfork.S: Likewise.
35287         * sysdeps/unix/i386/wait.S: Likewise.
35288
35289         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35290         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35291
35292         * configure.in (arm*-none*): Do not allow without
35293         --enable-hacker-mode.
35294         (netbsd*): Remove case setting base_os.
35295         (386bsd*): Likewise.
35296         (freebsd*): Likewise.
35297         (bsdi*): Likewise.
35298         (osf*): Likewise.
35299         (sunos*): Likewise.
35300         (ultrix*): Likewise.
35301         (newsos*): Likewise.
35302         (dynix*): Likewise.
35303         (*bsd*): Likewise.
35304         (sysv*): Likewise.
35305         (isc*): Likewise.
35306         (esix*): Likewise.
35307         (sco*): Likewise.
35308         (minix*): Likewise.
35309         (irix4*): Likewise.
35310         (irix6*): Likewise.
35311         (solaris[2-9]*): Likewise.
35312         (none): Likewise.
35313         * configure: Regenerated.
35314
35315 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35316
35317         [BZ #11521]
35318         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35319         overflow or cancellation in calculating denominator.
35320         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35321         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35322         down expression to avoid unexpected rounding in newer GCCs.
35323         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35324
35325 2012-04-26  David S. Miller  <davem@davemloft.net>
35326
35327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35328         long-double compat symbols.
35329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35335         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35342
35343 2012-04-25  David S. Miller  <davem@davemloft.net>
35344
35345         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35346         HWCAP_* values only after the memory barriers have been defined.
35347         (atomic_full_barrier): Define.
35348         (atomic_read_barrier): Define.
35349         (atomic_write_barrier): Define.
35350
35351 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35352
35353         * shlib-versions: Add libgcc_s version information.
35354         * sysdeps/generic/libgcc_s.h: Remove.
35355         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35356         libgcc_s.h.
35357         * sysdeps/gnu/unwind-resume.c: Likewise.
35358         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35359
35360 2012-04-25  David S. Miller  <davem@davemloft.net>
35361
35362         * sysdeps/unix/sparc/brk.S: Delete.
35363         * sysdeps/unix/sparc/dl-brk.S: Delete.
35364         * sysdeps/unix/sparc/pipe.S: Delete.
35365         * sysdeps/unix/sparc/sysdep.S: Delete.
35366         * sysdeps/unix/sparc/sysdep.h: Delete.
35367         * sysdeps/unix/sparc/vfork.S: Delete.
35368         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35369         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35370         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35371         (ret_ERRVAL, r0, r1, MOVE): Define.
35372         (JUMPTARGET): Remove.
35373         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35374         sysdeps/unix/sparc/sysdep.h
35375         (ENTRY, END): Remove.
35376         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35377
35378 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35379
35380         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35381         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35382         -DIS_IN_build.
35383
35384         * timezone/README: Update upstream location and email address for
35385         tzcode and tzdata.
35386         * timezone/zdump.c: Update from tzcode 2012b.
35387         * timezone/zic.c: Likewise.
35388
35389         * configure.in (libc_cv_as_needed): Remove test.
35390         * configure: Regenerated.
35391         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35392         conditional definition.
35393         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35394         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35395         * config.make.in (have-as-needed): Remove variable.
35396
35397 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35398             Paul Pluzhnikov  <ppluzhnikov@google.com>
35399
35400         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35401         strings correctly.
35402
35403 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35404
35405         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35406         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35407         * sysdeps/sh/strlen.S: Likewise.
35408
35409 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35410
35411         * sysdeps/unix/fork.S: Remove file.
35412         * sysdeps/unix/i386/fork.S: Likewise.
35413         * sysdeps/unix/sparc/fork.S: Likewise.
35414
35415         * sysdeps/unix/system.c: Remove file.
35416         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35417
35418         * sysdeps/unix/getegid.S: Remove file.
35419         * sysdeps/unix/geteuid.S: Likewise.
35420
35421 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35422
35423         * scripts/check-localplt.awk: New file.
35424         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35425         of diff.
35426         * scripts/data/localplt-generic.data: Add a comment.
35427
35428         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35429         NODE when __dir_mkfile failed.
35430         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35431         Reported by Ludovic Courtès <ludo@gnu.org>.
35432
35433 2012-04-24  Andreas Jaeger  <aj@suse.de>
35434
35435         * Makerules (common-clean): Also remove gen-as-const-headers
35436         files.
35437
35438 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35439
35440         * Makerules (native-compile): Do not change working directory for
35441         build.  Use $(OUTPUT_OPTION) in command.
35442         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
35443
35444 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35445
35446         [BZ #13886]
35447         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
35448         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
35449         * math/libm-test.inc (floor_test): Add more tests.
35450         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
35451
35452 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35453
35454         * sysdeps/unix/getdents.c: Remove file.
35455         * sysdeps/unix/sysv/getdents.c: Likewise.
35456         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
35457
35458         * sysdeps/unix/syscalls.list (madvise): Add syscall from
35459         sysdeps/unix/mman/syscalls.list.
35460         (mmap): Likewise.
35461         (mprotect): Likewise.
35462         (msync): Likewise.
35463         (munmap): Likewise.
35464         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
35465         * sysdeps/unix/mman/syscalls.list: Remove.
35466         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
35467
35468         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
35469         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
35470         * configure: Regenerated.
35471         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
35472         $(libgcc_s_suffix).
35473         * config.make.in (libgcc_s_suffix): Remove variable.
35474
35475 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
35476
35477         * sysdeps/unix/sysv/gethostname.c: Move to ...
35478         * sysdeps/posix/gethostname.c: ... here.
35479
35480         * sysdeps/unix/execve.S: Remove file.
35481
35482         * sysdeps/unix/_exit.S: Remove file.
35483
35484 2012-04-23  Andreas Jaeger  <aj@suse.de>
35485
35486         [BZ #13739]
35487         * manual/Makefile: Remove make dist support, there's no
35488         need for a stand-alone documentation tar ball.
35489         (TEXI2DVI): Define always, it's not in Makeconfig.
35490         (dist): Removed.
35491         (tar-it): Removed.
35492         (edition): Removed.
35493         (glibc-doc-$(edition).tar): Removed
35494         (%.Z): Removed.
35495         (%.gz): Removed.
35496         (%.uu): Removed.
35497         (ETAGS): Remove, it's in Makeconfig.
35498         (move-if-change): Remove, it's in Makeconfig.
35499
35500 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35501
35502         [BZ #13970]
35503         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35504         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35505         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35506         (strtod_l, strtof_l, strtold_l): Remove __wur.
35507         It is not necessarily an error to ignore strtol's return value.
35508         One can reliably look at the stored endptr to decide whether
35509         the number had valid syntax.
35510
35511 2012-04-21  Andreas Jaeger  <aj@suse.de>
35512
35513         [BZ #13739]
35514         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35515
35516 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35517
35518         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35519         * sysdeps/unix/sysv/Versions: Remove file.
35520
35521 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35522
35523         [BZ #13927]
35524         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35525
35526 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35527
35528         [BZ #7064]
35529         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35530         version from __vm86.
35531
35532 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35533
35534         * sysdeps/unix/common/lxstat.c: Remove file.
35535         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35536
35537         * sysdeps/unix/sysv/Makefile: Remove file.
35538
35539         * sysdeps/unix/sysv/direct.h: Remove file.
35540
35541         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35542         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35543         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35544         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35545         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35546         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35547         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35548
35549         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35550
35551         * sysdeps/unix/xmknod.c: Remove file.
35552         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35553
35554         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35555
35556         * sysdeps/unix/sysv/i386/time.S: Remove file.
35557
35558         * sysdeps/unix/fxstat.c: Remove file.
35559         * sysdeps/unix/xstat.c: Likewise.
35560         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35561
35562         * sysdeps/unix/sysv/sigaction.c: Remove file.
35563
35564         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35565         (sysdep_headers): Remove variable.
35566         [termio.h not in sysdep_headers] (generated): Likewise.
35567         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35568         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35569         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35570         * sysdeps/unix/sysv/tcflow.c: Likewise.
35571         * sysdeps/unix/sysv/tcflush.c: Likewise.
35572         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35573         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35574         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35575         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35576         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35577
35578         * sysdeps/unix/siglist.c: Remove file.
35579
35580         * sysdeps/unix/getppid.S: Remove file.
35581
35582         * sysdeps/unix/mkdir.c: Remove file.
35583         * sysdeps/unix/rmdir.c: Likewise.
35584
35585 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35586
35587         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35588         ERR_MAX value.
35589         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35590         errlist-compat value.
35591
35592 2012-04-18  David S. Miller  <davem@davemloft.net>
35593
35594         * sysdeps/generic/memcopy.h (reg_char): Delete.
35595         * debug/strcat_chk.c: Use char, not reg_char.
35596         * debug/strcpy_chk.c: Likewise.
35597         * debug/strncat_chk.c: Likewise.
35598         * debug/strncpy_chk.c: Likewise.
35599         * string/memchr.c: Likewise.
35600         * string/memrchr.c: Likewise.
35601         * string/rawmemchr.c: Likewise.
35602         * string/strcat.c: Likewise.
35603         * string/strchr.c: Likewise.
35604         * string/strchrnul.c: Likewise.
35605         * string/strcmp.c: Likewise.
35606         * string/strcpy.c: Likewise.
35607         * string/strncat.c: Likewise.
35608         * string/strncmp.c: Likewise.
35609         * string/strncpy.c: Likewise.
35610
35611 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35612
35613         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35614         __builtin_memcopy is called when src and dest ranges are known to not
35615         overlap.
35616
35617 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35618
35619         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35620         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35621         fwd_align_merge macro call.
35622         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35623         bwd_align_merge macro call.
35624         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35625
35626 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35627
35628         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35629         bwd_align_merge macros.
35630         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35631         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35632         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35633
35634 2012-04-18  David S. Miller  <davem@davemloft.net>
35635
35636         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35637
35638 2012-04-18  Andreas Jaeger  <aj@suse.de>
35639
35640         [BZ# 6794]
35641         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35642         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35643         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35644
35645         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35646         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35647         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35648
35649         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35650         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35651         Adjust for changed ldbl-128 files.
35652
35653         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35654         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35655         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35656
35657 2012-04-17  David S. Miller  <davem@davemloft.net>
35658
35659         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35660
35661 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35662
35663         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35664         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35665         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35666         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35667         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35668         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35669
35670 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35671
35672         [BZ #6794]
35673         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35674         * math/libm-test.inc: Add ilogb errno and exception tests.
35675         * math/w_ilogb.c: New file: ilogb wrapper.
35676         * math/w_ilogbf.c: New file: ilogbf wrapper.
35677         * math/w_ilogbl.c: New file: ilogbl wrapper.
35678         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35679         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35680         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35681         exception being thrown with 0.0 as argument.
35682         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35683         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35684         exception being thrown with 0.0 as argument.
35685         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35686         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35687         exception being thrown with 0.0 as argument.
35688         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35689         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35690         exception being thrown with 0.0 as argument.
35691         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35692         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35693         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35694         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35695         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35696         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35697         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35698         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35699         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35700
35701 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35702
35703         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35704         with altivec.
35705
35706 2012-04-16  Marek Polacek  <polacek@redhat.com>
35707
35708         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35709
35710 2012-04-16  Marek Polacek  <polacek@redhat.com>
35711
35712         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35713         operands of fdivp instruction.
35714
35715 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35716
35717         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35718         * elf/tst-auditmod3b.c: Likewise.
35719         * elf/tst-auditmod4b.c: Likewise.
35720         * elf/tst-auditmod5b.c: Likewise.
35721         * elf/tst-auditmod6b.c: Likewise.
35722         * elf/tst-auditmod6c.c: Likewise.
35723         * elf/tst-auditmod7b.c: Likewise.
35724         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35725         * sysdeps/x86_64/preconfigure.in: Likewise.
35726         * sysdeps/x86_64/preconfigure: Regenerated.
35727
35728 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35729
35730         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35731         __ILP32__.
35732
35733 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35734
35735         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35736         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35737
35738 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35739
35740         [BZ #13973]
35741         * locale/iso-639.def: Fix gl language name. Spotted by
35742         Yaron Shahrabani.
35743
35744 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35745
35746         [BZ #2074]
35747         * libio/libio.h (__io_write_fn): Update comment.
35748
35749 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35750
35751         [BZ #2074]
35752         * stdio.texi (Hook Functions): The user provided writer function
35753         is not allowed to return -1.
35754
35755 2012-04-11  David S. Miller  <davem@davemloft.net>
35756
35757         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35758
35759 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35760
35761         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35762         Add a leading slash to rtkaio.
35763
35764 2012-04-11  Jim Meyering  <meyering@redhat.com>
35765
35766         [BZ #11959]
35767         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35768         It is not necessarily an error to ignore fwrite's return
35769         value.  One can reliably use ferror to test for errors after
35770         the fact.
35771
35772 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35773
35774         * bits/types.h (__snseconds_t): New type.
35775         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35776
35777         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35778         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35779         (__SNSECONDS_T_TYPE): Likewise.
35780         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35781         (__SNSECONDS_T_TYPE): Likewise.
35782         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35783         (__SNSECONDS_T_TYPE): Likewise.
35784
35785 2012-04-10  Andreas Jaeger  <aj@suse.de>
35786
35787         [BZ #2636]
35788         * manual/time.texi (Processor Time): Return type of times is
35789         elapsed real time since an arbitrary point in the past.
35790         (CPU Time): Move CLK_TCK from here...
35791         (Processor Time): ...to here.  Correct description.
35792         * manual/conf.texi (Constants for Sysconf): Correct description of
35793         _SC_CLK_TCK.
35794
35795 2012-04-10  David S. Miller  <davem@davemloft.net>
35796
35797         [BZ #13967]
35798         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35799         where the is a gap between DT_REL(A) and DT_JMPREL.
35800
35801 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35802
35803         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35804         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35805         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35806
35807 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35808
35809         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35810         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35811         (dl_main): Handle --inhibit-cache.
35812         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35813         _dl_inhibit_cache.
35814         * elf/dl-load.c (_dl_map_object): Use it.
35815         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35816
35817 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35818
35819         [BZ #13872]
35820         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35821         (__ieee754_powl): Saturate large exponents rather than testing for
35822         overflow of y*log2(x).
35823         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35824         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35825         exceptions.
35826
35827         [BZ #11521]
35828         * math/s_ctan.c: Include <float.h>.
35829         (__ctan): Avoid internal overflow or cancellation in calculating
35830         denominator.
35831         * math/s_ctanf.c: Likewise.
35832         * math/s_ctanl.c: Likewise.
35833         * math/s_ctanh.c: Likewise.
35834         * math/s_ctanhf.c: Likewise.
35835         * math/s_ctanhl.c: Likewise.
35836         * math/libm-test.inc (ctan_test): Add more tests.
35837         (ctanh_test): Likewise.
35838         * sysdeps/i386/fpu/libm-test-ulps: Update.
35839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35840
35841 2012-04-09  Andreas Jaeger  <aj@suse.de>
35842
35843         [BZ #6894]
35844         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35845         is an optional BSD extension.
35846
35847         [BZ #10254]
35848         * manual/stdio.texi (Opening Streams): Document additional fopen
35849         parameters.
35850
35851 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35852
35853         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35854         %eax without telling the compiler.
35855
35856 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35857
35858         [BZ # 13963]
35859         * manual/install.texi: Use sourceware.org.
35860
35861 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35862
35863         [BZ #13873]
35864         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35865         (__ieee754_pow): Generate overflow and underflow using huge*huge
35866         and tiny*tiny rather than just returning constant infinity or zero
35867         for large exponents.
35868         * math/libm-test.inc (pow_test): Require overflow exceptions for
35869         applicable cases of large exponents.
35870
35871         [BZ #706]
35872         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35873         (__ieee754_pow): Use iterative multiplication algorithm only for
35874         integer exponents with absolute value below 1024.  Check for odd
35875         integer exponents when using algorithm for real exponents.
35876         * math/libm-test.inc (pow_test): Add more tests.
35877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35878
35879 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35880
35881         [BZ #13705]
35882         * math/libm-test.inc (exp_test): Do not allow overflow exception
35883         on underflow test.
35884
35885 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35886
35887         [BZ #13705]
35888         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35889         instead of __kernel_standard_f.
35890
35891 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35892
35893         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35894         * sysdeps/x86_64/memset_chk.S: Likewise.
35895
35896 2012-04-08  Andreas Jaeger  <aj@suse.de>
35897
35898         [BZ #10153]
35899         * manual/startup.texi (Environment Access): Describe return value
35900         for putenv and setenv.
35901
35902         [BZ #6895]
35903         * manual/filesys.texi (Directory Entries): Add description for
35904         DT_LNK.
35905
35906         [BZ #6890]
35907         * manual/filesys.texi (Directory Entries): Clarify that it's file
35908         system not operating system in the description of DT_UNKNOWN.
35909
35910         [BZ #6578]
35911         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35912
35913 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35914
35915         [BZ #6649]
35916         * manual/llio.texi (Opening and Closing Files): Add cross
35917         reference to explain mode argument.
35918
35919 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35920
35921         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35922         * sysdeps/x86_64/memset_chk.S: Likewise.
35923
35924 2012-04-07  David S. Miller  <davem@davemloft.net>
35925
35926         * elf/elf.h (R_SPARC_WDISP10): Define.
35927         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35928         R_SPARC_SIZE32.
35929         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35930         R_SPARC_SIZE64 and R_SPARC_H34.
35931
35932 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35933
35934         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35935         conditions and remove no longer applicable assertion.
35936
35937 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35938
35939         * bits/byteswap.h: Include <features.h>.
35940         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35941         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35942
35943 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35944
35945         * bits/byteswap.h (__bswap_16): Removed.
35946         Include <bits/byteswap-16.h> to get __bswap_16.
35947         * sysdeps/i386/bits/byteswap.h: Likewise.
35948         * sysdeps/s390/bits/byteswap.h: Likewise.
35949         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35950         * bits/byteswap-16.h: New file.
35951         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35952         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35953         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35954         * string/Makefile (headers): Add bits/byteswap-16.h.
35955
35956 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35957
35958         [BZ #13895]
35959         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35960         extra indirection.
35961         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35962         * nss/tst-nss-static.c: New.
35963
35964 2012-04-06  Robert Millan  <rmh@gnu.org>
35965
35966         [BZ #6486]
35967         * manual/llio.texi (File Position Primitive): lseek
35968         refers to WHENCE when it really means OFFSET.
35969
35970 2012-04-06  Andreas Jaeger  <aj@suse.de>
35971
35972         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35973         strncmp declarations.
35974
35975         * abilist/libc.abilist: Add __poll and __ppoll.
35976
35977 2012-04-05  David S. Miller  <davem@davemloft.net>
35978
35979         * scripts/check-local-headers.sh: Accept a host triplet in the
35980         path matched by the exclude regexp.
35981
35982         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35983         definition.
35984         * sysdeps/powerpc/powerpc32/dl-machine.h
35985         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35986         * sysdeps/s390/s390-32/dl-machine.h
35987         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35988         * sysdeps/sparc/sparc32/dl-machine.h
35989         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35990         * sysdeps/sparc/sparc64/dl-machine.h
35991         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35992
35993         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35994         lazy binding.
35995         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35996         undefined symbol errors.
35997
35998         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35999         DT_NEEDED entries.
36000
36001 2012-04-05  Michael Matz  <matz@suse.de>
36002
36003         [BZ #13592]
36004         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
36005
36006 2012-04-05  Andreas Jaeger  <aj@suse.de>
36007
36008         [BZ #13908]
36009         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
36010         comment.
36011
36012 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36013
36014         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
36015         which ROUND is no valid rounding mode.
36016
36017 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36018
36019         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
36020         read again.
36021         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
36022
36023 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36024
36025         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
36026         an exception using FPU order intentionally.
36027
36028 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36029
36030         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
36031         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
36032         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
36033         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
36034
36035 2012-04-05  Simon Josefsson  <simon@josefsson.org>
36036
36037         [BZ #12340]
36038         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
36039         EINVAL when BUFLEN is too smal.
36040
36041 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
36042
36043         [BZ #13553]
36044         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
36045         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
36046
36047 2012-04-03  Andreas Jaeger  <aj@suse.de>
36048
36049         [BZ #13938]
36050         * manual/setjmp.texi (System V contexts): Fix sentence.
36051
36052         [BZ #13926]
36053         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
36054         New macro for this case.
36055         [!__GNUC__] (__bswap_64): New inline function for this case.
36056         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36057         * bits/byteswap.h: Likewise.
36058         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
36059         ull, guard with __GLIBC_HAVE_LONG_LONG.
36060
36061         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
36062         __GLIBC_HAVE_LONG_LONG.
36063
36064         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
36065         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
36066
36067 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
36068
36069         [BZ #13691]
36070         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
36071         inptr and inend, rather than using last_ch.
36072
36073 2012-04-02  David S. Miller  <davem@davemloft.net>
36074
36075         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
36076         * stdio-common/printf-parse.h (read_int): Change return type to
36077         'int', return -1 on INT_MAX overflow.
36078         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
36079         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
36080         overflows INT_MAX.  Check for overflow of in-format-string precision
36081         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
36082         SIZE_MAX not INT_MAX for integer overflow test.
36083         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
36084         skip the construct in the format string but do not record anything.
36085         * stdio-common/bug22.c: Adjust to test both width/prevision
36086         INT_MAX overflow as well as total length INT_MAX overflow.  Check
36087         explicitly for proper errno values.
36088
36089 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
36090
36091         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
36092         CHAR_MAX.
36093         * string/test-strcmp.c [! WIDE]: Likewise.
36094         * time/tst-mktime2.c: Likewise for INT_MAX.
36095         * string/test-string.h: #include <sys/param.h> for MIN.
36096
36097         * csu/init-first.c (__libc_init_first): Call __ctype_init.
36098         * sysdeps/i386/init-first.c (init): Likewise.
36099         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
36100         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36101         * sysdeps/sh/init-first.c (init): Likewise.
36102
36103 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36104
36105         * po/ru.po: Update from translation team.
36106         * po/vi.po: Likewise.
36107
36108 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36109
36110         * resolv/nss_dns/dns-host.c: Merge copyright years.
36111
36112 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36113
36114         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36115         Optimize memcpy with prefetch if
36116         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36117         src, dst pointers have unequal 16 byte alignments.
36118
36119 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36120
36121         [BZ #13928]
36122         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36123         from a CNAME entry and return the minimum ttl for the query.
36124         (gaih_getanswer_slice): Likewise.
36125
36126 2012-03-30  Jeff Law  <law@redhat.com>
36127
36128         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36129         due to long keys.
36130         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36131         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36132
36133         * resolv/nss_dns/dns-host.c: Update copyright year.
36134
36135 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36136
36137         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36138         requests to save a system call.  Fix check that all bytes are sent.
36139
36140         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36141         comments for sendmmsg.
36142
36143 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36144
36145         [BZ #13691]
36146         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36147         with only 1 character between 0x0041 and 0x01b0.
36148         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36149         * wcsmbs/tst-mbsnrtowcs.c: New file.
36150
36151 2012-03-29  David S. Miller  <davem@davemloft.net>
36152
36153         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36154         small copies by hand.
36155
36156 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36157
36158         [BZ #13761]
36159         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36160         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36161         group memberships.
36162
36163 2012-03-28  David S. Miller  <davem@davemloft.net>
36164
36165         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36166         that branches into memcpy.
36167         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36168         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36169         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36170         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36171         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36172         bits.
36173         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36174         implementation too.
36175         * sysdeps/sparc/mempcpy.S: New file.
36176
36177         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36178         the IFUNC routine in the libc case.
36179         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36180
36181         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36182         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36183         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36184         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36185         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36186         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36187         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36188         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36189
36190         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36191         loop to 256 bytes instead of 64 bytes and fix test signedness.
36192
36193         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36194         * sysdeps/sparc/sparc32/Makefile: rather than here...
36195         * sysdeps/sparc/sparc64/Makefile: and here.
36196
36197 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36198
36199         * malloc/mallocbug.c: Avoid warnings about unused variables.
36200
36201 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36202
36203         [BZ #13760]
36204         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36205         in the right place. Discard and retry query if response is
36206         larger than input buffer size.
36207
36208 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36209
36210         [BZ #369]
36211         [BZ #2678]
36212         [BZ #3866]
36213         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36214         x for large integer exponent.
36215         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36216         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36217         sign of result as needed afterwards.
36218         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36219         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36220         result for underflowing pow the same as for overflow.
36221         (__kernel_standard_l): Handle powl overflow and underflow here
36222         rather than calling __kernel_standard.
36223         * math/libm-test.inc (pow_test): Add more tests.
36224
36225         [BZ #3868]
36226         [BZ #13879]
36227         [BZ #13910]
36228         [BZ #13911]
36229         [BZ #13912]
36230         [BZ #13913]
36231         [BZ #13915]
36232         [BZ #13916]
36233         [BZ #13917]
36234         [BZ #13918]
36235         [BZ #13919]
36236         [BZ #13920]
36237         [BZ #13921]
36238         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36239         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36240         (__kernel_standard_l): New function.
36241         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36242         __kernel_standard.
36243         * math/w_acosl.c (__acosl): Likewise.
36244         * math/w_asinl.c (__asinl): Likewise.
36245         * math/w_atan2l.c (__atan2l): Likewise.
36246         * math/w_atanhl.c (__atanhl): Likewise.
36247         * math/w_coshl.c (__coshl): Likewise.
36248         * math/w_exp10l.c (__exp10l): Likewise.
36249         * math/w_exp2l.c (__exp2l): Likewise.
36250         * math/w_fmodl.c (__fmodl): Likewise.
36251         * math/w_hypotl.c (__hypotl): Likewise.
36252         * math/w_j0l.c (__j0l, __y0l): Likewise.
36253         * math/w_j1l.c (__j1l, __y1l): Likewise.
36254         * math/w_jnl.c (__jnl, __ynl): Likewise.
36255         * math/w_lgammal.c (__lgammal): Likewise.
36256         * math/w_log10l.c (__log10l): Likewise.
36257         * math/w_log2l.c (__log2l): Likewise.
36258         * math/w_logl.c (__logl): Likewise.
36259         * math/w_powl.c (__powl): Likewise.
36260         * math/w_remainderl.c (__remainderl): Likewise.
36261         * math/w_scalbl.c (sysv_scalbl): Likewise.
36262         * math/w_sinhl.c (__sinhl): Likewise.
36263         * math/w_sqrtl.c (__sqrtl): Likewise.
36264         * math/w_tgammal.c (__tgammal): Likewise.
36265         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36266         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36267         * math/libm-test.inc (acos_test): Add more tests.
36268         (acosh_test): Likewise.
36269         (asin_test): Likewise.
36270         (atanh_test): Likewise.
36271         (exp_test): Likewise.
36272         (exp10_test): Likewise.
36273         (exp2_test): Likewise.
36274         (expm1_test): Likewise.
36275         (lgamma_test): Likewise.
36276         (log_test): Likewise.
36277         (log10_test): Likewise.
36278         (log1p_test): Likewise.
36279         (log2_test): Likewise.
36280         (pow_test): Do not allow some spurious overflow exceptions.
36281         (sqrt_test): Add more tests.
36282         (tgamma_test): Likewise.
36283         (y0_test): Likewise.
36284         (y1_test): Likewise.
36285         (yn_test): Likewise.
36286
36287 2012-03-27  Anton Blanchard  <anton@samba.org>
36288
36289         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36290         MAP_HUGETLB.
36291         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36292         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36293         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36294
36295 2012-03-27  David S. Miller  <davem@davemloft.net>
36296
36297         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36298
36299         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36300         have-as-vis3 check.
36301
36302 2012-03-27  Andreas Jaeger  <aj@suse.de>
36303
36304         * sysdeps/x86_64/elf/configure.in: Moved to ...
36305         * sysdeps/x86_64/configure.in: ... here.
36306         * sysdeps/x86_64/elf/start.S: Moved to ...
36307         * sysdeps/x86_64/start.S: ... here.
36308         * sysdeps/x86_64/elf/configure: Delete.
36309
36310         * sysdeps/x86_64/configure.in: Merge contents from
36311         sysdeps/i386/configure.in (without i686 check).
36312
36313         * sysdeps/i386/elf/Versions: Merge into ...
36314         * sysdeps/i386/Versions: ... this.
36315         * sysdeps/i386/elf/Versions: Delete file.
36316         * sysdeps/i386/elf/start.S: Moved to ...
36317         * sysdeps/i386/start.S: ...here.
36318         * sysdeps/i386/elf/configure.in: Merge into...
36319         * sysdeps/i386/configure.in: ...here.
36320         * sysdeps/i386/elf/configure.in: Delete file.
36321         * sysdeps/i386/elf/configure: Delete file.
36322
36323         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36324         * debug/backtracesyms.c: ... here.
36325         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36326         * debug/backtracesymsfd.c: ... here.
36327         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36328         * sysdeps/generic/ifunc-sel.h: ... here.
36329
36330         * sysdeps/unix/i386/start.c: Delete file.
36331         * sysdeps/unix/sparc/start.c: Delete file.
36332         * sysdeps/unix/start.c: Delete file.
36333
36334         * sysdeps/sh/elf/configure.in: Moved to ...
36335         * sysdeps/sh/configure.in: ... here.
36336         * sysdeps/sh/elf/start.S: Moved to ...
36337         * sysdeps/sh/start.S: ... here.
36338         * sysdeps/sh/elf/configure: Delete file.
36339
36340         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36341         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36342         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36343         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36344         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36345         * sysdeps/powerpc/powerpc64/start.S: here.
36346         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36347         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36348         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36349         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36350         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36351
36352         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36353         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36354         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36355         * sysdeps/powerpc/powerpc32/start.S: ... here.
36356         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36357         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36358         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36359
36360         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36361         * sysdeps/powerpc/ifunc-sel.h: ... here.
36362         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36363         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36364
36365         * sysdeps/sparc/elf/configure.in: Moved to ...
36366         * sysdeps/sparc/configure.in: ... here.
36367         * sysdeps/sparc/elf/configure: Delete file.
36368         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36369         * sysdeps/sparc/sparc32/start.S: ... here.
36370         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36371         * sysdeps/sparc/sparc64/start.S: ... here.
36372         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36373         * sysdeps/sparc/sparc32/Makefile: ... this.
36374         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36375         * sysdeps/sparc/sparc64/Makefile: ... this.
36376
36377         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36378         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36379         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36380         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36381         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36382         * sysdeps/s390/s390-32/setjmp.S: ... here.
36383         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36384         * sysdeps/s390/s390-32/configure.in: ... here.
36385         * sysdeps/s390/s390-32/elf/configure: Delete file.
36386         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36387         * sysdeps/s390/s390-32/start.S: ... here.
36388
36389         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36390         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36391         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36392         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36393         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36394         * sysdeps/s390/s390-64/setjmp.S: ... here.
36395         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36396         * sysdeps/s390/s390-64/configure.in: ... here
36397         * sysdeps/s390/s390-64/elf/configure: Delete file.
36398         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36399         * sysdeps/s390/s390-64/start.S: ... here.
36400         * sysdeps/s390/s390-64/elf/configure: Delete.
36401
36402         * configure.in: Remove support for elf directories in sysdeps.
36403
36404         * configure: Regenerated.
36405         * sysdeps/i386/configure: Regenerated.
36406         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36407         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36408         * sysdeps/s390/s390-32/configure: Regenerated.
36409         * sysdeps/s390/s390-64/configure: Regenerated.
36410         * sysdeps/sh/configure: Regenerated.
36411         * sysdeps/sparc/configure: Regenerated.
36412         * sysdeps/x86_64/configure: Regenerated.
36413
36414 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36415
36416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36417
36418         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36419         denormal result into account.
36420
36421 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36422
36423         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36424         Reported by Allan McRae <allan@archlinux.org>.
36425
36426 2012-03-23  Jeff Law  <law@redhat.com>
36427
36428         * nss/getnssent.c (__nss_getent): Fix typo.
36429
36430 2012-03-23  David S. Miller  <davem@davemloft.net>
36431
36432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36433
36434 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36435
36436         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36437         to pad to uint64_t for each field.
36438         (dl_tls_index): Replace unsigned long with uint64_t.
36439
36440 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36441         Paul Pluzhnikov  <ppluzhnikov@google.com>
36442
36443         [BZ #6528]
36444         * grp/Makefile (otherlibs): Don't set it.
36445         * inet/Makefile (otherlibs): Likewise.
36446         * login/Makefile (otherlibs): Likewise.
36447         * nscd/Makefile (otherlibs): Likewise.
36448         * posix/Makefile (otherlibs): Likewise.
36449         * pwd/Makefile (otherlibs): Likewise.
36450         * rt/Makefile (otherlibs): Likewise.
36451         * sunrpc/Makefile (otherlibs): Likewise.
36452         * nss/Makefile (otherlibs): Likewise.
36453         Add libnss_files to routines and static-only-routines.
36454         ($(objpfx)getent): Remove rule.
36455         * resolv/Makefile: Add libnss_dns and libresolv to routines and
36456         static-only-routines.
36457
36458 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36459
36460         [BZ #13892]
36461         * math/s_cexp.c: Include <float.h>.
36462         (__cexp): Handle exp result overflowing not necessarily
36463         overflowing both real and imaginary parts of result.
36464         * math/s_cexpf.c: Likewise.
36465         * math/s_cexpl.c: Likewise.
36466         * math/libm-test.inc (cexp_test): Add more tests.
36467         * sysdeps/i386/fpu/libm-test-ulps: Update.
36468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36469
36470 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36471
36472         * include/link.h (ELFW): New macro.
36473         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
36474         Replace ELF64_R_TYPE with ELFW(R_TYPE).
36475
36476 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36477
36478         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
36479         with uint64_t.
36480
36481 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36482
36483         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
36484         declaration.
36485         (struct La_x32_retval): Likewise.
36486
36487 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36488
36489         * sysdeps/x86_64/preconfigure.in: New file.
36490         * sysdeps/x86_64/preconfigure: New generated file.
36491
36492 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36493
36494         [BZ #13824]
36495         * math/e_exp2l.c: Include <float.h>.
36496         (__ieee754_exp2l): Handle overflow and underflow cases
36497         separately.  Only pass fractional part of argument to
36498         __ieee754_expl.
36499         * math/libm-test.inc (exp2_test): Add more tests.
36500
36501         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36502         negating x to take absolute value.
36503         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36504         Likewise.
36505         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36506         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36507         Likewise.
36508         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36509         computing low part if x was negated.
36510         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36511
36512 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36513
36514         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36515         la_x32_gnu_pltexit.
36516         (pltexit): Cast int_retval to ptrdiff_t.
36517         * elf/tst-auditmod3b.c: Likewise.
36518         * elf/tst-auditmod4b.c: Likewise.
36519         * elf/tst-auditmod5b.c: Likewise.
36520         * elf/tst-auditmod6b.c: Likewise.
36521         * elf/tst-auditmod6c.c: Likewise.
36522         * elf/tst-auditmod7b.c: Likewise.
36523
36524         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36525         and x32_gnu_pltexit.
36526
36527         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36528         __ELF_NATIVE_CLASS.
36529         (La_x32_regs): New macro.
36530         (La_x32_retval): Likewise.
36531         (la_x32_gnu_pltenter): New function prototype.
36532         (la_x32_gnu_pltexit): Likewise.
36533
36534 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36535
36536         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36537         exponent.
36538
36539         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36540
36541         * configure.in (libc_cv_cc_nofma): Check for option to disable
36542         generation of FMA instructions.
36543         * configure: Regenerate.
36544         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36545         * sysdeps/ieee754/dbl-64/Makefile: New file.
36546         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36547         Remove brandred-fma4.
36548         (CFLAGS-brandred-fma4.c): Remove.
36549         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36550         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36551         define.
36552         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36553         define.
36554
36555 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36556
36557         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36558         LLONG_MAX != LONG_MAX.
36559         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36560         (_fitoa_word): Likewise.
36561         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36562         LLONG_MAX != LONG_MAX.
36563         * stdio-common/_itowa.h: Include <_itoa.h>.
36564         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36565         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36566         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36567         only if not defined.
36568         (_ITOA_WORD_TYPE): Likewise.
36569         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36570         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36571
36572 2012-03-21  David S. Miller  <davem@davemloft.net>
36573
36574         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36575
36576 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36577
36578         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36579         of x86_64 when setting libc_cv_slibdir, libdir and
36580         libc_cv_localedir.
36581         * sysdeps/unix/sysv/linux/configure: Regenerated.
36582
36583 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36584
36585         * manual/lang.texi (Old Varargs): Remove section.
36586         (How Variadic): Update menu.
36587         (va_start): Do not mention varargs.h.
36588
36589 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36590             Joseph Myers  <joseph@codesourcery.com>
36591
36592         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36593         link test.
36594         * configure: Regenerated.
36595
36596 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36597
36598         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36599         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36600         conformtest.pl
36601
36602 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36603
36604         * NOTES: Remove.
36605         * Makefile (files-for-dist): Remove NOTES.
36606         (NOTES): Remove rule.
36607         * README: Don't refer to NOTES.
36608         * manual/creature.texi: Don't include macros.texi.
36609         * manual/intro.texi (creature.texi): Remove comment referring to
36610         NOTES.
36611
36612         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36613         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36614         * configure: Regenerated.
36615         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36616         LIBC_TRY_CC_OPTION.
36617         (libc_cv_as_i686): Likewise.
36618         (libc_cv_cc_avx): Likewise.
36619         (libc_cv_cc_sse2avx): Likewise.
36620         (libc_cv_cc_fma4): Likewise.
36621         (libc_cv_cc_novzeroupper): Likewise.
36622         * sysdeps/i386/configure: Regenerated.
36623
36624         [BZ #13883]
36625         * sysdeps/i386/fpu/s_cexp.S: Remove.
36626         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36627         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36628         * math/libm-test.inc (cexp_test): Add more tests.
36629         * sysdeps/i386/fpu/libm-test-ulps: Update.
36630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36631
36632 2012-03-21  Allan McRae  <allan@archlinux.org>
36633
36634         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36635
36636 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36637
36638         [BZ #13871]
36639         * math/w_exp2.c: Do not include <float.h>.
36640         (o_threshold, u_threshold): Remove.
36641         (__exp2): Calculate result before checking finiteness and calling
36642         __kernel_standard.
36643         * math/w_exp2f.c: Likewise.
36644         * math/w_exp2l.c: Likewise.
36645         * math/libm-test.inc (exp2_test): Require overflow exception for
36646         1e6 input.
36647
36648         [BZ #3866]
36649         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36650         range of signed 64-bit integers before using fistpll.  Remove
36651         checks for whether integers fit in mantissa bits.
36652         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36653         the range of signed 32-bit integers before using fistpl.  Remove
36654         checks for whether integers fit in mantissa bits.
36655         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36656         (__ieee754_powl): Test for y outside the range of signed 64-bit
36657         integers before using fistpll.  Reduce 64-bit values to 63-bit
36658         ones as needed.
36659         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36660         divide-by-zero is raised for zero to large negative powers.
36661         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36662         (__ieee754_powl): Test for y outside the range of signed 64-bit
36663         integers before using fistpll.  Reduce 64-bit values to 63-bit
36664         ones as needed.
36665         * math/libm-test.inc (pow_test): Add more tests.
36666
36667 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36668
36669         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36670         <stdio-common/_itoa.h>.
36671         * debug/segfault.c: Likewise.
36672         * elf/dl-cache.c: Likewise.
36673         * elf/dl-minimal.c: Likewise.
36674         * elf/dl-misc.c: Likewise.
36675         * elf/dl-sysdep.c: Likewise.
36676         * elf/dl-version.c: Likewise.
36677         * elf/rtld.c: Likewise.
36678         * hurd/hurdsock.c: Likewise.
36679         * hurd/lookup-retry.c: Likewise.
36680         * malloc/malloc.c: Likewise.
36681         * malloc/mtrace.c: Likewise.
36682         * nscd/nscd_getgr_r.c: Likewise.
36683         * nscd/nscd_getpw_r.c: Likewise.
36684         * nscd/nscd_getserv_r.c: Likewise.
36685         * posix/getopt_init.c: Likewise.
36686         * posix/wordexp.c: Likewise.
36687         * stdio-common/_itoa.c: Likewise.
36688         * stdio-common/printf_fphex.c: Likewise.
36689         * stdio-common/vfprintf.c: Likewise.
36690         * string/_strerror.c: Likewise.
36691         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36692         * sysdeps/i386/i686/hp-timing.h: Likewise.
36693         * sysdeps/mach/_strerror.c: Likewise.
36694         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36695         * sysdeps/mach/hurd/sethostid.c: Likewise.
36696         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36697         * sysdeps/mach/xpg-strerror.c: Likewise.
36698         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36699         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36700         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36701         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36702         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36703         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36704         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36705         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36706         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36707         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36708         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36709         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36710         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36711         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36712         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36713         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36714         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36715         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36716         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36717         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36718         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36719
36720         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36721
36722         * stdio-common/_itoa.h: Moved to ...
36723         * sysdeps/generic/_itoa.h: Here.
36724
36725         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36726
36727         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36728         instead of "_itoa.h" and "_itowa.h".
36729         * stdio-common/vfprintf.: Likewise.
36730
36731 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36732
36733         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36734         <bits/wordsize.h>.
36735         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36736         (__signbit): Likwise.
36737         (llrintf): Likwise.
36738         (llrint): Likwise.
36739
36740 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36741
36742         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36743         __WORDSIZE != 64.
36744
36745 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36746
36747         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36748         OVERFLOW_EXCEPTION_OK.
36749         * math/libm-test.inc ("Philosophy"): Update comment about
36750         exception testing.
36751         (OVERFLOW_EXCEPTION): Define.
36752         (OVERFLOW_EXCEPTION_OK): Likewise.
36753         (INVALID_EXCEPTION_OK): Renumber.
36754         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36755         (IGNORE_ZERO_INF_SIGN): Likewise.
36756         (test_exceptions): Handle FE_OVERFLOW.
36757         (exp10_test): Expect overflow exceptions.
36758         (exp2_test): Likewise.
36759         (expm1_test): Likewise.
36760         (nextafter_test): Likewise.
36761         (pow_test): Likewise.
36762         (scalbn_test): Likewise.
36763         (scalbln_test): Likewise.
36764
36765 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36766
36767         * sysdeps/x86_64/bits/atomic.h
36768         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36769         64bit integer.
36770         (atomic_exchange_acq): Likewise.
36771         (__arch_exchange_and_add_body): Likewise.
36772         (__arch_add_body): Likewise.
36773         (atomic_add_negative): Likewise.
36774         (atomic_add_zero): Likewise.
36775
36776 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36777
36778         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36779         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36780
36781 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36782
36783         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36784         Check __x86_64__ instead of __WORDSIZE.
36785
36786 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36787
36788         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36789
36790 2012-03-19  David S. Miller  <davem@davemloft.net>
36791
36792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36793
36794         * sysdeps/sparc/fpu/fenv_private.h: New file.
36795         * sysdeps/sparc/fpu/math_private.h: Use it.
36796         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36797         Remove.
36798         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36799         (libc_feholdexcept_setroundl): Remove.
36800         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36801         Remove.
36802         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36803         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36804
36805 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36806
36807         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36808         int64_t instead of long int.
36809         (INSERT_WORDS64): Likwise.
36810
36811 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36812
36813         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36814         _Unwind_GetCFA return to _Unwind_Ptr first.
36815
36816 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36817
36818         [BZ #13629]
36819         * math/s_clog.c: Include <float.h>.
36820         (__clog): Scale large or subnormal inputs.
36821         * math/s_clogf.c: Likewise.
36822         * math/s_clogl.c: Likewise.
36823         * math/s_clog10.c: Include <float.h>.
36824         (M_LOG10_2): Define.
36825         (__clog10): Scale large or subnormal inputs.
36826         * math/s_clog10f.c: Likewise.
36827         * math/s_clog10l.c: Likewise.
36828         * math/libm-test.inc (clog_test): Add more tests.
36829         (clog10_test): Likewise.
36830         * sysdeps/i386/fpu/libm-test-ulps: Update.
36831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36832
36833         [BZ #11451]
36834         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36835         x and y.
36836         * math/libm-test.inc (atan2_test): Add another test.
36837
36838         * Makerules (common-objdir-compile): Remove.
36839         * sysdeps/unix/Makefile (config-generated): Do not add
36840         $(unix-generated) to variable.
36841         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36842         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36843         Remove rule.
36844         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36845         Likewise.
36846         [generic bits/local_lim.h] (before-compile): Do not append to
36847         variable.
36848         [generic bits/local_lim.h] (common-generated): Likewise.
36849         [generic sys/param.h] (before-compile): Do not append to variable.
36850         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36851         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36852         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36853         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36854         include.
36855         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36856         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36857         [generic sys/param.h] ($(addprefix
36858         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36859         [generic sys/param.h] (common-generated): Do not append to
36860         variable.
36861         [generic sys/param.h] (sysdep_headers): Likewise.
36862         [generic bits/errno.h] (before-compile): Do not append to
36863         variable.
36864         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36865         rule.
36866         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36867         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36868         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36869         [generic bits/errno.h] (common-generated): Do not append to
36870         variable.
36871         [generic bits/ioctls.h] (before-compile): Do not append to
36872         variable.
36873         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36874         rule.
36875         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36876         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36877         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36878         rule.
36879         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36880         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36881         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36882         [generic bits/ioctls.h] (common-generated): Do not append to
36883         variable.
36884         [generic sys/syscall.h] (syscall.h): Remove variable.
36885         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36886         rule.
36887         [generic sys/syscall.h] (before-compile): Do not append to
36888         variable.
36889         [generic sys/syscall.h] (common-generated): Likewise.
36890         * sysdeps/unix/errnos-tmpl.c: Remove file.
36891         * sysdeps/unix/errnos.awk: Likewise.
36892         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36893         * sysdeps/unix/ioctls.awk: Likewise.
36894         * sysdeps/unix/mk-local_lim.c: Likewise.
36895         * sysdeps/unix/snarf-ioctls: Likewise.
36896
36897 2012-03-19  Richard Henderson  <rth@twiddle.net>
36898
36899         * sysdeps/i386/fpu/fenv_private.h: New file.
36900         * sysdeps/i386/fpu/math_private.h: Use it.
36901         (math_opt_barrier, math_force_eval): Remove.
36902         (libc_feholdexcept_setround_53bit): Remove.
36903         (libc_feupdateenv_53bit): Remove.
36904         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36905         (math_opt_barrier, math_force_eval): Remove.
36906         (libc_feholdexcept): Remove.
36907         (libc_feholdexcept_setround): Remove.
36908         (libc_fetestexcept, libc_fesetenv): Remove.
36909         (libc_feupdateenv_test): Remove.
36910         (libc_feupdateenv, libc_feholdsetround): Remove.
36911         (libc_feresetround): Remove.
36912
36913         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36914         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36915
36916         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36917         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36918         (libc_feupdateenv_testl): New.
36919         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36920         (libc_feupdateenv_testf): New.
36921         (libc_feupdateenv): Use libc_feupdateenv_test.
36922         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36923         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36924
36925         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36926         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36927         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36928         (libc_feresetround_noex): New.
36929         (libc_feresetround_noexf): New.
36930         (libc_feresetround_noexl): New.
36931         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36932         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36933         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36934         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36935         SET_RESTORE_ROUND.
36936         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36937         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36938         (__cos): Likewise.
36939         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36940         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36941         SET_RESTORE_ROUND_NOEX.
36942         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36943         SET_RESTORE_ROUND_NOEXF.
36944         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36945         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36946         (libc_feholdsetroundf): New.
36947         (libc_feresetround, libc_feresetroundf): New.
36948
36949         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36950         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36951         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36952
36953         * sysdeps/generic/math_private.h: Include <fenv.h>.
36954         (default_libc_feholdexcept): New.
36955         (default_libc_feholdexcept_setround): New.
36956         (default_libc_fesetenv, default_libc_feupdateenv): New.
36957         (libc_feholdexcept): Only define if undefined.
36958         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36959         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36960         (libc_feholdexcept_setroundl): Likewise.
36961         (libc_feholdexcept_setround_53bit): Likewise.
36962         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36963         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36964         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36965         (libc_feupdateenv_53bit): Likewise.
36966         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36967         (libc_feholdexcept): Convert from macro to inline function.
36968         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36969         (libc_fesetenv, libc_feupdateenv): Likewise.
36970
36971         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36972         not previously defined.
36973         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36974         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36975         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36976         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36977         * sysdeps/ieee754/flt-32/math_private.h: New file.
36978         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36979         math_private.h below SET_FLOAT_WORD.
36980         (__isnan, __isinf_ns, __finite): Remove.
36981         (__isnanf, __isinf_nsf, __finitef): Remove.
36982
36983 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36984
36985         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36986
36987 2012-03-17  David S. Miller  <davem@davemloft.net>
36988
36989         [BZ #6471]
36990         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36991         for 2.16.
36992
36993 2012-03-16  David S. Miller  <davem@davemloft.net>
36994
36995         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36996         warnings.
36997
36998         [BZ #6471]
36999         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
37000         properly.
37001         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
37002         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
37003         sysdep_routines when subdir is sysvipc.
37004         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
37005         __getshmlba helper.
37006
37007         * sysdeps/sparc/fpu/libm-test/ulps: Update.
37008
37009 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37010
37011         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
37012         [__LP64__].
37013
37014 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37015
37016         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
37017         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
37018         (__lround): Renamed to ...
37019         (__llround): This.  Replace long int with long long int.
37020         Define lround functions as aliases of llround functions.
37021         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
37022
37023 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37024
37025         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
37026         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
37027         adresses to uintptr_t.  Replace "long int" and "unsigned long
37028         int" with "greg_t" on va_arg.
37029
37030 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37031
37032         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
37033         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
37034
37035         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
37036         Move e_machine check before EI_CLASS check.  Handle x32
37037         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
37038         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
37039         SKIP_EM_IA_64 and include
37040         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
37041
37042         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
37043         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
37044         (add_system_dir): New macro.
37045
37046         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
37047         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
37048
37049 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37050
37051         [BZ #2551]
37052         [BZ #2552]
37053         [BZ #2553]
37054         [BZ #2554]
37055         [BZ #2562]
37056         [BZ #2563]
37057         [BZ #2565]
37058         [BZ #2566]
37059         [BZ #2576]
37060         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
37061         (y0): Likewise.
37062         * math/w_j0f.c (j0f): Likewise.
37063         (y0f): Likewise.
37064         * math/w_j0l.c (__j0l): Likewise.
37065         (__y0l): Likewise.
37066         * math/w_j1.c (j1): Likewise.
37067         (y1): Likewise.
37068         * math/w_j1f.c (j1f): Likewise.
37069         (y1f): Likewise.
37070         * math/w_j1l.c (__j1l): Likewise.
37071         (__y1l): Likewise.
37072         * math/w_jn.c (jn): Likewise.
37073         (yn): Likewise.
37074         * math/w_jnf.c (jnf): Likewise.
37075         (ynf): Likewise.
37076         * math/w_jnl.c (__jnl): Likewise.
37077         (__ynl): Likewise.
37078         * math/libm-test.inc (j0_test): Add more tests.
37079         (j1_test): Likewise.
37080         (jn_test): Likewise.  Add trailing semicolon to existing test.
37081         (y0_test): Likewise.
37082         (y1_test): Likewise.
37083         * sysdeps/i386/fpu/libm-test-ulps: Update.
37084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37085
37086         [BZ #13851]
37087         [BZ #13854]
37088         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
37089         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
37090         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
37091         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
37092         (__tanl): Set errno for infinite argument.
37093         * sysdeps/i386/fpu/mptan.c: Remove.
37094         * sysdeps/i386/fpu/s_tan.S: Likewise.
37095         * sysdeps/i386/fpu/s_tanl.S: Likewise.
37096         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
37097         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
37098         * math/libm-test.inc (tan_test): Add more tests and enable more
37099         tests for double and long double.
37100         * sysdeps/i386/fpu/libm-test-ulps: Update.
37101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37102
37103 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37104
37105         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37106         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37107
37108 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37109
37110         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37111         * configure.in: Use it for both main tree and add-ons.
37112         * configure: Regenerated.
37113
37114 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37115
37116         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37117
37118 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37119
37120         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37121         in comment.
37122
37123         [BZ #13851]
37124         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37125         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37126         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37127         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37128         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37129         infinite argument.
37130         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37131         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37132         != 0 for prec == 2.
37133         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37134         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37135         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37136         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37137         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37138         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37139         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37140         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37141         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37142         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37143         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37144         * math/libm-test.inc (cos_test): Add more tests and enable more
37145         tests for long double.
37146         (sin_test): Likewise.
37147         (sincos_test): Likewise.
37148         * sysdeps/i386/fpu/libm-test-ulps: Update.
37149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37150
37151 2012-03-16  David S. Miller  <davem@davemloft.net>
37152
37153         * sysdeps/sparc/fpu/math_private.h: New file.
37154
37155 2012-03-15  David S. Miller  <davem@davemloft.net>
37156
37157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37158         file.
37159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37161         file.
37162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37163         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37164         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37165         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37166         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37167         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37168         sysdep routines.
37169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37170
37171         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37172         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37173
37174         * sysdeps/sparc/sparc-ifunc.h: New file.
37175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37176         sparc-ifunc.h
37177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37179         Likewise.
37180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37181         Likewise.
37182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37186         Likewise.
37187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37192         Likewise.
37193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37194         Likewise.
37195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37199         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37200         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37201         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37202         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37203         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37204         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37205         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37206         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37207         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37208         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37209         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37210         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37211         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37212         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37213         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37214         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37215         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37216         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37217         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37218         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37219
37220 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37221
37222         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37223         scaling.
37224         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37225
37226 2012-03-15  Andreas Jaeger  <aj@suse.de>
37227
37228         [BZ #13852]
37229         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37230         ieee754/flt-32 implementation for sin, cos and sincos.
37231         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37232         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37233         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37234         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37235         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37236         ieee754/flt-32 implementation for tan.
37237
37238         * math/libm-test.inc (cos_test): Enable some large input tests for
37239         float as well
37240         (sin_test): Likewise.
37241         (sincos_test): Likewise.
37242         (tan_test): Add tests for large input.
37243
37244         * sysdeps/i386/fpu/libm-test-ulps: Update.
37245
37246 2012-03-15  Andreas Jaeger  <aj@suse.de>
37247
37248         [BZ #13658]
37249         * math/libm-test.inc (cos_test): Add more test cases.
37250         (sin_test): Likewise.
37251         (sincos_test): Likewise.
37252
37253 2012-03-15  Andreas Jaeger  <aj@suse.de>
37254
37255         [BZ #13837]
37256         * math/libm-test.inc (cos_test): Add a test case for large input
37257         value.
37258         (sin_test): Likewise.
37259         (sincos_test): Likewise.
37260
37261 2012-03-15  Andreas Jaeger  <aj@suse.de>
37262             Joseph Myers  <joseph@codesourcery.com>
37263
37264         [BZ #13658]
37265         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37266         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37267         * sysdeps/i386/fpu/branred.c: Likewise.
37268         * sysdeps/i386/fpu/dosincos.c: Likewise.
37269         * sysdeps/i386/fpu/mpa.c: Likewise.
37270         * sysdeps/i386/fpu/s_cos.S: Likewise.
37271         * sysdeps/i386/fpu/s_sin.S: Likewise.
37272         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37273         * sysdeps/i386/fpu/sincos32.c: Likewise.
37274
37275         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37276         Define.
37277         (libc_feupdateenv_53bit): Define.
37278         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37279         Define.
37280         (libc_feupdateenv_53bit): Define.
37281
37282         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37283         53 bit (without extend i386 double precision).
37284
37285         * math/libm-test.inc (sincos_test): Add tests for large input.
37286         (sin): Likewise.
37287         (cos): Likewise.
37288
37289         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37290
37291 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37292
37293         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37294
37295 2012-03-15  David S. Miller  <davem@davemloft.net>
37296
37297         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37298         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37299         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37300         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37305         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37306         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37307         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37308         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37309         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37310         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37311         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37313         file.
37314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37316         file.
37317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37319         file.
37320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37322         file.
37323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37324         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37325         fmin/fmax sysdep routines.
37326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37327
37328 2012-03-14  David S. Miller  <davem@davemloft.net>
37329
37330         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37331         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37332         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37333         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37334         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37335         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37336         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37337         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37338         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37339         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37340         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37341         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37342         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37343         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37344         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37345         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37346         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37347         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37348         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37349         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37350         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37351         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37352         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37353         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37354         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37355         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37356         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37357         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37358         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37359         routines.
37360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37361         file.
37362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37364         file.
37365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37367         file.
37368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37370         file.
37371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37373         file.
37374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37376         file.
37377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37378         file.
37379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37380         file.
37381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37382         file.
37383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37384         New file.
37385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37386         file.
37387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37388         file.
37389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37391         file.
37392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37394         file.
37395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37397         file.
37398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37400         VIS3 routines.
37401
37402         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37403         New file.
37404
37405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37406
37407         * sysdeps/sparc/configure.in: New file.
37408         * sysdeps/sparc/configure: Generate.
37409         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37410         * configure: Regenerate.
37411         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37412         * config.make.in (have-as-vis3): New.
37413         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37414         available use -Av9d instead of -Av9a.
37415         * sysdeps/sparc/sparc64/Makefile: Likewise.
37416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37418         New file.
37419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37420         file.
37421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37422         New file.
37423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37424         file.
37425         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37426         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37427         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37428         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37429         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37430
37431         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37432         fzeros/fnegs to load 0x80000000 into a float register instead of
37433         using the stack.
37434         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37435
37436 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37437
37438         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37439         bits/syscall.h.
37440         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37441         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37442         ($(inst_includedir)/bits/syscall.h): Remove rule.
37443         ($(objpfx)bits/syscall.d): Include instead of
37444         $(objpfx)syscall-list.d.
37445         (generated): Change syscall-list.h and syscall-list.d to
37446         bits/syscall.h and bits/syscall.d.
37447
37448 2012-03-14  Roland McGrath  <roland@hack.frob.com>
37449
37450         [BZ #13846]
37451         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
37452
37453 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37454
37455         [BZ #13841]
37456         * math/s_csqrt.c: Include <float.h>.
37457         (__csqrt): Scale large or subnormal inputs.
37458         * math/s_csqrtf.c: Likewise.
37459         * math/s_csqrtl.c: Likewise.
37460         * math/libm-test.inc (csqrt_test): Add more tests.
37461         * sysdeps/i386/fpu/libm-test-ulps: Update.
37462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37463
37464         [BZ #13840]
37465         * math/libm-test.inc (hypot_test): Add more tests.
37466
37467 2012-03-13  David S. Miller  <davem@davemloft.net>
37468
37469         [BZ #13840]
37470         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
37471         double-precision for the calculation instead of scaling.
37472
37473 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
37474
37475         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
37476         manipulate bits before adding and subtracting TWO52[sx].
37477         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
37478         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
37479         Likewise.
37480         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
37481
37482 2012-03-13  David S. Miller  <davem@davemloft.net>
37483
37484         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37485         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37486         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37487         rtld-global-offsets.h
37488         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37489
37490         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37491         large parameters.
37492
37493         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37494
37495         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37496         'err' in the ifdef scope in which it is actually used.
37497
37498         * nss/nss_db/db-init.c: Include string.h
37499
37500 2012-03-12  David S. Miller  <davem@davemloft.net>
37501
37502         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37503         masking out of the most significant byte of random value used.
37504         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37505         Fix coding style in previous change.
37506
37507         * sysdeps/unix/sysv/linux/kernel-features.h
37508         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37509         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37510         expression.
37511         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37512         later.
37513
37514 2012-03-11  David S. Miller  <davem@davemloft.net>
37515
37516         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37517         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37518         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37519         for 'resultvar' otherwise things get truncated on 64-bit.
37520
37521         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37522         Fix masking out of the most significant byte of random value used.
37523
37524         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37525
37526 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37527
37528         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37529
37530 2012-03-09  David S. Miller  <davem@davemloft.net>
37531
37532         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37533         variables with appropriate CPP guards.
37534         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37535         from the frame pointer, not the stack pointer.  Correct layout
37536         comments.  Fix test on resulting framesize and the management of
37537         the outregs buffer for pltexit.  Preserve floating point return
37538         values across _dl_call_pltexit call.
37539         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37540         framesize and the management of the outregs buffer for pltexit.
37541         Preserve floating point return values across _dl_call_pltexit
37542         call.
37543         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37544         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37545         (la_sparc64_gnu_pltexit): New functions.
37546         (print_exit): Fix format string for return register value.
37547
37548 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37549
37550         * sunrpc/Makefile (others): Add rpcgen.
37551         ($(objpfx)rpcgen): Remove special build rule and dependency on
37552         libc.
37553         * sunrpc/rpcgen.c: New file.
37554
37555 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37556
37557         [BZ #13673]
37558         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37559         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37560         * sysdeps/i386/crti.S: Likewise.
37561         * sysdeps/i386/crtn.S: Likewise.
37562         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37563         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37564         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37565         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37566         * sysdeps/sh/crti.S: Likewise.
37567         * sysdeps/sh/crtn.S: Likewise.
37568         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37569
37570         [BZ #13673]
37571         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37572         with URL.
37573         * locale/programs/locfile-kw.gperf: Likewise.
37574         * locale/programs/charmap-kw.h: Regenerated.
37575         * locale/programs/locfile-kw.h: Likewise.
37576
37577         [BZ #13673]
37578         * intl/plural.y: Replace FSF snail mail address with URL.
37579         * intl/plural.c: Regenerated.
37580
37581 2012-03-09  Richard Henderson  <rth@twiddle.net>
37582
37583         * include/math_private.h: Remove file.
37584         * math/math_private.h: Move file ...
37585         * sysdeps/generic/math_private.h: ... here.
37586
37587         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37588         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37589         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37590
37591         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37592         and <math_private.h>.
37593         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37594         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37595         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37596         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37597         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37598         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37599         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37600         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37601         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37602         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37603         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37604         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37605         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37606         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37607         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37608         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37609         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37610         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37611         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37612         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37613         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37614         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37615         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37616         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37617         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37618         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37619         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37620         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37621         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37622         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37623         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37624         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37625         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37626         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37627         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37628         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37629         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37630         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37631         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37632         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37633         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37634         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37635         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37636         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37637         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37638         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37639         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37640         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37641         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37642         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37643         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37644         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37645         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37646         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37647         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37648         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37649         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37650         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37651         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37652         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37653         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37654         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37655         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37656         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37657         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37658         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37659         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37660         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37661         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37662         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37663         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37664         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37665         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37666         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37667         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37668         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37669         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37670         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37671         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37672         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37673         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37674         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37675         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37676         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37677         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37678         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37679         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37680         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37681         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37682         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37683         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37684         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37685         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37686         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37687         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37688         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37689         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37690         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37691         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37692         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37693         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37694         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37695         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37696         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37697         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37698         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37699         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37700         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37701         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37702         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37703         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37704         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37705         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37706         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37707         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37708         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37709         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37710         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37711         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37712         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37713         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37714         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37715         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37716         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37717         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37718         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37719         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37720         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37721         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37722         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37723         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37724         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37725         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37726         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37727         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37728         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37729         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37730         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37731         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37732         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37733         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37734         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37735         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37736         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37737         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37738         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37739         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37740         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37741         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37742         * sysdeps/ieee754/k_standard.c: Likewise.
37743         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37744         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37745         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37746         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37747         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37748         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37749         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37750         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37751         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37752         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37753         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37754         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37755         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37756         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37757         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37758         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37759         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37760         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37761         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37762         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37763         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37764         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37765         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37766         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37767         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37768         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37769         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37770         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37771         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37772         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37773         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37774         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37775         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37776         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37777         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37778         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37779         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37780         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37781         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37782         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37783         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37784         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37785         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37786         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37787         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37788         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37789         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37790         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37791         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37792         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37793         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37794         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37795         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37796         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37797         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37798         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37799         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37800         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37801         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37802         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37803         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37804         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37805         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37806         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37807         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37808         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37809         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37810         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37811         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37812         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37813         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37814         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37815         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37816         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37817         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37818         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37819         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37820         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37821         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37822         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37823         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37824         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37825         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37826         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37827         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37828         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37829         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37830         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37831         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37832         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37833         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37834         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37835         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37836         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37837         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37838         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37839         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37840         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37841         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37842         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37843         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37844         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37845         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37846         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37847         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37848         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37849         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37850         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37851         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37852         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37853         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37854         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37855         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37856         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37857         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37858         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37859         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37860         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37861         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37862         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37863         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37864         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37865         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37866         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37867         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37868         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37869         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37870         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37871         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37872         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37873         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37874         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37875         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37876         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37877         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37878         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37879         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37880         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37881         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37882         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37883         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37884         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37885         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37886         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37887         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37888         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37889         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37890         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37891         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37892         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37893         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37894         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37895         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37896         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37897         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37898         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37899         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37900         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37901         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37902         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37903         * sysdeps/ieee754/s_lib_version.c: Likewise.
37904         * sysdeps/ieee754/s_matherr.c: Likewise.
37905         * sysdeps/ieee754/s_signgam.c: Likewise.
37906         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37907         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37908         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37909         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37910         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37911         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37912         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37913         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37914         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37915         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37916         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37917         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37918         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37919         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37920         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37921         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37922         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37923         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37924         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37925         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37926         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37927
37928 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37929
37930         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37931         * sunrpc/rpc_main.c: Likewise.
37932         * sunrpc/rpc_svcout.c: Likewise.
37933
37934 2012-03-09  David S. Miller  <davem@davemloft.net>
37935
37936         * include/math_private.h: New file.
37937
37938 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37939
37940         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37941         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37942         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37943         from <bits/socket_type.h>.
37944         (enum __socket_type): Don't define here.
37945         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37946         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37947         bits/socket_type.h.
37948
37949         [BZ #13566]
37950         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37951         checking __USE_GNU.
37952
37953         * Makerules ($(inst_includedir)/%.h): New rule.
37954         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37955         (install-others): Remove variable setting.
37956         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37957
37958 2012-03-08  Richard Henderson  <rth@twiddle.net>
37959
37960         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37961         from macro to inline function; merge with the
37962         !__LIBC_INTERNAL_MATH_INLINES version.
37963         (__ieee754_sqrtf): Likewise.
37964
37965         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37966         to inline function.
37967         (__rintf, __floor, __floorf): Likewise.
37968
37969         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37970         macro to inline function.
37971         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37972
37973         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37974         not <math/math_private.h>.
37975
37976 2012-03-08  David S. Miller  <davem@davemloft.net>
37977
37978         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37979         copyright year.
37980         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37981
37982 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37983
37984         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37985         normalization.
37986         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37987         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37988
37989 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37990
37991         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37992         be defined individually, they must be defined as a block.  Define
37993         S for printing a string instead of hidint the different by using a
37994         macro for adding the 'l'.
37995         * stdio-common/tst-fphex-wide.c: Adjust.
37996
37997 2012-03-07  Marek Polacek  <polacek@redhat.com>
37998
37999         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
38000
38001 2012-03-08  Marek Polacek  <polacek@redhat.com>
38002
38003         [BZ #13806]
38004         * stdio-common/Makefile (tests): Add tst-fphex-wide.
38005         * stdio-common/tst-fphex.c: Define a few macros to make the
38006         test reusable.  Use them.
38007         * stdio-common/tst-fphex-wide.c: New file.
38008
38009 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
38010
38011         [BZ #6911]
38012         * manual/macros.texi (gnusystems): New macro.
38013         (nongnusystems): Likewise.
38014         (gnulinuxhurdsystems): Likewise.
38015         (gnuhurdsystems): Likewise..
38016         (gnulinuxsystems): Likewise.
38017         * manual/charset.texi: Use new macros or @theglibc{} to refer to
38018         variants of the GNU system, not "GNU system".
38019         * manual/conf.texi: Likewise.
38020         * manual/errno.texi: Likewise.  Update example of errno macro
38021         expansion.
38022         * manual/filesys.texi: Likewise.
38023         (getumask): Document as specific to GNU/Hurd.
38024         * manual/install.texi: Likewise.  Reword some references to
38025         GNU/Linux.
38026         * manual/intro.texi: Likewise.
38027         * manual/io.texi: Likewise.
38028         (File Name Portability): Detail which constraints are inapplicable
38029         to all GNU systems and which are only inapplicable to GNU/Hurd.
38030         * manual/job.texi: Likewise.
38031         * manual/llio.texi: Likewise.
38032         (O_NOCTTY): Document as present on GNU/Linux.
38033         * manual/maint.texi: Likewise.
38034         * manual/memory.texi: Likewise.
38035         * manual/pattern.texi: Likewise.
38036         * manual/pipe.texi: Likewise.
38037         * manual/process.texi: Likewise.
38038         * manual/resource.texi: Likewise.
38039         (RUSAGE_CHILDREN): Remove statement about specifying a particular
38040         child on GNU/Hurd.
38041         * manual/setjmp.texi: Likewise.
38042         * manual/signal.texi: Likewise.
38043         * manual/startup.texi: Likewise.
38044         * manual/stdio.texi: Likewise.
38045         * manual/terminal.texi: Likewise.
38046         (ONLCR): Document as POSIX.
38047         (OXTABS): Document availability on GNU/Linux as XTABS.
38048         (ONOEOT): Document availability separately from other bits.
38049         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
38050         * manual/time.texi: Likewise.
38051         * manual/users.texi: Likewise.
38052         * INSTALL: Regenerated.
38053         * sysdeps/gnu/errlist.c: Regenerated.
38054
38055         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
38056         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
38057         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
38058         puts.
38059         * configure: Regenerated.
38060
38061 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
38062
38063         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
38064         default includes instead of AC_HEADER_CHECK.
38065         * sysdeps/i386/configure: Regenerated.
38066
38067         [BZ #10716]
38068         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
38069         * math/s_cacoshf.c (__cacoshf): Likewise.
38070         * math/s_cacoshl.c (__cacoshl): Likewise.
38071         * math/s_casinh.c (__casinh): Set signs of result from argument.
38072         * math/s_casinhf.c (__casinhf): Likewise.
38073         * math/s_casinhl.c (__casinhl): Likewise.
38074         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
38075         (casinh_test): Add more tests.
38076         * sysdeps/i386/fpu/libm-test-ulps: Update.
38077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38078
38079 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
38080
38081         * po/zh_TW.po: Update from translation team.
38082
38083         * login/Makefile (distribute): Remove variable.
38084         * catgets/Makefile: Likewise.
38085         * mach/Makefile: Likewise.
38086         * malloc/Makefile: Likewise.
38087         * misc/Makefile: Likewise.
38088         * iconv/Makefile: Likewise.
38089         * nscd/Makefile: Likewise.
38090         * hurd/Makefile: Likewise.
38091         * manual/Makefile: Likewise.
38092         * locale/Makefile: Likewise.
38093         * intl/Makefile: Likewise.
38094         * conform/Makefile: Likewise.
38095         * nss/Makefile: Likewise.
38096         * time/Makefile: Likewise.
38097         * soft-fp/Makefile: Likewise.
38098         * dirent/Makefile: Likewise.
38099         * gmon/Makefile: Likewise.
38100         * po/Makefile: Likewise.
38101         * rt/Makefile: Likewise.
38102         * socket/Makefile: Likewise.
38103         * math/Makefile: Likewise.
38104         * signal/Makefile: Likewise.
38105         * debug/Makefile: Likewise.
38106         * elf/Makefile: Likewise.
38107         * timezone/Makefile: Likewise.
38108         * stdlib/Makefile: Likewise.
38109         * iconvdata/Makefile: Likewise.
38110         * sunrpc/Makefile: Likewise.
38111         * io/Makefile: Likewise.
38112         * argp/Makefile: Likewise.
38113         * inet/Makefile: Likewise.
38114         * hesiod/Makefile: Likewise.
38115         * grp/Makefile: Likewise.
38116         * csu/Makefile: Likewise.
38117         * wctype/Makefile: Likewise.
38118         * crypt/Makefile: Likewise.
38119         * libio/Makefile: Likewise.
38120         * string/Makefile: Likewise.
38121         * nis/Makefile: Likewise.
38122         * resolv/Makefile: Likewise.
38123         * stdio-common/Makefile: Likewise.
38124         * wcsmbs/Makefile: Likewise.
38125         * dlfcn/Makefile: Likewise.
38126         * posix/Makefile: Likewise.
38127
38128         [BZ #6959]
38129         * timezone/Makefile: Don't install timezone files, just the programs
38130         and scripts.
38131
38132 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38133
38134         * nss/databases.def: Add missing gshadow entry.
38135
38136         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38137
38138 2012-03-06  Marek Polacek  <polacek@redhat.com>
38139
38140         [BZ #13726]
38141         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38142         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38143         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38144         * stdio-common/tst-long-dbl-fphex.c: New file.
38145
38146 2012-03-06  David S. Miller  <davem@davemloft.net>
38147
38148         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38149         (set_obp_int): New function.
38150         (get_obp_int): New function.
38151         (__get_clockfreq_via_dev_openprom): Likewise.
38152         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38153         Avoid unused variable warnings on 'val' and use builtin_expect.
38154         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38155         __builtin_expect.
38156         (INLINE_CLONE_SYSCALL): Likewise.
38157
38158 2012-03-05  David S. Miller  <davem@davemloft.net>
38159
38160         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38161
38162 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38163
38164         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38165
38166         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38167         only for |x| >= 40.
38168         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38169
38170 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38171
38172         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38173         Replace gettimeofday with __vdso_gettimeofday.
38174
38175         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38176         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38177         __vdso_clock_gettime and __vdso_getcpu.
38178
38179         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38180         time with __vdso_time.
38181
38182 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38183
38184         * manual/lang.texi (size_t): Note types to which size_t may be
38185         equivalent with the GNU C Library, but do not describe when
38186         differences between them are significant.
38187
38188 2012-03-05  Andreas Jaeger  <aj@suse.de>
38189
38190         * sysdeps/i386/fpu/libm-test-ulps: Update.
38191
38192 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38193
38194         [BZ #3976]
38195         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38196         (__ieee754_pow): Save and restore rounding mode and use
38197         round-to-nearest for main computations.
38198         * math/libm-test.inc (pow_test_tonearest): New function.
38199         (pow_test_towardzero): Likewise.
38200         (pow_test_downward): Likewise.
38201         (pow_test_upward): Likewise.
38202         (main): Call the new functions.
38203         * sysdeps/i386/fpu/libm-test-ulps: Update.
38204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38205
38206         [BZ #3976]
38207         * math/libm-test.inc (cosh_test_tonearest): New function.
38208         (cosh_test_towardzero): Likewise.
38209         (cosh_test_downward): Likewise.
38210         (cosh_test_upward): Likewise.
38211         (sinh_test_tonearest): Likewise.
38212         (sinh_test_towardzero): Likewise.
38213         (sinh_test_downward): Likewise.
38214         (sinh_test_upward): Likewise.
38215         (main): Call the new functions.
38216         * sysdeps/i386/fpu/libm-test-ulps: Update.
38217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38218
38219 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38220
38221         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38222         default stack guard is set in last bytes.
38223         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38224
38225 2012-03-05  Kees Cook  <keescook@chromium.org>
38226
38227         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38228
38229         [BZ #13656]
38230         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38231         possibly allocate from heap instead of stack.
38232         * stdio-common/bug-vfprintf-nargs.c: New file.
38233         * stdio-common/Makefile (tests): Add nargs overflow test.
38234
38235 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38236
38237         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38238
38239 2012-03-03  Marek Polacek  <polacek@redhat.com>
38240
38241         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38242         * math/math_private.h: Likewise.
38243         * stdlib/tst-strtod.c: Likewise.
38244         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38245         * sysdeps/x86_64/bits/atomic.h: Likewise.
38246
38247 2012-03-02  David S. Miller  <davem@davemloft.net>
38248
38249         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38250         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38253         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38254         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38255         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38256         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38257
38258 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38259
38260         [BZ #13792]
38261         * manual/examples/README: New file, says the example source files
38262         can be used under GPL>=2.
38263         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38264         line containing just "*/".
38265         * manual/examples/add.c: Add copyright header (GPL>=2).
38266         * manual/examples/argp-ex1.c: Likewise.
38267         * manual/examples/argp-ex2.c: Likewise.
38268         * manual/examples/argp-ex3.c: Likewise.
38269         * manual/examples/argp-ex4.c: Likewise.
38270         * manual/examples/atexit.c: Likewise.
38271         * manual/examples/db.c: Likewise.
38272         * manual/examples/dir.c: Likewise.
38273         * manual/examples/dir2.c: Likewise.
38274         * manual/examples/execinfo.c: Likewise.
38275         * manual/examples/filecli.c: Likewise.
38276         * manual/examples/filesrv.c: Likewise.
38277         * manual/examples/fmtmsgexpl.c: Likewise.
38278         * manual/examples/genpass.c: Likewise.
38279         * manual/examples/inetcli.c: Likewise.
38280         * manual/examples/inetsrv.c: Likewise.
38281         * manual/examples/isockad.c: Likewise.
38282         * manual/examples/longopt.c: Likewise.
38283         * manual/examples/memopen.c: Likewise.
38284         * manual/examples/memstrm.c: Likewise.
38285         * manual/examples/mkfsock.c: Likewise.
38286         * manual/examples/mkisock.c: Likewise.
38287         * manual/examples/mygetpass.c: Likewise.
38288         * manual/examples/pipe.c: Likewise.
38289         * manual/examples/popen.c: Likewise.
38290         * manual/examples/rprintf.c: Likewise.
38291         * manual/examples/search.c: Likewise.
38292         * manual/examples/select.c: Likewise.
38293         * manual/examples/setjmp.c: Likewise.
38294         * manual/examples/sigh1.c: Likewise.
38295         * manual/examples/sigusr.c: Likewise.
38296         * manual/examples/stpcpy.c: Likewise.
38297         * manual/examples/strdupa.c: Likewise.
38298         * manual/examples/strftim.c: Likewise.
38299         * manual/examples/strncat.c: Likewise.
38300         * manual/examples/subopt.c: Likewise.
38301         * manual/examples/swapcontext.c: Likewise.
38302         * manual/examples/termios.c: Likewise.
38303         * manual/examples/testopt.c: Likewise.
38304         * manual/examples/testpass.c: Likewise.
38305         * manual/examples/timeval_subtract.c: Likewise.
38306
38307         [BZ #13792]
38308         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38309         function to ...
38310         * manual/timeval_subtract.c.texi: ... here, new file.
38311
38312 2012-03-02  David S. Miller  <davem@davemloft.net>
38313
38314         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38315
38316 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38317
38318         [BZ #3976]
38319         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38320         (__sin): Save and restore rounding mode and use round-to-nearest
38321         for all computations.
38322         (__cos): Save and restore rounding mode and use round-to-nearest
38323         for all computations.
38324         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38325         <fenv.h>.
38326         (tan): Save and restore rounding mode and use round-to-nearest for
38327         all computations.
38328         * math/libm-test.inc (cos_test_tonearest): New function.
38329         (cos_test_towardzero): Likewise.
38330         (cos_test_downward): Likewise.
38331         (cos_test_upward): Likewise.
38332         (sin_test_tonearest): Likewise.
38333         (sin_test_towardzero): Likewise.
38334         (sin_test_downward): Likewise.
38335         (sin_test_upward): Likewise.
38336         (tan_test_tonearest): Likewise.
38337         (tan_test_towardzero): Likewise.
38338         (tan_test_downward): Likewise.
38339         (tan_test_upward): Likewise.
38340         (main): Call the new functions.
38341         * sysdeps/i386/fpu/libm-test-ulps: Update.
38342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38343
38344         [BZ #10135]
38345         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38346         small n, then large n, before computing and testing k+n.
38347         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38348         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38349         Likewise.
38350         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38351         Likewise.
38352         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38353         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38354         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38355         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38356         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38357         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38358         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38359         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38360         * math/libm-test.inc (scalbn_test): Add more tests.
38361         (scalbln_test): Likewise.
38362
38363         * manual/filesys.texi (mode_t): Describe constraints on size and
38364         signedness, not exact equivalence to a particular type.
38365         (ino_t): Likewise.
38366         (ino64_t): Likewise.
38367         (dev_t): Likewise.
38368         (nlink_t): Likewise.
38369         (blkcnt_t): Likewise.
38370         (blkcnt64_t): Likewise.
38371         * manual/llio.texi (off_t): Likewise.
38372
38373         [BZ #3976]
38374         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38375         (__ieee754_exp): Save and restore rounding mode and use
38376         round-to-nearest for all computations.
38377         * math/libm-test.inc (exp_test_tonearest): New function.
38378         (exp_test_towardzero): Likewise.
38379         (exp_test_downward): Likewise.
38380         (exp_test_upward): Likewise.
38381         (main): Call the new functions.
38382         * sysdeps/i386/fpu/libm-test-ulps: Update.
38383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38384
38385 2012-03-01  Chris Demetriou  <cgd@google.com>
38386
38387         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38388         have predictable order.
38389
38390 2012-03-01  David S. Miller  <davem@davemloft.net>
38391
38392         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38393
38394         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38395         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38396         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38397         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38398
38399         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38400         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38401         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38402         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38403         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38404         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38405         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38406         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38407         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38408
38409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38410
38411         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38412         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38413         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38414
38415         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38416         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38417         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38418         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38419         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38420         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38421         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38422         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38423         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38424         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38425         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38426         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38427         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38428         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38429         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38430         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38431         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38432         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38433         * sysdeps/sparc/elf/configure: Regenerated.
38434
38435 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38436
38437         * configure.in (AS, LD): Require binutils 2.20 or later.
38438         * configure: Regenerated.
38439         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38440         as required minimum version.
38441         * INSTALL: Regenerated.
38442
38443         [BZ #2541]
38444         [BZ #4108]
38445         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
38446         before squaring exponent.
38447         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
38448         bottom long double and 27 bits of top long double before squaring
38449         exponent.
38450         * math/libm-test.inc (erfc_test): Add more tests.
38451         * sysdeps/i386/fpu/libm-test-ulps: Update.
38452         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38454
38455 2012-03-01  Kai Tietz  <ktietz@redhat.com>
38456
38457         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
38458         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
38459         containing bit-fields.
38460         * soft-fp/extended.h (_FP_UNION_E): Likewise.
38461         * soft-fp/single.h (_FP_UNION_S): Likewise.
38462         * soft-fp/double.h (_FP_UNION_D): Likewise.
38463
38464 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38465
38466         [BZ #13786]
38467         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
38468         not include ../strcmp.S.
38469         [USE_AS_STRNCASECMP_L]: Likewise.
38470         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
38471         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
38472         * sysdeps/i386/i686/multiarch/strncase_l-c.c
38473         (__strncasecmp_l_ia32): Define as alias to
38474         __strncasecmp_l_nonascii.
38475
38476         [BZ #5794]
38477         * math/libm-test.inc (expm1_test): Add test for bug 5794.
38478         * sysdeps/i386/fpu/libm-test-ulps: Update.
38479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38480
38481         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
38482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38483
38484 2012-02-29  Jeff Law  <law@redhat.com>
38485
38486         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38487         out of bounds read.
38488
38489 2012-02-29  Marek Polacek  <polacek@redhat.com>
38490
38491         [BZ #13706]
38492         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38493         * elf/Makefile: Add rules to run tst-unused-dep.out.
38494
38495 2012-02-28  David S. Miller  <davem@davemloft.net>
38496
38497         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38498         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38499         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38500         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38501         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38502         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38503
38504 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38505
38506         * math/libm-test.inc (llround_test): Move one test from
38507         lround_test.  Use TEST_f_L in moved test.
38508         (lround_test): Move misplaced test to llround_test.  Add testcase
38509         from bug 2561.
38510
38511 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38512
38513         * sysdeps/x86_64/fpu/e_expf.S: New file.
38514         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38515
38516 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38517
38518         [BZ #13637]
38519         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38520         of remain_len that may cause incomplete multi-byte character and
38521         false match.
38522         * posix/bug-regex33.c: New file.
38523         * posix/Makefile (tests): Add bug-regex33.
38524
38525 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38526
38527         * manual/macros.texi: New file.
38528         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38529         * manual/libc.texinfo: Include macros.texi.
38530         * manual/creatute.texi: Likewise.
38531         * manual/install.texi: Likewise.
38532         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38533         @glibcadj{} in references to the GNU C Library.
38534         * manual/charset.texi: Likewise.
38535         * manual/conf.texi: Likewise.
38536         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38537         when not using those macros.
38538         * manual/creature.texi: Likewise.
38539         * manual/crypt.texi: Likewise.
38540         * manual/errno.texi: Likewise.
38541         * manual/filesys.texi: Likewise.
38542         * manual/header.texi: Likewise.
38543         * manual/install.texi: Likewise.
38544         * manual/intro.texi: Likewise.
38545         * manual/io.texi: Likewise.
38546         * manual/job.texi: Likewise.
38547         * manual/lang.texi: Likewise.
38548         * manual/libc.texiinfo: Likewise.
38549         * manual/llio.texi: Likewise.
38550         * manual/locale.texi: Likewise.
38551         * manual/maint.texi: Likewise.
38552         * manual/math.texi: Likewise.
38553         * manual/memory.texi: Likewise.
38554         * manual/message.texi: Likewise.
38555         * manual/nss.texi: Likewise.
38556         * manual/pattern.texi: Likewise.
38557         * manual/process.texi: Likewise.
38558         * manual/resource.texi: Likewise.
38559         * manual/search.texi: Likewise.
38560         * manual/setjmp.texi: Likewise.
38561         * manual/signal.texi: Likewise.
38562         * manual/socket.texi: Likewise.
38563         * manual/startup.texi: Likewise.
38564         * manual/stdio.texi: Likewise.
38565         * manual/string.texi: Likewise.
38566         * manual/sysinfo.texi: Likewise.
38567         * manual/syslog.texi: Likewise.
38568         * manual/terminal.texi: Likewise.
38569         * manual/time.texi: Likewise.
38570         * manual/users.texi: Likewise.
38571         * INSTALL: Regenerated.
38572         * NOTES: Regenerated.
38573         * sysdeps/gnu/errlist.c: Regenerated.
38574
38575 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38576
38577         * include/dirent.h: Include <dirstream.h> before
38578         <dirent/dirent.h>.
38579
38580 2012-02-28  David S. Miller  <davem@davemloft.net>
38581
38582         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38583         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38584         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38585         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38586
38587 2012-02-27  David S. Miller  <davem@davemloft.net>
38588
38589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38591         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38592         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38593
38594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38595         frame pointer instead of stack pointer relative arg slot.
38596         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38597         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38598         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38599
38600 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38601
38602         [BZ #3992]
38603         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38604
38605 2012-02-27  David S. Miller  <davem@davemloft.net>
38606
38607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38611         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38612         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38613         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38614         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38615
38616 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38617
38618         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38619         later.  Allow versions 5-9.
38620         * configure: Regenerated.
38621         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38622         required minimum version and 4.6 as recommended version.  Do not
38623         mention bugs in GCC 2.7 and 2.8.
38624         * INSTALL: Regenerated.
38625
38626 2012-02-27  David S. Miller  <davem@davemloft.net>
38627
38628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38629         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38632         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38633         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38634         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38635         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38636
38637         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38638         manipulate bits before adding and subtracting TWO112[sx].
38639         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38640
38641 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38642
38643         [BZ #13775]
38644         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38645         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38646         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38647         being in POSIX, because they are in 1003.1-2008.
38648
38649         * rt/tst-aio.c: Include <fcntl.h>.
38650         * rt/tst-aio7.c: Likewise.
38651         * rt/tst-aio64.c: Likewise.
38652
38653         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38654
38655 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38656
38657         * manual/install.texi (--with-headers): Describe headers as
38658         interface headers, not private headers.
38659         (Specific advice for GNU/Linux systems): Describe use of headers
38660         from "make headers_install", not private headers from older
38661         kernels.
38662         * INSTALL: Regenerated.
38663         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38664         Change to 2.6.19.
38665         * sysdeps/unix/sysv/linux/configure: Regenerated.
38666
38667         * manual/llio.texi (fclean): Remove documentation.
38668
38669         * manual/Makefile (libc-texi-generated): New variable.  Include
38670         version.texi.
38671         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38672         $(libc-texi-generated), not duplicated list of files.
38673         (version.texi, stamp-version): New rules.
38674         (realclean): Remove $(libc-texi-generated), not individual files
38675         from that list.  Do not remove dir-add.texinfo.
38676         * manual/libc.texinfo: Comment out uses of edition numbers and
38677         references to printed manual.  Remove last-updated dates.
38678         (EDITION): Comment out.
38679         (ISBN): Likewise.
38680         (VERSION, UPDATED): Remove.
38681         (version.texi): Include.
38682
38683 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38684
38685         * sysdeps/posix/spawni.c: Include <signal.h>.
38686         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38687         * sysdeps/pthread/aio_fsync.c: Likewise.
38688
38689 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38690
38691         * conform/Makefile (tests): Run only when not cross-compiling and
38692         when fast-check is not defined.
38693
38694         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38695         * conform/data/limits.h-data: Fixes for POSIX2008.
38696         * conform/run-conformtest.sh: Run all tests.
38697         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38698         headers.
38699         * include/bits/dlfcn.h: Likewise.
38700         * include/langinfo.h: Likewise.
38701         * include/monetary.h: Likewise.
38702         * include/sys/poll.h: Likewise.
38703
38704         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38705         for __USE_GNU.
38706         * posix/spawn.h: Define __need_sigset_t.
38707         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38708         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38709         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38710         to get sigevent_t only.
38711         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38712         only for __USE_GNU.
38713         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38714         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38715         process_vm_writev only for __USE_GNU.
38716         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38717
38718         * conform/Makefile: For now ignore errors from run-conformtest.
38719         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38720         POSIX to avoid namespace pollution.  Don't prepend headers.
38721         * conform/data/aio.h-data: Fixes for POSIX testing.
38722         * conform/data/fcntl.h-data: Likewise.
38723         * conform/data/glob.h-data: Likewise.
38724         * conform/data/grp.h-data: Likewise.
38725         * conform/data/pthread.h-data: Likewise.
38726         * conform/data/pwd.h-data: Likewise.
38727         * conform/data/signal.h-data: Likewise.
38728         * conform/data/spawn.h-data: Likewise.
38729         * conform/data/stdio.h-data: Likewise.
38730         * conform/data/stdlib.h-data: Likewise.
38731         * conform/data/stropts.h-data: Likewise.
38732         * conform/data/sys/mman.h-data: Likewise.
38733         * conform/data/sys/stat.h-data: Likewise.
38734         * conform/data/sys/types.h-data: Likewise.
38735         * conform/data/sys/wait.h-data: Likewise.
38736         * conform/data/time.h-data: Likewise.
38737         * conform/data/unistd.h-data: Likewise.
38738         * conform/data/utime.h-data: Likewise.
38739
38740         * io/sys/stat.h: fchmod was always in POSIX.
38741         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38742         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38743         * rt/aio.h: Define __need_timespec before including <time.h>.
38744         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38745         struct.  Add forward declaration of pthread_attr_t and use it in
38746         sigevent.
38747         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38748         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38749         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38750         always remove CLK_TCK definition.
38751
38752 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38753
38754         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38755
38756 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38757
38758         * conform/run-conformtest.sh: New file.
38759         * conform/Makefile: Run run-conformtest for tests.
38760         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38761         support.
38762
38763         * conform/data/uchar.h-data: New file.
38764         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38765         * conform/data/arpa/inet.h-data: Likewise.
38766         * conform/data/assert.h-data: Likewise.
38767         * conform/data/complex.h-data: Likewise.
38768         * conform/data/cpio.h-data: Likewise.
38769         * conform/data/ctype.h-data: Likewise.
38770         * conform/data/dirent.h-data: Likewise.
38771         * conform/data/dlfcn.h-data: Likewise.
38772         * conform/data/errno.h-data: Likewise.
38773         * conform/data/fcntl.h-data: Likewise.
38774         * conform/data/float.h-data: Likewise.
38775         * conform/data/fmtmsg.h-data: Likewise.
38776         * conform/data/fnmatch.h-data: Likewise.
38777         * conform/data/ftw.h-data: Likewise.
38778         * conform/data/glob.h-data: Likewise.
38779         * conform/data/grp.h-data: Likewise.
38780         * conform/data/iconv.h-data: Likewise.
38781         * conform/data/inttypes.h-data: Likewise.
38782         * conform/data/langinfo.h-data: Likewise.
38783         * conform/data/libgen.h-data: Likewise.
38784         * conform/data/limits.h-data: Likewise.
38785         * conform/data/locale.h-data: Likewise.
38786         * conform/data/math.h-data: Likewise.
38787         * conform/data/monetary.h-data: Likewise.
38788         * conform/data/mqueue.h-data: Likewise.
38789         * conform/data/ndbm.h-data: Likewise.
38790         * conform/data/net/if.h-data: Likewise.
38791         * conform/data/netdb.h-data: Likewise.
38792         * conform/data/netinet/in.h-data: Likewise.
38793         * conform/data/nl_types.h-data: Likewise.
38794         * conform/data/poll.h-data: Likewise.
38795         * conform/data/pthread.h-data: Likewise.
38796         * conform/data/pwd.h-data: Likewise.
38797         * conform/data/regex.h-data: Likewise.
38798         * conform/data/sched.h-data: Likewise.
38799         * conform/data/search.h-data: Likewise.
38800         * conform/data/semaphore.h-data: Likewise.
38801         * conform/data/setjmp.h-data: Likewise.
38802         * conform/data/signal.h-data: Likewise.
38803         * conform/data/spawn.h-data: Likewise.
38804         * conform/data/stdarg.h-data: Likewise.
38805         * conform/data/stdio.h-data: Likewise.
38806         * conform/data/stdlib.h-data: Likewise.
38807         * conform/data/string.h-data: Likewise.
38808         * conform/data/strings.h-data: Likewise.
38809         * conform/data/stropts.h-data: Likewise.
38810         * conform/data/sys/ipc.h-data: Likewise.
38811         * conform/data/sys/mman.h-data: Likewise.
38812         * conform/data/sys/msg.h-data: Likewise.
38813         * conform/data/sys/resource.h-data: Likewise.
38814         * conform/data/sys/select.h-data: Likewise.
38815         * conform/data/sys/sem.h-data: Likewise.
38816         * conform/data/sys/shm.h-data: Likewise.
38817         * conform/data/sys/socket.h-data: Likewise.
38818         * conform/data/sys/stat.h-data: Likewise.
38819         * conform/data/sys/statvfs.h-data: Likewise.
38820         * conform/data/sys/time.h-data: Likewise.
38821         * conform/data/sys/timeb.h-data: Likewise.
38822         * conform/data/sys/times.h-data: Likewise.
38823         * conform/data/sys/types.h-data: Likewise.
38824         * conform/data/sys/uio.h-data: Likewise.
38825         * conform/data/sys/un.h-data: Likewise.
38826         * conform/data/sys/utsname.h-data: Likewise.
38827         * conform/data/sys/wait.h-data: Likewise.
38828         * conform/data/syslog.h-data: Likewise.
38829         * conform/data/tar.h-data: Likewise.
38830         * conform/data/termios.h-data: Likewise.
38831         * conform/data/utime.h-data: Likewise.
38832         * conform/data/utmpx.h-data: Likewise.
38833         * conform/data/varargs.h-data: Likewise.
38834         * conform/data/wchar.h-data: Likewise.
38835         * conform/data/wctype.h-data: Likewise.
38836         * conform/data/wordexp.h-data: Likewise.
38837
38838         * include/stropts.h: New file.
38839         * include/uchar.h: New file.
38840         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38841         * include/assert.h: Likewise.
38842         * include/ctype.h: Likewise.
38843         * include/dirent.h: Likewise.
38844         * include/dlfcn.h: Likewise.
38845         * include/fcntl.h: Likewise.
38846         * include/fnmatch.h: Likewise.
38847         * include/glob.h: Likewise.
38848         * include/grp.h: Likewise.
38849         * include/libio.h: Likewise.
38850         * include/locale.h: Likewise.
38851         * include/math.h: Likewise.
38852         * include/net/if.h: Likewise.
38853         * include/netdb.h: Likewise.
38854         * include/netinet/in.h: Likewise.
38855         * include/pthread.h: Likewise.
38856         * include/pwd.h: Likewise.
38857         * include/regex.h: Likewise.
38858         * include/sched.h: Likewise.
38859         * include/search.h: Likewise.
38860         * include/setjmp.h: Likewise.
38861         * include/signal.h: Likewise.
38862         * include/stdio.h: Likewise.
38863         * include/stdlib.h: Likewise.
38864         * include/string.h: Likewise.
38865         * include/sys/cdefs.h: Likewise.
38866         * include/sys/mman.h: Likewise.
38867         * include/sys/msg.h: Likewise.
38868         * include/sys/resource.h: Likewise.
38869         * include/sys/select.h: Likewise.
38870         * include/sys/socket.h: Likewise.
38871         * include/sys/stat.h: Likewise.
38872         * include/sys/statvfs.h: Likewise.
38873         * include/sys/time.h: Likewise.
38874         * include/sys/times.h: Likewise.
38875         * include/sys/uio.h: Likewise.
38876         * include/sys/utsname.h: Likewise.
38877         * include/sys/wait.h: Likewise.
38878         * include/termios.h: Likewise.
38879         * include/time.h: Likewise.
38880         * include/ulimit.h: Likewise.
38881         * include/unistd.h: Likewise.
38882         * include/utime.h: Likewise.
38883         * include/wchar.h: Likewise.
38884         * include/wctype.h: Likewise.
38885         * include/wordexp.h: Likewise.
38886
38887         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38888
38889         * time/time.h: TIME_UTC must be a macro.
38890         Make timespec_get available for ISO C11 only as well.
38891
38892 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38893
38894         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38895         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38896
38897 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38898
38899         * configure.in: Use -o not -a in test for unsupported multi-arch.
38900
38901 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38902
38903         * manual/texinfo.tex: Update to version 2012-01-19.16.
38904
38905 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38906
38907         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38908
38909 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38910
38911         [BZ #13738]
38912         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38913         * manual/fdl-1.3.texi: New file.
38914         * manual/fdl-1.1.texi: File removed.
38915
38916         [BZ #13738]
38917         * manual/libc.texinfo (FDL_VERSION): New @set.
38918         Use it for mention of FDL in cover text.
38919         (Documentation License): Use it in @include file name.
38920
38921 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38922             Roland McGrath  <roland@hack.frob.com>
38923
38924         [BZ #5461]
38925         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38926         (not LONG_LONG_MAX and LONG_LONG_MIN.
38927         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38928         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38929         name.
38930         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38931
38932 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38933
38934         [BZ #2547]
38935         [BZ #11365]
38936         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38937         manipulate bits before adding and subtracting TWO23[sx].
38938         * math/libm-test.inc (nearbyint_test): Add more tests.
38939
38940 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38941
38942         [BZ #2548]
38943         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38944         bits before adding and subtracting TWO23[sx].
38945         * math/libm-test.inc (rint_test): Add more tests.
38946         (rint_test_tonearest): Likewise.
38947         (rint_test_towardzero): Likewise.
38948         (rint_test_downward): Likewise.
38949         (rint_test_upward: Likewise.
38950
38951 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38952
38953         [BZ #10110]
38954         * include/stdc-predef.h: New file.  Extracted from features.h.
38955         * include/features.h: Include stdc-predef.h.
38956         * Makefile (headers): Add stdc-predef.h.
38957         * CONFORMANCE (Compiler limitations): Update.
38958
38959 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38960
38961         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38962
38963 2012-02-21  David S. Miller  <davem@davemloft.net>
38964
38965         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38966         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38967
38968 2012-02-20  David S. Miller  <davem@davemloft.net>
38969
38970         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38971         using a normal save/restore sequence, rather than allocating a
38972         dummy stack frame just to store a frame pointer and restore.
38973         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38974
38975 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38976
38977         * manual/install.texi: Fix stray word in line-wrapped comment.
38978
38979 2012-02-20  David S. Miller  <davem@davemloft.net>
38980
38981         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38982         both binutils and gcc support GOTDATA.
38983
38984         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38985         "rd %pc" in the PIC register setup sequences.
38986
38987         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38988         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38989         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38990         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38991         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38992         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38993         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38994         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38995         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38996         (SYSCALL_ERROR_HANDLER): Likewise.
38997         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38998         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38999         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
39000         (SYSCALL_ERROR_HANDLER): Likewise.
39001
39002         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
39003         (HAVE_GCC_GOTDATA): New.
39004         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
39005         relocation support in both binutils and gcc.
39006         * sysdeps/sparc/elf/configure: Regenerate.
39007
39008         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
39009         * sysdeps/sparc/sparc32/elf/configure: Delete.
39010         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
39011         * sysdeps/sparc/sparc64/elf/configure: Delete.
39012         * sysdeps/sparc/elf/configure.in: New file.
39013         * sysdeps/sparc/elf/configure: Generate.
39014
39015         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
39016         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
39017         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
39018         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
39019         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
39020
39021 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39022
39023         * manual/install.texi: Do not mention specific glibc version
39024         numbers.
39025         * manual/libc.texinfo (VERSION, UPDATED): Update.
39026         (@copying): Use @copyright{} and range of years.
39027
39028 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39029
39030         [BZ #13695]
39031         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
39032         [crti.S not in sysdirs] (generated): Do not append.
39033         [crti.S not in sysdirs] (omit-deps): Likewise.
39034         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
39035         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
39036         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
39037         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
39038         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
39039         Likewise.
39040         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
39041         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
39042         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
39043         * csu/defs.awk: Remove file.
39044         * sysdeps/generic/initfini.c: Likewise.
39045         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
39046         variable.
39047         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
39048         Likewise.
39049
39050 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39051
39052         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
39053         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
39054         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
39055         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
39056         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39057         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
39058         <bits/epoll.h>.
39059         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
39060         (__EPOLL_PACKED): Define to empty if not defined by
39061         <bits/epoll.h>.
39062         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
39063         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39064         bits/epoll.h.
39065
39066 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39067
39068         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
39069         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
39070         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
39071         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
39072         <bits/timerfd.h>.
39073         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
39074         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39075         bits/timerfd.h.
39076
39077 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39078
39079         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
39080         in C locale.
39081         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39082         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
39083         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
39084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39085
39086 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
39087
39088         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39089         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39090
39091 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
39092
39093         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
39094         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
39095         defined.
39096         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
39097         Likewise.
39098         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
39099         entry for 2.16.
39100
39101 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39102
39103         * math/w_acos.c: Use non-signaling floating-point comparisons.
39104         * math/w_acosf.c: Likewise.
39105         * math/w_acosh.c: Likewise.
39106         * math/w_acoshf.c: Likewise.
39107         * math/w_acoshl.c: Likewise.
39108         * math/w_acosl.c: Likewise.
39109         * math/w_asin.c: Likewise.
39110         * math/w_asinf.c: Likewise.
39111         * math/w_asinl.c: Likewise.
39112         * math/w_atanh.c: Likewise.
39113         * math/w_atanhf.c: Likewise.
39114         * math/w_atanhl.c: Likewise.
39115         * math/w_exp2.c: Likewise.
39116         * math/w_exp2f.c: Likewise.
39117         * math/w_exp2l.c: Likewise.
39118         * math/w_j0.c: Likewise.
39119         * math/w_j0f.c: Likewise.
39120         * math/w_j0l.c: Likewise.
39121         * math/w_j1.c: Likewise.
39122         * math/w_j1f.c: Likewise.
39123         * math/w_j1l.c: Likewise.
39124         * math/w_jn.c: Likewise.
39125         * math/w_jnf.c: Likewise.
39126         * math/w_log.c: Likewise.
39127         * math/w_log10.c: Likewise.
39128         * math/w_log10f.c: Likewise.
39129         * math/w_log10l.c: Likewise.
39130         * math/w_log2.c: Likewise.
39131         * math/w_log2f.c: Likewise.
39132         * math/w_log2l.c: Likewise.
39133         * math/w_logf.c: Likewise.
39134         * math/w_logl.c: Likewise.
39135         * math/w_sqrt.c: Likewise.
39136         * math/w_sqrtf.c: Likewise.
39137         * math/w_sqrtl.c: Likewise.
39138         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39139         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39140         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39141         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39142         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39143
39144 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39145
39146         [BZ #9739]
39147         * manual/string.texi (strnlen): Use correct parameter name in
39148         equivalent expression.
39149
39150 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39151
39152         [BZ #11174]
39153         * manual/users.texi (seteuid): Consistently use neweuid for
39154         argument name.
39155
39156 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39157
39158         [BZ #13704]
39159         * manual/nss.texi (Services in the NSS configuration): Correct
39160         list of services in example configuration file.
39161
39162 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39163
39164         [BZ #11322]
39165         * manual/arith.texi: Remove statements about negative zero
39166         behaving identically to zero.
39167
39168 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39169
39170         [BZ #5993]
39171         * manual/install.texi: Do not document upgrading from libc5.
39172
39173 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39174
39175         [BZ #4596]
39176         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39177
39178 2012-02-18  David S. Miller  <davem@davemloft.net>
39179
39180         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39181         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39182         %o7 across the call.
39183         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39184         instead.
39185         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39186         SETUP_PIC_REG_LEAF.
39187         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39188         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39189         * sysdeps/sparc/crtn.S: Likewise.
39190
39191 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39192
39193         * aout/Makefile: Remove.
39194
39195 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39196
39197         [BZ #13058]
39198         * manual/examples/argp-ex1.c (main): Format definition in GNU
39199         style.
39200         * manual/examples/argp-ex2.c (main): Likewise.
39201         * manual/examples/argp-ex3.c (main): Likewise.
39202         * manual/examples/argp-ex4.c (main): Likewise.
39203         * manual/examples/longopt.c (main): Use new-style prototype
39204         definition.
39205         * manual/examples/strncat.c (main): Specify return type and use
39206         (void) for arguments.
39207         * manual/examples/subopt.c (main): Use char **argv argument.
39208
39209 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39210
39211         [BZ #5077]
39212         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39213         rounding modes.
39214
39215 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39216
39217         [BZ #6907]
39218         * manual/string.texi (strchr): Change when strchrnul is
39219         recommended.
39220
39221 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39222
39223         [BZ #174]
39224         * manual/locale.texi (setlocale): Document LOCPATH.
39225
39226 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39227
39228         [BZ #10210]
39229         * manual/process.texi (execle): Move @dots{} before last argument.
39230
39231 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39232
39233         [BZ #12047]
39234         * manual/charset.texi (Generic Charset Conversion): Fix typo
39235         (LC_TYPE -> LC_CTYPE).
39236
39237 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39238
39239         [BZ #5805]
39240         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39241         (scalbnf): Likewise.
39242         (scalbnl): Likewise.
39243         (scalbln): Likewise.
39244         (scalblnf): Likewise.
39245         (scalblnl): Likewise.
39246         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39247         (vwarnx): Likewise.
39248         (verr): Likewise.
39249         (verrx): Likewise.
39250         * manual/filesys.texi (telldir): Use braces around return type.
39251         * manual/llio.texi (mmap): Add space after comma.
39252         (mmap64): Likewise.
39253         * manual/math.texi (jn): Use @var{} on parameter names.
39254         (jnf): Likewise.
39255         (jnl): Likewise.
39256         (yn): Likewise.
39257         (ynf): Likewise.
39258         (ynl): Likewise.
39259         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39260         line.
39261         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39262         "...".
39263         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39264         (sched_get_priority_max): Likewise.
39265         * manual/signal.texi (sigvec): Add space after comma.
39266         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39267         names.
39268         (if_indextoname): Likewise.
39269         (if_freenameindex): Likewise.
39270         (sendto): Use ',' instead of '.' in prototype.
39271         * manual/startup.texi (syscall): Use @dots{} instead of literal
39272         "...".
39273         * manual/stdio.texi (__fpending): Separate initial words of
39274         paragraph from @deftypefun line.
39275         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39276         "...".
39277         (vsyslog): Use @var{} on parameter names.
39278         * manual/terminal.texi (stty): Use @var{} on parameter names.
39279         * manual/users.texi (getutmp): Use @var{} on parameter names.
39280         (getutmpx): Likewise.
39281
39282 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39283
39284         [BZ #6884]
39285         * manual/stdio.texi (fopen): Fix typos in description of
39286         ",ccs=STRING".
39287
39288 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39289
39290         [BZ #4026]
39291         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39292         get clock_id definition.
39293
39294 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39295
39296         [BZ #4822]
39297         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39298         (madvise): Cast every argument to void on its own.
39299
39300 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39301
39302         [BZ #9902]
39303         * manual/startup.texi (Exit Status): Fix typo.
39304
39305 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39306
39307         [BZ #10140]
39308         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39309         * manual/examples/argp-ex2.c: Likewise.
39310         * manual/examples/argp-ex3.c: Likewise.
39311
39312 2012-02-16  Richard Henderson  <rth@redhat.com>
39313
39314         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39315         * sysdeps/s390/s390-32/initfini.c: Remove.
39316         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39317         * sysdeps/s390/s390-64/initfini.c: Remove.
39318
39319 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39320
39321         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39322         compiler output for sysdeps/generic/initfini.c.
39323         * sysdeps/sh/elf/initfini.c: Remove file.
39324
39325 2012-02-16  David S. Miller  <davem@davemloft.net>
39326
39327         [BZ #11494]
39328         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39329
39330         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39331         * sysdeps/sparc/crti.S: New file.
39332         * sysdeps/sparc/crtn.S: New file.
39333         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39334         * sysdeps/sparc/sparc64/Makefile: Likewise.
39335
39336 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39337
39338         [BZ #3335]
39339         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39340
39341 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39342
39343         [BZ #4822]
39344         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39345
39346         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39347         (write, read, close): Likewise.
39348         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39349
39350 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39351
39352         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39353         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39354         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39355         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39356         <bits/signalfd.h>.
39357         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39358         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39359         bits/signalfd.h.
39360
39361 2012-02-14  Marek Polacek  <polacek@redhat.com>
39362
39363         * sysdeps/x86_64/crti.S: New file.
39364         * sysdeps/x86_64/crtn.S: New file.
39365         * sysdeps/x86_64/elf/initfini.c: Remove file.
39366
39367 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39368
39369         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39370         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39371         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39372         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39373         <bits/inotify.h>.
39374         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39375         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39376         bits/inotify.h.
39377
39378 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39379
39380         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39381         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39382         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39383         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39384         <bits/eventfd.h>.
39385         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39386         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39387         bits/eventfd.h.
39388
39389 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39390
39391         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39392         __feraiseexcept instead of feraiseexcept.
39393
39394         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39395         nanosleep invocations.
39396         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39397         strings, and add error checking for a nanosleep invocations.
39398
39399 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39400
39401         Replace FSF snail mail address with URLs, as per GNU coding standards.
39402         Most of the snail mail addresses were wrong anyway, and omitting
39403         them makes the source code easier to maintain.  Almost all of the
39404         changes are to license notices and to locale LC_IDENTIFICATION
39405         addresses, except for this one:
39406         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39407         not its snail mail address.
39408
39409 2012-02-09  Richard Henderson  <rth@twiddle.net>
39410
39411         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39412         of kernel-features.h.
39413
39414         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39415
39416 2012-02-08  Marek Polacek  <polacek@redhat.com>
39417
39418         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39419         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39420         * sysdeps/gnu/_G_config.h: Likewise.
39421         * sysdeps/generic/_G_config.h: Likewise.
39422
39423 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39424
39425         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39426         tests.
39427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39428
39429         * sysdeps/powerpc/powerpc32/crti.S: New file.
39430         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39431         * sysdeps/powerpc/powerpc64/crti.S: New file.
39432         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39433
39434         * Makeconfig (have-initfini): Don't set.
39435         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39436         * configure.in (nopic_initfini): Don't substitute.
39437         * config.h.in (HAVE_INITFINI): Don't #undef.
39438         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39439         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39440
39441 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39442
39443         Support crti.S and crtn.S provided directly by architectures.
39444         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
39445         [crti.S in sysdirs] (omit-deps): Likewise.
39446         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
39447         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
39448         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
39449         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
39450         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
39451         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
39452         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
39453         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
39454         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
39455         compiler output for sysdeps/generic/initfini.c.
39456         * sysdeps/i386/elf/Makefile: Remove file.
39457         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
39458
39459 2012-02-07  Marek Polacek  <polacek@redhat.com>
39460
39461         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
39462         * sysdeps/gnu/_G_config.h: Likewise.
39463         * sysdeps/mach/hurd/_G_config.h: Likewise.
39464
39465 2012-02-07  Marek Polacek  <polacek@redhat.com>
39466
39467         * math/Makefile (tests): Add tst-CMPLX2.
39468         * math/tst-CMPLX2.c: New file.
39469
39470 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
39471
39472         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39473
39474         * math/libm-test.inc (jn_test): Add missing L suffix.
39475
39476 2012-02-06  Marek Polacek  <polacek@redhat.com>
39477
39478         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
39479         * sysdeps/i386/fpu/e_powf.S: Likewise.
39480         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39481         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
39482         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39483         * sysdeps/i386/fpu/e_pow.S: Likewise.
39484         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39485         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39486         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39487         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39488         * sysdeps/i386/fpu/e_log2.S: Likewise.
39489         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39490         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39491         * sysdeps/i386/fpu/e_powl.S: Likewise.
39492         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39493         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39494         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39495         * sysdeps/i386/fpu/e_logl.S: Likewise.
39496         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39497         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39498         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39499         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39500         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39501         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39502         * sysdeps/i386/fpu/e_log.S: Likewise.
39503         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39504         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39505         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39506         * sysdeps/i386/fpu/e_logf.S: Likewise.
39507         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39508         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39509         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39510         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39511         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39512         * sysdeps/i386/fpu/e_log10.S: Likewise.
39513         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39514         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39515         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39516         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39517         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39518         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39519         * sysdeps/i386/asm-syntax.h: Likewise.
39520         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39521         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39522         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39523         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39524         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39525         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39526         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39527         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39528         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39529         * sysdeps/powerpc/sysdep.h: Likewise.
39530         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39531         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39532
39533 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39534
39535         [BZ #411]
39536         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39537
39538 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39539
39540         * sysdeps/i386/sysdep.h: Include <features.h>.
39541         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39542         version.
39543
39544 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39545
39546         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39547         Define.
39548         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39549         LOAD_PIC_REG_STR.
39550
39551 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39552
39553         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39554         (SETUP_PIC_REG): Use GET_PC_THUNK.
39555         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39556         macro.
39557
39558 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39559
39560         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39561         for non-PIC compilation.
39562         (SETUP_PIC_REG): Add .p2align directive.
39563         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39564         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39565         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39566         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39567         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39568         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39569         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39570         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39571         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39572         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39573         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39574         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39575         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39576         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39577         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39578         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39579         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39580         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39581         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39582         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39583         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39584         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39585         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39586         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39587         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39588         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39589         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39590         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39591         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39592         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39593         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39594         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39595         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39596         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39597         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39598         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39599         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39600         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39601         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39602         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39603         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39604
39605 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39606
39607         * math/tst-CMPLX.c: Include <stdio.h>.
39608
39609 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39610
39611         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39612         float.
39613         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39614         * sysdeps/sparc/bits/mathdef.h: Likewise.
39615
39616 2012-01-31  Marek Polacek  <polacek@redhat.com>
39617
39618         * libio/libio.h: Don't define _PARAMS.
39619         * locale/programs/config.h: Don't define PARAMS.
39620         * stdlib/strtol_l.c: Likewise.
39621         (__strtol_l): Remove PARAMS from the prototype.
39622
39623 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39624
39625         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39626         names.  Just use the correct names.  Remove unnecessary wrapper
39627         functions.
39628         * malloc/arena.c: Likewise.
39629         * malloc/hooks.c: Likewise.
39630
39631         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39632         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39633         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39634
39635 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39636
39637         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39638         into tail calls.
39639         (update_get_addr): New function.
39640         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39641         GET_ADDR_MODULE parameter.
39642
39643 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39644
39645         * crypt/cert.c: Remove __STDC__ conditionals.
39646         * crypt/crypt-entry.c: Likewise.
39647         * crypt/crypt_util.c: Likewise.
39648         * libio/filedoalloc.c: Likewise.
39649         * libio/fileops.c: Likewise.
39650         * libio/genops.c: Likewise.
39651         * libio/iofclose.c: Likewise.
39652         * libio/iofdopen.c: Likewise.
39653         * libio/iofopen.c: Likewise.
39654         * libio/iofopen64.c: Likewise.
39655         * libio/iogetdelim.c: Likewise.
39656         * libio/iopopen.c: Likewise.
39657         * libio/obprintf.c: Likewise.
39658         * libio/oldfileops.c: Likewise.
39659         * libio/oldiofclose.c: Likewise.
39660         * libio/oldiofdopen.c: Likewise.
39661         * libio/oldiofopen.c: Likewise.
39662         * libio/oldiopopen.c: Likewise.
39663         * libio/wfiledoalloc.c: Likewise.
39664         * libio/wgenops.c: Likewise.
39665         * locale/programs/xmalloc.c: Likewise.
39666         * misc/syslog.c: Likewise.
39667         * stdio-common/xbug.c: Likewise.
39668         * string/memchr.c: Likewise.
39669         * string/memcmp.c: Likewise.
39670         * string/memrchr.c: Likewise.
39671         * string/rawmemchr.c: Likewise.
39672         * sysdeps/posix/getcwd.c: Likewise.
39673         * time/strftime_l.c: Likewise.
39674
39675 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39676
39677         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39678         * config.make.in (config-cflags-sse2avx): Define.
39679         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39680         Fix typo.
39681
39682 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39683
39684         * scripts/config.guess: Update from upstream config git repository.
39685         * scripts/config.sub: Likewise.
39686
39687 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39688
39689         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39690         (EM_NUM): Update.
39691         (R_TILEPRO_*, R_TILEGX_*): New macros.
39692
39693         * scripts/firstversions.awk: Fix bug in version range handling.
39694
39695         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39696
39697         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39698
39699         * include/sys/epoll.h: New file.
39700         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39701         libc_hidden_def.
39702
39703 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39704
39705         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39706         Avoid unnecessary __WORDSIZE == 64 test.
39707         (fmaxf): Use VEX format if possible.
39708         (fmax): Likewise.
39709         (fminf): Likewise.
39710         (fmin): Likewise.
39711
39712         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39713         * math/math_private.h: Remove libc_fegetround* and
39714         libc_fesetround*.
39715         * sysdeps/i386/configure.in: Check for -msse2avx.
39716         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39717         also if SSE2AVX is defined.
39718         Remove libc_fegetround* and libc_fesetround*.
39719         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39720         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39721         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39722         of HAS_YMM_USABLE.
39723         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39724         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39725         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39726         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39727         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39728
39729         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39730
39731 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39732
39733         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39734         size is not set.
39735         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39736
39737 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39738
39739         [BZ #13618]
39740         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39741         relocation.
39742         * Makeconfig (libm): Define.
39743         * elf/Makefile: Add rules to build and run tst-relsort1.
39744         * elf/tst-relsort1.c: New file.
39745         * elf/tst-relsort1mod1.c: New file.
39746         * elf/tst-relsort1mod2.c: New file.
39747
39748 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39749
39750         * math/s_ldexp.c: Remove __STDC__ conditionals.
39751         * math/s_ldexpf.c: Likewise.
39752         * math/s_ldexpl.c: Likewise.
39753         * math/s_nextafter.c: Likewise.
39754         * math/s_nexttowardf.c: Likewise.
39755         * math/s_significand.c: Likewise.
39756         * math/s_significandf.c: Likewise.
39757         * math/s_significandl.c: Likewise.
39758         * math/w_jnl.c: Likewise.
39759         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39760         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39761         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39762         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39763         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39764         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39765         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39766         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39767         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39768         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39769         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39770         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39771         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39772         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39773         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39774         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39775         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39776         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39777         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39778         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39779         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39780         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39781         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39782         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39783         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39784         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39785         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39786         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39787         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39788         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39789         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39790         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39791         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39792         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39793         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39794         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39795         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39796         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39797         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39798         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39799         * sysdeps/ieee754/k_standard.c: Likewise.
39800         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39801         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39802         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39803         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39804         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39805         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39806         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39807         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39808         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39809         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39810         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39811         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39812         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39813         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39814         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39815         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39816         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39817         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39818         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39819         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39820         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39821         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39822         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39823         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39824         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39825         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39826         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39827         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39828         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39829         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39830         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39831         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39832         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39833         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39834         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39835         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39836         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39837         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39838         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39839         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39840         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39841         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39842         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39843         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39844         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39845         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39846         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39847         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39848         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39849         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39850         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39851         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39852         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39853         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39854         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39855         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39856         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39857         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39858         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39859         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39860         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39861         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39862         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39863         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39864         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39865         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39866         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39867         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39868         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39869         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39870         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39871         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39872         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39873         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39874         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39875         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39876         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39877         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39878         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39879         * sysdeps/ieee754/s_matherr.c: Likewise.
39880         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39881         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39882         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39883         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39884
39885 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39886
39887         * crypt/md5.h: Remove __STDC__ conditionals.
39888         * libio/libioP.h: Likewise.
39889         * locale/programs/config.h: Likewise.
39890         * sysdeps/generic/sysdep.h: Likewise.
39891         * sysdeps/i386/asm-syntax.h: Likewise.
39892         * sysdeps/s390/asm-syntax.h: Likewise.
39893         * sysdeps/unix/sysdep.h: Likewise.
39894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39896
39897 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39898
39899         * libio/libio.h: Remove __STDC__ conditionals.
39900         * malloc/obstack.h: Likewise.
39901         * math/complex.h: Likewise.
39902         * math/math.h: Likewise.
39903         * sysdeps/generic/_G_config.h: Likewise.
39904         * sysdeps/gnu/_G_config.h: Likewise.
39905         * sysdeps/mach/hurd/_G_config.h: Likewise.
39906         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39907         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39908         * sysdeps/sparc/bits/mathdef.h: Likewise.
39909
39910 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39911
39912         [BZ #13583]
39913         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39914         Clean up HAS_* macros.
39915         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39916         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39917         possible.
39918         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39919         HAS_AVX.
39920         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39921         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39922         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39923         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39924         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39925
39926 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39927
39928         * elf/tst-unique3.cc (gets): Remove declaration.
39929         * elf/tst-unique3lib.cc (gets): Likewise.
39930         * elf/tst-unique3lib2.cc (gets): Likewise.
39931         * elf/tst-unique4.cc (gets): Likewise.
39932
39933 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39934
39935         * include/stdio.h: Add C++ protection.  Add gets declarations and
39936         definitions.
39937         * debug/tst-chk1.c: Don't declare gets here.
39938         * stdio-common/tst-gets.c: Likewise.
39939
39940 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39941
39942         * posix/glob: Remove directory.
39943
39944 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39945
39946         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39947
39948 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39949
39950         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39951         of the non-standard EPFNOSUPPORT.
39952
39953 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39954
39955         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39956         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39957         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39958
39959 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39960
39961         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39962
39963 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39964
39965         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39966         transient errors.
39967         * nscd/grpcache.c (cache_addgr): Likewise.
39968         * nscd/hstcache.c (cache_addhst): Likewise.
39969         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39970         * nscd/pwdcache.c (cache_addpw): Likewise.
39971         * nscd/servicescache.c (cache_addserv): Likewise.
39972
39973 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39974
39975         * malloc/malloc.c: Various cleanups.
39976         * malloc/hooks.c: Likewise.
39977
39978         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39979         * stdlib/bug-fmtmsg1.c: New file.
39980
39981         * stdlib/fmtmsg.c (init): Add missing unlock.
39982         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39983
39984 2012-01-12  Marek Polacek  <polacek@redhat.com>
39985
39986         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39987         and _GNU_SOURCE.
39988
39989 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39990
39991         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39992         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39993         macro to ensure uniqueness of label name.
39994         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39995         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39996
39997 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39998
39999         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
40000
40001         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
40002         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
40003         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
40004         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
40005
40006 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
40007
40008         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
40009
40010         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
40011         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
40012         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
40013
40014         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
40015
40016         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
40017         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
40018         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
40019         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
40020
40021         * math/bits/math-finite.h: Add ldexp support.
40022
40023 2012-01-10  Marek Polacek  <polacek@redhat.com>
40024
40025         * locale/programs/localedef.h (show_archive_content): Add noreturn
40026         attribute.
40027
40028 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
40029
40030         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
40031
40032 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40033
40034         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
40035
40036         * io/Makefile (headers): Add bits/poll2.h.
40037
40038 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
40039
40040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
40041         typo #include statement.
40042
40043 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40044
40045         * include/sys/cdefs.h: Define __attribute_alloc_size.
40046         * catgets/gencat.c: Add alloc_size attribute and apply consistently
40047         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
40048         * elf/pldd.c: Likewise.
40049         * iconv/iconv_charmap.c: Likewise.
40050         * iconv/iconvconfig.c: Likewise.
40051         * iconv/strtab.c: Likewise.
40052         * locale/programs/locale.c: Likewise.
40053         * locale/programs/localedef.h: Likewise.
40054         * locale/programs/simple-hash.c: Likewise.
40055         * nscd/nscd.h: Likewise.
40056         * nss/makedb.c: Likewise.
40057         * sysdeps/generic/ldconfig.h: Likewise.
40058         * locale/programs/localedef.c: Remove xmalloc prototype.
40059         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
40060
40061 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
40062
40063         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
40064         appropriate.
40065
40066 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40067
40068         * math/Makefile (tests): Add tst-CMPLX.
40069         * math/tst-CMPLX.c: New file.
40070
40071         * math/complex.h (CMPLXL): Fix typo.
40072
40073         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
40074         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
40075         GLIBC_2.16.
40076         * debug/tst-chk1.c: Add poll and ppoll tests.
40077         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
40078         * include/sys/poll.h: Add hidden proto for ppoll.
40079         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
40080         * sysdeps/mach/hurd/ppoll.c: Likewise.
40081         * io/ppoll.c: Likewise.
40082         * debug/poll_chk.c: New file.
40083         * debug/ppoll_chk.c: New file.
40084         * include/bits/poll2.h: New file.
40085         * io/bits/poll2.h: New file.
40086
40087         [BZ #1350]
40088         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
40089
40090         * configure.in: static is always set to yes.  Remove.
40091         * config.make.in: Don't set build-static.
40092         * Makeconfig: Remove use of build-static.
40093         * dlfcn/Makefile: Likewise.
40094         * elf/Makefile: Likewise.
40095         * math/Makefile: Likewise.
40096         * misc/Makefile: Likewise.
40097         * nptl/Makefile: Likewise.
40098         * sysdeps/mach/hurd/Makefile: Likewise.
40099
40100         * configure.in: PWD_P is not used anymore.
40101         * config.make.in: Remove PWD_P entry.
40102
40103         * configure.in: Remove last remnants of RANLIB.
40104         No need to check for signed size_t anymore.
40105         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40106         and IA-64.
40107         Remove __builtin_expect test because we require at least gcc 3.4.
40108         * aclocal.m4: Likewise.
40109
40110         * wcsmbs/mbrtoc16.c: Implement using towc function.
40111         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40112         * wcsmbs/wcsmbsload.c: Likewise.
40113         * iconv/gconv_simple.c: Likewise.
40114         * iconv/gconv_int.h: Likewise.
40115         * iconv/gconv_builtin.h: Likewise.
40116         * iconv/iconv_prog.c: Remove CHAR16 handling.
40117
40118         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40119
40120         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40121
40122         * configure.in: Remove --with-elf and --enable-bounded options.
40123         Dont set base_machine for ia64.  More non-ELF conditions removed.
40124         Remove testing and setting of leading underscore information.
40125         * config.make.in (build-bounded): Set to no.
40126         * config.h.in: Remove NO_UNDERSCORES entry.
40127         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40128         them.
40129         * csu/start.c: Remove !NO_UNDERSCORE code.
40130         * locale/localeinfo.h: Likewise.
40131         * sysdeps/generic/machine-gmon.h: Likewise.
40132         * sysdeps/generic/sysdep.h: Likewise.
40133         * sysdeps/i386/sysdep.h: Likewise.
40134         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40135         * sysdeps/mach/sysdep.h: Likewise.
40136         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40137         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40138         * sysdeps/sh/sysdep.h: Likewise.
40139         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40140         * sysdeps/unix/i386/sysdep.S: Likewise.
40141         * sysdeps/unix/sparc/start.c: Likewise.
40142         * sysdeps/unix/sparc/sysdep.S: Likewise.
40143         * sysdeps/unix/sparc/sysdep.h: Likewise.
40144         * sysdeps/unix/start.c: Likewise.
40145         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40146         * sysdeps/x86_64/sysdep.h: Likewise.
40147
40148 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40149
40150         [BZ #13553]
40151         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40152         for non-gcc.
40153         * argp/argp-fmtstream.h: Use const instead __const.
40154         * argp/argp.h: Likewise.
40155         * assert/assert.h: Likewise.
40156         * bits/fenv.h: Likewise.
40157         * bits/sched.h: Likewise.
40158         * bits/sigset.h: Likewise.
40159         * bits/sigthread.h: Likewise.
40160         * catgets/nl_types.h: Likewise.
40161         * conform/data/pthread.h-data: Likewise.
40162         * crypt/crypt-private.h: Likewise.
40163         * crypt/crypt.h: Likewise.
40164         * crypt/crypt_util.c: Likewise.
40165         * ctype/ctype.h: Likewise.
40166         * debug/execinfo.h: Likewise.
40167         * debug/mbsnrtowcs_chk.c: Likewise.
40168         * debug/mbsrtowcs_chk.c: Likewise.
40169         * debug/wcsnrtombs_chk.c: Likewise.
40170         * debug/wcsrtombs_chk.c: Likewise.
40171         * debug/wcstombs_chk.c: Likewise.
40172         * dirent/dirent.h: Likewise.
40173         * dlfcn/dlfcn.h: Likewise.
40174         * elf/neededtest4.c: Likewise.
40175         * grp/grp.h: Likewise.
40176         * gshadow/gshadow.h: Likewise.
40177         * iconv/gconv.h: Likewise.
40178         * iconv/gconv_int.h: Likewise.
40179         * iconv/gconv_simple.c: Likewise.
40180         * iconv/iconv.h: Likewise.
40181         * iconv/loop.c: Likewise.
40182         * iconv/skeleton.c: Likewise.
40183         * include/aio.h: Likewise.
40184         * include/aliases.h: Likewise.
40185         * include/argz.h: Likewise.
40186         * include/arpa/inet.h: Likewise.
40187         * include/assert.h: Likewise.
40188         * include/dirent.h: Likewise.
40189         * include/dlfcn.h: Likewise.
40190         * include/execinfo.h: Likewise.
40191         * include/fcntl.h: Likewise.
40192         * include/fenv.h: Likewise.
40193         * include/glob.h: Likewise.
40194         * include/grp.h: Likewise.
40195         * include/libintl.h: Likewise.
40196         * include/mntent.h: Likewise.
40197         * include/netdb.h: Likewise.
40198         * include/pwd.h: Likewise.
40199         * include/rpc/netdb.h: Likewise.
40200         * include/sched.h: Likewise.
40201         * include/search.h: Likewise.
40202         * include/shadow.h: Likewise.
40203         * include/signal.h: Likewise.
40204         * include/stdio.h: Likewise.
40205         * include/stdlib.h: Likewise.
40206         * include/string.h: Likewise.
40207         * include/sys/socket.h: Likewise.
40208         * include/sys/stat.h: Likewise.
40209         * include/sys/statfs.h: Likewise.
40210         * include/sys/statvfs.h: Likewise.
40211         * include/sys/syslog.h: Likewise.
40212         * include/sys/time.h: Likewise.
40213         * include/sys/uio.h: Likewise.
40214         * include/time.h: Likewise.
40215         * include/unistd.h: Likewise.
40216         * include/utmp.h: Likewise.
40217         * include/wchar.h: Likewise.
40218         * include/wctype.h: Likewise.
40219         * inet/aliases.h: Likewise.
40220         * inet/arpa/inet.h: Likewise.
40221         * inet/netinet/ether.h: Likewise.
40222         * inet/netinet/in.h: Likewise.
40223         * intl/libintl.h: Likewise.
40224         * io/bits/fcntl2.h: Likewise.
40225         * io/fcntl.h: Likewise.
40226         * io/ftw.h: Likewise.
40227         * io/sys/poll.h: Likewise.
40228         * io/sys/stat.h: Likewise.
40229         * io/sys/statfs.h: Likewise.
40230         * io/sys/statvfs.h: Likewise.
40231         * io/utime.h: Likewise.
40232         * libio/bits/stdio.h: Likewise.
40233         * libio/bits/stdio2.h: Likewise.
40234         * libio/libio.h: Likewise.
40235         * libio/libioP.h: Likewise.
40236         * libio/stdio.h: Likewise.
40237         * locale/lc-ctype.c: Likewise.
40238         * locale/locale.h: Likewise.
40239         * login/utmp.h: Likewise.
40240         * malloc/arena.c: Likewise.
40241         * malloc/malloc.c: Likewise.
40242         * malloc/malloc.h: Likewise.
40243         * malloc/mcheck.c: Likewise.
40244         * malloc/mtrace.c: Likewise.
40245         * math/bits/mathcalls.h: Likewise.
40246         * math/fenv.h: Likewise.
40247         * math/math_private.h: Likewise.
40248         * misc/bits/error.h: Likewise.
40249         * misc/bits/syslog.h: Likewise.
40250         * misc/err.h: Likewise.
40251         * misc/error.h: Likewise.
40252         * misc/fstab.h: Likewise.
40253         * misc/mntent.h: Likewise.
40254         * misc/regexp.h: Likewise.
40255         * misc/search.h: Likewise.
40256         * misc/sgtty.h: Likewise.
40257         * misc/sys/mman.h: Likewise.
40258         * misc/sys/syslog.h: Likewise.
40259         * misc/sys/uio.h: Likewise.
40260         * misc/sys/xattr.h: Likewise.
40261         * misc/ttyent.h: Likewise.
40262         * nis/rpcsvc/ypclnt.h: Likewise.
40263         * nss/nss.h: Likewise.
40264         * posix/bits/unistd.h: Likewise.
40265         * posix/fnmatch.h: Likewise.
40266         * posix/glob.h: Likewise.
40267         * posix/sched.h: Likewise.
40268         * posix/spawn.h: Likewise.
40269         * posix/sys/wait.h: Likewise.
40270         * posix/unistd.h: Likewise.
40271         * posix/wordexp.h: Likewise.
40272         * pwd/pwd.h: Likewise.
40273         * resolv/netdb.h: Likewise.
40274         * resource/sys/resource.h: Likewise.
40275         * rt/aio.h: Likewise.
40276         * rt/bits/mqueue2.h: Likewise.
40277         * rt/mqueue.h: Likewise.
40278         * shadow/shadow.h: Likewise.
40279         * signal/signal.h: Likewise.
40280         * socket/send.c: Likewise.
40281         * socket/sendto.c: Likewise.
40282         * socket/sys/socket.h: Likewise.
40283         * stdio-common/printf.h: Likewise.
40284         * stdlib/bits/stdlib.h: Likewise.
40285         * stdlib/fmtmsg.h: Likewise.
40286         * stdlib/monetary.h: Likewise.
40287         * stdlib/stdlib.h: Likewise.
40288         * stdlib/ucontext.h: Likewise.
40289         * streams/stropts.h: Likewise.
40290         * string/argz.h: Likewise.
40291         * string/bits/string2.h: Likewise.
40292         * string/string.h: Likewise.
40293         * string/strings.h: Likewise.
40294         * sunrpc/rpc/auth.h: Likewise.
40295         * sunrpc/rpc/auth_des.h: Likewise.
40296         * sunrpc/rpc/clnt.h: Likewise.
40297         * sunrpc/rpc/netdb.h: Likewise.
40298         * sunrpc/rpc/pmap_clnt.h: Likewise.
40299         * sunrpc/rpc/xdr.h: Likewise.
40300         * sysdeps/generic/inttypes.h: Likewise.
40301         * sysdeps/generic/net/if.h: Likewise.
40302         * sysdeps/generic/sys/swap.h: Likewise.
40303         * sysdeps/gnu/net/if.h: Likewise.
40304         * sysdeps/gnu/utmpx.h: Likewise.
40305         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40306         * sysdeps/i386/i486/bits/string.h: Likewise.
40307         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40308         * sysdeps/s390/bits/string.h: Likewise.
40309         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40310         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40311         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40312         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40313         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40314         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40315         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40316         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40317         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40318         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40319         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40320         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40321         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40322         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40323         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40324         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40325         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40326         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40327         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40328         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40329         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40330         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40331         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40332         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40333         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40334         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40335         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40336         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40337         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40338         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40339         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40340         * sysvipc/sys/ipc.h: Likewise.
40341         * sysvipc/sys/msg.h: Likewise.
40342         * sysvipc/sys/sem.h: Likewise.
40343         * sysvipc/sys/shm.h: Likewise.
40344         * termios/termios.h: Likewise.
40345         * time/sys/time.h: Likewise.
40346         * time/time.h: Likewise.
40347         * wcsmbs/bits/wchar2.h: Likewise.
40348         * wcsmbs/uchar.h: Likewise.
40349         * wcsmbs/wchar.h: Likewise.
40350         * wctype/wctype.h: Likewise.
40351
40352         [BZ #13551]
40353         * Makeconfig: Remove all but ELF support including AIX support.
40354         * Makerules: Likewise.
40355         * config.h.in: Likewise.
40356         * config.make.in: Likewise.
40357         * configure: Likewise.
40358         * configure.in: Likewise.
40359         * csu/Makefile: Likewise.
40360         * csu/version.c: Likewise.
40361         * debug/Makefile: Likewise.
40362         * dlfcn/Makefile: Likewise.
40363         * elf/Makefile: Likewise.
40364         * extra-lib.mk: Likewise.
40365         * iconv/Makefile: Likewise.
40366         * include/libc-symbols.h: Likewise.
40367         * include/shlib-compat.h: Likewise.
40368         * resolv/Makefile: Likewise.
40369         * resolv/res_libc.c: Likewise.
40370         * rt/Makefile: Likewise.
40371         * sysdeps/i386/asm-syntax.h: Likewise.
40372         * sysdeps/i386/sysdep.h: Likewise.
40373         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40374         * sysdeps/mach/sysdep.h: Likewise.
40375         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40376         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40377         * sysdeps/s390/asm-syntax.h: Likewise.
40378         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40379         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40380         * sysdeps/sh/sysdep.h: Likewise.
40381         * sysdeps/unix/sparc/sysdep.h: Likewise.
40382         * sysdeps/wordsize-32/divdi3.c: Likewise.
40383         * sysdeps/x86_64/sysdep.h: Likewise.
40384
40385         * argp/Versions: Remove _argp_unlock_xxx.
40386
40387         [BZ #13559]
40388         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40389         * abilist/libBrokenLocale.abilist: Likewise.
40390         * abilist/libanl.abilist: Likewise.
40391         * abilist/libc.abilist: Likewise.
40392         * abilist/libcrypt.abilist: Likewise.
40393         * abilist/libdl.abilist: Likewise.
40394         * abilist/libm.abilist: Likewise.
40395         * abilist/libnsl.abilist: Likewise.
40396         * abilist/libpthread.abilist: Likewise.
40397         * abilist/libresolv.abilist: Likewise.
40398         * abilist/librt.abilist: Likewise.
40399         * abilist/libthread_db.abilist: Likewise.
40400         * abilist/libutil.abilist: Likewise.
40401         * abilist/libnss_db.abilist: New file.
40402
40403         * scripts/abilist.awk: Add support for indirect functions.
40404
40405         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40406
40407         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40408
40409         * shlib-versions: Remove entries for ports architectures.
40410
40411         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40412         files in ports.
40413         * elf/stackguard-macros.h: Remove support for IA-64.
40414         * elf/tst-auditmod1.c: Likewise.
40415         * sysdeps/generic/ldsodefs.h: Likewise.
40416
40417         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40418         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40419         configure files.
40420
40421         [BZ #13552]
40422         * configure.in: Remove --enable-omitfp support.
40423         * FAQ.in: Adjust.
40424         * config.make.in: Likewise.
40425         * Makeconfig: Likewise.
40426         * manual/install.texi: Likewise.
40427
40428         In case anyone cares, the IA-64 architecture could move to ports.
40429         * sysdeps/ia64/*: Removed.
40430         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40431         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40432
40433         [BZ #13555]
40434         * configure.in: Remove entries for unsupported architectures.
40435
40436         [BZ #13533]
40437         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40438         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40439         routines.
40440         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40441         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40442         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
40443         fall back to using wcrtomb.
40444         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
40445         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
40446         renaming.
40447         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
40448         * wcsmbs/tst-c16c32-1.c: New file.
40449
40450         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
40451         local variable.
40452
40453         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
40454
40455         * elf/tst-unique3.cc: Add explicit declaration of gets.
40456         * elf/tst-unique3lib.cc: Likewise.
40457         * elf/tst-unique3lib2.cc: Likewise.
40458         * elf/tst-unique4.cc: Likewise.
40459
40460         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
40461
40462 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
40463
40464         [BZ #13566]
40465         * assert/assert.h (static_assert): Don't define for C++.
40466         * libio/stdio.h (gets): Do declare for C++ <= C++11.
40467         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
40468
40469 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
40470
40471         * iconv/loop.c (single loop): Fix assertion in storing of
40472         remaining bytes.
40473
40474         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
40475
40476 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
40477
40478         * posix/getconf.c: Update copyright year.
40479         * nss/getent.c: Likewise.
40480         * nss/makedb.c: Likewise.
40481         * iconv/iconvconfig.c: Likewise.
40482         * iconv/iconv_prog.c: Likewise.
40483         * elf/ldconfig.c: Likewise.
40484         * elf/pldd.c: Likewise.
40485         * elf/sotruss.ksh: Likewise.
40486         * catgets/gencat.c: Likewise.
40487         * csu/version.c: Likewise.
40488         * elf/ldd.bash.in: Likewise.
40489         * elf/sprof.c (print_version): Likewise.
40490         * locale/programs/locale.c: Likewise.
40491         * locale/programs/localedef.c: Likewise.
40492         * login/programs/pt_chown.c: Likewise.
40493         * nscd/nscd.c (print_version): Likewise.
40494         * debug/xtrace.sh: Likewise.
40495         * malloc/memusage.sh: Likewise.
40496         * malloc/mtrace.pl: Likewise.
40497         * debug/catchsegv.sh: Likewise.
40498
40499 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40500
40501         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40502         pure attribute.
40503
40504 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40505
40506         [BZ #13533]
40507         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40508         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40509         transformations.
40510         * iconv/gconv_int.h: Likewise.
40511         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40512         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40513         from libc for GLIBC_2.16.
40514         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40515         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40516         * wcsmbs/uchar.h: Really define mbstate_t.
40517         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40518         * wcsmbs/c16rtomb.c: New file.
40519         * wcsmbs/mbrtoc16.c: New file.
40520         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40521         for C/POSIX locale.
40522         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40523         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40524
40525         * wcsmbs/wchar.h: Add missing __restrict.
40526
40527 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40528
40529         [BZ #13532]
40530         * time/Makefile (routines): Add timespec_get.
40531         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40532         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40533         timespec for ISO C11.
40534         * time/timespec_get.c: New file.
40535         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40536         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40537
40538         [BZ #13531]
40539         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40540         * stdlib/stdlib.h: Declare aligned_alloc.
40541         * Versions.def: Add GLIBC_2.16 for libc.
40542         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40543
40544         [BZ 13527]
40545         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40546         ISO C11.
40547
40548         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40549         code.
40550
40551         [BZ #13528]
40552         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40553
40554         [BZ #13529]
40555         * assert/assert.h (static_assert): Define.
40556
40557         * version.h: Update for 2.16 development version.
40558
40559         [BZ #13526]
40560         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40561         _ISOC11_SOURCE.
40562
40563         * version.h (RELEASE): Bump for 2.15 release.
40564         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40565
40566         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40567         Patch by Marek Polacek <mpolacek@redhat.com>.
40568
40569         * bits/byteswap.h: Protect long long constants with __extension__.
40570         * sysdeps/i386/bits/byteswap.h: Likewise.
40571         * sysdeps/ia64/bits/byteswap.h: Likewise.
40572         * sysdeps/s390/bits/byteswap.h: Likewise.
40573         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40574
40575 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40576
40577         [BZ #13540]
40578         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40579         destination buffer.
40580         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40581
40582 2011-12-23  Marek Polacek  <polacek@redhat.com>
40583
40584         * elf/dl-addr.c (determine_info): Add inline keyword.
40585         * elf/tst-auditmod4b.c (check_avx): Likewise.
40586         * elf/tst-auditmod6b.c (check_avx): Likewise.
40587         * elf/tst-auditmod6c.c (check_avx): Likewise.
40588         * elf/tst-auditmod7b.c (check_avx): Likewise.
40589
40590 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40591
40592         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40593         !__SSE_MATH__.
40594
40595 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40596
40597         [BZ #13540]
40598         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40599         processing for last bytes.
40600
40601 2011-08-06  Bruno Haible  <bruno@clisp.org>
40602
40603         [BZ #13061]
40604         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40605         U+0385, not to U+1FEE.
40606
40607         [BZ #13062]
40608         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40609         entry for U+00A5 U+0301.
40610
40611 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40612
40613         [BZ #13166]
40614         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40615         buffer for the output is too small.
40616
40617         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40618         optimization.
40619
40620         [BZ #13185]
40621         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40622         SSE flags if possible.
40623
40624 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40625
40626         [BZ #13540]
40627         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40628         processing for last bytes.
40629
40630 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40631
40632         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40633         (syscall-list-default-options, syscall-list-default-condition)
40634         (syscall-list-includes): Define.
40635         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40636         list of ABIs and options and #if conditions for each ABI.  Do not
40637         handle common syscalls between ABIs specially.
40638         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40639         Remove.
40640         (syscall-list-variants, syscall-list-32bit-options)
40641         (syscall-list-32bit-condition, syscall-list-64bit-options)
40642         (syscall-list-64bit-condition): Define.
40643         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40644         (syscall-list-variants, syscall-list-32bit-options)
40645         (syscall-list-32bit-condition, syscall-list-64bit-options)
40646         (syscall-list-64bit-condition): Define.
40647         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40648         Remove.
40649         (syscall-list-variants, syscall-list-32bit-options)
40650         (syscall-list-32bit-condition, syscall-list-64bit-options)
40651         (syscall-list-64bit-condition): Define.
40652         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40653         Remove.
40654         (syscall-list-variants, syscall-list-32bit-options)
40655         (syscall-list-32bit-condition, syscall-list-64bit-options)
40656         (syscall-list-64bit-condition): Define.
40657
40658 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40659
40660         * locale/iso-639.def: Add brx entry.
40661
40662         [BZ #13328]
40663         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40664         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40665
40666         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40667         __feraiseexcept_renamed.
40668
40669 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40670
40671         [BZ #13538]
40672         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40673         EPOLLET with unsigned values.
40674         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40675         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40676
40677         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40678         to large cancellation.
40679         * math/s_cacoshf.c: Likewise.
40680         * math/s_cacoshl.c: Likewise.
40681
40682 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40683
40684         [BZ #13305]
40685         [BZ #12786]
40686         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40687         * math/s_cacoshf.c: Likewise.
40688         * math/s_cacoshl.c: Likewise.
40689
40690 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40691
40692         [BZ #13439]
40693         * iconv/gconv.h: Define __GCONV_SWAP.
40694         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40695         * iconvdata/utf-16.c: Likewise.
40696         * iconvdata/utf-32.c: Likewise.
40697
40698 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40699
40700         [BZ #13524]
40701         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40702         numerator after shifting it by one limb.
40703
40704 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40705
40706         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40707         under [__USE_EXTERN_INLINES].
40708
40709 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40710
40711         [BZ #13446]
40712         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40713
40714 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40715
40716         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40717         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40718         optimized code.
40719         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40720         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40721         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40722         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40723         for strncasecmp/strncasecmp_l compilation.
40724         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40725         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40726
40727 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40728
40729         [BZ #13484]
40730         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40731         of __asm__.
40732
40733 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40734
40735         [BZ #13506]
40736         * time/tzfile.c (__tzfile_read): Check values from file header.
40737
40738 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40739
40740         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40741         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40742         * powerpc/powerpc32/dl-start.S: Likewise.
40743         * powerpc/powerpc32/elf/start.S: Likewise.
40744         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40745         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40746         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40747         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40748         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40749         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40750         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40751         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40752         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40753         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40754         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40755         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40756         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40757         * powerpc/powerpc32/memset.S: Likewise.
40758         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40759         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40760         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40761         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40762         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40763         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40764         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40765         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40766         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40767         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40768         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40769         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40770         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40771
40772 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40773
40774         * math/libm-test.inc: Added more nearbyint tests.
40775         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40776         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40777         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40778         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40779
40780 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40781
40782         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40783         FD_CLOEXEC.
40784
40785 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40786
40787         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40788         Add wcscpy-ssse3 wcscpy-c.
40789         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40790         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40791         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40792         * sysdeps/x86_64/wcschr.S: New file.
40793         * sysdeps/x86_64/wcsrchr.S: New file.
40794         * string/test-strcmp.c: Remove checking of wcscmp function for
40795         wrong alignments.
40796         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40797         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40798         wcsrchr-sse2 wcsrchr-c.
40799         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40800         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40801         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40802         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40803         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40804         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40805         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40806         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40807         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40808         * wcsmbc/wcschr.c (WCSCHR): New macro.
40809
40810 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40811
40812         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40813         * wcsmbs/test-wcsrchr.c: New file.
40814         * string/test-strrchr.c: Add wcsrchr support.
40815         (WIDE): New macro.
40816         * wcsmbs/test-wcscpy.c: New file.
40817         * string/test-strcpy.c: Add wcscpy support.
40818         (WIDE): New macro.
40819
40820 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40821
40822         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40823         the inner loop.
40824
40825 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40826
40827         [BZ #13472]
40828         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40829
40830 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40831
40832         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40833         Minor optimizations.
40834
40835         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40836         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40837         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40838
40839 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40840
40841         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40842         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40843         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40844         for gcc to avoid warnings.
40845         * inet/Makefile (tests): Add tst-checks.
40846         * inet/tst-checks.c: New file.
40847
40848         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40849         warning.
40850
40851         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40852         __wmemcmp_sse2.
40853
40854         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40855         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40856
40857         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40858
40859 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40860
40861         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40862         problem.
40863
40864         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40865
40866 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40867
40868         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40869         conditional on GCC version.
40870         (__arch_compare_and_exchange_val_8_acq)
40871         (__arch_compare_and_exchange_val_16_acq)
40872         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40873         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40874         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40875
40876 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40877
40878         * sysdeps/sh/backtrace.c: New file.
40879
40880 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40881
40882         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40883         parenthesis.
40884
40885 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40886
40887         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40888         falling back to utime.
40889
40890 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40891
40892         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40893         expectations for float.
40894
40895 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40896
40897         * locale/weight.h (findidx): Add parameter len.
40898         * locale/weightwc.h (findidx): Likewise.
40899         * posix/fnmatch_loop.c (FCT): Adjust caller.
40900         * posix/regcomp.c (build_equiv_class): Likewise.
40901         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40902         * posix/regexec.c (check_node_accept_bytes): Likewise.
40903         * string/strcoll_l.c (STRCOLL): Likewise.
40904         * string/strxfrm_l.c (STRXFRM): Likewise.
40905
40906 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40907
40908         * Makefile.in: Remove CVSOPT handling.
40909         * configure.in: Remove use of AC_REVISION.
40910         * iconvdata/Makefile (distribute): No need to filter out CVS.
40911         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40912         handling.
40913
40914 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40915
40916         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40917         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40918         [USE_AS_STRNCASECMP_L]: Likewise.
40919         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40920         NO_TLS_DIRECT_SEG_REFS.
40921         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40922         Fix argument offsets for non-PIC.
40923         [USE_AS_STRNCASECMP_L]: Likewise.
40924         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40925         NO_TLS_DIRECT_SEG_REFS.
40926
40927 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40928
40929         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40930         O_CLOEXEC.
40931         * locale/loadlocale.c (_nl_load_locale): Likewise.
40932
40933 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40934
40935         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40936         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40937         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40938         (SYSCALL_GETTIME): Set errno on error.
40939
40940         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40941         count references to noai6ai_cached.
40942
40943 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40944
40945         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40946
40947         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40948         FD_CLOEXEC for /proc/self/maps.
40949
40950         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40951         FD_CLOEXEC for /proc/meminfo.
40952
40953         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40954         gai.conf.
40955
40956         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40957         FD_CLOEXEC for given file.
40958
40959         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40960
40961         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40962         FD_CLOEXEC for /etc/hosts.
40963         (_gethtent): Likewise.
40964
40965         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40966
40967         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40968         cancellation and set FD_CLOEXEC for /etc/netgroup.
40969
40970         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40971         reading /etc/publickey.
40972
40973         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40974         allow cancellation when reading /etc/group.
40975
40976         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40977         cancellation.
40978         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40979
40980         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40981         when using data file.
40982
40983         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40984
40985         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40986         (write_nis_obj): Use "c" and "e" in fopen.
40987
40988         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40989
40990         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40991
40992         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40993
40994         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40995
40996         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40997         locale.alias.
40998
40999         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
41000
41001         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
41002
41003         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
41004
41005         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
41006         file parsing and set FD_CLOEXEC.
41007
41008 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41009
41010         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
41011
41012 2011-11-14  Andreas Schwab  <schwab@redhat.com>
41013
41014         * malloc/arena.c (arena_get2): Don't call reused_arena when
41015         _int_new_arena failed.
41016
41017 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41018
41019         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
41020         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
41021         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
41022         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
41023         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
41024         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
41025         to compile strcasecmp and strncasecmp.
41026         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
41027         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
41028
41029         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
41030
41031 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
41032
41033         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
41034         locale-defines.sym to gen-as-const-headers.
41035         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
41036         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
41037         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
41038         to compile strcasecmp and strncasecmp.
41039         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
41040         strcasecmp_l and strncasecmp_l.
41041         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
41042         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
41043         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
41044         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
41045         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
41046         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
41047         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
41048         * sysdeps/i386/i686/multiarch/strncase.S: New file.
41049         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
41050         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
41051         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
41052
41053 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
41054
41055         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
41056         result of SYSDEP_GETTIME_CPU to retval.
41057         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
41058         parameter list to macro.  Remove trailing semicolon.  Adjust users.
41059
41060         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
41061         variable.
41062
41063         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
41064         mantissa words.
41065         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
41066
41067         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
41068         from unused variable.
41069
41070         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
41071         DWARF definitions.
41072         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
41073         for assembling.
41074
41075         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
41076         over namespaces.
41077
41078         * sunrpc/rpc_prot.c (rejected): Fix case value.
41079
41080         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
41081         unsigned long long int to avoid warnings in shift.
41082
41083         * posix/regex_internal.c (re_string_reconstruct): Actually use result
41084         of use of trans.
41085         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
41086         variable tmp.
41087
41088         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
41089         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
41090         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
41091
41092         * nis/nis_table.c (nis_list): Use variable of correct type for
41093         result of __follow_path call.
41094
41095 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41096
41097         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
41098         of math functions ceil, trunc, floor, round, and sqrt, when
41099         avaliable on the platform.
41100         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41101         name clash.
41102         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41103         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41104         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41105
41106 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41107
41108         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41109         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41110
41111 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41112
41113         * include/unistd.h: Fix __readlink return type.
41114         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41115
41116 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41117
41118         * stdlib/ucontext.h: Undo last change for makecontext.
41119
41120 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41121
41122         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41123
41124         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41125         * setjmp/setjmp.h: Mark functions as non-leaf.
41126         * setjmp/bits/setjmp2.h: Likewise.
41127         * stdlib/ucontext.h: Likewise.
41128
41129 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41130
41131         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41132         (reused_arena): Don't check arena limit.
41133         (arena_get2): Atomically check arena limit.
41134
41135 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41136
41137         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41138         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41139
41140         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41141         instructions.
41142
41143 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41144
41145         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41146         handler when locking.
41147
41148         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41149         Fix size of allocated buffer.
41150
41151 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41152
41153         [BZ #10103]
41154         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41155         declarations for long double functions.
41156         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41157
41158         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41159
41160 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41161
41162         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41163         installed.
41164
41165         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41166         is disabled.
41167
41168 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41169
41170         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41171
41172 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41173
41174         * include/alloca.h (stackinfo_alloca_round): Define.
41175         (extend_alloca): Use it.
41176         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41177         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41178         here.
41179
41180         * scripts/check-local-headers.sh: Ignore libaudit.h.
41181
41182         * nscd/Makefile (extra-objs): Make recursively expanded.
41183
41184 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41185
41186         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41187         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41188
41189         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41190         * posix/tst-rfc3484-2.c: Likewise.
41191         * posix/tst-rfc3484-3.c: Likewise.
41192
41193         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41194         process_vm_writev.
41195         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41196         process_vm_writev.
41197         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41198         process_vm_writev from libc using GLIBC_2.15 version.
41199
41200         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41201
41202 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41203
41204         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41205         stack usage.
41206
41207 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41208
41209         [BZ #13367]
41210         * nss/getent.c (initgroups_keys): Show error message in case no group
41211         names are given.
41212
41213         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41214         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41215         __bump_nl_timestamp.
41216         * nscd/connections (nscd_init): When host database is served open
41217         netlink socket and request notification about configuration changes.
41218         (main_loop_poll): Track netlink file descriptor and bump timestamp
41219         in case data becomes available.
41220         (main_loop_epoll): Likewise.
41221         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41222         (database_pers_head): Add extra_data fileds.
41223         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41224         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41225         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41226         Adjust caller.
41227         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41228         in6ai data, call __free_in6ai.
41229         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41230         Add -DHAVE_NETLINK.
41231         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41232         interface information.  Reuse previous data if netlink timestamp
41233         is not changed.
41234         (__bump_nl_timestamp): New function.
41235         (__free_in6ai): New function.
41236
41237 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41238
41239         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41240         close_not_cancel_no_status here.
41241         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41242
41243 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41244
41245         [BZ #13276]
41246         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41247         return value.
41248
41249         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41250         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41251         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41252
41253 2011-07-03  Andreas Jaeger  <aj@suse.de>
41254
41255         [BZ #10709]
41256         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41257         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41258         * math/libm-test.inc (sin_test): Add test case.
41259
41260 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41261
41262         [BZ #13337]
41263         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41264         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41265
41266         * elf/chroot_canon.c (chroot_canon): Cleanups.
41267
41268         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41269
41270         [BZ #13335]
41271         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41272         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41273
41274         * string/test-strchr.c: Make usable for strchrnul testing.
41275         * string/test-strchrnul.c: New file.
41276         * string/Makefile (strop-tests): Add strchrnul.
41277
41278         * po/it.po: Update from translation team.
41279         * po/es.po: Likewise.
41280
41281 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41282
41283         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41284         the three constants needed as parameters.  Drop the others.
41285         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41286         __m128i_strloadu_tolower.
41287         Create and initialize variable zero and use it in all the places
41288         where _mm_setzero_si128 was used.
41289
41290         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41291         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41292         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41293         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41294         anymore.
41295         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41296         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41297         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41298         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41299         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41300         __mpranred, __mptan.
41301         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41302         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41303         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41304         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41305         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41306         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41307         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41308         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41309         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41310
41311 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41312
41313         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41314         redefine if SHARED.
41315         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41316
41317         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41318         wide char related routines to wcsmbs subdir.
41319
41320 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41321
41322         [BZ #13344]
41323         * misc/sys/cdefs.h (__THROWNL): Define.
41324         * posix/unistd.h: Use __THREADNL instead of __THREAD
41325         for memory synchronization functions.
41326
41327 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41328
41329         [BZ #13349]
41330         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41331         doesn't exist.
41332         * manual/stdio.texi (Obstack Streams): Node removed.
41333
41334 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41335
41336         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41337         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41338         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41339
41340         * math/math_private.h (math_force_eval): Allow non-addressable
41341         arguments.
41342         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41343
41344 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41345
41346         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41347         file is not needed.
41348
41349         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41350         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41351         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41352         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41353         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41354         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41355         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41356         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41357         Add AVX variants.
41358         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41359         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41360         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41361         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41362         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41363         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41364         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41365         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41366         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41367         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41368         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41369         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41370         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41371         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41372         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41373         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41374         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41375         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41376         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41377
41378         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41379         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41380
41381         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41382         place.  Use VEX encoding when compiling for AVX.
41383
41384 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41385
41386         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41387         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41388
41389         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41390
41391 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41392
41393         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41394         useless if() expression.
41395         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41396         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41397         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41398         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41399         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41400         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41401         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41402         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41403         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41404         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41405         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41406         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41407         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41408         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41409         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41410         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41411         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41412         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41413         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41414
41415         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41416
41417 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41418
41419         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41420         condition.
41421         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41422
41423 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41424
41425         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41426         .text section.  Avoid duplicate constants.
41427         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41428         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41429         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41430         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41431         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41432         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41433         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41434         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41435         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41436         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41437         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41438         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41439         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41440         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41441         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41442         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
41443         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
41444         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
41445         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
41446         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41447         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
41448         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
41449         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
41450         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
41451         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
41452         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
41453         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
41454         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
41455         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
41456         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
41457         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
41458         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
41459         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
41460         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
41461         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
41462         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
41463         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
41464         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
41465         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
41466         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
41467         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
41468         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
41469         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
41470         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
41471         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
41472
41473 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
41474
41475         * sysdeps/x86_64/dla.h: Move to ...
41476         * sysdeps/x86_64/fpu/dla.h: ...here.
41477         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
41478         situations.  Use __builtin_fma only for gcc 4.6 and up.
41479
41480         * config.make.in: Add have-mfma4 entry.
41481         * configure.in: Substitute libc_cv_cc_fma4.
41482         * math/Makefile (dbl-only-routines): Add sincostab.
41483         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
41484         Use __sincostab not sincos.
41485         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41486         name is a macro.
41487         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41488         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41489         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41490         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41491         using __copysign.
41492         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41493         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41494         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41495         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41496         and __inv.
41497         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41498         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41499         __copysign.
41500         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41501         define aliases when function name is a macro.
41502         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41503         sysdeps/ieee754/dbl-64/sincos.tbl.
41504         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41505         fma4-enabled routines.
41506         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41507         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41508         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41509         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41510         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41511         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41512         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41513         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41514         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41515         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41516         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41517         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41518         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41519         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41520         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41521         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41522         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41523         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41524         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41525         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41526         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41527         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41528         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41529         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41530         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41531         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41532         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41533         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41534         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41535         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41536
41537         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41538         rename.
41539         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41540         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41541         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41542         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41543         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41544         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41545         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41546         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41547
41548 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41549
41550         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41551
41552 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41553
41554         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41555
41556         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41557         prediction.
41558         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41559
41560         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41561         Remove unused variable magic_bits.
41562         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41563
41564         * string/strnlen.c: Define and use STRNLEN macro.
41565         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41566         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41567         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41568         * wcsmbs/wcslen.c: Define and use WCSLEN.
41569         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41570         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41571         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41572         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41573         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41574         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41575         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41576
41577 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41578
41579         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41580         strnlen-sse2-no-bsf.
41581         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41582         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41583         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41584         Add strnlen support.
41585         (USE_AS_STRNLEN): New macro.
41586         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41587         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41588         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41589         * sysdeps/x86_64/wcslen.S: New file.
41590
41591 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41592
41593         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41594         XMM-moves are used for copying on small sizes.
41595
41596 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41597
41598         * wcsmbs/Makefile (strop-tests): Add wcschr.
41599         * wcsmbs/test-wcschr.c: New file.
41600         * string/test-strchr.c: Update.
41601         Add wcschr support.
41602         (WIDE): New macro.
41603
41604 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41605
41606         * wcsmbs/Makefile (strop-tests): Add wcslen.
41607         * wcsmbs/test-wcslen.c: New file.
41608         * string/test-strlen.c: Update.
41609         Add wcslen support.
41610         (WIDE): New macro.
41611
41612 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41613
41614         * po/it.po: Update from translation team.
41615
41616 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41617
41618         * sysdeps/x86_64/wcscmp.S: Update.
41619         Fix wrong comparison semantics.
41620         wcscmp shall use signed comparison not unsigned.
41621         Don't use substraction to avoid overflow bug.
41622         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41623         * wcsmbc/wcscmp.c: Likewise.
41624         * string/test-strcmp.c: Likewise.
41625         Add new tests to check cases with negative values.
41626
41627 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41628
41629         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41630         * sysdeps/x86_64/dla.h: ...here.  New file.
41631         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41632         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41633         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41634         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41635         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41636         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41637         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41638         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41639         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41640
41641 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41642
41643         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41644         __ynl_finite aliases.
41645
41646 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41647
41648         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41649
41650         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41651         define DLA_FMA.
41652         [DLA_FMA] (EMULV): Use DLA_FMA.
41653         [DLA_FMA] (MUL12): Use EMULV.
41654         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41655         that are not needed.
41656         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41657         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41658         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41659         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41660         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41661         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41662         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41663
41664 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41665
41666         * math/s_nan.c: Undef __nan.
41667         * math/s_nanf.c: Undef __nanf.
41668         * math/s_nanl.c: Undef __nanl.
41669         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41670         "math_private.h".
41671
41672 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41673
41674         * math/s_catan.c: Add branch predictions.
41675         * math/s_catanf.c: Likewise.
41676         * math/s_catanh.c: Likewise.
41677         * math/s_catanhf.c: Likewise.
41678         * math/s_catanhl.c: Likewise.
41679         * math/s_catanl.c: Likewise.
41680         * math/s_cexp.c: Likewise.
41681         * math/s_cexpf.c: Likewise.
41682         * math/s_cexpl.c: Likewise.
41683         * math/s_clog.c: Likewise.
41684         * math/s_clog10.c: Likewise.
41685         * math/s_clog10f.c: Likewise.
41686         * math/s_clog10l.c: Likewise.
41687         * math/s_clogf.c: Likewise.
41688         * math/s_clogl.c: Likewise.
41689         * math/s_csqrt.c: Likewise.
41690         * math/s_csqrtf.c: Likewise.
41691         * math/s_csqrtl.c: Likewise.
41692         * math/s_ctanf.c: Likewise.
41693         * math/s_ctanh.c: Likewise.
41694         * math/s_ctanhf.c: Likewise.
41695         * math/s_ctanhl.c: Likewise.
41696         * math/s_ctanl.c: Likewise.
41697
41698         * math/math_private.h: Define __nan, __nanf, __nanl.
41699         * math/s_cacosh.c: Include <math_private.h>.
41700         * math/s_cacoshl.c: Likewise.
41701         * math/s_casinh.c: Likewise.
41702         * math/s_casinhf.c: Likewise.
41703         * math/s_casinhl.c: Likewise.
41704         * math/s_ccos.c: Rely entire on ccosh.
41705         * math/s_ccosf.c: Rely entire on ccoshf.
41706         * math/s_ccosl.c: Rely entirely on ccoshl.
41707         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41708         Remove tests for FE_INVALID.
41709         * math/s_ccoshf.c: Likewise.
41710         * math/s_ccoshl.c: Likewise.
41711         * math/s_csin.c: Likewise.
41712         * math/s_csinf.c: Likewise.
41713         * math/s_csinh.c Likewise.
41714         * math/s_csinhf.c: Likewise.
41715         * math/s_csinhl.c: Likewise.
41716         * math/s_csinl.c: Likewise.
41717         * math/s_ctan.c: Likewise.
41718         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41719         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41720         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41721
41722 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41723
41724         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41725         compilation problems.
41726
41727         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41728         __builtin_expect.
41729
41730 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41731
41732         * sysdeps/i386/configure.in: Test for -mfma4 option.
41733         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41734         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41735         COMMON_CPUID_INDEX_80000001.
41736         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41737         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41738         use it if FMA3 is not supported.
41739         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41740
41741         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41742         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41743
41744 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41745
41746         [BZ #12892]
41747         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41748         it would create a cycle with a link time dependency.
41749
41750 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41751
41752         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41753         instruction.
41754         * string/Makefile (strop-tests): Add rawmemchr.
41755         * string/test-rawmemchr.c: New file.
41756
41757         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41758         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41759         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41760         when compiling str{,n}casecmp and when AVX is available.  Hook up
41761         new optimized code in initializers.
41762
41763 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41764
41765         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41766         __feraiseexcept instead of feraiseexcept.
41767
41768 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41769
41770         * math/math_private.h: Define defaults for libc_fetestexcept and
41771         libc_feupdateenv.
41772         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41773         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41774         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41775         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41776         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41777         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41778         libc_fetestexcept and libc_feupdateenv.
41779
41780         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41781         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41782         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41783         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41784         libc_feholdexcept_setround.
41785
41786         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41787         Add s_nearbyint-c and s_nearbyintf-c.
41788         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41789         nearbyintf inlines.
41790         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41791         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41792         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41793         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41794
41795         * math/math_private.h: Define defaults for libc_fegetround,
41796         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41797         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41798         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41799         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41800         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41801         standard functions.
41802         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41803         Remove comments and hacks for old compiler versions.
41804         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41805         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41806         libc_feholdexceptl.
41807
41808 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41809
41810         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41811         (__feraiseexcept_renamed): Add __NTH.
41812         (feraiseexcept): Add __NTH.  Rename local variables to fix
41813         namespace violations.
41814
41815 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41816
41817         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41818
41819         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41820
41821         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41822         recently added interfaces.
41823         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41824
41825         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41826         about macro parameter expansion.
41827
41828         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41829         __NO_MATH_INLINES is defined.  Cleanups.
41830
41831         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41832         and __floorf is target has SSE4.1.
41833         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41834         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41835         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41836         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41837
41838         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41839         name.
41840         (floorf): Likewise.
41841
41842         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41843
41844 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41845
41846         * misc/sys/cdefs.h: Fix last change.
41847
41848         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41849         database lookup.
41850
41851 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41852
41853         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41854
41855         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41856         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41857         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41858         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41859         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41860         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41861         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41862         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41863         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41864         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41865         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41866         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41867         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41868         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41869         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41870         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41871         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41872         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41873         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41874         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41875         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41876         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41877
41878         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41879         ceil, ceilf, floor, floorf.
41880
41881         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41882         Perform IRELATIVE relocations last.
41883
41884         * elf/do-rel.h: Add another parameter nrelative, replacing the
41885         local variable with the same name.  Change name of the function
41886         to end in Rel or Rela (uppercase).
41887         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41888         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41889         elf_dynamic_do_##reloc function.
41890
41891 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41892
41893         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41894         is sufficient, at least on modern CPUs.
41895
41896         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41897
41898         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41899         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41900
41901         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41902         __expl_finite.
41903         * math/bits/math-finite.h: Add entries for exp.
41904         * math/e_expl.c: Add __*_finite alias.
41905         * sysdeps/i386/fpu/e_exp.S: Likewise.
41906         * sysdeps/i386/fpu/e_expf.S: Likewise.
41907         * sysdeps/i386/fpu/e_expl.c: Likewise.
41908         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41909         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41910         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41911         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41912         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41913         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41914         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41915
41916         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41917         is sufficient, at least on modern CPUs.
41918
41919         * ctype/ctype-info.c (__ctype_init): Define.
41920         * include/ctype.h (__ctype_init): Declare.
41921         (__ctype_b_loc): The variable is always initialized.
41922         (__ctype_toupper_loc): Likewise.
41923         (__ctype_tolower_loc): Likewise.
41924         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41925         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41926
41927 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41928
41929         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41930
41931         * configure.in: Also look in $cxxmachine/include for C++ system
41932         headers.
41933
41934 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41935
41936         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41937         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41938         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41939         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41940         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41941         (USE_AS_WMEMCMP): New macro.
41942         Fixing indents.
41943         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41944         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41945         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41946         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41947         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41948         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41949         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41950         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41951         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41952         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41953         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41954         (USE_AS_WMEMCMP): New macro.
41955         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41956         * sysdeps/string/test-memcmp.c: Update.
41957         Fix simple_wmemcmp.
41958         Add new tests.
41959         * wcsmbs/wmemcmp.c: Update.
41960         (WMEMCMP): New macro.
41961         Fix overflow bug.
41962
41963 2011-10-12  Andreas Jaeger  <aj@suse.de>
41964
41965         [BZ #13268]
41966         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41967
41968 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41969
41970         * libio/iofwide.c (do_length): Avoid warning.
41971
41972         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41973
41974 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41975
41976         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41977
41978         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41979         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41980         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41981         * sysdeps/i386/i686/fpu/e_log.S: New file.
41982         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41983         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41984
41985         * ctype/ctype.h: Add support for inlined isXXX functions when
41986         compiling C++ code.
41987
41988 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41989
41990         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41991
41992         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41993
41994 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41995
41996         [BZ #13291]
41997         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41998
41999 2011-10-13  Andreas Schwab  <schwab@redhat.com>
42000
42001         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
42002         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
42003         feraiseexcept.
42004
42005         * sysdeps/x86_64/memrchr.S: Check for zero size.
42006
42007         * string/stratcliff.c: Add memrchr tests.
42008
42009 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42010
42011         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42012         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
42013         rawmemchr-sse2 rawmemchr-sse2-bsf.
42014         * sysdeps/i386/i686/multiarch/memchr.S: New file.
42015         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
42016         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
42017         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
42018         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
42019         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
42020         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
42021         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
42022         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
42023         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
42024         * string/memrchr.c (MEMRCHR): New macro.
42025
42026 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
42027
42028         Add integration with gcc's -ffinite-math-only and optimize wrapper
42029         functions in libm.
42030         * Versions.def: Define GLIBC_2.15 version for libm.
42031         * math/Makefile (headers): Add bits/math-finite.h.
42032         * math/bits/math-finite.h: New file.
42033         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
42034         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
42035         * math/e_acoshl.c: Add __*_finite alias.
42036         * math/e_acosl.c: Likewise.
42037         * math/e_asinl.c: Likewise.
42038         * math/e_atan2l.c: Likewise.
42039         * math/e_atanhl.c: Likewise.
42040         * math/e_coshl.c: Likewise.
42041         * math/e_exp10.c: Likewise.
42042         * math/e_exp10f.c: Likewise.
42043         * math/e_exp10l.c: Likewise.
42044         * math/e_exp2l.c: Likewise.
42045         * math/e_fmodl.c: Likewise.
42046         * math/e_gammal_r.c: Likewise.
42047         * math/e_hypotl.c: Likewise.
42048         * math/e_j0l.c: Likewise.
42049         * math/e_j1l.c: Likewise.
42050         * math/e_jnl.c: Likewise.
42051         * math/e_lgammal_r.c: Likewise.
42052         * math/e_log10l.c: Likewise.
42053         * math/e_log2l.c: Likewise.
42054         * math/e_logl.c: Likewise.
42055         * math/e_powl.c: Likewise.
42056         * math/e_sinhl.c: Likewise.
42057         * math/e_sqrtl.c: Likewise.
42058         * math/e_scalb.c: Completely rewritten and optimized.
42059         * math/e_scalbf.c: Likewise.
42060         * math/e_scalbl.c: Likewise.
42061         * math/w_acos.c: Likewise.
42062         * math/w_acosf.c: Likewise.
42063         * math/w_acosl.c: Likewise.
42064         * math/w_acosh.c: Likewise.
42065         * math/w_acoshf.c: Likewise.
42066         * math/w_acoshl.c: Likewise.
42067         * math/w_asin.c: Likewise.
42068         * math/w_asinf.c: Likewise.
42069         * math/w_asinl.c: Likewise.
42070         * math/w_atan2.c: Likewise.
42071         * math/w_atan2f.c: Likewise.
42072         * math/w_atan2l.c: Likewise.
42073         * math/w_atanh.c: Likewise.
42074         * math/w_atanhf.c: Likewise.
42075         * math/w_atanhl.c: Likewise.
42076         * math/w_exp10.c: Likewise.
42077         * math/w_exp10f.c: Likewise.
42078         * math/w_exp10l.c: Likewise.
42079         * math/w_fmod.c: Likewise.
42080         * math/w_fmodf.c: Likewise.
42081         * math/w_fmodl.c: Likewise.
42082         * math/w_j0.c: Likewise.
42083         * math/w_j0f.c: Likewise.
42084         * math/w_j0l.c: Likewise.
42085         * math/w_j1.c: Likewise.
42086         * math/w_j1f.c: Likewise.
42087         * math/w_j1l.c: Likewise.
42088         * math/w_jn.c: Likewise.
42089         * math/w_jnf.c: Likewise.
42090         * math/w_log.c: Likewise.
42091         * math/w_logf.c: Likewise.
42092         * math/w_logl.c: Likewise.
42093         * math/w_log10.c: Likewise.
42094         * math/w_log10f.c: Likewise.
42095         * math/w_log10l.c: Likewise.
42096         * math/w_log2.c: Likewise.
42097         * math/w_log2f.c: Likewise.
42098         * math/w_log2l.c: Likewise.
42099         * math/w_pow.c: Likewise.
42100         * math/w_powf.c: Likewise.
42101         * math/w_powl.c: Likewise.
42102         * math/w_remainder.c: Likewise.
42103         * math/w_remainderf.c: Likewise.
42104         * math/w_remainderl.c: Likewise.
42105         * math/w_scalb.c: Likewise.
42106         * math/w_scalbf.c: Likewise.
42107         * math/w_scalbl.c: Likewise.
42108         * math/w_sqrt.c: Likewise.
42109         * math/w_sqrtf.c: Likewise.
42110         * math/w_sqrtl.c: Likewise.
42111         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42112         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42113         used.
42114         * math/math_private.h: Declare __kernel_standard_f.
42115         * math/w_cosh.c: Remove cruft and optimize a bit.
42116         * math/w_coshf.c: Likewise.
42117         * math/w_coshl.c: Likewise.
42118         * math/w_exp2.c: Likewise.
42119         * math/w_exp2f.c: Likewise.
42120         * math/w_exp2l.c: Likewise.
42121         * math/w_hypot.c: Likewise.
42122         * math/w_hypotf.c: Likewise.
42123         * math/w_hypotl.c: Likewise.
42124         * math/w_lgamma.c: Likewise.
42125         * math/w_lgamma_r.c: Likewise.
42126         * math/w_lgammaf.c: Likewise.
42127         * math/w_lgammaf_r.c: Likewise.
42128         * math/w_lgammal.c: Likewise.
42129         * math/w_lgammal_r.c: Likewise.
42130         * math/w_sinh.c: Likewise.
42131         * math/w_sinhf.c: Likewise.
42132         * math/w_sinhl.c: Likewise.
42133         * math/w_tgamma.c: Likewise.
42134         * math/w_tgammaf.c: Likewise.
42135         * math/w_tgammal.c: Likewise.
42136         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42137         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42138         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42139         Minor optimizations.  Pretty printing.  Remove cruft.
42140         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42141         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42142         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42143         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42144         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42145         * sysdeps/i386/fpu/e_asin.S: Likewise.
42146         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42147         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42148         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42149         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42150         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42151         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42152         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42153         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42154         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42155         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42156         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42157         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42158         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42159         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42160         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42161         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42162         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42163         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42164         * sysdeps/i386/fpu/e_log.S: Likewise.
42165         * sysdeps/i386/fpu/e_log10.S: Likewise.
42166         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42167         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42168         * sysdeps/i386/fpu/e_log2.S: Likewise.
42169         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42170         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42171         * sysdeps/i386/fpu/e_logf.S: Likewise.
42172         * sysdeps/i386/fpu/e_logl.S: Likewise.
42173         * sysdeps/i386/fpu/e_pow.S: Likewise.
42174         * sysdeps/i386/fpu/e_powf.S: Likewise.
42175         * sysdeps/i386/fpu/e_powl.S: Likewise.
42176         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42177         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42178         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42179         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42180         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42181         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42182         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42183         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42184         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42185         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42186         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42187         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42188         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42189         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42190         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42191         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42192         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42193         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42194         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42195         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42196         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42197         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42198         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42199         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42200         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42201         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42202         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42203         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42204         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42205         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42206         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42207         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42208         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42209         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42210         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42211         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42212         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42213         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42214         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42215         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42216         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42217         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42218         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42219         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42220         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42221         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42222         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42223         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42224         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42225         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42226         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42227         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42228         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42229         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42230         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42231         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42232         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42233         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42234         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42235         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42236         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42237         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42238         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42239         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42240         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42241         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42242         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42243         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42244         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42245         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42246         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42247         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42248         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42249         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42250         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42251         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42252         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42253         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42254         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42255         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42256         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42257         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42258         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42259         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42260         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42261         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42262         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42263         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42264         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42265         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42266         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42267         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42268         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42269         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42270         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42271         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42272         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42273         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42274         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42275         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42276         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42277         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42278         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42279         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42280         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42281         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42282         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42283         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42284         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42285         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42286         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42287         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42288         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42289         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42290         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42291         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42292         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42293         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42294         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42295         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42296         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42297         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42298         (__isnanf): Likewise.
42299         (__isinf_ns): Likewise.
42300         (__isinf_nsf): Likewise.
42301         (__finite): Likewise.
42302         (__finitef): Likewise.
42303         (__ieee754_sqrt): Define as macro.
42304         (__ieee754_sqrtf): Define as macro.
42305         (__ieee754_sqrtl): Define as macro.
42306         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42307         inlined copy.
42308         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42309         __FINITE_MATH_ONLY__ consistent.
42310         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42311
42312 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42313
42314         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42315         of rawmemchr.
42316
42317         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42318
42319 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42320
42321         * po/ja.po: Update from translation team.
42322
42323 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42324
42325         * locale/programs/locarchive.c (prepare_address_space): New function.
42326         (create_archive, enlarge_archive, open_archive): Use it.
42327
42328         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42329         inside [SHARED], where it is used.
42330
42331         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42332
42333         * nss/getent.c (netgroup_keys): Remove unused variable.
42334         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42335
42336 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42337
42338         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42339         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42340         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42341         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42342         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42343         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42344         * math/Makefile (libm-calls): Add s_isinf_ns.
42345         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42346         * math/multc3.c: Likewise.
42347         * math/s_casin.c: Likewise.
42348         * math/s_casinf.c: Likewise.
42349         * math/s_casinl.c: Likewise.
42350         * math/s_ccos.c: Likewise.
42351         * math/s_ccosf.c: Likewise.
42352         * math/s_ccosl.c: Likewise.
42353         * math/s_ctan.c: Likewise.
42354         * math/s_ctanf.c: Likewise.
42355         * math/s_ctanh.c: Likewise.
42356         * math/s_ctanhf.c: Likewise.
42357         * math/s_ctanhl.c: Likewise.
42358         * math/s_ctanl.c: Likewise.
42359         * math/w_fmod.c: Likewise.
42360         * math/w_fmodf.c: Likewise.
42361         * math/w_fmodl.c: Likewise.
42362         * math/w_remainder.c: Likewise.
42363         * math/w_remainderf.c: Likewise.
42364         * math/w_remainderl.c: Likewise.
42365         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42366         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42367         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42368         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42369         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42370         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42371         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42372         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42373
42374         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42375         of the number.
42376         * stdio-common/printf_fphex.c: Likewise.
42377         * stdio-common/printf_size.c: Likewise.
42378
42379         * math/e_exp10.c: Include math_private.h using <...> not "...".
42380         * math/e_exp10f.c: Likewise.
42381         * math/e_exp10l.c: Likewise.
42382         * math/e_exp2l.c: Likewise.
42383         * math/e_j0l.c: Likewise.
42384         * math/e_j1l.c: Likewise.
42385         * math/e_jnl.c: Likewise.
42386         * math/e_lgammal_r.c: Likewise.
42387         * math/e_rem_pio2l.c: Likewise.
42388         * math/e_scalb.c: Likewise.
42389         * math/e_scalbf.c: Likewise.
42390         * math/e_scalbl.c: Likewise.
42391         * math/k_cosl.c: Likewise.
42392         * math/k_sinl.c: Likewise.
42393         * math/k_tanl.c: Likewise.
42394         * math/s_cacoshf.c: Likewise.
42395         * math/s_catan.c: Likewise.
42396         * math/s_catanf.c: Likewise.
42397         * math/s_catanh.c: Likewise.
42398         * math/s_catanhf.c: Likewise.
42399         * math/s_catanhl.c: Likewise.
42400         * math/s_catanl.c: Likewise.
42401         * math/s_ccosh.c: Likewise.
42402         * math/s_ccoshf.c: Likewise.
42403         * math/s_ccoshl.c: Likewise.
42404         * math/s_cexp.c: Likewise.
42405         * math/s_cexpf.c: Likewise.
42406         * math/s_cexpl.c: Likewise.
42407         * math/s_clog.c: Likewise.
42408         * math/s_clog10.c: Likewise.
42409         * math/s_clog10f.c: Likewise.
42410         * math/s_clog10l.c: Likewise.
42411         * math/s_clogf.c: Likewise.
42412         * math/s_clogl.c: Likewise.
42413         * math/s_csin.c: Likewise.
42414         * math/s_csinf.c: Likewise.
42415         * math/s_csinh.c: Likewise.
42416         * math/s_csinhf.c: Likewise.
42417         * math/s_csinhl.c: Likewise.
42418         * math/s_csinl.c: Likewise.
42419         * math/s_csqrt.c: Likewise.
42420         * math/s_csqrtf.c: Likewise.
42421         * math/s_csqrtl.c: Likewise.
42422         * math/s_ctan.c: Likewise.
42423         * math/s_ctanf.c: Likewise.
42424         * math/s_ctanh.c: Likewise.
42425         * math/s_ctanhf.c: Likewise.
42426         * math/s_ctanhl.c: Likewise.
42427         * math/s_ctanl.c: Likewise.
42428         * math/s_ldexp.c: Likewise.
42429         * math/s_ldexpf.c: Likewise.
42430         * math/s_ldexpl.c: Likewise.
42431         * math/s_significand.c: Likewise.
42432         * math/s_significandf.c: Likewise.
42433         * math/s_significandl.c: Likewise.
42434         * math/w_acos.c: Likewise.
42435         * math/w_acosf.c: Likewise.
42436         * math/w_acosh.c: Likewise.
42437         * math/w_acoshf.c: Likewise.
42438         * math/w_acoshl.c: Likewise.
42439         * math/w_acosl.c: Likewise.
42440         * math/w_asin.c: Likewise.
42441         * math/w_asinf.c: Likewise.
42442         * math/w_asinl.c: Likewise.
42443         * math/w_atan2.c: Likewise.
42444         * math/w_atan2f.c: Likewise.
42445         * math/w_atan2l.c: Likewise.
42446         * math/w_atanh.c: Likewise.
42447         * math/w_atanhf.c: Likewise.
42448         * math/w_atanhl.c: Likewise.
42449         * math/w_cosh.c: Likewise.
42450         * math/w_coshf.c: Likewise.
42451         * math/w_coshl.c: Likewise.
42452         * math/w_dremf.c: Likewise.
42453         * math/w_exp10.c: Likewise.
42454         * math/w_exp10f.c: Likewise.
42455         * math/w_exp10l.c: Likewise.
42456         * math/w_exp2.c: Likewise.
42457         * math/w_exp2f.c: Likewise.
42458         * math/w_fmod.c: Likewise.
42459         * math/w_fmodf.c: Likewise.
42460         * math/w_fmodl.c: Likewise.
42461         * math/w_hypot.c: Likewise.
42462         * math/w_hypotf.c: Likewise.
42463         * math/w_hypotl.c: Likewise.
42464         * math/w_j0.c: Likewise.
42465         * math/w_j0f.c: Likewise.
42466         * math/w_j0l.c: Likewise.
42467         * math/w_j1.c: Likewise.
42468         * math/w_j1f.c: Likewise.
42469         * math/w_j1l.c: Likewise.
42470         * math/w_jn.c: Likewise.
42471         * math/w_jnf.c: Likewise.
42472         * math/w_jnl.c: Likewise.
42473         * math/w_lgamma.c: Likewise.
42474         * math/w_lgamma_r.c: Likewise.
42475         * math/w_lgammaf.c: Likewise.
42476         * math/w_lgammaf_r.c: Likewise.
42477         * math/w_lgammal.c: Likewise.
42478         * math/w_lgammal_r.c: Likewise.
42479         * math/w_log.c: Likewise.
42480         * math/w_log10.c: Likewise.
42481         * math/w_log10f.c: Likewise.
42482         * math/w_log10l.c: Likewise.
42483         * math/w_log2.c: Likewise.
42484         * math/w_log2f.c: Likewise.
42485         * math/w_log2l.c: Likewise.
42486         * math/w_logf.c: Likewise.
42487         * math/w_logl.c: Likewise.
42488         * math/w_pow.c: Likewise.
42489         * math/w_powf.c: Likewise.
42490         * math/w_powl.c: Likewise.
42491         * math/w_remainder.c: Likewise.
42492         * math/w_remainderf.c: Likewise.
42493         * math/w_remainderl.c: Likewise.
42494         * math/w_scalb.c: Likewise.
42495         * math/w_scalbf.c: Likewise.
42496         * math/w_scalbl.c: Likewise.
42497         * math/w_sinh.c: Likewise.
42498         * math/w_sinhf.c: Likewise.
42499         * math/w_sinhl.c: Likewise.
42500         * math/w_sqrt.c: Likewise.
42501         * math/w_sqrtf.c: Likewise.
42502         * math/w_sqrtl.c: Likewise.
42503         * math/w_tgamma.c: Likewise.
42504         * math/w_tgammaf.c: Likewise.
42505         * math/w_tgammal.c: Likewise.
42506
42507         * po/ja.po: Update from translation team.
42508
42509 2011-09-29  Andreas Jaeger  <aj@suse.de>
42510
42511         [BZ #13179]
42512         * sunrpc/netname.c (netname2host): Fix logic.
42513
42514         [BZ #6779]
42515         [BZ #6783]
42516         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42517         correctly.
42518         * math/w_remainder.c (__remainder): Likewise.
42519         * math/w_remainderf.c (__remainderf): Likewise.
42520         * math/libm-test.inc (remainder_test): Add test cases.
42521
42522 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42523
42524         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42525         sdiv_qrnnd.
42526
42527 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42528
42529         * string/test-memcmp.c: Avoid unncessary #defines.
42530         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42531
42532 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42533
42534         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42535         Use new sse2 version for core i3 - i7 as it's faster
42536         than sse42 version.
42537         (bit_Prefer_PMINUB_for_stringop): New.
42538         * sysdeps/x86_64/rawmemchr.S: Update.
42539         Replace with faster SSE2 version.
42540         * sysdeps/x86_64/memrchr.S: New file.
42541         * sysdeps/x86_64/memchr.S: Update.
42542         Replace with faster SSE2 version.
42543
42544 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42545
42546         * elf/dl-load.c (lose): Add cast to avoid warning.
42547
42548 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42549
42550         * po/ca.po: Update from translation team.
42551
42552         * inet/getnetgrent_r.c: Hook up nscd.
42553         * nscd/Makefile (routines): Add nscd_netgroup.
42554         (nscd-modules): Add netgroupcache.
42555         (CFLAGS-netgroupcache.c): Define.
42556         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42557         (cache_search): Add const to second parameter.
42558         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42559         INNETGR.
42560         (dbs): Add netgrdb entry.
42561         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42562         (verify_persistent_db): Handle netgrdb.
42563         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42564         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42565         GETFDNETGR.
42566         (netgroup_response_header): Define.
42567         (innetgroup_response_header): Define.
42568         (datahead): Add netgroup_response_header and innetgroup_response_header
42569         elements.
42570         * nscd/nscd.conf: Add entries for netgroup cache.
42571         * nscd/nscd.h (dbtype): Add netgrdb.
42572         (_PATH_NSCD_NETGROUP_DB): Define.
42573         (netgroup_iov_disabled): Declare.
42574         (xmalloc, xcalloc, xrealloc): Move declarations here.
42575         (cache_search): Adjust prototype.
42576         Add netgroup-related prototypes.
42577         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42578         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42579         (__nscd_innetgr): Declare.
42580         * nscd/selinux.c (perms): Use access_vector_t as element type and
42581         add netgroup-related initializers.
42582         * nscd/netgroupcache.c: New file.
42583         * nscd/nscd_netgroup.c: New file.
42584         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42585         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42586         For four parameters use innetgr.
42587         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42588         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42589         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42590         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42591
42592         * nscd/connections.c (register_traced_file): Don't register file
42593         for disabled databases.
42594
42595 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42596
42597         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42598
42599         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42600         from tree and freeing node.
42601
42602 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42603
42604         * nss/nsswitch.c (__nss_database_lookup): Handle
42605         nss_parse_service_list out of memory case.
42606
42607 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42608
42609         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42610         out of memory case.
42611
42612 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42613
42614         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42615         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42616         pass it down.
42617         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42618         elf_machine_rela, elf_machine_lazy_rel.
42619         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42620         (ELF_DYNAMIC_DO_REL): Likewise.
42621         (ELF_DYNAMIC_DO_RELA): Likewise.
42622         (ELF_DYNAMIC_RELOCATE): Likewise.
42623         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42624         to ELF_DYNAMIC_DO_REL.
42625         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42626         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42627         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42628         elf_machine_rela.
42629         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42630         skip_ifunc, don't call ifunc function if non-zero.
42631         (elf_machine_rela): Likewise.
42632         (elf_machine_lazy_rel): Likewise.
42633         (elf_machine_lazy_rela): Likewise.
42634         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42635         (elf_machine_lazy_rel): Likewise.
42636         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42637         Likewise.
42638         (elf_machine_lazy_rel): Likewise.
42639         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42640         Likewise.
42641         (elf_machine_lazy_rel): Likewise.
42642         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42643         (elf_machine_lazy_rel): Likewise.
42644         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42645         (elf_machine_lazy_rel): Likewise.
42646         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42647         (elf_machine_lazy_rel): Likewise.
42648         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42649         (elf_machine_lazy_rel): Likewise.
42650         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42651         (elf_machine_lazy_rel): Likewise.
42652         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42653         (elf_machine_lazy_rel): Likewise.
42654
42655 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42656
42657         * nss/nss_files/files-init.c (_nss_files_init): Use static
42658         initialization for all the *_traced_file variables.
42659
42660 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42661
42662         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42663
42664 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42665
42666         [BZ #13226]
42667         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42668
42669 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42670
42671         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42672         Reread the line before reparsing it.
42673
42674 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42675
42676         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42677
42678 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42679             Maxim Kuvyrkov  <maxim@codesourcery.com>
42680             Joseph Myers  <joseph@codesourcery.com>
42681
42682         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42683         if needed for __stack_chk_guard.
42684
42685 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42686
42687         * sysdeps/posix/spawni.c (script_execute): Always define it.
42688         It will be optimized away if unused.
42689         (maybe_script_execute): New function.
42690         (__spawni): Call it.
42691
42692         * Makerules: Don't include tls.make.
42693         (config-tls): Always set to thread.
42694         * tls.make.c: File removed.
42695
42696 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42697
42698         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42699         * config.make.in (CPPFLAGS-config): New substituted variable.
42700
42701 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42702
42703         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42704
42705         [BZ #13192]
42706         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42707         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42708
42709 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42710
42711         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42712         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42713         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42714         (CALL_FAIL): Likewise.
42715         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42716         (CALL_FAIL): Macro removed.
42717         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42718
42719 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42720
42721         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42722         for __FINITE_MATH_ONLY__ == 1.
42723
42724 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42725
42726         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42727         __ieee754_sqrt instead of sqrt.
42728         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42729         __ieee754_sqrtf instead of sqrtf.
42730         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42731         __floorf instead of floorf.
42732         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42733         __floorf, __truncf instead of floorf, truncf.
42734
42735 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42736
42737         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42738
42739         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42740         __extern_always_inline.
42741         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42742         32-bit.
42743
42744 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42745
42746         * elf/rtld.c (dl_main): Also relocate in dependency order when
42747         doing symbol dependency testing.
42748
42749 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42750
42751         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42752         Always define `refsym'.
42753
42754 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42755
42756         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42757         (__FD_ELT): Renamed from __FDELT.
42758         * misc/bits/select2.h (__FD_ELT): Likewise.
42759         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42760         __FD_MASK instead of __FDELT, __FDMASK.
42761         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42762         Likewise.
42763         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42764         Likewise.
42765
42766         * elf/Makefile (gen-ldd): Fix pattern.
42767
42768         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42769         (init_tls): Likewise.
42770
42771 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42772
42773         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42774
42775 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42776
42777         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42778         `struct cmsghdr *' instead of `void *'.
42779         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42780         Likewise.
42781
42782 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42783
42784         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42785         if non-absolute.
42786         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42787         ldd_rewrite_script.
42788
42789 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42790
42791         * configure.in: Remove --with-tls option.
42792         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42793         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42794         out in case it is missing.
42795         * sysdeps/ia64/elf/configure.in: Likewise.
42796         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42797         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42798         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42799         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42800         * sysdeps/sh/elf/configure.in: Likewise.
42801         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42802         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42803         * sysdeps/x86_64/elf/configure.in: Likewise.
42804         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42805         * sysdeps/mach/hurd/tls.h: Likewise.
42806
42807         [BZ #13067]
42808         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42809
42810         [BZ #13090]
42811         * configure.in: Fix use of AC_INIT.
42812
42813         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42814
42815 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42816
42817         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42818         __set_errno.
42819         * malloc/hooks.c: Likewise.
42820
42821         [BZ #11929]
42822         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42823         variables statically.
42824         (narenas): Initialize.
42825         (list_lock): Initialize.
42826         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42827         initializtion of main_arena and list_lock.  Small cleanups.
42828         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42829         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42830         Add initializers to main_arena and mp_.
42831         (malloc_state): Remove pagesize member.  Change all users to use
42832         GLRO(dl_pagesize).
42833
42834         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42835         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42836         is always initialized.
42837
42838         * malloc/malloc.c: Removed unused configurations and dead code.
42839         * malloc/arena.c: Likewise.
42840         * malloc/hooks.c: Likewise.
42841         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42842
42843         * include/tls.h: Removed.  USE___THREAD must always be defined.
42844         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42845         * elf/dl-libc.c: Likewise.
42846         * elf/dl-tsd.c: Likewise.
42847         * include/errno.h: Likewise.
42848         * include/netdb.h: Likewise.
42849         * include/resolv.h: Likewise.
42850         * inet/herrno-loc.c: Likewise.
42851         * inet/herrno.c: Likewise.
42852         * malloc/arena.c: Likewise.
42853         * malloc/hooks.c: Likewise.
42854         * malloc/malloc.c: Likewise.
42855         * resolv/res-state.c: Likewise.
42856         * resolv/res_libc.c: Likewise.
42857         * sysdeps/i386/dl-machine.h: Likewise.
42858         * sysdeps/ia64/dl-machine.h: Likewise.
42859         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42860         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42861         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42862         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42863         * sysdeps/sh/dl-machine.h: Likewise.
42864         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42865         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42866         * sysdeps/unix/i386/sysdep.S: Likewise.
42867         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42868         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42869         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42870         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42871         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42872         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42873         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42874         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42875         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42876         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42877         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42878         * sysdeps/x86_64/dl-machine.h: Likewise.
42879         * tls.make.c: Likewise.
42880
42881         * configure.in: Remove --with-__thread option.  Make tests for
42882         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42883         tls_model attribute fail if no support is available.  Remove
42884         USE_IN_LIBIO.
42885         * Makeconfig: Adjust for dropped configure option.  All features are
42886         now mandatory.
42887         * Makerules: Likewise.
42888         * Versions.def: Likewise.
42889         * argp/argp-fmtstream.c: Likewise.
42890         * argp/argp-fmtstream.h: Likewise.
42891         * argp/argp-help.c: Likewise.
42892         * assert/assert.c: Likewise.
42893         * config.h.in: Likewise.
42894         * config.make.in: Likewise.
42895         * configure: Likewise.
42896         * configure.in: Likewise.
42897         * csu/Versions: Likewise.
42898         * csu/init.c: Likewise.
42899         * elf/tst-audit2.c: Likewise.
42900         * elf/tst-tls10.c: Likewise.
42901         * elf/tst-tls10.h: Likewise.
42902         * elf/tst-tls11.c: Likewise.
42903         * elf/tst-tls12.c: Likewise.
42904         * elf/tst-tls14.c: Likewise.
42905         * elf/tst-tlsmod11.c: Likewise.
42906         * elf/tst-tlsmod12.c: Likewise.
42907         * elf/tst-tlsmod13.c: Likewise.
42908         * elf/tst-tlsmod13a.c: Likewise.
42909         * elf/tst-tlsmod14a.c: Likewise.
42910         * elf/tst-tlsmod15b.c: Likewise.
42911         * elf/tst-tlsmod16a.c: Likewise.
42912         * elf/tst-tlsmod16b.c: Likewise.
42913         * elf/tst-tlsmod7.c: Likewise.
42914         * elf/tst-tlsmod8.c: Likewise.
42915         * elf/tst-tlsmod9.c: Likewise.
42916         * gmon/gmon.c: Likewise.
42917         * grp/fgetgrent_r.c: Likewise.
42918         * grp/putgrent.c: Likewise.
42919         * hurd/fopenport.c: Likewise.
42920         * include/libc-symbols.h: Likewise.
42921         * include/tls.h: Likewise.
42922         * intl/gettextP.h: Likewise.
42923         * intl/loadinfo.h: Likewise.
42924         * locale/global-locale.c: Likewise.
42925         * locale/localeinfo.h: Likewise.
42926         * mach/devstream.c: Likewise.
42927         * malloc/arena.c: Likewise.
42928         * malloc/set-freeres.c: Likewise.
42929         * misc/err.c: Likewise.
42930         * misc/getttyent.c: Likewise.
42931         * misc/mntent_r.c: Likewise.
42932         * posix/getopt.c: Likewise.
42933         * posix/wordexp.c: Likewise.
42934         * pwd/fgetpwent_r.c: Likewise.
42935         * resolv/Versions: Likewise.
42936         * resolv/res_hconf.c: Likewise.
42937         * shadow/fgetspent_r.c: Likewise.
42938         * shadow/putspent.c: Likewise.
42939         * stdio-common/printf_fphex.c: Likewise.
42940         * stdio-common/tmpfile.c: Likewise.
42941         * stdlib/abort.c: Likewise.
42942         * stdlib/fmtmsg.c: Likewise.
42943         * sunrpc/auth_unix.c: Likewise.
42944         * sunrpc/clnt_perr.c: Likewise.
42945         * sunrpc/clnt_tcp.c: Likewise.
42946         * sunrpc/clnt_udp.c: Likewise.
42947         * sunrpc/clnt_unix.c: Likewise.
42948         * sunrpc/openchild.c: Likewise.
42949         * sunrpc/svc_simple.c: Likewise.
42950         * sunrpc/svc_tcp.c: Likewise.
42951         * sunrpc/svc_udp.c: Likewise.
42952         * sunrpc/svc_unix.c: Likewise.
42953         * sunrpc/xdr.c: Likewise.
42954         * sunrpc/xdr_array.c: Likewise.
42955         * sunrpc/xdr_rec.c: Likewise.
42956         * sunrpc/xdr_ref.c: Likewise.
42957         * sunrpc/xdr_stdio.c: Likewise.
42958
42959 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42960
42961         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42962
42963 2011-07-03  Andreas Jaeger  <aj@suse.de>
42964
42965         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42966         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42967         regenerate with gen-libm-tests.pl.
42968
42969 2010-05-12  Petr Baudis  <pasky@suse.cz>
42970
42971         [BZ #11589]
42972         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42973         around j0() zero points by switching to j1().
42974         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42975         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42976         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42977         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42978
42979 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42980
42981         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42982         instead of 0.
42983         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42984         instead of 0.
42985         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42986         Patch in part by Pavel Roskin <proski@gnu.org>.
42987
42988         [BZ #13138]
42989         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42990         realloc.
42991         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42992         Free memory block if necessary.
42993
42994         [BZ #12847]
42995         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42996         be NULL.  Don't lock in this case.
42997
42998 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42999
43000         * elf/elf.h (ELFOSABI_GNU): New macro.
43001         (ELFOSABI_LINUX): Define to that.
43002
43003 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
43004
43005         * string/strncat.c (strncat): Undef the symbol in case it has been
43006         defined in bits/string.h.
43007
43008 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43009
43010         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
43011
43012         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
43013         link map.
43014
43015 2011-08-17  Andreas Jaeger  <aj@suse.de>
43016
43017         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
43018
43019 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
43020             Ian Lance Taylor  <iant@google.com>
43021
43022         * math/libm-test.inc (lround_test): New testcase.
43023         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
43024
43025 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
43026
43027         * Makefile: Remove support for automatic cvs check-ins.
43028         * Makerules: Likewise.
43029         * config.make.in: Likewise.
43030         * configure.in: Likewise.
43031         * intl/Makefile: Likewise.
43032         * locale/Makefile: Likewise.
43033         * po/Makefile: Likewise.
43034         * posix/Makefile: Likewise.
43035         * sysdeps/gnu/Makefile: Likewise.
43036         * sysdeps/mach/hurd/Makefile: Likewise.
43037         * sysdeps/sparc/sparc32/Makefile: Likewise.
43038
43039         [BZ #13118]
43040         * posix/Makefile (bug-regex32-ENV): Define.
43041         Patch by John Stanley <jpsinthemix@verizon.net>.
43042
43043         * misc/Makefile (headers): Add bits/select2.h.
43044         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
43045         * misc/bits/select2.h: New file.
43046         * include/bits/select2.h: New file.
43047         * debug/Makefile (routines): Add fdelt_chk.
43048         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
43049         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
43050         FD_ISSET.
43051         * debug/fdelt_chk.c: New file.
43052
43053         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
43054         * wcsmbs/test-wmemcmp.c: Likewise.
43055         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
43056         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
43057
43058 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43059
43060         * string/Makefile (strop-tests): Add memcmp.
43061         * string/test-wmemcmp.c: New file.
43062         * string/test-memcmp.c: Add wmemcmp support.
43063
43064 2011-09-08  Roland McGrath  <roland@hack.frob.com>
43065
43066         [BZ #13153]
43067         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
43068         2011-07-19 change.
43069
43070         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
43071         garbage value in a __mach_port_mod_refs call in the cases of the
43072         task-self and thread-self ports.
43073
43074 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43075
43076         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
43077
43078 2011-09-08  Andreas Schwab  <schwab@redhat.com>
43079
43080         * elf/dl-load.c (lose): Check for non-null L.
43081
43082 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43083
43084         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
43085
43086         * elf/dl-libc.c (dlerror_run): Pass back error code from
43087         dl_catch_error.
43088
43089         [BZ #13123]
43090         * elf/dl-load.c (lose): Free l_origin if it is valid.
43091
43092         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
43093         names.
43094         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
43095         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43096         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43097         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43098         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
43099         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
43100
43101 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43102
43103         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43104         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43105         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43106         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43107         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43108         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43109         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43110         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43111         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43112         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43113
43114 2011-08-15  Alan Modra  <amodra@gmail.com>
43115
43116         [BZ #13092]
43117         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43118         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43119         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43120         ppc_mcount to static-only-routines.
43121         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43122         __mcount_internal.
43123         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43124         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43125
43126 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43127
43128         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43129         for finite and infinity parameters.
43130
43131 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43132
43133         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43134         and add nop instructions for throughput optimization.
43135         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43136
43137 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43138
43139         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43140         aligned copy for power7 with vector-scalar instructions.
43141         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43142
43143 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43144
43145         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43146         AVX check.
43147
43148 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43149
43150         [BZ #13144]
43151         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43152         last change.
43153
43154 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43155
43156         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43157         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43158         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43159         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43160         clock_gettime.
43161
43162 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43163
43164         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43165         Forgot to demangle the pointer.
43166
43167         * sysdeps/i386/sysdep.h: Define atom_text_section.
43168         * sysdeps/x86_64/sysdep.h: Likewise.
43169         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43170         section with atom_text_section.
43171         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43172         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43173         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43174         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43175         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43176
43177         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43178         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43179         already be defined.  Change to take two parameters and don't assign
43180         result to variable.  Adjust all users.
43181         Define INTERNAL_GETTIME if not already defined.
43182         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43183         call.
43184         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43185         HAVE_CLOCK_GETTIME_VSYSCALL.
43186         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43187
43188         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43189         gettimeofday vsyscall, just use time.
43190
43191 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43192
43193         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43194         <errno.h>.
43195
43196 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43197
43198         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43199         syscall on x86-64.
43200         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43201         syscall.
43202         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43203         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43204         syscall if possible.
43205
43206 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43207
43208         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43209         e_ident.  Don't pass to find_mapsXX.
43210         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43211
43212 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43213
43214         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43215         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43216         * sysdeps/x86_64/multiarch/strchr.S: Update.
43217         Check bit_slow_BSF bit.
43218         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43219         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43220         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43221
43222 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43223
43224         [BZ #13134]
43225         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43226         before glibc 2.15.
43227         (tryshell): Define.
43228         (__spawni): Change last parameter to be flag.  Test
43229         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43230         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43231         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43232         * posix/spawni.c: Likewise.
43233         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43234         * posix/spawnp.c: Likewise.  Change normal version to use
43235         SPAWN_XFLAGS_USE_PATH.
43236         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43237         SPAWN_XFLAGS_TRY_SHELL.
43238
43239         [BZ #13150]
43240         * posix/glob.h: Remove gcc 1.x support.
43241
43242         [BZ #13068]
43243         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43244
43245 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43246
43247         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43248         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43249         strrchr-sse2-bsf
43250         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43251         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43252         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43253         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43254         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43255         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43256
43257 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43258
43259         * sysdeps/x86_64/wcscmp.S: New file.
43260
43261         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43262         wcscmp-c wcscmp-sse2
43263         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43264         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43265         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43266         * wcsmbs/wcscmp.c: Allow renaming.
43267
43268 2011-09-05  David S. Miller  <davem@davemloft.net>
43269
43270         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43271         stack slot, rather than the struct return pointer slot.
43272         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43273         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43275         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43276
43277 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43278
43279         * po/ja.po: Update from translation team.
43280
43281         [BZ #13144]
43282         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43283         kernel in 64-bit binaries.
43284
43285 2011-09-01  David S. Miller  <davem@davemloft.net>
43286
43287         * elf/elf.h (HWCAP_SPARC_*): Move to..
43288         * sysdeps/sparc/sysdep.h: this new file and add new values.
43289         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43290         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43291         _DL_HWCAP_COUNT to 24.
43292         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43293         entries.
43294         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43295         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43296         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43297         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43298         instead of magic constants.
43299         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43300
43301 2011-08-31  David S. Miller  <davem@davemloft.net>
43302
43303         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43304         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43305         Reimplement to do errno handling inline.
43306         (SYSCALL_ERROR_HANDLER): New macro.
43307         (__SYSCALL_STRING): Do not do errno handling in asm.
43308         (__CLONE_SYSCALL_STRING): Delete.
43309         (__INTERNAL_SYSCALL_STRING): Delete.
43310         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
43311         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43312         (PSEUDO): Reimplement to do errno handling inline.
43313         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43314         (SYSCALL_ERROR_HANDLER): New macro.
43315         (__SYSCALL_STRING): Do not do errno handling in asm.
43316         (__CLONE_SYSCALL_STRING): Delete.
43317         (__INTERNAL_SYSCALL_STRING): Delete.
43318         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43319         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43320         i386.
43321         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43322         (inline_syscall*): Add 'err' argument.
43323         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43324         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43325         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43326         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43327
43328         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43329         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43330
43331 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43332
43333         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43334
43335 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43336
43337         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43338         directive.
43339
43340 2011-08-24  David S. Miller  <davem@davemloft.net>
43341
43342         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43343
43344 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43345
43346         * elf/Makefile: Add rules to build and run unload8 test.
43347         * elf/unload8.c: New file.
43348         * elf/unload8mod1.c: New file.
43349         * elf/unload8mod1x.c: New file.
43350         * elf/unload8mod2.c: New file.
43351         * elf/unload8mod3.c: New file.
43352
43353         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43354         it wasn't used.
43355
43356 2011-08-23  David S. Miller  <davem@davemloft.net>
43357
43358         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43359         subtract stack bias.
43360         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43361         %sp not %fp in calculations.
43362         (_JMPBUF_UNWINDS_ADJ): Likewise.
43363
43364         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43365         (aio_suspend): Call it to force an exception region around the
43366         AIO_MISC_WAIT() invocation.
43367
43368 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43369
43370         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43371         backslash.
43372
43373 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43374
43375         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43376         protection macro.
43377         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43378         and <dl-machine.h>.
43379         (Elf64_FuncDesc): Remove.
43380
43381 2011-08-22  David S. Miller  <davem@davemloft.net>
43382
43383         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43384         sigaltstack check, add missing cfi directives.
43385         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43386         missing cfi directives, and sigaltstack handling.
43387
43388 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43389
43390         [BZ #11724]
43391         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43392         object is seen twice.
43393         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43394
43395         * elf/Makefile (distribute): Add tst-initorder2.c.
43396         (tests): Add tst-initorder2.
43397         (modules-names): Add tst-initorder2a tst-initorder2b
43398         tst-initorder2c tst-initorder2d.  Add rules to build them.
43399         ($(objpfx)tst-initorder2.out): New rule.
43400         * elf/tst-initorder2.c: New file.
43401         * elf/tst-initorder2.exp: New file.
43402
43403 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43404
43405         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43406
43407         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43408         dependencies back to end of function.
43409
43410         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43411         $(elfobjdir)/ld.so.
43412
43413 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43414
43415         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43416         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43417         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43418         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43419         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43420         of __vdso_gettimeofday.
43421         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43422         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43423         attribute_hidden.
43424         (_libc_vdso_platform_setup): Remove initialization of
43425         __vdso_gettimeofday and __vdso_time.
43426
43427 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43428
43429         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43430         and fgetc_unlocked.
43431         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43432         getc_unlocked.
43433
43434         * elf/dl-open.c (add_to_global): Report additions to the global scope
43435         for LD_DEBUG=scopes.
43436         (dl_open_worker): Also print scope of newly loaded dependencies.
43437         (_dl_show_scope): Indicate if there is no scope.
43438
43439         [BZ #13114]
43440         * stdio-common/Makefile (tests): Add bug24.
43441         * stdio-common/bug24.c: New file.
43442
43443 2011-08-19  Andreas Jaeger  <aj@suse.de>
43444
43445         [BZ #13114]
43446         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
43447         non-existant file when using close-on-exec mode.
43448
43449 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43450
43451         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
43452         the very first instruction.
43453
43454         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
43455         the CFI state in the end.
43456         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
43457         inclusion of dl-trampoline.h.
43458         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
43459
43460 2011-08-19  Andreas Schwab  <schwab@redhat.com>
43461
43462         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
43463         expectations for long double.
43464
43465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
43466         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
43467
43468 2011-08-14  David S. Miller  <davem@davemloft.net>
43469
43470         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
43471         artificual limit depends upon the system page size.
43472
43473 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43474
43475         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
43476         * resolv/Makefile: Define CFLAGS-libresolv.
43477
43478 2011-08-17  Andreas Schwab  <schwab@redhat.com>
43479
43480         * nss/makedb.c (compute_tables): Make variables used in nested
43481         function static.
43482
43483 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43484
43485         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43486         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43487         if buffer was too small.
43488
43489         * elf/pldd.c (main): Attach to all threads in the process.
43490         Rewrite /proc handling to use *at functions.
43491
43492 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43493
43494         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43495         specifies first scope to show.
43496         (dl_open_worker): Update callers.  Move printing scope of new
43497         object to before the relocation.
43498         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43499         * sysdeps/generic/ldsodefs.h: Update declaration.
43500
43501         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43502         string for the scope number.
43503
43504 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43505
43506         * nscd/servicescache.c (cache_addserv): Make sure written is always
43507         initialized.
43508
43509 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43510
43511         * sysdeps/i386/i486/bits/atomic.h
43512         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43513         statement expression, so as to suppress "set but not used" warning.
43514         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43515
43516         * string/strncat.c (STRNCAT): Use prototype definition.
43517
43518         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43519         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43520         -Iprograms here.
43521         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43522         (localedef-modules): Add localedef.
43523         (locale-modules): Add locale.
43524
43525         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43526         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43527         to avoid a warning.
43528
43529 2011-08-14  David S. Miller  <davem@davemloft.net>
43530
43531         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43532         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43533
43534 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43535
43536         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43537         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43538         * elf/rtld.c (dl_main): Set l_name of vDSO.
43539         Call _dl_show_scope when DL_DEBUG_SCOPES.
43540         (process_dl_debug): Recognize scopes flag and also set it for all.
43541         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43542         Declare _dl_show_scope.
43543
43544         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43545         (do_dlopen): Pass caller_dlopen to dl_open.
43546         (__libc_dlopen_mode): Initialize caller_dlopen.
43547
43548         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43549         of libc.  Make tolower call locale-independent.  Optimize a bit by
43550         using isdigit instead of isalnum.
43551         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43552
43553 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43554
43555         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43556         was a dependency or dynamically loaded.
43557
43558 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43559
43560         * intl/l10nflist.c: Allow architecture-specific pop function.
43561         * sysdeps/x86_64/l10nflist.c: New file.
43562
43563         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43564         classification.
43565
43566 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43567
43568         * include/dirent.h: Add libc_hidden_proto for scandirat and
43569         scandirat64.  Don't declare __scandirat64.
43570         * dirent/scandirat.c: Add libc_hidden_def.
43571         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43572         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43573
43574 2011-08-10  David S. Miller  <davem@davemloft.net>
43575
43576         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43577         enum.
43578         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43579         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43580         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43581
43582 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43583
43584         * Versions.def [libc]: Add GLIBC_2.15.
43585         * dirent/Makefile (routines): Add scandirat and scandirat64.
43586         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43587         GLIBC_2.15.
43588         * dirent/dirent.h: Declare scandirat and scandirat64.
43589         * dirent/scandirat.c: New file.
43590         * dirent/scandirat64.c: New file.
43591         * sysdeps/wordsize-64/scandirat.c: New file.
43592         * sysdeps/wordsize-64/scandirat64.c: New file.
43593         * dirent/opendir.c: Define opendirat.
43594         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43595         using scandirat.
43596         * dirent/scandir64.c: Adjust for scandir.c change.
43597         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43598         __scandirat64, and __scandir_cancel_handler.
43599         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43600         additional parameter and use openat instead of open (outside of ld.so).
43601         Add new __opendir as wrapper around __opendirat.
43602         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43603         here without requiring old scandirat implementation.
43604
43605 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43606
43607         * dirent/scandir.c (cancel_handler): Renamed to
43608         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43609         defined.  Adjust users.
43610         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43611         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43612
43613 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43614
43615         * string/test-string.h (IMPL): Use __STRING to expand name and then
43616         stringify it.
43617
43618         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43619         of cleanups.
43620
43621 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43622
43623         * string/Makefile: Update.
43624         (strop-tests): Append strncat.
43625         * string/test-wcscmp.c: New file.
43626         New comprehensive test for wcscmp.
43627         * string/test-strcmp.c: Update.
43628         (WIDE): New define.
43629
43630 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43631
43632         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43633         line.
43634
43635 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43636
43637         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43638         encoding to ACE if AI_IDN.
43639
43640 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43641
43642         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43643         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43644
43645 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43646
43647         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43648         Fix overflow bug in strncat.
43649         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43650
43651         * string/test-strncat.c: Update.
43652         Add new tests for checking overflow bugs.
43653
43654 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43655
43656         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43657         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43658         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43659         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43660         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43661         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43662         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43663         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43664         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43665
43666         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43667         (USE_AS_STRCAT): Define.
43668         Add strcat and strncat support.
43669         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43670
43671 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43672
43673         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43674         __n bigger than INT_MAX+1.
43675         (__strncmp_g): Likewise.
43676
43677 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43678
43679         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43680         * libio/stido.h: Likewise.
43681
43682         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43683         (AF_NFC): Define.
43684         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43685         (AF_NFC): Define.
43686
43687         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43688         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43689         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43690         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43691         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43692
43693         [BZ #13021]
43694         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43695         installed.
43696
43697         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43698         typo.
43699         (_dl_x86_64_save_sse): Likewise.
43700
43701 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43702
43703         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43704         OSXSAVE.
43705         (_dl_x86_64_save_sse): Likewise.
43706
43707         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43708
43709         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43710
43711 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43712
43713         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43714         change.
43715         (_dl_x86_64_save_sse): Use correct AVX check.
43716
43717 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43718
43719         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43720         bug in strncpy/strncat.
43721         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43722
43723 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43724
43725         * string/tester.c (test_strcat): Add tests for different alignments
43726         of source and destination.
43727         (test_strncat): Likewise.
43728
43729 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43730
43731         [BZ #12852]
43732         * posix/glob.c (glob): Check passed in values before using them in
43733         expressions to avoid some overflows.
43734         (glob_in_dir): Likewise.
43735
43736         [BZ #13007]
43737         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43738         check for AVX enablement so that we don't crash with old kernels and
43739         new hardware.
43740         * elf/tst-audit4.c: Add same checks here.
43741         * elf/tst-audit6.c: Likewise.
43742
43743         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43744
43745 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43746
43747         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43748
43749 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43750
43751         * po/cs.po: Update from translation team.
43752         * po/bg.po: Likewise.
43753
43754 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43755
43756         * misc/sys/cdefs.h: Add support for const attribute.
43757         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43758         to gnu_dev_{major,minor,makedev} functions.
43759
43760 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43761
43762         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43763
43764 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43765
43766         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43767         strlen results.
43768
43769 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43770
43771         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43772         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43773         register in order to avoid conflicts with the soft frame pointer
43774         being held in r11 when necessary.
43775         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43776         (INTERNAL_VSYSCALL_NCS): Likewise.
43777
43778 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43779
43780         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43781         * elf/dl-fini.c (_dl_fini): Adjust caller.
43782         * elf/dl-close.c (_dl_close_worker): Likewise.
43783         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43784
43785 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43786
43787         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43788         "aux_cache->nlibs < 0".
43789
43790         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43791         in the reload-count case.
43792
43793 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43794
43795         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43796         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43797         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43798         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43799         * sysdeps/x86_64/multiarch/strcat.S: New file.
43800         * sysdeps/x86_64/multiarch/strncat.S: New file.
43801         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43802         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43803         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43804         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43805         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43806         (USE_AS_STRCAT): Define.
43807         Add strcat and strncat support.
43808         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43809         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43810         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43811         * string/strncat.c: Update.
43812         (USE_AS_STRNCAT): Define.
43813         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43814         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43815         and i7.
43816         * sysdeps/x86_64/multiarch/init-arch.h
43817         (bit_Prefer_PMINUB_for_stringop): New.
43818         (index_Prefer_PMINUB_for_stringop): Likewise.
43819         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43820         bit_Prefer_PMINUB_for_stringop.
43821
43822 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43823
43824         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43825         buffer64.
43826         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43827         of casting of buffer.
43828         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43829         buffer32 and buffer64.
43830         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43831         writes instead of casting of buffer.
43832         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43833         buffer32.
43834         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43835         casting of buffer.
43836
43837 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43838
43839         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43840
43841 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43842
43843         * nscd/nscd.c (termination_handler): Don't do anything for a database
43844         if it has not yet been initialized.
43845
43846 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43847
43848         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43849
43850 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43851
43852         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43853
43854 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43855
43856         * po/nl.po: Update from translation team.
43857         * po/sv.po: Likewise.
43858
43859 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43860
43861         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43862         now disallowed by GCC.
43863
43864         * configure.in (use-default-link): Default to yes if a test -shared
43865         link meets our qualifications.
43866         * configure: Regenerated.
43867
43868         * config.make.in (output-format): New variable.
43869         * configure.in: Check for ld --print-output-format support.
43870         * configure: Regenerated.
43871         * Makerules ($(common-objpfx)format.lds)
43872         [$(output-format) != unknown]: Just use $(output-format),
43873         instead of the linker-script munging.
43874
43875 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43876
43877         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43878         of $(common-objpfx)shlib.lds.
43879         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43880
43881         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43882         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43883
43884         * configure.in (-z relro check): Adjust test code to add a large
43885         writable data section after it.
43886         * configure: Regenerated.
43887
43888 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43889
43890         * configure.in (-z relro check): Fix test code to make the variable
43891         truly const.
43892         * configure: Regenerated.
43893
43894 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43895
43896         * nscd/nscd.h (struct traced_file): Define.
43897         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43898         elements.  Add traced_files.
43899         (inotify_fd): Declare.
43900         (register_traced_file): Declare.
43901         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43902         (inotify_fd): Export.
43903         (resolv_conf_descr): Remove.
43904         (nscd_init): Move inotify descriptor creation to main.
43905         Don't register files for notification here.
43906         (register_traced_file): New function.
43907         (invalidate_cache): Don't use reset_res to determine whether to call
43908         res_init, go through the list of registered files.
43909         (main_loop_poll): The inotify descriptors are now stored in the
43910         structures for the traced files.
43911         (main_loop_epoll): Likewise
43912         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43913         to __nss_disable_nscd.
43914         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43915         for a database anymore.  Check the records for all the registered
43916         files instead.
43917         * nss/Makefile (libnss_files-routines): Add files-init.
43918         (libnss_db-routines): Add db-init.
43919         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43920         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43921         * nss/nss_db/db-init.c: New file.
43922         * nss/nss_files/files-init.c: New file.
43923         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43924         __nss_lookup_function.
43925         (__nss_lookup_function): Call nss_load_library.
43926         (nss_load_all_libraries): New function.
43927         (__nss_disable_nscd): Take parameter with callback function for files
43928         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43929         used for the cached services.
43930         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43931         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43932         options for features to all the files in nscd.
43933
43934         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43935
43936 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43937
43938         * csu/elf-init.c (__libc_csu_init): Comment typo.
43939
43940 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43941
43942         * po/pl.po: Update from translation team.
43943         * po/ja.po: Likewise.
43944         * po/ru.po: Likewise.
43945         * po/ko.po: Likewise.
43946         * po/fr.po: Likewise.
43947
43948 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43949
43950         * configure.in (.ctors/.dtors header and trailer check):
43951         Use an empirical test on a built program.
43952         * configure: Regenerated.
43953
43954         * configure.in (-z relro check): Use an empirical test on a built DSO.
43955         Detect, but do not require, on ia64.
43956         * configure: Regenerated.
43957
43958         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43959         Update tests that use readelf to use $READELF instead.
43960         * configure: Regenerated.
43961
43962 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43963
43964         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43965         if the result is not used.
43966
43967 2011-07-05  Andreas Jaeger  <aj@suse.de>
43968
43969         [BZ#9696]
43970         * stdlib/tst-strtod.c: Add testcase.
43971
43972 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43973
43974         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43975         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43976         The latter has a higher limit.  Take additional parameter to pass to
43977         the new function.
43978         (__pathconf): Pass file to __statfs_link_max.
43979         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43980         __statfs_link_max.
43981         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43982         __statfs_link_max.
43983
43984         [BZ #12868]
43985         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43986         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43987         Handle Lustre.
43988         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43989         (__statfs_filesize_max): Likewise.
43990         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43991
43992 2011-07-05  Andreas Jaeger  <aj@suse.de>
43993
43994         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43995
43996 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43997
43998         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43999         `status' variable.
44000         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
44001         Likewise.
44002
44003 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
44004
44005         * Makefile (strop-tests): Add strncat.
44006         * string/test-strncat.c: New file.
44007
44008 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
44009
44010         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
44011
44012 2011-06-21  Andreas Jaeger  <aj@suse.de>
44013
44014         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
44015         Copy rule from iconvdata/Makefile.
44016
44017 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44018
44019         [BZ #12922]
44020         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
44021         but no long options are defined, just return 'W'.
44022
44023 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
44024
44025         [BZ #9696]
44026         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
44027
44028 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44029
44030         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
44031         netgroups to read.
44032         (innetgr): Likewise.
44033
44034 2011-07-05  Roland McGrath  <roland@hack.frob.com>
44035
44036         * config.make.in (install_root): Default to $(DESTDIR).
44037
44038 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
44039
44040         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
44041
44042 2011-07-02  Roland McGrath  <roland@hack.frob.com>
44043
44044         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
44045
44046         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
44047         containing directory rather than embedding absolute directory names.
44048
44049         * scripts/check-local-headers.sh: Rewritten using awk.
44050         Match by word, not by line.  Print error messages for matches.
44051         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
44052
44053         * Makerules [shlib-lds-flags empty]:
44054         ($(common-objpfx)libc_pic.opts): New target.
44055         ($(common-objpfx)libc_pic.os.clean): New target.
44056         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
44057
44058         * config.make.in (OBJCOPY): New variable.
44059         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
44060         * configure: Regenerated.
44061
44062         * config.make.in (use-default-link): New variable.
44063         * configure.in (use_default_link): Grok --with-default-link to set it.
44064         * configure: Regenerated.
44065         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
44066         (shlib-lds, shlib-lds-flags): Define to empty.
44067
44068         * Makerules (shlib-lds): New variable.
44069         (shlib-lds-flags): New variable.
44070         (build-shlib, build-moduile, build-module-asneeded): Use it.
44071         ($(common-objpfx)libc.so): Use $(shlib-lds).
44072         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
44073         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
44074
44075         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
44076         DT_FLAGS/DT_FLAGS_1 with zero flags.
44077
44078         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
44079         linker script munging.
44080
44081 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
44082
44083         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
44084         as 128-bit value.
44085         * crypt/sha512.c (sha512_process_block): Perform total addition using
44086         128-bit if possible.
44087         (__sha512_finish_ctx): Likewise.
44088         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
44089         as 64-bit value.
44090         * crypt/sha256.c (SWAP64): Define.
44091         (sha256_process_block): Perform total addition using 64-bit if
44092         possible.
44093         (__sha256_finish_ctx): Likewise.
44094
44095 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
44096
44097         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
44098         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44099         * nscd/hstcache.c (cache_addhst): Likewise.
44100         * nscd/grpcache.c (cache_addgr): Likewise.
44101         * nscd/aicache.c (addhstaiX): Likewise
44102         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44103
44104 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44105
44106         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44107         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44108         * nscd/hstcache.c (cache_addhst): Likewise.
44109         * nscd/grpcache.c (cache_addgr): Likewise.
44110         * nscd/aicache.c (addhstaiX): Likewise
44111
44112 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44113
44114         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44115         domain only when needed.
44116
44117 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44118
44119         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44120         is always restored.
44121
44122 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44123
44124         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44125         are re-adding the entry.
44126         * nscd/servicescache.c (cache_addserv): Likewise.
44127
44128 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44129
44130         * sysdeps/generic/dl-irel.h: fix protection against multiple
44131         inclusions.
44132         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44133
44134 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44135
44136         [BZ #12935]
44137         * malloc/memusage.sh: Fix quoting in message.
44138         * debug/xtrace.sh: Likewise.
44139
44140         * configure.in: Remove support for --experimental-malloc option, make
44141         it the default.
44142         * config.make.in: Likewise.
44143         * malloc/Makefile: Likewise.
44144
44145 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44146
44147         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44148         two-byte characters.
44149
44150 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44151
44152         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44153         AC_CACHE_CHECK invocation.
44154         * configure: Regenerated.
44155
44156         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44157
44158 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44159
44160         [BZ #12350]
44161         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44162         bit from old_res_options.
44163
44164         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44165
44166         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44167         value type for setfct.
44168
44169 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44170
44171         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44172         __gettimeofday instead of gettimeofday.
44173
44174 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44175
44176         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44177
44178 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44179
44180         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44181
44182         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44183         info.
44184
44185 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44186
44187         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44188         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44189         strcpy-sse2-unaligned strncpy-sse2-unaligned
44190         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44191         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44192         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44193         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44194         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44195         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44196         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44197         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44198         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44199         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44200         (STRCPY): Support SSE2 and SSSE3 versions.
44201
44202 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44203
44204         [BZ #12874]
44205         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44206         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44207         kernels which artificially limit size of requests.
44208
44209 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44210
44211         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44212         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44213         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44214         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44215         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44216         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44217         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44218         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44219         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44220         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44221         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44222         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44223         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44224         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44225         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44226         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44227         Enable unaligned load optimization for Intel Core i3, i5 and i7
44228         processors.
44229         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44230         Define.
44231         (index_Fast_Unaligned_Load): Define.
44232         (HAS_FAST_UNALIGNED_LOAD): Define.
44233
44234 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44235
44236         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44237
44238 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44239
44240         [BZ #12907]
44241         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44242         until it is clear that the information is realy needed.
44243         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44244
44245 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44246
44247         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44248
44249 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44250
44251         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44252         /sys/devices/system/cpu/online if it is usable.
44253
44254         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44255         reading the information from the /proc filesystem to once a second.
44256
44257 2011-06-21  Andreas Jaeger  <aj@suse.de>
44258
44259         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44260         NULL after inclusion of kernel headers.
44261
44262 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44263
44264         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44265         calls to internal_setent.
44266
44267         [BZ #12885]
44268         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44269         addresses using gethostbyname4_r ignore IPv4 addresses.
44270
44271         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44272         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44273
44274         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44275
44276 2011-06-20  David S. Miller  <davem@davemloft.net>
44277
44278         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44279         inclusions.
44280         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44281
44282         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44283         (elf_irel): Use it.
44284         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44285         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44286         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44287         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44288         * sysdeps/x86_64/dl-irel.h: Likewise.
44289
44290         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44291         * elf/dl-sym.c: Likewise.
44292
44293 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44294
44295         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44296         need to dereference resplen2.
44297
44298 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44299
44300         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44301
44302 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44303
44304         * Makeconfig: Define vardbdir and inst_vardbdir.
44305         * nss/Makefile: Add rules to install db-Makefile.
44306
44307         * nss/nss_db/db-XXX.c: Cleanup.
44308
44309         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44310         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44311         GLIBC_PRIVATE.
44312         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44313         * nss/makedb.c: Implement -g option to specify that value strings
44314         are generated and should not be added to table iterated over for
44315         get*ent calls.
44316         * nss/nss_db/db-initgroups.c: New file.
44317
44318         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44319         interface.
44320
44321         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44322         (internal_getgrouplist): Adjust to name change.
44323         Update use_initgroups_entry if this is not the first call.
44324         * nss/databases.def: Add initgroups entry.
44325
44326         * nss/makedb.c (compute_tables): Check result of multiple hash table
44327         sizes to minimize maximum chain length.
44328
44329 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44330
44331         * Versions.def: Add entry for libnss_db.
44332         * shlib-versions: Likewise.
44333         * nss/Makefile: Add rules to build libnss_db.
44334         * nss/Versions: Add libnss_db information.  Organize libnss_files
44335         entries better.
44336         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44337         makedb progra.  Some minor improvements to generate smaller files.
44338         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44339         here from...
44340         * nss/makedb.c: ...here.
44341         Improve database format to be smaller and require less memory at
44342         runtime.
44343         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44344         db anymore.
44345         * nss/nss_db/db-netgrp.c: Likewise.
44346         * nss/nss_db/db-open.c: Likewise.
44347         * nss/nss_files/flies-XXX.x: Adjust comments.
44348         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44349         * nss/nss_files/files-grp.c: Likewise.
44350         * nss/nss_files/files-hosts.c: Likewise.
44351         * nss/nss_files/files-network.c: Likewise.
44352         * nss/nss_files/files-proto.c: Likewise.
44353         * nss/nss_files/files-pwd.c: Likewise.
44354         * nss/nss_files/files-rpc.c: Likewise.
44355         * nss/nss_files/files-service.c: Likewise.
44356         * nss/nss_files/files-sgrp.c: Likewise.
44357         * nss/nss_files/files-spwd.c: Likewise.
44358         * nss/nss_db/db-alias.c: Removed.
44359         * nss/nss_db/dummy-db.h: Removed.
44360
44361 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44362
44363         * nss/makedb.c: Rewritten to not use database library.
44364         * nss/Makefile: Update to build new makedb program.
44365
44366 2011-06-14  Andreas Jaeger  <aj@suse.de>
44367
44368         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44369         memset declaration.
44370
44371 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44372
44373         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44374         tmpbuf.
44375
44376 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44377
44378         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44379         * elf/Makefile ($(objpfx)ld.so): Likewise.
44380
44381         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44382         Don't list ld.so twice in dependencies.
44383
44384         * posix/bug-regex31.c: Include <stdlib.h>.
44385
44386         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44387
44388         * nis/nss_compat/compat-spwd.c
44389         (getspent_next_nss_netgr): Remove unused variable.
44390         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44391
44392         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44393         nonmembers" output to use the right array.
44394
44395         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44396
44397         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44398
44399         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44400         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44401         * catgets/gencat.c (read_input_file): Likewise.
44402         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44403
44404         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44405         variable definition inside #if's controlling its use.
44406
44407         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44408
44409         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44410
44411         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44412
44413         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44414         unreachable code.
44415
44416         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44417
44418         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44419         * configure: Regenerated.
44420
44421         * Makerules: Revert last change.
44422         * elf/Makefile: Likewise.
44423
44424 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44425
44426         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44427         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44428         (reloc-link): Likewise.
44429
44430 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44431
44432         * elf/Makefile: Add rules to build pldd.
44433         * elf/pldd.c: New file.
44434         * elf/pldd-xx.c: New file.
44435
44436 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44437
44438         * version.h: Update for 2.15 development version.
44439
44440 2011-06-07  David S. Miller  <davem@davemloft.net>
44441
44442         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
44443         ifuncs.
44444         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
44445         elf_machine_lazy_rel): Likewise.
44446         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44447         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
44448         elf_machine_lazy_rel): Likewise.
44449         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
44450         dl_hwcap via passed in argument.
44451         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
44452         Likewise.
44453
44454 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44455
44456         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
44457
44458 2011-06-06  Roland McGrath  <roland@hack.frob.com>
44459
44460         [BZ #12849]
44461         * manual/fdl-1.1.texi: New file, verbatim from:
44462         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
44463         * manual/lgpl-2.1.texi: New file, verbatim from:
44464         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
44465         * manual/Makefile (licenses): New variable, list those new file names.
44466         (texis): Use it.
44467         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
44468
44469         * manual/fdl.texi: File removed.
44470         * manual/lesser.texi: File removed.
44471         * manual/libc.texinfo (Copying, Documentation License):
44472         Use new @include file names, put @appendix directive before @include.
44473
44474 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
44475
44476         [BZ #12841]
44477         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
44478         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
44479         (mq_open): Add __NTH.
44480
44481 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
44482
44483         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44484         Assume Intel Core i3/i5/i7 processor if AVX is available.
44485
44486 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44487
44488         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44489         typo.
44490
44491 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44492
44493         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44494         memory.  Use alloca_account.  Fix memory leak when retrying.
44495
44496 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44497
44498         * version.h (RELEASE): Bump for 2.14 release.
44499         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44500
44501         * config.make.in (RANLIB): Remove entry.
44502
44503 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44504
44505         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44506         (libc.pot): Work around missing support for .ksh extension in xgettext.
44507
44508         [BZ #12684]
44509         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44510         if both request failed.
44511         (send_dg): In case of server errors clear resplen or *resplen2.
44512
44513         [BZ #12454]
44514         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44515         when there are multiple maps.
44516         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44517         (_dl_fini): Remove test here.
44518
44519         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44520
44521 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44522
44523         [BZ #12350]
44524         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44525         bit from old_res_options.
44526         (gaih_inet): Likewise.
44527
44528         [BZ #11099]
44529         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44530         as signed.
44531
44532         * resolv/res_init.c (res_setoptions): Make the code more compact.
44533
44534         [BZ #11558]
44535         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44536         set RES_USEVC.
44537
44538         [BZ #11634]
44539         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44540
44541         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44542
44543         [BZ #11781]
44544         * malloc/malloc.h: Declare malloc hook variables as volatile.
44545
44546         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44547         in last patch.
44548
44549         [BZ #11799]
44550         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44551         raise in the comment.
44552         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44553         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44554         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44555
44556 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44557
44558         [BZ #12811]
44559         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44560         grow the buffers more if it already has to be sufficient.
44561         (build_wcs_upper_buffer): Likewise.
44562         * posix/regexec.c (check_matching): Likewise.
44563         (clean_state_log_if_needed): Likewise.
44564         (extend_buffers): Don't enlarge buffers beyond size of the input
44565         buffer.
44566         Patches mostly by Emil Wojak <emil@wojak.eu>.
44567         * posix/bug-regex32.c: New file.
44568         * posix/Makefile (tests): Add bug-regex32.
44569
44570         * locale/findlocale.c (_nl_find_locale): Return right away if
44571         _nl_explode_name failed.
44572         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44573
44574         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44575
44576         * debug/xtrace.sh: Unify messages.
44577         * malloc/memusage.sh: Likewise.
44578
44579         [BZ #12813]
44580         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44581         time symbol from vDSO.  Substitute with vsyscall if not available.
44582         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44583         __vdso_time.
44584
44585         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44586         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44587         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44588         Add sendmmsg and internal_sendmmsg.
44589         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44590         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44591         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44592
44593         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44594         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44595         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44596
44597 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44598
44599         [BZ #12813]
44600         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44601         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44602         available.
44603         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44604         __vdso_getcpu.
44605
44606         [BZ #12814]
44607         * iconvdata/Makefile (tests): Add bug-iconv9.
44608         * iconvdata/bug-iconv9.c: New file.
44609
44610 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44611
44612         [BZ #12814]
44613         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44614
44615 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44616
44617         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44618         (struct user_regs_struct): Change intcs field back to cs.
44619
44620 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44621
44622         * po/ja.po: Update from translation team.
44623
44624 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44625
44626         [BZ #12795]
44627         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44628         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44629
44630 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44631
44632         * stdlib/longlong.h: Update from GCC.
44633
44634 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44635
44636         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44637         parameter name.
44638         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44639         Add parameter name.
44640         (__sysconf): Pass it down.
44641
44642 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44643
44644         [BZ #12671]
44645         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44646         some situations.
44647         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44648         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44649         add in in __libc_use_alloca calls.  Adjust callers.
44650         (glob): Use malloc in some situations.
44651
44652         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44653         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44654         pltexit.
44655
44656 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44657
44658         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44659         and CLOCK_BOOTTIME_ALARM.
44660
44661         [BZ #12782]
44662         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44663         is returned.
44664
44665         * string/_strerror.c (__strerror_r): Print negative errors as signed
44666         numbers.
44667
44668         [BZ #12777]
44669         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44670         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44671         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44672
44673         * configure.in: Fix typo in redirection and correct removal of test
44674         files in two cases.
44675
44676         [BZ #12788]
44677         * locale/setlocale.c (new_composite_name): Fix test to check for
44678         identical name of all categories.
44679
44680         [BZ #12792]
44681         * libio/filedoalloc.c (local_isatty): New function.
44682         (_IO_file_doallocate): Use local_isatty.
44683         * stdio-common/perror.c (perror): In case a new stream is used
44684         forward the stream error.
44685         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44686         error flag.
44687
44688 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44689
44690         [BZ #11869]
44691         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44692         alloca.
44693         * include/alloca.h (extend_alloca_account): Define.
44694
44695         [BZ #11857]
44696         * posix/regex.h: Fix comments with documentation of user-accessible
44697         fields after compilation and describe correct free'ing of pattern
44698         after re_compile_pattern.
44699         Patch by Reuben Thomas <rrt@sc3d.org>.
44700
44701 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44702
44703         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44704         and -mno-altivec to prevent the compiler from using Altivec and/or
44705         VSX instructions when the corresponding registers are not available.
44706
44707 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44708
44709         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44710
44711 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44712
44713         * libio/freopen.c (freopen): Use __dup2, not dup2.
44714         * libio/freopen64.c (freopen64): Likewise.
44715
44716 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44717
44718         [BZ #12775]
44719         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44720         * math/Makefile (tests): Add test-powl.
44721         (CFLAGS-test-powl.c): Define.
44722         * math/test-powl.c: New file.
44723
44724 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44725
44726         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44727
44728 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44729
44730         [BZ #11837]
44731         * iconvdata/gb18030.c: Update to GB18020-2005.
44732
44733 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44734
44735         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44736         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44737         Patch by Aharon Robbins <arnold@skeeve.com>.
44738
44739         [BZ #11892]
44740         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44741         on the stack.
44742
44743         [BZ #11895]
44744         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44745         through underflows.
44746
44747         [BZ #12766]
44748         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44749         point to strings before performing equality test for error_one_per_line
44750         mode.
44751
44752         [BZ #11697]
44753         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44754
44755         [BZ #11820]
44756         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44757         (struct user_fpregs_struct): Avoid __uint*_t types.
44758
44759         [BZ #6420]
44760         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44761         symbol info.  Use it instead of calling _dl_addr locally.
44762         (lock_and_info): New function.
44763         (tr_freehook): Call lock_and_info and pass symbol info as additional
44764         parameter to tr_where.
44765         (tr_mallochook): Likewise.
44766         (tr_reallochook): Likewise.
44767         (tr_memalignhook): Likewise.
44768
44769         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44770         used and couldn't be at all thread-safe.
44771
44772 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44773
44774         * libio/freopen.c (freopen): Don't close old file descriptor
44775         before the new one is opened.  Instead dup the new file descriptor
44776         to the old one after the new stream is created.
44777         * libio/freopen64.c (freopen64): Likewise.
44778         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44779         * libio/fileops.c (_IO_new_file_close_it): Handle new
44780         _IO_FLAGS2_NOCLOSE flag.
44781         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44782         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44783         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44784         _IO_FLAGS2_NOCLOSE flag.
44785         * include/unistd.h: Add hidden_proto for dup3.
44786         Define __have_dup3.
44787         * io/dup3.c: Define hidden symbol.
44788         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44789
44790         [BZ #7101]
44791         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44792         when an incomplete long option is used.
44793         * posix/tst-getopt_long1.c: New file.
44794         * posix/Makefile (tests): Add tst-getopt_long1.
44795
44796         [BZ #10138]
44797         * scripts/config.guess: Update from autoconf-2.68.
44798         * scripts/config.sub: Likewise.
44799
44800         [BZ #10157]
44801         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44802         tests into ...
44803         (has_cpuclock): ...this.  New function.
44804         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44805         macro here based on has_cpuclock code.
44806
44807         [BZ #10149]
44808         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44809         First byte (not low byte) is now always NUL.
44810         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44811
44812         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44813         Use non-cancelable interfaces.
44814
44815         [BZ #9809]
44816         * locale/iso-639.def: Add entry for Sorani.
44817
44818         [BZ #11901]
44819         * include/stdlib.h: Move include protection to the right place.
44820         Define abort_msg_s.  Declare __abort_msg with it.
44821         * stdlib/abort.c (__abort_msg): Adjust type.
44822         * assert/assert.c (__assert_fail_base): New function.  Majority
44823         of code from __assert_fail.  Allocate memory for __abort_msg with
44824         mmap.
44825         (__assert_fail): Now call __assert_fail_base.
44826         * assert/assert-perr.c: Remove bulk of implementation.  Use
44827         __assert_fail_base.
44828         * include/assert.hL Declare __assert_fail_base.
44829         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44830         mmap.
44831         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44832
44833 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44834
44835         [BZ #11952]
44836         [BZ #12453]
44837         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44838         until all modules are registered in the DTV.
44839         * elf/Makefile: Add rules to build and run tst-tls19.
44840         * elf/tst-tls19.c: New file.
44841         * elf/tst-tls19mod1.c: New file.
44842         * elf/tst-tls19mod2.c: New file.
44843         * elf/tst-tls19mod3.c: New file.
44844         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44845
44846         [BZ #12083]
44847         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44848         correctly.
44849
44850         [BZ #12601]
44851         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44852         two-byte sequence errors.
44853         * iconvdata/Makefile (tests): Add bug-iconv8.
44854         * iconvdata/bug-iconv8.c: New file.
44855
44856         [BZ #12626]
44857         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44858         buf2 definition.
44859
44860         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44861
44862         [BZ #12432]
44863         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44864         (dummy_getcfa): New function.
44865         (init): Get _Unwind_GetCFA address, use dummy if not found.
44866         (backtrace_helper): In recursion check, also check whether CFA changes.
44867         (__backtrace): Completely initialize arg.
44868
44869         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44870         storing incomplete byte sequence in state object.  Avoid testing for
44871         guaranteed too small input if we know there is enough data available.
44872
44873 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44874
44875         * Makeconfig (+link-pie): Indent.
44876         * Rules (binaries-pie): Define if $(have-fpie) and
44877         $(build-shared).
44878         (binaries-shared): Also filter out $(binaries-pie).
44879         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44880         * nscd/Makefile (others-pie): Add nscd.
44881         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44882         ($(objpfx)nscd): Remove command override.
44883         * login/Makefile (others-pie): Add pt_chown.
44884         ($(objpfx)pt_chown): Remove command override.
44885         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44886         remove command overrides.
44887
44888 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44889
44890         * libio/tst_putwc.c: Fix error messages.
44891
44892         [BZ #12724]
44893         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44894         currently writing and seek to current position when not.
44895         * libio/Makefile (tests): Add bug-fclose1.
44896         * libio/bug-fclose1.c: New file.
44897
44898 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44899
44900         [BZ #12511]
44901         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44902         don't set DF_1_NODELETE here.
44903         (do_lookup_x): When entering new entry test for copy relocation
44904         and if necessary set DF_1_NODELETE flag.
44905         * elf/tst-unique4.cc: New file.
44906         * elf/tst-unique4.h: New file.
44907         * elf/tst-unique4lib.cc: New file.
44908         * elf/Makefile: Add rules to build and run tst-unique4.
44909         Patch by Piotr Bury <pbury@goahead.com>.
44910
44911 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44912
44913         [BZ #12052]
44914         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44915
44916         [BZ #12625]
44917         * misc/mntent_r.c (addmntent): Flush the stream after the output
44918
44919         [BZ #12393]
44920         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44921         (is_trusted_path_normalize): Skip initial colon.  Append slash
44922         to empty buffer.  Duplicate is_trusted_path code but allow
44923         constructed patch to be prefix.
44924         (is_dst): Allow $ORIGIN followed by /.
44925         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44926         Correct testing of result of is_trusted_path_normalize
44927         (decompose_rpath): Fix warning.
44928
44929 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44930
44931         [BZ #11257]
44932         * grp/initgroups.c (internal_getgrouplist): When we found the service
44933         list through the initgroups entry in nsswitch.conf do not always
44934         continue on a successful lookup.  Don't always use the
44935         __nss_group_database value if it is set.
44936         * nss/nsswitch.conf (initgroups): Change action for successful db
44937         lookup to continue for compatibility.
44938
44939 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44940
44941         [BZ #11532]
44942         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44943         and CP774 modules.
44944         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44945         and CP774 modules.
44946         * iconvdata/tst-tables.sh: Likewise.
44947         * iconvdata/cp770.c: New file.
44948         * iconvdata/cp771.c: New file.
44949         * iconvdata/cp772.c: New file.
44950         * iconvdata/cp773.c: New file.
44951         * iconvdata/cp774.c: New file.
44952         * iconvdata/testdata/CP770: New file.
44953         * iconvdata/testdata/CP770..UTF8: New file.
44954         * iconvdata/testdata/CP771: New file.
44955         * iconvdata/testdata/CP771..UTF8: New file.
44956         * iconvdata/testdata/CP772: New file.
44957         * iconvdata/testdata/CP772..UTF8: New file.
44958         * iconvdata/testdata/CP773: New file.
44959         * iconvdata/testdata/CP773..UTF8: New file.
44960         * iconvdata/testdata/CP774: New file.
44961         * iconvdata/testdata/CP774..UTF8: New file.
44962
44963         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44964         END CHARMAP line.
44965         * iconvdata/gen-8bit-gap.sh: Likewise.
44966         * iconvdata/gen-8bit.sh: Likewise.
44967
44968         * locale/iso-639.def: Add ary entry.
44969
44970         [BZ #11258]
44971         * locale/C-translit.h.in: Add U20A1 transliteration.
44972
44973         [BZ #12178]
44974         * locale/iso-639.def: Add wae entry.
44975         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44976
44977         [BZ #12545]
44978         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44979         for n.
44980
44981         [BZ #12711]
44982         * locale/C-translit.h.in: Add entry for U20B9.
44983         Patch by pravin.d.s@gmail.com.
44984
44985 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44986
44987         [BZ #12713]
44988         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44989         ENAMETOOLONG use generic getcwd.
44990         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44991         in rtld.  Use *stat64.
44992         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44993         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44994         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44995         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44996         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44997         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44998         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44999         __fstatat64 macros.
45000         * include/dirent.h: Add libc_hidden_proto for rewinddir.
45001         * dirent/rewinddir.c: Add libc_hidden_def.
45002         * sysdeps/mach/hurd/rewinddir.c: Likewise.
45003         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
45004
45005         * include/dirent.h (__alloc_dir): Add flags parameter.
45006         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
45007         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
45008         __alloc_dir.
45009         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
45010         from fdopendir if O_CLOEXEC is already set.
45011
45012 2011-03-15  Alan Modra  <amodra@gmail.com>
45013
45014         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
45015         l_tls_firstbyte_offset non-zero.  Save padding offset in
45016         l_tls_firstbyte_offset for later use.
45017         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
45018         freeing static tls block.
45019
45020 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
45021
45022         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
45023         where #ifdef was intended.  The intent is to prevent ARG_MAX from
45024         being defined by the kernel headers.
45025
45026 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
45027
45028         [BZ #12734]
45029         * resolv/resolv.h: Define RES_NOTLDQUERY.
45030         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
45031         no-tld-query and set RES_NOTLDQUERY.
45032         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
45033         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
45034         modern BIND to search name as TLD unless forbidden.
45035
45036 2011-05-07  Petr Baudis  <pasky@suse.cz>
45037             Ulrich Drepper  <drepper@gmail.com>
45038
45039         [BZ #12393]
45040         * elf/dl-load.c (fillin_rpath): Move trusted path check...
45041         (is_trusted_path): ...to here.
45042         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
45043         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
45044         using is_trusted_path_normalize() in setuid scripts.
45045
45046 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
45047
45048         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
45049         __BEGIN/__END_DECLS.
45050
45051 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
45052
45053         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
45054         NSS_STATUS_NOTFOUND if no record was found.
45055
45056 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45057
45058         * sunrpc/Makefile (headers): Add rpc/netdb.h.
45059         (headers-not-in-tirpc): Remove rpc/netdb.h
45060         * resolv/netdb.h: Revert last change.
45061
45062 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
45063
45064         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
45065         circular dependency between libgcc.a and libc.a.
45066
45067 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45068
45069         * resolv/netdb.h: Don't include <rpc/netdb.h>.
45070         * nis/Makefile: Don't install rpcsvc/*.
45071         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
45072         instead of <rpc/types.h>.
45073         (MAXHOSTNAMELEN): Define.
45074
45075 2011-05-03  Andreas Schwab  <schwab@redhat.com>
45076
45077         * elf/ldconfig.c (add_dir): Don't crash on empty path.
45078
45079 2011-04-28  Maciej Babinski  <mbabinski@google.com>
45080
45081         [BZ #12714]
45082         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
45083         gethostbyname4_r when IPv6 results are possible.
45084
45085 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
45086
45087         [BZ #12723]
45088         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
45089         _PC_PIPE_BUF handling.
45090
45091 2011-04-30  Bruno Haible  <bruno@clisp.org>
45092
45093         [BZ #12717]
45094         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
45095         * resolv/netdb.h (getnameinfo): Change type of flags parameter
45096         to 'int'.
45097         * inet/getnameinfo.c (getnameinfo): Likewise.
45098
45099 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
45100
45101         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45102         to groups setting in database lookup.
45103         * nss/nsswitch.conf: Add initgroups entry.
45104
45105 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45106
45107         [BZ #12685]
45108         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45109         mode string.
45110         Patch by Eric Blake <eblake@redhat.com>.
45111
45112 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45113
45114         * sunrpc/Makefile (need-export-routines): Add svc_run.
45115         (routines): Remove svc_run.
45116         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45117         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45118         * sunrpc/svc_run.c (svc_run): Likewise.
45119         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45120
45121 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45122
45123         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45124         problem in reallocation in last patch.
45125
45126 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45127
45128         * sunrpc/Makefile: Move inclusion of Rules.
45129
45130 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45131
45132         * nss/nss_files/files-initgroups.c: New file.
45133         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45134         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45135         _nss_files_initgroups_dyn.
45136
45137 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45138
45139         * elf/elf.h (R_ARM_IRELATIVE): Define.
45140
45141 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45142
45143         * po/ru.po: Update from translation team.
45144
45145 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45146
45147         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45148         dependencies.
45149
45150 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45151
45152         [BZ #12653]
45153         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45154         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45155         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45156         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45157         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45158
45159 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45160
45161         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45162         differing bytes.
45163         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45164         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45165         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45166
45167 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45168
45169         [BZ #12420]
45170         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45171         storing it.
45172         * stdlib/bug-getcontext.c: New file.
45173         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45174
45175 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45176
45177         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45178         instructions into .machine "z9-109".
45179         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45180         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45181
45182 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45183
45184         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45185         between environment variables and auxiliary vector.
45186
45187 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45188
45189         * Makefile: Add rules to build linkobj/libc.so.
45190         * include/libc-symbols.h: Define libc_hidden_nolink.
45191         * include/rpc/auth.h: Mark functions which are to be hidden.
45192         * include/rpc/auth_des.h: Likewise.
45193         * include/rpc/auth_unix.h: Likewise.
45194         * include/rpc/clnt.h: Likewise.
45195         * include/rpc/des_crypt.h: Likewise.
45196         * include/rpc/key_prot.h: Likewise.
45197         * include/rpc/pmap_clnt.h: Likewise.
45198         * include/rpc/pmap_prot.h: Likewise.
45199         * include/rpc/pmap_rmt.h: Likewise.
45200         * include/rpc/rpc_msg.h: Likewise.
45201         * include/rpc/svc.h: Likewise.
45202         * include/rpc/svc_auth.h: Likewise.
45203         * include/rpc/xdr.h: Likewise.
45204         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45205         * nss/Makefile: Likewise.
45206         * sunrpc/Makefile: Don't install headers.  Build library with normal
45207         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45208         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45209         for the compat linking library.  Remove use of INTDEF/INTUSE.
45210         * sunrpc/auth_none.c: Likewise.
45211         * sunrpc/auth_unix.c: Likewise.
45212         * sunrpc/authdes_prot.c: Likewise.
45213         * sunrpc/authuxprot.c: Likewise.
45214         * sunrpc/clnt_gen.c: Likewise.
45215         * sunrpc/clnt_perr.c: Likewise.
45216         * sunrpc/clnt_raw.c: Likewise.
45217         * sunrpc/clnt_simp.c: Likewise.
45218         * sunrpc/clnt_tcp.c: Likewise.
45219         * sunrpc/clnt_udp.c: Likewise.
45220         * sunrpc/clnt_unix.c: Likewise.
45221         * sunrpc/des_crypt.c: Likewise.
45222         * sunrpc/des_soft.c: Likewise.
45223         * sunrpc/get_myaddr.c: Likewise.
45224         * sunrpc/key_call.c: Likewise.
45225         * sunrpc/key_prot.c: Likewise.
45226         * sunrpc/netname.c: Likewise.
45227         * sunrpc/pm_getmaps.c: Likewise.
45228         * sunrpc/pm_getport.c: Likewise.
45229         * sunrpc/pmap_clnt.c: Likewise.
45230         * sunrpc/pmap_prot.c: Likewise.
45231         * sunrpc/pmap_prot2.c: Likewise.
45232         * sunrpc/pmap_rmt.c: Likewise.
45233         * sunrpc/publickey.c: Likewise.
45234         * sunrpc/rpc_cmsg.c: Likewise.
45235         * sunrpc/rpc_common.c: Likewise.
45236         * sunrpc/rpc_dtable.c: Likewise.
45237         * sunrpc/rpc_prot.c: Likewise.
45238         * sunrpc/rpc_thread.c: Likewise.
45239         * sunrpc/rtime.c: Likewise.
45240         * sunrpc/svc.c: Likewise.
45241         * sunrpc/svc_auth.c: Likewise.
45242         * sunrpc/svc_authux.c: Likewise.
45243         * sunrpc/svc_raw.c: Likewise.
45244         * sunrpc/svc_run.c: Likewise.
45245         * sunrpc/svc_simple.c: Likewise.
45246         * sunrpc/svc_tcp.c: Likewise.
45247         * sunrpc/svc_udp.c: Likewise.
45248         * sunrpc/svc_unix.c: Likewise.
45249         * sunrpc/svcauth_des.c: Likewise.
45250         * sunrpc/xcrypt.c: Likewise.
45251         * sunrpc/xdr.c: Likewise.
45252         * sunrpc/xdr_array.c: Likewise.
45253         * sunrpc/xdr_float.c: Likewise.
45254         * sunrpc/xdr_intXX_t.c: Likewise.
45255         * sunrpc/xdr_mem.c: Likewise.
45256         * sunrpc/xdr_rec.c: Likewise.
45257         * sunrpc/xdr_ref.c: Likewise.
45258         * sunrpc/xdr_sizeof.c: Likewise.
45259         * sunrpc/xdr_stdio.c: Likewise.
45260
45261 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45262
45263         [BZ #12650]
45264         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45265         * sysdeps/ia64/dl-tls.h: Likewise.
45266         * sysdeps/powerpc/dl-tls.h: Likewise.
45267         * sysdeps/s390/dl-tls.h: Likewise.
45268         * sysdeps/sh/dl-tls.h: Likewise.
45269         * sysdeps/sparc/dl-tls.h: Likewise.
45270         * sysdeps/x86_64/dl-tls.h: Likewise.
45271         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45272
45273 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45274
45275         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45276         rpath element also skip the following colon.
45277         (expand_dynamic_string_token): Add is_path parameter and pass
45278         down to DL_DST_REQUIRED and _dl_dst_substitute.
45279         (decompose_rpath): Call expand_dynamic_string_token with
45280         non-zero is_path.  Ignore empty rpaths.
45281         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45282         with zero is_path.
45283
45284 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45285
45286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45287         Make cancelable.
45288
45289 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45290
45291         [BZ #12655]
45292         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45293         Patch by Filipe David Manana <fdmanana@apache.org>.
45294
45295 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45296
45297         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45298         Maintain aligned stack.
45299         (CHECK_RSP): Remove unused macro.
45300
45301 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45302
45303         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45304         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45305
45306 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45307
45308         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45309
45310         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45311
45312 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45313
45314         [BZ #12518]
45315         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45316         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45317         * sysdeps/x86_64/memmove.c: New file.
45318         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45319         (memcpy): Renamed to ...
45320         (__new_memcpy): This.
45321         (memcpy): Provide GLIBC_2_14 memcpy.
45322         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45323         (memcpy): Provide GLIBC_2_2_5 memcpy.
45324
45325 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45326
45327         [BZ #12631]
45328         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45329
45330 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45331
45332         * misc/syncfs.c: New file.
45333         * misc/Makefile (routines): Add syncfs.
45334         * posix/unistd.h: Declare syncfs.
45335         * sysdeps/unix/syscalls.list: Add syncfs.
45336
45337 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45338
45339         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45340         open_by_handle_at.
45341         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45342         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45343         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45344         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45345         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45346         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45347         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45348
45349 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45350
45351         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45352         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45353         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45354         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45355         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45356         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45357         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45358
45359         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45360         sync_file_range.c with -fexceptions.
45361         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45362         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45363         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45364         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45365         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45366         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45367         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45368         sync_file_range as cancellation point
45369         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45370         now a wrapper around __call_sync_file_range with cancellation handling.
45371         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45372         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45373         function name to __call_sync_file_range.
45374         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45375         Add call_sync_file_range.
45376
45377 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45378
45379         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45380         bits/timex.h.
45381
45382 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45383
45384         * iconv/iconv.h: Fix typo in comment.
45385         * io/fcntl.h: Likewise.
45386         * libio/stdio.h: Likewise.
45387         * posix/spawn.h: Likewise.
45388         * posix/unistd.h: Likewise.
45389         * stdlib/stdlib.h: Likewise.
45390         * time/time.h: Likewise.
45391         * wcsmbs/wchar.h: Likewise.
45392
45393         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45394         open_by_handle): Add.
45395         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45396         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45397         Augment a few comments.
45398         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45399         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45400         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45401         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45402         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45403         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45404         open_by_handle.
45405
45406         * io/fcntl.h (AT_EMPTY_PATH): Define.
45407
45408 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45409
45410         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45411         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45412         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45413         to...
45414         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45415         * Versions.def: Add GLIBC_2.14.
45416         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45417         Export.
45418
45419 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45420
45421         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45422         round counter.
45423         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45424
45425 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45426
45427         [BZ #12597]
45428         * string/test-strncmp.c (do_page_test): New function.
45429         (check2): Likewise.
45430         (test_main): Call check2.
45431         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45432
45433 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45434
45435         [BZ #12587]
45436         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45437         Handle cache information in CPU leaf 4.
45438         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45439
45440 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45441
45442         [BZ #12583]
45443         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
45444         character representation.
45445         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
45446
45447 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
45448
45449         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45450         END(__isnan) to END(__isnanf) to match function entry point/label
45451         EALIGN(__isnanf,...).
45452
45453 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
45454
45455         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
45456
45457 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
45458
45459         [BZ #12510]
45460         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
45461         copy from the symbol referenced in the relocation to initialize the
45462         used variable.
45463         Patch by Piotr Bury <pbury@goahead.com>.
45464         * elf/Makefile: Add rules to build and tst-unique3.
45465         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
45466         * elf/tst-unique3.cc: New file.
45467         * elf/tst-unique3.h: New file.
45468         * elf/tst-unique3lib.cc: New file.
45469         * elf/tst-unique3lib2.cc: New file.
45470
45471         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
45472
45473 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
45474
45475         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
45476         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
45477         to _start.
45478
45479 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
45480
45481         * elf/dl-load.c (_dl_map_object): If we are looking for the first
45482         to-be-loaded object along a path to loader is ld.so.
45483
45484 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45485             Ulrich Drepper  <drepper@gmail.com>
45486
45487         * sysdeps/x86_64/memset.S: After aligning destination, code
45488         branches to different locations depending on the value of
45489         misalignment, when multiarch is enabled. Fix this.
45490
45491 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45492
45493         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45494         Set _x86_64_preferred_memory_instruction for AMD processsors.
45495         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45496         Set bit_Prefer_SSE_for_memop for AMD processors.
45497
45498 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45499
45500         * libio/fmemopen.c (fmemopen): Optimize a bit.
45501
45502 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45503
45504         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45505
45506 2011-03-03  Roland McGrath  <roland@redhat.com>
45507
45508         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45509
45510 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45511
45512         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45513         __bzero_ultra1 instead of __memset_ultra1.
45514
45515 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45516             Ulrich Drepper  <drepper@gmail.com>
45517
45518         [BZ #12509]
45519         * include/link.h (struct link_map): Add l_orig_initfini.
45520         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45521         returning unsuccessfully.
45522         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45523         close of a file loaded at startup, restore the original l_initfini
45524         list.
45525         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45526         list, store the pointer.
45527         * elf/Makefile ($(objpfx)noload-mem): New rule.
45528         (noload-ENV): Define.
45529         (tests): Add $(objpfx)noload-mem.
45530         * elf/noload.c: Include <memcheck.h>.
45531         (main): Call mtrace.  Close all opened handles.
45532
45533 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45534
45535         [BZ #12454]
45536         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45537         dependencies are missing.
45538
45539 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45540
45541         Fix __if_freereq crash: Unlike the generic version which uses free,
45542         Hurd needs munmap.
45543         * sysdeps/mach/hurd/ifreq.h: New file.
45544
45545 2011-01-27  Petr Baudis  <pasky@suse.cz>
45546             Ulrich Drepper  <drepper@gmail.com>
45547
45548         [BZ 12445]#
45549         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45550         to extend_alloca().
45551         * stdio-common/bug23.c: New file.
45552         * stdio-common/Makefile (tests): Add bug23.
45553
45554 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45555             Ulrich Drepper  <drepper@gmail.com>
45556
45557         [BZ #12489]
45558         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45559         before performing relro protection.  At old place add assertion
45560         to make sure nothing changed.
45561
45562 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45563             Glauber de Oliveira Costa  <glommer@gmail.com>
45564
45565         * elf/elf.h: Add new ARM TLS relocs.
45566
45567 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45568
45569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45570         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45571         cast from r3.
45572         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45573         'tests' variable.
45574         * sysdeps/wordsize-64/tst-writev.c: New file.
45575
45576 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45577
45578         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45579         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45580         insns in _dl_start to prevent a TOC reference before relocs are
45581         resolved.
45582
45583 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45584
45585         [BZ #12469]
45586         * Makeconfig: Remove RANLIB definition.
45587         * Makerules: Don't use RANLIB.
45588         * aclocal.m4: Remove ranlib test.
45589         * configure.in: No need to check for ranlib.
45590         * elf/rtld-Rules: Don't use RANLIB.
45591
45592 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45593
45594         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45595         protection macro.
45596         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45597         inclusion protection macro.
45598
45599         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45600         SIGRTMIN and SIGRTMAX and print information in that case only when
45601         SIGRTMIN is defined.
45602
45603 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45604
45605         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45606         arginfo fn returning -1.
45607
45608         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45609         and thousands string is zero terminated.
45610
45611 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45612
45613         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45614         sysdeps/unix/sysv/linux/bits/socket.h.
45615
45616 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45617
45618         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45619         (__CPU_COUNT): Remove old macros.
45620         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45621         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45622         (__CPU_ALLOC, __CPU_FREE): Add macros.
45623         (__sched_cpualloc, __sched_cpufree): Add declarations.
45624
45625 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45626
45627         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45628         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45629         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45630         (readdhstai): Return value of addhstaiX call.
45631         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45632         (addgrbyX): Return value returned by cache_addgr.
45633         (readdgrbyname): Return value returned by addgrbyX.
45634         (readdgrbygid): Likewise.
45635         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45636         (addpwbyX): Return value returned by cache_addpw.
45637         (readdpwbyname): Return value returned by addhstbyX.
45638         (readdpwbyuid): Likewise.
45639         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45640         (addservbyX): Return value returned by cache_addserv.
45641         (readdservbyname): Return value returned by addservbyX:
45642         (readdservbyport): Likewise.
45643         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45644         (addhstbyX): Return value returned by cache_addhst.
45645         (readdhstbyname): Return value returned by addhstbyX.
45646         (readdhstbyaddr): Likewise.
45647         (readdhstbynamev6): Likewise.
45648         (readdhstbyaddrv6): Likewise.
45649         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45650         (readdinitgroups): Return value returned by addinitgroupsX.
45651         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45652         (prune_cache): Keep track of timeout value of re-added entries.
45653         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45654         * nscd/nscd.h: Adjust prototypes of readd* functions.
45655
45656 2011-02-04  Roland McGrath  <roland@redhat.com>
45657
45658         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45659         (nis_stats): Likewise.
45660         * nis/nis_modify.c (nis_modify): Likewise.
45661         * nis/nis_remove.c (nis_remove): Likewise.
45662         * nis/nis_add.c (nis_add): Likewise.
45663
45664         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45665
45666         * posix/fnmatch_loop.c: Add some consts.
45667
45668         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45669
45670 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45671
45672         [BZ #12460]
45673         * config.make.in (config-cflags-novzeroupper): Define.
45674         * configure.in: Substitute libc_cv_cc_novzeroupper.
45675         * elf/Makefile (AVX-CFLAGS): Define.
45676         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45677         (CFLAGS-tst-auditmod4a.c): Likewise.
45678         (CFLAGS-tst-auditmod4b.c): Likewise.
45679         (CFLAGS-tst-auditmod6b.c): Likewise.
45680         (CFLAGS-tst-auditmod6c.c): Likewise.
45681         (CFLAGS-tst-auditmod7b.c): Likewise.
45682         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45683
45684 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45685
45686         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45687         function to the callback.
45688         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45689
45690 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45691
45692         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45693         of errno.
45694
45695 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45696
45697         [BZ #11724]
45698         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45699         of constructors.
45700         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45701         of destructors.
45702         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45703
45704         [BZ #11724]
45705         * elf/Makefile: Add rules to build and run new test.
45706         * elf/tst-initorder.c: New file.
45707         * elf/tst-initorder.exp: New file.
45708         * elf/tst-initordera1.c: New file.
45709         * elf/tst-initordera2.c: New file.
45710         * elf/tst-initordera3.c: New file.
45711         * elf/tst-initordera4.c: New file.
45712         * elf/tst-initorderb1.c: New file.
45713         * elf/tst-initorderb2.c: New file.
45714         * elf/tst-order-a1.c: New file.
45715         * elf/tst-order-a2.c: New file.
45716         * elf/tst-order-a3.c: New file.
45717         * elf/tst-order-a4.c: New file.
45718         * elf/tst-order-b1.c: New file.
45719         * elf/tst-order-b2.c: New file.
45720         * elf/tst-order-main.c: New file.
45721         New test case by George Gensure <werkt0@gmail.com>.
45722
45723 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45724
45725         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45726         decoding ACE if AI_CANONIDN.
45727
45728 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45729
45730         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45731
45732 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45733
45734         * version.h (RELEASE): Bump for 2.13 release.
45735         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45736
45737         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45738
45739         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45740         MADV_NOHUGEPAGE.
45741         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45742         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45743         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45744         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45745         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45746         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45747
45748         * posix/getconf.c: Update copyright year.
45749         * catgets/gencat.c: Likewise.
45750         * csu/version.c: Likewise.
45751         * debug/catchsegv.sh: Likewise.
45752         * debug/xtrace.sh: Likewise.
45753         * elf/ldconfig.c: Likewise.
45754         * elf/ldd.bash.in: Likewise.
45755         * elf/sprof.c (print_version): Likewise.
45756         * iconv/iconv_prog.c: Likewise.
45757         * iconv/iconvconfig.c: Likewise.
45758         * locale/programs/locale.c: Likewise.
45759         * locale/programs/localedef.c: Likewise.
45760         * malloc/memusage.sh: Likewise.
45761         * malloc/mtrace.pl: Likewise.
45762         * nscd/nscd.c (print_version): Likewise.
45763         * nss/getent.c: Likewise.
45764
45765         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45766         PF_CAIF, and PF_ALG.
45767         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45768
45769 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45770
45771         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45772         (modules-names): Use them.
45773         (ifunc-test-modules, ifunc-pie-tests): Define.
45774         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45775         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45776         (test-extras): Likewise.
45777         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45778         $(compile-command.c).
45779         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45780         (all-built-dso): Define.
45781         (check-textrel.out, check-execstack.out): Depend on it.
45782
45783         * configure.in: Don't override --enable-multi-arch.
45784
45785 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45786
45787         [BZ #6812]
45788         * nscd/hstcache.c (tryagain): Define.
45789         (cache_addhst): Return tryagain not notfound for temporary errors.
45790         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45791         failed.
45792
45793 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45794
45795         [BZ #10563]
45796         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45797         to make the syscall.
45798         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45799
45800         [BZ #12378]
45801         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45802         and fall back to matching as normal character if the string ends before
45803         the matching ']' is found.  This is what POSIX requires.
45804         * posix/testfnm.c: Adjust test result.
45805         * posix/globtest.sh: Adjust test result.  Add new test.
45806         * posix/tst-fnmatch.input: Likewise.
45807         * posix/tst-fnmatch2.c: Add new test.
45808
45809 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45810
45811         * elf/Makefile (check-execstack): Revert last change.  Depend on
45812         check-execstack.h.
45813         (check-execstack.h): New target.
45814         (generated): Add check-execstack.h.
45815         * elf/check-execstack.c: Include "check-execstack.h".
45816         (main): Revert last change.
45817         (handle_file): Return zero if GNU_STACK is absent and
45818         DEFAULT_STACK_PERMS doesn't include PF_X.
45819
45820 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45821
45822         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45823         in child fails because the descriptor is already closed.
45824         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45825         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45826         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45827
45828         [BZ #12397]
45829         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45830         syscall.
45831
45832         [BZ #10484]
45833         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45834         temporary buffer used to handle multi lookups locally.
45835         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45836
45837 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45838
45839         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45840         loader is ld.so.
45841
45842 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45843
45844         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45845         alignment for SSE2.
45846
45847 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45848
45849         [BZ #12394]
45850         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45851         characters.  When rounding increased number of integer digits recompute
45852         number of groups.
45853         * stdio-common/tst-grouping.c: New file.
45854         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45855
45856 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45857
45858         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45859         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45860
45861         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45862         void.
45863         * bits/select.h: Likewise.
45864
45865 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45866
45867         * po/ja.po: Update from translation team.
45868
45869 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45870
45871         [BZ #11155]
45872         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45873         implementation just like for lxstat, fxstatat, et al.
45874
45875 2010-12-27  Jim Meyering  <meyering@redhat.com>
45876
45877         [BZ #12348]
45878         * posix/regexec.c (build_trtable): Return failure indication upon
45879         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45880
45881 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45882
45883         [BZ #12201]
45884         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45885         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45886         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45887         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45888
45889         [BZ #12207]
45890         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45891
45892         [BZ #12204]
45893         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45894         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45895
45896 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45897
45898         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45899         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45900         script has SORT_BY_INIT_PRIORITY.
45901         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45902         NO_CTORS_DTORS_SECTIONS is defined.
45903         * elf/soinit.c: Likewise.
45904         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45905         NO_CTORS_DTORS_SECTIONS is defined.
45906         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45907         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45908         * sysdeps/sh/init-first.c: Likewise.
45909         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45910
45911 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45912
45913         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45914         always use the slow path.
45915
45916 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45917
45918         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45919         similar rule which adds the sysdep directories to the header search in
45920         order to pick up the correct platform stackinfo.h.
45921         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45922         perform test if it is, otherwise return successfully without testing.
45923         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45924         DEFAULT_STACK_PERMS define in stackinfo.h.
45925         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45926         defined in stackinfo.h.
45927         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45928         DEFAULT_STACK_PERMS defined in stackinfo.h.
45929         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45930         * sysdeps/ia64/stackinfo.h: Likewise.
45931         * sysdeps/s390/stackinfo.h: Likewise.
45932         * sysdeps/sh/stackinfo.h: Likewise.
45933         * sysdeps/sparc/stackinfo.h: Likewise.
45934         * sysdeps/x86_64/stackinfo.h: Likewise.
45935         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45936         PF_X for powerpc64.  Retain PF_X for powerpc32.
45937
45938 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45939
45940         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45941         accurately.
45942         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45943         GETDENTS_64BIT_ALIGNED.
45944
45945 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45946
45947         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45948
45949 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45950
45951         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45952         _GNU_SOURCE.
45953
45954         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45955         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45956         Remove __restrict.
45957         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45958         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45959
45960 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45961
45962         [BZ #11655]
45963         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45964         are initialized.
45965
45966 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45967
45968         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45969
45970 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45971
45972         * po/it.po: Update from translation team.
45973
45974 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45975
45976         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45977         unused codes.
45978
45979 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45980
45981         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45982
45983 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45984
45985         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45986         specially.
45987         (gaih_getanswer_slice): Likewise.
45988
45989 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45990
45991         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45992
45993 2010-05-31  Petr Baudis  <pasky@suse.cz>
45994
45995         [BZ #11149]
45996         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45997         silently even in the chroot mode.
45998
45999 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
46000
46001         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
46002         last patch a bit.  Pretty printing
46003
46004 2010-05-31  Petr Baudis <pasky@suse.cz>
46005
46006         [BZ #10085]
46007         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
46008         initialization of skip_initgroups_dyn.
46009
46010 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
46011
46012         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
46013         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
46014
46015 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
46016
46017         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
46018
46019 2010-11-11  Andreas Schwab  <schwab@redhat.com>
46020
46021         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
46022         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
46023         (tst-fnmatch-ENV): Set MALLOC_TRACE.
46024         ($(objpfx)tst-fnmatch-mem): New rule.
46025         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
46026         * posix/tst-fnmatch.c (main): Call mtrace.
46027
46028 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
46029
46030         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46031         Support Intel processor model 6 and model 0x2c.
46032
46033 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
46034
46035         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
46036           signed comparison.
46037
46038 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
46039
46040         [BZ #12205]
46041         * string/test-strncasecmp.c (check_result): New function.
46042         (do_one_test): Use it.
46043         (check1): New function.
46044         (test_main): Use it.
46045         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
46046         Support strcasecmp and strncasecmp.
46047
46048 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
46049
46050         [BZ #12194]
46051         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
46052         * sysdeps/x86_64/bits/byteswap.h: Likewise.
46053
46054 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
46055
46056         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
46057         IFUNC support.
46058         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46059         memset-x86-64.
46060         * sysdeps/x86_64/multiarch/bzero.S: New file.
46061         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
46062         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
46063         * sysdeps/x86_64/multiarch/memset.S: New file.
46064         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
46065         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46066         Set bit_Prefer_SSE_for_memop for Intel processors.
46067         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
46068         Define.
46069         (index_Prefer_SSE_for_memop): Define.
46070         (HAS_PREFER_SSE_FOR_MEMOP): Define.
46071
46072 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
46073
46074         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
46075         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
46076
46077 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
46078
46079         [BZ #12191]
46080         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46081         (__x86_64_raw_data_cache_size_half): Likewise.
46082         (__x86_64_raw_shared_cache_size): Likewise.
46083         (__x86_64_raw_shared_cache_size_half): Likewise.
46084
46085         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46086         (__x86_64_raw_data_cache_size_half): Likewise.
46087         (__x86_64_raw_shared_cache_size): Likewise.
46088         (__x86_64_raw_shared_cache_size_half): Likewise.
46089         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
46090         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
46091         and __x86_64_raw_shared_cache_size_half.  Round
46092         __x86_64_data_cache_size_half, __x86_64_data_cache_size
46093         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
46094         to multiple of 256 bytes.
46095
46096 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
46097
46098         [BZ #12167]
46099         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
46100         of inacessible symlinks.  Verify result of symlink before returning it.
46101         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46102         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46103
46104 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46105
46106         * math/math.h (isinf): Fix typo in comment.
46107
46108 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46109
46110         * po/da.po: Update from translation team.
46111
46112 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46113
46114         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46115         is added to the list.
46116
46117 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46118             Ulrich Drepper  <drepper@gmail.com>
46119
46120         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46121         the global list here.  Move code to...
46122         (_dl_add_to_namespace_list): ...here.  New function.
46123         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46124         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46125         * elf/dl-load.c (lose): Don't remove the element from the list.
46126         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46127         (_dl_map_object): Likewise.
46128
46129 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46130
46131         [BZ #12159]
46132         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46133         into all bytes of SSE register.
46134         Patch by Richard Li <richardpku@gmail.com>.
46135
46136 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46137
46138         [BZ #12140]
46139         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46140         perturbing.
46141
46142 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46143
46144         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46145         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46146         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46147         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46149         submachine.
46150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46151
46152 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46153
46154         * include/dlfcn.h (__RTLD_SECURE): Define.
46155         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46156         mode & __RTLD_SECURE instead.
46157         (open_path): Rename preloaded parameter to secure.
46158         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46159         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46160         * elf/dl-deps.c (openaux): Likewise.
46161         * elf/rtld.c (struct map_args): Remove is_preloaded.
46162         (map_doit): Don't use it.
46163         (dl_main): Likewise.
46164         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46165         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46166
46167 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46168
46169         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46170         (sysd-rules-targets): Remove duplicates.
46171         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46172         rtld-%.$o dependency.
46173
46174 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46175
46176         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46177         _dl_map_object do it.
46178
46179 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46180
46181         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46182         fast fma builtins, define the macros in the C99 standard.
46183         (FP_FAST_FMAF): Likewise.
46184         (FP_FAST_FMAL): Likewise.
46185         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46186
46187         * bits/mathdef.h: Update copyright year.
46188         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46189
46190 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46191
46192         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46193         builtins, define the macros in the C99 standard.
46194         (FP_FAST_FMAF): Likewise.
46195         (FP_FAST_FMAL): Likewise.
46196         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46197         multiply/add.
46198         (FP_FAST_FMAF): Likewise.
46199
46200 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46201
46202         [BZ #3268]
46203         * math/libm-test.inc (fma_test): Some new testcases.
46204         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46205         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46206         y and infinite z.  Do multiplication by C already in long double.
46207         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46208         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46209         y and infinite z.  Do bitwise or of inexact bit into u.d.
46210         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46211         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46212         * sysdeps/i386/fpu/s_fma.S: Removed.
46213         * sysdeps/i386/fpu/s_fmal.S: Removed.
46214
46215 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46216
46217         [BZ #3268]
46218         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46219         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46220         computation is not scheduled after fetestexcept.  Fix value
46221         of minimum denormal long double.
46222
46223 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46224
46225         [BZ #3268]
46226         * math/libm-test.inc (fma_test): Add some more tests.
46227         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46228         correctly.
46229
46230 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46231
46232         * scripts/data/localplt-s390-linux-gnu.data: New file.
46233         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46234
46235 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46236
46237         [BZ #3268]
46238         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46239         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46240         instead of dbl-64.
46241         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46242         inlines.
46243         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46244         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46245         if one of x and y is very large and the other is subnormal.
46246         * sysdeps/s390/fpu/s_fmaf.c: New file.
46247         * sysdeps/s390/fpu/s_fma.c: New file.
46248         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46249         * sysdeps/powerpc/fpu/s_fma.S: New file.
46250         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46251         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46252         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46253
46254 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46255
46256         [BZ #3268]
46257         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46258         fma tests.
46259         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46260         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46261         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46262         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46263         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46264         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46265         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46266
46267 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46268
46269         [BZ #12078]
46270         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46271         * posix/bug-regex31.input: Add test case.
46272
46273 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46274
46275         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46276         * posix/bug-regex31.input: New file.
46277
46278         [BZ #12078]
46279         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46280         (parse_sub_exp): Fix last change, use postorder.
46281
46282         * posix/bug-regex31.c: New file.
46283         * posix/Makefile: Add rules to build and run bug-regex31.
46284
46285         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46286
46287         [BZ #12078]
46288         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46289
46290         [BZ #12108]
46291         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46292         to have entries in sys_siglist.
46293
46294         [BZ #12093]
46295         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46296         be NULL.
46297
46298 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46299
46300         [BZ #3268]
46301         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46302         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46303         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46304         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46305         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46306         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46307         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46308         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46309         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46310         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46311         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46312         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46313         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46314         * math/ftestexcept.c (fetestexcept): Likewise.
46315         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46316         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46317         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46318         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46319         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46320         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46321         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46322
46323 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46324
46325         [BZ #12107]
46326         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46327         newline.
46328
46329 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46330
46331         * string/bug-strstr1.c: New file.
46332         * string/Makefile: Add rules to build and run bug-strstr1.
46333
46334 2010-10-05  Eric Blake  <eblake@redhat.com>
46335
46336         [BZ #12092]
46337         * string/str-two-way.h (two_way_long_needle): Always clear memory
46338         when skipping input due to the shift table.
46339
46340 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46341
46342         [BZ #12005]
46343         * malloc/mcheck.c: Handle large requests.
46344
46345         [BZ #12077]
46346         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46347         for strncmp and strncasecmp.
46348         * string/stratcliff.c: Add tests for strcmp and strncmp.
46349         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46350
46351 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46352
46353         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46354         __set_fpscr.
46355
46356 2010-09-30  Andreas Jaeger  <aj@suse.de>
46357
46358         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46359         (CGROUP_SUPER_MAGIC): Define.
46360         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46361         Handle btrfs and cgroup file systems.
46362         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46363         Likewise.
46364
46365 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46366
46367         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46368         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46369
46370 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46371
46372         [BZ #12067]
46373         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46374         trying to locate the ELF header.
46375
46376 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46377
46378         [BZ #11611]
46379         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46380         Mask out sign-bit copies when constructing f_fsid.
46381
46382 2010-09-24  Petr Baudis <pasky@suse.cz>
46383
46384         * debug/stack_chk_fail_local.c: Add missing licence exception.
46385         * debug/warning-nop.c: Likewise.
46386
46387 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46388
46389         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46390         implementing getdents64 using getdents syscall, set d_type if
46391         __ASSUME_GETDENTS32_D_TYPE.
46392
46393 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46394
46395         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46396         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46397
46398 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46399
46400         [BZ #12037]
46401         * posix/unistd.h: Undo change of feature selection for ftruncate from
46402         2010-01-11.
46403
46404 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46405
46406         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46407         detection.
46408
46409 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46410
46411         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46412         fanotify_mark.
46413         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46414
46415 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46416
46417         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46418         variables after CHECK_SP call.
46419         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46420
46421 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46422             Ulrich Drepper  <drepper@redhat.com>
46423
46424         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46425         re-relocationg ld.so.
46426         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46427         _dl_init_paths call.
46428         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46429         here anymore.
46430
46431 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46432
46433         * resolv/res_init.c (__res_vinit): Count the default server we added.
46434
46435 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46436             Ulrich Drepper  <drepper@redhat.com>
46437
46438         [BZ #11968]
46439         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46440         (____longjmp_chk): Use %ebx for saving value across system call.
46441         Add unwind info.
46442
46443 2010-09-06  Andreas Schwab  <schwab@redhat.com>
46444
46445         * manual/Makefile: Don't mix pattern rules with normal rules.
46446
46447 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
46448
46449         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
46450         operation.
46451         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
46452         * libio/iofopncook.c (_IO_cookie_init): Likewise.
46453         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
46454         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
46455         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46456         Likewise.
46457
46458 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
46459
46460         [BZ #11979]
46461         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
46462         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
46463
46464 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
46465
46466         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
46467         * sysdeps/x86_64/addmul_1.S: Likewise.
46468         * sysdeps/x86_64/lshift.S: Likewise.
46469         * sysdeps/x86_64/mul_1.S: Likewise.
46470         * sysdeps/x86_64/rshift.S: Likewise.
46471         * sysdeps/x86_64/sub_n.S: Likewise.
46472         * sysdeps/x86_64/submul_1.S: Likewise.
46473
46474 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46475
46476         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
46477         Define __sched_param instead of SCHED_* and sched_param when
46478         <bits/sched.h> is included with __need_schedparam defined.
46479         * bits/sched.h [__need_schedparam]
46480         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
46481         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
46482         (__defined_schedparam): Define to 1.
46483         (__sched_param): New structure, identical to sched_param.
46484         (__need_schedparam): Undefine.
46485
46486 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46487
46488         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46489         (epoll_create1): Declare.
46490
46491         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46492
46493 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46494
46495         [BZ #7066]
46496         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46497         shifting retval into place.
46498
46499 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46500
46501         * nis/rpcsvc/nis.h: Update copyright notice.
46502         * nis/rpcsvc/nis.x: Likewise.
46503         * nis/rpcsvc/nis_callback.h: Likewise.
46504         * nis/rpcsvc/nis_callback.x: Likewise.
46505         * nis/rpcsvc/nis_object.x: Likewise.
46506         * nis/rpcsvc/nis_tags.h: Likewise.
46507         * nis/rpcsvc/yp.h: Likewise.
46508         * nis/rpcsvc/yp.x: Likewise.
46509         * nis/rpcsvc/ypupd.h: Likewise.
46510         * nis/yp_xdr.c: Likewise.
46511         * nis/ypupdate_xdr.c: Likewise.
46512
46513         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46514         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46515         (pmap_getport): Use __libc_rpc_getport.
46516         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46517         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46518         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46519
46520 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46521
46522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46523         fanotify_mark.
46524
46525 2010-08-27  Roland McGrath  <roland@redhat.com>
46526
46527         * sysdeps/i386/i686/multiarch/Makefile
46528         (CFLAGS-varshift.c): New variable.
46529
46530 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46531
46532         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46533         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46534
46535         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46536
46537         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46538
46539 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46540
46541         * sysdeps/x86_64/strlen.S: Unroll the loop.
46542         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46543         strlen-sse2 strlen-sse2-bsf.
46544         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46545         __strlen_no_bsf if bit_Slow_BSF is set.
46546         (__strlen_sse42): Removed.
46547         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46548         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46549
46550 2010-08-25  Roland McGrath  <roland@redhat.com>
46551
46552         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46553         * sysdeps/x86_64/multiarch/varshift.c: New file.
46554         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46555         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46556         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46557         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46558
46559 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46560
46561         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46562         strlen-sse2 strlen-sse2-bsf.
46563         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46564         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46565         (__strlen_sse2): Removed.
46566         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46567         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46568         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46569         bit_Slow_BSF for Atom.
46570         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46571         (index_Slow_BSF): Define.
46572         (HAS_SLOW_BSF): Define.
46573
46574 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46575
46576         [BZ #10851]
46577         * resolv/res_init.c (__res_vinit): When no server address at all
46578         is given default to loopback.
46579
46580 2010-08-24  Roland McGrath  <roland@redhat.com>
46581
46582         * configure.in: Remove config-name.h generation.
46583         * configure: Regenerated.
46584         * config-name.in: File removed.
46585         * scripts/config-uname.sh: New file.
46586         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46587         ($(objdir)config-name.h): New target.
46588
46589         * sunrpc/rpc_parse.h: Avoid nested comment.
46590
46591 2010-08-24  Richard Henderson  <rth@redhat.com>
46592             Ulrich Drepper  <drepper@redhat.com>
46593             H.J. Lu  <hongjiu.lu@intel.com>
46594
46595         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46596         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46597         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46598         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46599         _mm_alignr_epi8 with _mm_loadu_si128.
46600         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46601         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46602         (__m128i_shift_right): Removed.
46603         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46604         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46605         * sysdeps/x86_64/multiarch/varshift.h: New file.
46606         * sysdeps/x86_64/multiarch/varshift.S: New file.
46607
46608 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46609
46610         * configure.in: Move assembler checks to before sysdep dir checking.
46611
46612 2010-08-20  Petr Baudis  <pasky@suse.cz>
46613
46614         * LICENSES: Sync the sunrpc license.
46615
46616 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46617
46618         * sunrpc/auth_des.c: Update copyright notice once again.
46619         * sunrpc/auth_none.c: Likewise.
46620         * sunrpc/auth_unix.c: Likewise.
46621         * sunrpc/authdes_prot.c: Likewise.
46622         * sunrpc/authuxprot.c: Likewise.
46623         * sunrpc/bindrsvprt.c: Likewise.
46624         * sunrpc/clnt_gen.c: Likewise.
46625         * sunrpc/clnt_perr.c: Likewise.
46626         * sunrpc/clnt_raw.c: Likewise.
46627         * sunrpc/clnt_simp.c: Likewise.
46628         * sunrpc/clnt_tcp.c: Likewise.
46629         * sunrpc/clnt_udp.c: Likewise.
46630         * sunrpc/clnt_unix.c: Likewise.
46631         * sunrpc/des_crypt.c: Likewise.
46632         * sunrpc/des_soft.c: Likewise.
46633         * sunrpc/get_myaddr.c: Likewise.
46634         * sunrpc/getrpcport.c: Likewise.
46635         * sunrpc/key_call.c: Likewise.
46636         * sunrpc/key_prot.c: Likewise.
46637         * sunrpc/openchild.c: Likewise.
46638         * sunrpc/pm_getmaps.c: Likewise.
46639         * sunrpc/pm_getport.c: Likewise.
46640         * sunrpc/pmap_clnt.c: Likewise.
46641         * sunrpc/pmap_prot.c: Likewise.
46642         * sunrpc/pmap_prot2.c: Likewise.
46643         * sunrpc/pmap_rmt.c: Likewise.
46644         * sunrpc/rpc/auth.h: Likewise.
46645         * sunrpc/rpc/auth_unix.h: Likewise.
46646         * sunrpc/rpc/clnt.h: Likewise.
46647         * sunrpc/rpc/des_crypt.h: Likewise.
46648         * sunrpc/rpc/key_prot.h: Likewise.
46649         * sunrpc/rpc/netdb.h: Likewise.
46650         * sunrpc/rpc/pmap_clnt.h: Likewise.
46651         * sunrpc/rpc/pmap_prot.h: Likewise.
46652         * sunrpc/rpc/pmap_rmt.h: Likewise.
46653         * sunrpc/rpc/rpc.h: Likewise.
46654         * sunrpc/rpc/rpc_des.h: Likewise.
46655         * sunrpc/rpc/rpc_msg.h: Likewise.
46656         * sunrpc/rpc/svc.h: Likewise.
46657         * sunrpc/rpc/svc_auth.h: Likewise.
46658         * sunrpc/rpc/types.h: Likewise.
46659         * sunrpc/rpc/xdr.h: Likewise.
46660         * sunrpc/rpc_clntout.c: Likewise.
46661         * sunrpc/rpc_cmsg.c: Likewise.
46662         * sunrpc/rpc_common.c: Likewise.
46663         * sunrpc/rpc_cout.c: Likewise.
46664         * sunrpc/rpc_dtable.c: Likewise.
46665         * sunrpc/rpc_hout.c: Likewise.
46666         * sunrpc/rpc_main.c: Likewise.
46667         * sunrpc/rpc_parse.c: Likewise.
46668         * sunrpc/rpc_parse.h: Likewise.
46669         * sunrpc/rpc_prot.c: Likewise.
46670         * sunrpc/rpc_sample.c: Likewise.
46671         * sunrpc/rpc_scan.c: Likewise.
46672         * sunrpc/rpc_scan.h: Likewise.
46673         * sunrpc/rpc_svcout.c: Likewise.
46674         * sunrpc/rpc_tblout.c: Likewise.
46675         * sunrpc/rpc_util.c: Likewise.
46676         * sunrpc/rpc_util.h: Likewise.
46677         * sunrpc/rpcinfo.c: Likewise.
46678         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46679         * sunrpc/rpcsvc/key_prot.x: Likewise.
46680         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46681         * sunrpc/rpcsvc/mount.x: Likewise.
46682         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46683         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46684         * sunrpc/rpcsvc/rex.x: Likewise.
46685         * sunrpc/rpcsvc/rstat.x: Likewise.
46686         * sunrpc/rpcsvc/rusers.x: Likewise.
46687         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46688         * sunrpc/rpcsvc/spray.x: Likewise.
46689         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46690         * sunrpc/rtime.c: Likewise.
46691         * sunrpc/svc.c: Likewise.
46692         * sunrpc/svc_auth.c: Likewise.
46693         * sunrpc/svc_authux.c: Likewise.
46694         * sunrpc/svc_raw.c: Likewise.
46695         * sunrpc/svc_run.c: Likewise.
46696         * sunrpc/svc_simple.c: Likewise.
46697         * sunrpc/svc_tcp.c: Likewise.
46698         * sunrpc/svc_udp.c: Likewise.
46699         * sunrpc/svc_unix.c: Likewise.
46700         * sunrpc/svcauth_des.c: Likewise.
46701         * sunrpc/xcrypt.c: Likewise.
46702         * sunrpc/xdr.c: Likewise.
46703         * sunrpc/xdr_array.c: Likewise.
46704         * sunrpc/xdr_float.c: Likewise.
46705         * sunrpc/xdr_mem.c: Likewise.
46706         * sunrpc/xdr_rec.c: Likewise.
46707         * sunrpc/xdr_ref.c: Likewise.
46708         * sunrpc/xdr_sizeof.c: Likewise.
46709         * sunrpc/xdr_stdio.c: Likewise.
46710
46711         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46712         handling.
46713
46714 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46715
46716         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46717
46718 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46719
46720         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46721         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46722         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46723         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46724         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46725         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46726         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46727         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46728         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46729         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46730         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46731         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46732         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46733         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46734
46735 2010-07-26  Anton Blanchard  <anton@samba.org>
46736
46737         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46738         * malloc/arena.c (heap_trim): Likewise.
46739
46740 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46741
46742         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46743         here.  Not...
46744         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46745         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46746
46747 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46748
46749         * sysdeps/i386/elf/Makefile: New file.
46750
46751 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46752
46753         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46754         from fanotify_init.
46755         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46756         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46757
46758 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46759
46760         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46761         of strncasecmp_l.
46762         * sysdeps/multiarch/strcmp.S: Likewise.
46763
46764 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46765
46766         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46767         strncase_l-nonascii.
46768         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46769         Add strncase_l-ssse3.
46770         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46771         * sysdeps/x86_64/strcmp.S: Likewise.
46772         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46773         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46774         * sysdeps/x86_64/strncase.S: New file.
46775         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46776         * sysdeps/x86_64/strncase_l.S: New file.
46777         * string/Makefile (strop-tests): Add strncasecmp.
46778         * string/test-strncasecmp.c: New file.
46779
46780         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46781         warning.
46782
46783         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46784         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46785
46786 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46787
46788         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46789
46790 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46791
46792         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46793         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46794         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46795
46796 2010-05-01  Alan Modra  <amodra@gmail.com>
46797
46798         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46799         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46800         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46801         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46802         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46803         tidying.  Don't tail-call __sigjmp_save for static lib.
46804         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46805         save location.
46806         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46807         (CALL_MCOUNT): Add eh info, and nop after bl.
46808         (TAIL_CALL_SYSCALL_ERROR): New macro.
46809         (PSEUDO_RET): Use it.
46810         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46811         Correct save location of integer regs and cr.
46812         (_dl_profile_resolve): Correct cr save location.  Delete nops
46813         after bl when SHARED.  Reduce cfi size a little by better
46814         placement of cfi directives.
46815         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46816         make a stack frame.  Instead use parm save area as a temp.
46817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46818         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46820         Don't make a stack frame for parent, use parm save area.
46821         Increase child stack frame to 112 bytes.  Don't save unused reg,
46822         and adjust reg usage.  Set up cfi on error recovery and
46823         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46825         (__makecontext): Add dummy nop after jump to exit.
46826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46827         Use correct parm save area and cr save, reduce stack frame.
46828         Correct cfi for possible PSEUDO_RET frame setup.
46829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46830         Branch to local label emitted by PSEUDO_RET rather than
46831         __syscall_error.
46832
46833 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46834
46835         [BZ #11904]
46836         * locale/programs/locale.c (print_assignment): New function.
46837         (show_locale_vars): Use it.
46838
46839 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46840
46841         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46842         field.
46843         (struct statfs64): Likewise.
46844         (_STATFS_F_FLAGS): Define.
46845         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46846         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46847         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46848         (ST_VALID): Define locally.
46849         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46850         __statvfs_getflags, use the provided value.
46851         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46852         __ASSUME_STATFS_F_FLAGS.
46853
46854         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46855
46856         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46857         Add sys/fanotify.h.
46858         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46859         fanotify_mask for GLIBC_2.13.
46860         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46861         fanotify_init and fanotify_mark.
46862         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46863         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46864
46865         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46866         Add prlimit.
46867         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46868         prlimit64 for GLIBC_2.13.
46869         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46870         prlimit64.
46871         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46872         syscall.
46873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46874         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46875         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46876         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46877         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46878         add prlimit alias.
46879         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46880
46881         [BZ #11903]
46882         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46883         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46884
46885         * nss/Makefile: Add rules to build and run tst-nss-test1.
46886         * shlib-versions: Add entry for libnss_test1.
46887         * nss/nss_test1.c: New file.
46888         * nss/tst-nss-test1.c: New file.
46889
46890         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46891         (__nss_configure_lookup): Set appropriate entry in
46892         __nss_configure_lookup to true.
46893         * nss/nsswitch.h: Define enum with indeces of databases in
46894         databases and __nss_database_custom arrays.  Declare
46895         __nss_database_custom.
46896         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46897         to avoid using nscd when custom rules are installed.
46898         * nss/getXXbyYY_r.c: Likewise.
46899         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46900
46901         * nss/nss_files/files-parse.c: Whitespace fixes.
46902
46903 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46904
46905         [BZ #11883]
46906         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46907         * posix/fnmatch_loop.c: Likewise.
46908
46909 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46910
46911         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46912         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46913         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46914         * Versions.def [GLIBC_2.13]: Add.
46915
46916 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46917
46918         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46919         Also fail if tpwd after pwuid call is NULL.
46920
46921 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46922
46923         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46924         when converting to ms.
46925
46926 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46927
46928         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46929         EOPNOTSUPP errors with ENOTTY.
46930         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46931         EOPNOTSUPP errors with ENOTTY.
46932
46933 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46934
46935         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46936         Add strcasecmp_l-ssse3.
46937         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46938         strcasecmp.
46939         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46940         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46941         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46942
46943 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46944
46945         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46946
46947         * string/Makefile (strop-tests): Add strcasecmp.
46948         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46949         strcasecmp_l-nonascii.
46950         (gen-as-const-headers): Add locale-defines.sym.
46951         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46952         * sysdeps/x86_64/strcasecmp.S: New file.
46953         * sysdeps/x86_64/strcasecmp_l.S: New file.
46954         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46955         * sysdeps/x86_64/locale-defines.sym: New file.
46956         * string/test-strcasecmp.c: New file.
46957
46958         * string/test-strcasestr.c: Test both ends of the range of characters.
46959         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46960
46961 2010-07-29  Roland McGrath  <roland@redhat.com>
46962
46963         [BZ #11856]
46964         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46965
46966 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46967
46968         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46969         for ld.so.
46970
46971 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46972
46973         * manual/memory.texi (Malloc Tunable Parameters): Document
46974         M_PERTURB.
46975
46976 2010-07-26  Roland McGrath  <roland@redhat.com>
46977
46978         [BZ #11840]
46979         * configure.in (-fgnu89-inline check): Set and substitute
46980         gnu89_inline, not libc_cv_gnu89_inline.
46981         * configure: Regenerated.
46982         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46983
46984 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46985
46986         * string/test-strnlen.c: New file.
46987         * string/Makefile (strop-tests): Add strnlen.
46988         * string/tester.c (test_strnlen): Add a few more test cases.
46989         * string/tst-strlen.c: Better error reporting.
46990
46991         * sysdeps/x86_64/strnlen.S: New file.
46992
46993 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46994
46995         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46996         lower-latency instructions.
46997
46998 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46999
47000         * string/test-strcasestr.c: New file.
47001         * string/test-strstr.c: New file.
47002         * string/Makefile (strop-tests): Add strstr and strcasestr.
47003         * string/str-two-way.h: Don't undefine MAX.
47004         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
47005
47006 2010-07-21  Andreas Schwab  <schwab@redhat.com>
47007
47008         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
47009         strcasestr-nonascii.
47010         (CFLAGS-strcasestr-nonascii.c): Define.
47011         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
47012         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
47013         Remove unused attribute.
47014
47015 2010-07-20  Roland McGrath  <roland@redhat.com>
47016
47017         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
47018         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
47019         ld.so.cache was broken.  With it, there is no way to disable dsocaps
47020         like LD_HWCAP_MASK can disable hwcaps.
47021
47022 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47023
47024         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
47025
47026 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
47027
47028         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
47029         call in strcasestr.
47030         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
47031         __strcasestr_sse42_nonascii.
47032         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
47033         strcasestr-nonascii.c.
47034         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
47035
47036 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
47037
47038         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
47039         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
47040         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
47041         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
47042
47043 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
47044
47045         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
47046         fcntl.
47047
47048 2010-07-06  Andreas Schwab  <schwab@redhat.com>
47049
47050         [BZ #11577]
47051         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
47052         dl_signal_cerror.
47053
47054 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
47055
47056         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
47057         _PC_PIPE_BUF using F_GETPIPE_SZ.
47058
47059 2010-07-05  Roland McGrath  <roland@redhat.com>
47060
47061         * manual/arith.texi (Rounding Functions): Fix rint description
47062         implicit in round description.
47063
47064 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
47065
47066         * elf/Makefile: Fix linking for a few tests to make recent linker
47067         happy.
47068
47069 2010-06-30  Andreas Schwab  <schwab@redhat.com>
47070
47071         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
47072         $(common-objpfx)libc_nonshared.a.
47073
47074 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
47075
47076         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
47077         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
47078         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47079         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47080         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
47081         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
47082         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47083         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
47085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
47086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
47087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
47089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
47091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
47092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
47093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
47094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
47096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
47098         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
47099         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
47100         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47101         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47102         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47103         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47104         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47105         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47106         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47107         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47108         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47109         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47124
47125 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47126
47127         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47128         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47129         * string/memmove.c (memmove): Renamed to ...
47130         (MEMMOVE): ...this.  Default to memmove.
47131         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47132         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47133         (END_CHK): Define.
47134         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47135         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47136         mempcpy-ssse3-back memmove-ssse3-back.
47137         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47138         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47139         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47140         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47141         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47142         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47143         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47144         * sysdeps/x86_64/multiarch/memmove.c: New file.
47145         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47146         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47147         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47148         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47149         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47150         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47151         Define.
47152         (index_Fast_Copy_Backward): Define.
47153         (HAS_ARCH_FEATURE): Define.
47154         (HAS_FAST_REP_STRING): Define.
47155         (HAS_FAST_COPY_BACKWARD): Define.
47156
47157 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47158
47159         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47160         Restore proper fallback handling.
47161
47162 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47163
47164         [BZ #11701]
47165         * posix/group_member.c (__group_member): Correct checking loop.
47166
47167         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47168         OOM in getpwuid_r correctly.  Return error number when the caller
47169         should return, otherwise -1.
47170         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47171         call returning > 0 value.
47172         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47173
47174 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47175
47176         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47177         libc_nonshared.a from targets in modules-names.
47178
47179 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47180
47181         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47182         requires it.
47183
47184 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47185
47186         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47187         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47188         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47189         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47190
47191 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47192
47193         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47194
47195 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47196
47197         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47198         and F_GETPIPE_SZ.
47199         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47200         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47201         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47202         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47203         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47204         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47205
47206 2010-06-14  Roland McGrath  <roland@redhat.com>
47207
47208         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47209
47210 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47211
47212         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47213         __REDIRECT followed by __THROW.
47214         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47215         * posix/getopt.h (getopt): Likewise.
47216
47217 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47218
47219         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47220         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47221         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47222         in AT_FLAGS.
47223         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47224         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47225
47226 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47227
47228         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47229
47230 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47231
47232         [BZ #11640]
47233         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47234         Properly check family and model.
47235
47236 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47237
47238         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47239
47240 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47241
47242         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47243
47244 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47245
47246         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47247         symbol reference.
47248
47249 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47250
47251         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47252         symbol reference.
47253
47254 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47255
47256         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47257         and internal_recvmmsg.
47258         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47259         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47260         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47261         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47262
47263         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47264         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47265         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47266
47267 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47268
47269         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47270
47271 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47272
47273         POWER7 optimizations.
47274         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47275         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47276
47277 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47278
47279         * version.h: Update for 2.13 development version.
47280
47281 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47282
47283         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47284         exceptions.  Return 0.
47285
47286 2010-05-07  Roland McGrath  <roland@redhat.com>
47287
47288         * elf/ldconfig.c (main): Add a const.
47289
47290 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47291
47292         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47293         (args_options): Add no-idn option.
47294         (ahosts_keys_int): Add idn_flags to ai_flags.
47295         (parse_option): Handle 'i' option to clear idn_flags.
47296
47297         * malloc/malloc.c (_int_free): Possible race in the most recently
47298         added check.  Only act on the data if no current modification
47299         happened.
47300
47301 See ChangeLog.17 for earlier changes.