Fix exp10 spurious underflows (bug 16560).
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #16560]
4         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
5         arguments close to 0.
6         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
7         Likewise.
8         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
9         Likewise.
10         * math/auto-libm-test-in: Add more tests of exp10.
11         * math/auto-libm-test-out: Regenerated.
12         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13
14         * sysdeps/unix/sysv/linux/kernel-features.h
15         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
16         * sysdeps/unix/sysv/linux/readv.c: Do not include
17         <kernel-features.h>.
18         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
19         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
20         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
21         unconditional.
22         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
23         conditional code.
24         * sysdeps/unix/sysv/linux/writev.c: Do not include
25         <kernel-features.h>.
26         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
27         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
28         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29         unconditional.
30         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
31         conditional code.
32
33 2014-06-25  Will Newton  <will.newton@linaro.org>
34
35         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
36         comment changes throughout the file.  Remove checks
37         for HAVE_*_H definitions that are not required.
38         (__gen_tempname): Call abort if an unknown kind value is
39         passed.
40
41 2014-06-25  Andreas Schwab  <schwab@suse.de>
42
43         [BZ #17086]
44         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
45         scalbln, scalblnf, scalblnl in libc.
46
47 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
48
49         [BZ #17086]
50         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
51         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
52         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
53
54 2014-06-24  Roland McGrath  <roland@hack.frob.com>
55
56         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
57         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
58         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
59         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
60         Update #include.
61         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
62         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
63         Update #include.
64         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
65         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
66         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
67         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
68         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
69         * sysdeps/x86/bits/pthreadtypes.h: ... here.
70         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
71         * sysdeps/x86/bits/semaphore.h: ... here.
72         * sysdeps/x86/nptl/elide.h: Moved ...
73         * sysdeps/x86/elide.h: ... here.
74         * sysdeps/x86_64/nptl/Implies: File removed.
75         * sysdeps/i386/nptl/Implies: File removed.
76
77 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
78
79         [BZ #16539]
80         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
81         return the argument for normal arguments with exponent below -64.
82         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
83         Likewise.
84         * math/auto-libm-test-in: Add another test of expm1.
85         * math/auto-libm-test-out: Regenerated.
86
87         [BZ #16287]
88         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
89         calling __erfcl for arguments at least 16.
90         * math/auto-libm-test-in: Add more tests of erf.
91         * math/auto-libm-test-out: Regenerated.
92
93         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
94         individual architectures.
95         * sysdeps/unix/sysv/linux/configure: Regenerated.
96         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
97         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
98         * sysdeps/unix/sysv/linux/powerpc/configure.ac
99         (ldd_rewrite_script): Define variable.
100         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
102         file.
103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
104         generated file.
105         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
106         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
107         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
108         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
109         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
110         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
111         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
112         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
113
114 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
115
116         [BZ #17084]
117         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
118         Rename member __data.d to __data.__elision_data.
119
120 2014-06-24  Wilco  <wdijkstr@arm.com>
121
122         * NEWS: Add 16918 to fixed bug list.
123
124 2014-06-24  Wilco  <wdijkstr@arm.com>
125
126         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
127
128 2014-06-24  Wilco  <wdijkstr@arm.com>
129
130         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
131         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
132         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
133         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
134         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
135         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
136         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
137         Use _FPU_MASK_RM.
138
139 2014-06-24  Wilco  <wdijkstr@arm.com>
140
141         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
142
143 2014-06-24  Wilco  <wdijkstr@arm.com>
144
145         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
146         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
147         * sysdeps/arm/fesetround.c (fesetround): Remove space.
148         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
149
150 2014-06-24  Wilco  <wdijkstr@arm.com>
151
152         [BZ #16918]
153         * sysdeps/arm/feupdateenv.c (feupdateenv):
154         Rewrite to reduce FPSCR accesses and fix return value.
155
156 2014-06-24  Wilco  <wdijkstr@arm.com>
157
158         * sysdeps/arm/fclrexcpt.c (feclearexcept):
159         Optimize to avoid unnecessary FPSCR writes.
160         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
161         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
162         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
163         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
164
165 2014-06-24  Wilco  <wdijkstr@arm.com>
166
167         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
168         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
169         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
170         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
171         Call libc_fetestexcept_vfp.
172         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
173         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
174         __SOFTFP__ ifdef so that they can be built for softfp.
175
176 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
177
178         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
179         argument type signed char.
180
181         * Makerules (check-abi): Dump diff of symlist if the test
182         fails.
183
184 2014-06-23  Roland McGrath  <roland@hack.frob.com>
185
186         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
187         using abort.
188
189         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
190         Remove unused variable ST.
191
192 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
193
194         [BZ #16354]
195         [BZ #17061]
196         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
197         small arguments before calling __expm1.
198         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
199         small arguments before calling __expm1f.
200         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
201         small arguments before calling __expm1l.
202         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
203         Likewise.
204         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
205         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
206         spurious underflow for some cosh tests.
207         * math/auto-libm-test-out: Regenerated.
208         * sysdeps/i386/fpu/libm-test-ulps: Update.
209
210         [BZ #17050]
211         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
212         (__ieee754_y1): Set errno if return value overflows.
213         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
214         (__ieee754_y1f): Set errno if return value overflows.
215         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
216         (__ieee754_y1l): Set errno if return value overflows.
217         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
218         (__ieee754_y1l): Set errno if return value overflows.
219         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
220         * math/auto-libm-test-out: Regenerated.
221
222         * math/gen-auto-libm-tests.c: Document use of
223         ignore-zero-inf-sign.
224         (input_flag_type): Add value flag_ignore_zero_inf_sign.
225         (input_flags): Add ignore-zero-inf-sign.
226         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
227         * math/gen-libm-test.pl (generate_testfile): Handle
228         ignore-zero-inf-sign.
229         * math/auto-libm-test-in: Mark some cpow tests with
230         ignore-zero-inf-sign and some with xfail-rounding.
231         * math/auto-libm-test-out: Regenerated.
232         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
233         * sysdeps/i386/fpu/libm-test-ulps: Update.
234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
235
236         [BZ #16315]
237         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
238         overflowing or underflowing operations take place with sign of
239         result.
240         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
241         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
242         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
243         (__ieee754_pow): Recompute overflowing and underflowing results in
244         original rounding mode.
245         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
246         (__powl_helper): Allow negative argument X and scale negated value
247         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
248         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
249         overflowing or underflowing operations take place with sign of
250         result.
251         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
252         Include <math.h>.
253         * math/auto-libm-test-in: Add more tests of pow.
254         * math/auto-libm-test-out: Regenerated.
255         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
256         (pow_tonearest_test_data): Remove.
257         (pow_test_tonearest): Likewise.
258         (pow_towardzero_test_data): Likewise.
259         (pow_test_towardzero): Likewise.
260         (pow_downward_test_data): Likewise.
261         (pow_test_downward): Likewise.
262         (pow_upward_test_data): Likewise.
263         (pow_test_upward): Likewise.
264         (main): Don't call removed functions.
265         * sysdeps/i386/fpu/libm-test-ulps: Update.
266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
267
268 2014-06-23  Roland McGrath  <roland@hack.frob.com>
269
270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
271         Moved ...
272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
274         Moved ...
275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
277         Moved ...
278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
280         Moved ...
281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
283         File removed.
284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
285         File removed.
286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
287         File removed.
288         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
289         File removed.
290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
291         File removed.
292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
293         File removed.
294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
295         File removed.
296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
297         File removed.
298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
299         File removed.
300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
301         File removed.
302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
303         File removed.
304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
305         File removed.
306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
307         Moved ...
308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
310         Moved ...
311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
312         ... here.
313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
314         Moved ...
315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
317         Moved ...
318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
320         Moved ...
321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
323         Moved ...
324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
326         Moved ...
327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
329         Moved ...
330         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
331         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
332         Moved ...
333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
336         ... here.
337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
338         Moved ...
339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
341         Moved ...
342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
343         ... here.
344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
345         Moved ...
346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
347         ... here.
348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
349         Moved ...
350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
351         ... here.
352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
353         Moved ...
354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
356         Moved ...
357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
361         Moved ...
362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
363         ... here.
364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
365         Moved ...
366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
367         ... here.
368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
369         Moved ...
370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
372         Moved ...
373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
375         Moved ...
376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
378         Moved ...
379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
381         Moved ...
382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
383         ... here.
384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
385         Moved ...
386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
388         Moved ...
389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
391         Moved ...
392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
394         Moved ...
395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
399         Moved ...
400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
402         Moved ...
403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
405         Moved ...
406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
407         ... here.
408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
409         Moved ...
410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
411         ... here.
412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
413         Moved ...
414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
415         ... here.
416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
417         Moved ...
418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
420         Moved ...
421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
423         Moved ...
424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
426         Moved ...
427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
428         ... here.
429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
430         Moved ...
431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
432         ... here.
433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
434         Moved ...
435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
436         ... here.
437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
438         Moved ...
439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
441         Moved ...
442         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
443
444 2014-06-23  Will Newton  <will.newton@linaro.org>
445             Wilco  <wdijkstr@arm.com>
446
447         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
448         implementation.  Include get-rounding-mode.h.
449         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
450         [!libc_feholdsetround_noex_ctx]: Define
451         libc_feholdsetround_noex_ctx.
452         [!libc_feholdsetround_noexf_ctx]: Define
453         libc_feholdsetround_noexf_ctx.
454         [!libc_feholdsetround_noexl_ctx]: Define
455         libc_feholdsetround_noexl_ctx.
456         (libc_feholdsetround_ctx): New function.
457         (libc_feresetround_ctx): New function.
458         (libc_feholdsetround_noex_ctx): New function.
459         (libc_feresetround_noex_ctx): New function.
460
461 2014-06-23  Roland McGrath  <roland@hack.frob.com>
462
463         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
464         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
465         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
466         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
467         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
468         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
469
470         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
471         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
472         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
473         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
474         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
475         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
476         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
477         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
478         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
479         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
480         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
481         Moved ...
482         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
483         ... here.
484         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
485         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
486         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
487         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
488         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
489         Moved ...
490         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
491         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
492         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
493         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
494         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
495         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
496         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
497         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
498         Moved ...
499         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
500         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
501         Moved ...
502         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
503         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
504         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
505         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
506         Moved ...
507         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
508         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
509         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
510         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
511         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
512         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
513         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
514         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
515         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
516         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
517         Moved ...
518         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
519         ... here.
520         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
521         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
522         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
523         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
524         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
525         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
526         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
527         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
528         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
529         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
530         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
531         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
532         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
533         Moved ...
534         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
535         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
536         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
537         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
538         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
539         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
540         Moved ...
541         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
542         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
543         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
544         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
545         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
546
547         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
548         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
549         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
550         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
551         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
552         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
553         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
554         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
555         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
556         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
557         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
558         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
559         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
560         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
561         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
562         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
563         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
564         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
565         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
566         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
567         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
568         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
569         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
570         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
571         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
572         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
573         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
574         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
575
576 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
577
578         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
579         (FALLOC_FL_COLLAPSE_RANGE): New macro.
580         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
581         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
582         (IPV6_PMTUDISC_INTERFACE): Likewise.
583         (IPV6_PMTUDISC_OMIT): Likewise.
584
585 2014-06-23  Andreas Schwab  <schwab@suse.de>
586
587         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
588         Remove unused errout label.
589
590 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
591
592         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
593         macro: hardware supports Vector Crypto instructions.
594
595 2014-06-23  Will Newton  <will.newton@linaro.org>
596
597         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
598         rather than __builtin_expect.
599
600         * elf/dl-lookup.c (undefined_msg): Remove variable.
601         (_dl_lookup_symbol_x): Replace undefined_msg with string
602         literal.
603
604         * elf/dl-lookup.c (do_lookup_unique): New function.
605         (do_lookup_x): Move STB_GNU_UNIQUE handling code
606         to a separate function.
607
608 2014-06-23  Andreas Schwab  <schwab@suse.de>
609
610         [BZ #17079]
611         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
612         before reading the next line.
613
614 2014-06-23  Will Newton  <will.newton@linaro.org>
615
616         * test-skeleton.c (signal_handler): Use printf and %m
617         rather than perror.  Use printf rather than fprintf to
618         stderr.  Use puts rather than fputs to stderr.
619         (main): Likewise.
620
621 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
622
623         * nscd/nscd.c (thread_info_t): Remove typedef.
624         (thread_info): Remove variable.
625
626 2014-06-21  Allan McRae  <allan@archlinux.org>
627
628         * NEWS: Mention CVE-2014-4043.
629
630 2014-06-20  Roland McGrath  <roland@hack.frob.com>
631
632         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
633         * nptl/smp.h: ... here.
634
635         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
636
637         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
638         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
639         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
640         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
641
642         * nptl/allocatestack.c: Include <stack-aliasing.h>.
643         * nptl/stack-aliasing.h: New file.
644         * sysdeps/i386/i686/stack-aliasing.h: New file.
645         * sysdeps/i386/i686/nptl/Makefile: File removed.
646         * sysdeps/x86_64/stack-aliasing.h: New file.
647         * sysdeps/x86_64/nptl/Makefile
648         (CFLAGS-pthread_create.c): Variable removed.
649
650         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
651         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
652         old file.
653         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
654         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
655         old file.
656
657 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
658
659         * sysdeps/unix/sysv/linux/arm/kernel-features.h
660         (__ASSUME_SIGFRAME_V2): Remove macro.
661         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
662         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
663         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
664         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
665         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
666         Declare as function.  Remove conditional macro definitions.
667         (__default_rt_sa_restorer): Likewise.
668         (__default_sa_restorer_v1): Remove declaration.
669         (__default_sa_restorer_v2): Likewise.
670         (__default_rt_sa_restorer_v1): Likewise.
671         (__default_rt_sa_restorer_v2): Likewise.
672         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
673         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
674         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
675
676 2014-06-20  Roland McGrath  <roland@hack.frob.com>
677
678         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
679         (libpthread-routines): Add sysdep.
680         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
681         * sysdeps/unix/sysv/linux/sparc/Versions
682         (libpthread: GLIBC_2.3.3): New version set.
683         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
684         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
685         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
686         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
687         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
688         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
689         Moved ...
690         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
691         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
692         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
693         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
694         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
695         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
696         * sysdeps/sparc/nptl/sem_init.c: ... here.
697         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
698         * sysdeps/sparc/nptl/sem_post.c: ... here.
699         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
700         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
701         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
702         * sysdeps/sparc/nptl/sem_wait.c: ... here.
703         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
704         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
705         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
706         (libpthread-routines): Add cpu_relax.
707         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
708         File removed.
709         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
710         (librt: GLIBC_2.3.3): New version set.
711         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
712         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
713         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
714         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
715         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
716         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
717         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
718         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
719         Moved ...
720         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
721         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
722         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
723         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
724         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
725         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
726         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
727         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
728         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
729         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
730         Moved ...
731         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
732         Update #include.
733         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
734         Moved ...
735         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
736         Update #include.
737         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
738         Moved ...
739         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
740         Update #include.
741         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
742         Moved ...
743         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
744         Update #include.
745         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
746         Moved ...
747         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
748         Update #include.
749         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
750         Moved ...
751         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
752         Update #include.
753         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
754         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
755         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
756         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
757         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
758         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
759         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
760         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
761         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
762         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
763         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
764         Moved ...
765         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
766         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
767         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
768         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
769         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
770
771 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
772
773         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
774         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
775         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
776         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
777         * nscd/nscd.c: Likewise.
778         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
779         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
780         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
781         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
782
783         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
784         <kernel-features.h>.
785         (init_mq_netlink): Remove conditional have_sock_cloexec
786         definitions.  Remove code conditional on have_sock_cloexec < 0.
787         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
788         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
789         * sysdeps/unix/sysv/linux/opensock.c: Do not include
790         <kernel-features.h>.
791         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
792         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
793
794 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
795
796         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
797         Add tests for memset_chk and memset.
798
799         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
800         with AVX2_Usable.
801
802 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
803
804         [BZ #16046]
805         * elf/tst-dl-iter-static.c: New file.
806         * elf/Makefile (tests-static): Add tst-dl-iter-static.
807
808         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
809         error.
810
811 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
812
813         * sysdeps/unix/sysv/linux/kernel-features.h
814         (__ASSUME_F_GETOWN_EX): Remove macro.
815         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
816         <kernel-features.h>.
817         (miss_F_GETOWN_EX): Remove variable or macro.
818         (do_fcntl): Do not check miss_F_GETOWN_EX.
819         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
820
821         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
822         Remove macro.
823         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
824         [!__ASSUME_AT_RANDOM]: Remove conditional code.
825         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
826
827         * sysdeps/unix/sysv/linux/kernel-features.h
828         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
829         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
830         [ADJ_OFFSET_SS_READ]: Make code unconditional.
831         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
832
833 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
834
835         [BZ #17075]
836         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
837         Fix calculation of the symbol's value.
838         * sysdeps/arm/tst-armtlsdescloc.c: New file.
839         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
840         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
841         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
842         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
843         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
844         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
845         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
846         (modules-names): Add `tst-armtlsdescmod',
847         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
848         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
849         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
850         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
851         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
852         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
853         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
854         ($(objpfx)tst-armtlsdescloc): New dependency.
855         ($(objpfx)tst-armtlsdescextnow): Likewise.
856         ($(objpfx)tst-armtlsdescextlazy): Likewise.
857         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
858         TLS scheme support.
859         * sysdeps/arm/configure: Regenerate.
860
861 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
862
863         * include/fcntl.h (__atfct_seterrno): Remove prototype.
864         (__atfct_seterrno_2): Likewise.
865         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
866         <kernel-features.h>.
867         (__ASSUME_ATFCTS): Do not undefine and redefine.
868         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
869         (__have_atfcts): Remove conditional definition.
870         (__fxstatat([__NR_fstatat64]: Make code unconditional.
871         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
872         unreachable if [__ASSUME_ATFCTS].
873         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
874         not undefine and redefine.
875         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
876         <kernel-features.h>.
877         (faccessat) [__NR_faccessat]: Make code unconditional.
878         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
879         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
880         <kernel-features.h>.
881         (fchmodat) [__NR_fchmodat]: Make code unconditional.
882         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
883         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
884         <kernel-features.h>.
885         (fchownat) [__NR_fchownat]: Make code unconditional.
886         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
887         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
888         <kernel-features.h>.
889         (futimesat) [__NR_futimesat]: Make code unconditional.
890         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
891         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
892         <kernel-features.h>.
893         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
894         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
895         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
896         <kernel-features.h>.
897         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
898         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
899         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
900         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
901         <kernel-features.h>.
902         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
903         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
904         * sysdeps/unix/sysv/linux/linkat.c: Do not include
905         <kernel-features.h>.
906         (linkat) [__NR_linkat]: Make code unconditional.
907         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
908         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
909         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
910         <kernel-features.h>.
911         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
912         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
913         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
914         <kernel-features.h>.
915         (mkdirat) [__NR_mkdirat]: Make code unconditional.
916         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
917         * sysdeps/unix/sysv/linux/openat.c: Do not include
918         <kernel-features.h>.
919         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
920         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
921         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
922         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
923         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
924         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
925         <kernel-features.h>.
926         (readlinkat) [__NR_readlinkat]: Make code unconditional.
927         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
928         result of INLINE_SYSCALL directly, not via int variable.
929         * sysdeps/unix/sysv/linux/renameat.c: Do not include
930         <kernel-features.h>.
931         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
932         (renameat) [__NR_renameat]: Make code unconditional.
933         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
934         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
935         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
936         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
937         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
938         (__ASSUME_ATFCTS): Do not undefine and redefine.
939         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
940         <kernel-features.h>.
941         (symlinkat) [__NR_symlinkat]: Make code unconditional.
942         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
943         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
944         <kernel-features.h>.
945         (unlinkat) [__NR_unlinkat]: Make code unconditional.
946         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
947         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
948         (__ASSUME_ATFCTS): Do not undefine and redefine.
949         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
950         <kernel-features.h>.
951         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
952         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
953         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
954         <kernel-features.h>.
955         (__xmknodat) [__NR_mknodat]: Make code unconditional.
956         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
957
958 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
959
960         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
961
962 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
963
964         [BZ #17069]
965         * posix/regcomp.c (parse_reg_exp): Deallocate partially
966         constructed tree before returning error.
967         * posix/bug-regexp36.c: Expand test case.
968
969 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
970
971         [BZ #6803]
972         * math/libm-test.inc (scalbln_test_date):
973         Add errno expectations.
974         * math/w_scalblnf.c: New File.
975         Add wrapper which checks for setting errno to ERANGE.
976         Add weak_alias for corresponding scalbln function.
977         * math/w_scalbln.c: Likewise.
978         * math/w_scalblnl.c: Likewise.
979         * math/Makefile (libm-calls): Add w_scalbln.
980         * sysdeps/ieee754/flt-32/s_scalblnf.c:
981         Remove weak_alias for corresponding scalbln function.
982         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
983         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
984         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
985         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
986         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
987         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
988         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
989         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
990         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
991         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
992         Remove long_double_symbol for scalblnl function in libm, libc.
993         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
994         Add wrapper which checks for setting errno to ERANGE.
995         Add long_double_symbol for scalblnl function in libm, libc.
996         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
997         Remove long_double_symbol for scalblnl in libm.
998         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
999         Add wrapper which checks for setting errno to ERANGE.
1000         Add long_double_symbol for scalblnl function in libm.
1001         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
1002         Do not use wrapper because of own implementation.
1003
1004 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1005
1006         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
1007         3 bytes for __pad1 for x32.
1008         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
1009
1010 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
1011             H.J. Lu  <hongjiu.lu@intel.com>
1012
1013         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
1014         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
1015         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1016         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1017         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
1018
1019 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
1020
1021         [BZ #17069]
1022         * posix/regcomp.c (parse_expression): Deallocate partially
1023         constructed tree before returning error.
1024         * posix/Makefile.c (tests): Add bug-regex36.
1025         (generated): Add bug-regex36.mtrace.
1026         (tests-special): Add $(objpfx)bug-regex36-mem.out
1027         (bug-regex36-ENV): New variable.
1028         ($(objpfx)bug-regex36-mem.out): New rule.
1029         * posix/bug-regex36.c: New file.
1030
1031 2014-06-19  Will Newton  <will.newton@linaro.org>
1032
1033         * malloc/malloc.c (systrim): If extra is zero then return
1034         early.
1035
1036 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1037
1038         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
1039
1040 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
1041
1042         * sysdeps/aarch64/strchr.S: New file.
1043
1044 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
1045
1046         [BZ #17022]
1047         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
1048         from arguments -2 or below.
1049         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1050         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1051
1052 2014-06-18  Andreas Schwab  <schwab@suse.de>
1053
1054         [BZ #17062]
1055         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
1056         of a bracket expr not to run off the end of the string.
1057         * posix/Makefile (tests): Add tst-fnmatch3.
1058         * posix/tst-fnmatch3.c: New file.
1059
1060 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
1061
1062         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
1063         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1064         [$(cross-compiling) = no]: Likewise.
1065         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1066         [$(cross-compiling) = no]: Likewise.
1067
1068 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1069
1070         [BZ #17031]
1071         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
1072         double, adjusted for any remainder from the high double.
1073         * math/libm-test.inc (nearbyint): Add tests.
1074         (rint): Likewise.
1075
1076 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1077
1078         * nptl/sysdeps/powerpc/Makefile: Moved ...
1079         * sysdeps/powerpc/nptl/Makefile: ... here.
1080         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
1081         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
1082         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
1083         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
1084         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
1085         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
1086         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
1087         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
1088         * nptl/sysdeps/powerpc/tls.h: Moved ...
1089         * sysdeps/powerpc/nptl/tls.h: ... here.
1090
1091 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
1092
1093         [BZ #16681]
1094         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
1095         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
1096         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
1097         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
1098         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
1099         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
1100         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
1101         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
1102         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
1103
1104 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
1105
1106         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
1107
1108 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
1109
1110         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
1111         defined operator.
1112
1113         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
1114         $TIMEOUTFACTOR.
1115
1116 2014-06-16  Florian Weimer  <fweimer@redhat.com>
1117
1118         [BZ #17058]
1119         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
1120         non-executed part of the test.
1121
1122 2014-06-16  Andreas Schwab  <schwab@suse.de>
1123
1124         * string/bits/string2.h (strdup, strndup): Update feature guard.
1125
1126 2014-06-14  David S. Miller  <davem@davemloft.net>
1127
1128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1129
1130 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
1131
1132         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
1133         that was previously under [RESET_PID].
1134         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
1135
1136         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
1137         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
1138         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
1139         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1140         (__libc_vfork): New strong alias.
1141         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
1142
1143 2014-06-14 Andi Kleen  <ak@linux.intel.com>
1144
1145         * sysdeps/generic/elide.h: New file.
1146
1147 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1148
1149         * Makefile (installed-headers): Adjust path of pthread.h header.
1150
1151 2014-06-13  Roland McGrath  <roland@hack.frob.com>
1152
1153         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
1154         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
1155         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
1156         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
1157
1158         * nptl/sysdeps/s390/Makefile: Moved ...
1159         * sysdeps/s390/nptl/Makefile: ... here.
1160         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
1161         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
1162         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
1163         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
1164         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
1165         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
1166         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
1167         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
1168         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
1169         * sysdeps/s390/nptl/pthreaddef.h: ... here.
1170         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
1171         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
1172         * nptl/sysdeps/s390/tls.h: Moved ...
1173         * sysdeps/s390/nptl/tls.h: ... here.
1174
1175         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
1176         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
1177
1178 2014-06-13  David S. Miller  <davem@davemloft.net>
1179
1180         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
1181         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
1182         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
1183         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
1184         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
1185         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
1186         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
1187         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
1188         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
1189         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
1190         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1191         Remove RESET_PID cpp guards.
1192         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1193         Remove RESET_PID cpp guards.
1194         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1195
1196 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1197
1198         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1199         __sp to uintptr_t.
1200
1201 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1202
1203         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1204         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1205         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1206         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1207         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1208         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1209         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1210         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1211         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1212         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1213         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1214         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1215         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1216         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1217         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1218         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1219         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1220         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1221         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1222         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1223
1224         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1225         (pthread_rwlock_rdlock): Add elision.
1226         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1227         (pthread_rwlock_wrlock): Add elision.
1228         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1229         (pthread_rwlock_trywrlock): Add elision.
1230         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1231         (pthread_rwlock_tryrdlock): Add elision.
1232         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1233         (pthread_rwlock_tryrdlock): Add elision unlock.
1234         * nptl/sysdeps/pthread/pthread.h:
1235         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1236         (PTHREAD_RWLOCK_INITIALIZER,
1237         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1238         Handle new elision field.
1239         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1240         * sysdeps/arm/nptl/bits/pthreadtypes.h
1241         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1242         * sysdeps/sh/nptl/bits/pthreadtypes.h
1243         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1244         * sysdeps/tile/nptl/bits/pthreadtypes.h
1245         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1246         * sysdeps/a/nptl/bits/pthreadtypes.h
1247         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1248         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1249         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1250         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1251         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1252         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1253         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1254         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1255         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1256         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1257         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1258         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1259         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1260         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1261         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1262         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1263         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1264         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1265         (elision_init): Set try_xbegin to zero when no RTM.
1266         * sysdeps/x86/nptl/bits/pthreadtypes.h
1267         (pthread_rwlock_t): Change __pad1 to __rwelision.
1268         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1269
1270 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1271
1272         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1273         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1274         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1275         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1276
1277 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1278
1279         [BZ #16996]
1280         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1281         that the cached result has been set before returning it.
1282
1283 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1284
1285         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1286         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1287         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1288         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1289         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1290         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1291
1292         * nptl/sysdeps/sparc/Makefile: Moved ...
1293         * sysdeps/sparc/nptl/Makefile: ... here.
1294         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1295         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1296         * nptl/sysdeps/sparc/tls.h: Moved ...
1297         * sysdeps/sparc/nptl/tls.h: ... here.
1298         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1299         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1300         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1301         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1302         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1303         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1304         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1305         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1306         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1307         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1308         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1309         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1310         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1311         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1312         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1313         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1314         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1315         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1316         Update #include.
1317         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1318         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1319         Update #include.
1320         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1321         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1322         Update #include.
1323         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1324         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1325         Update #include.
1326
1327         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1328
1329         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1330         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1331
1332         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1333         (struct list_links): Type removed.
1334         (struct thread_node, struct timer_node): Replace struct list_links
1335         with struct list_head.
1336         (list_unlink_ip): Likewise.
1337         * sysdeps/pthread/timer_routines.c
1338         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1339         (list_append, list_insbefore): Likewise.
1340         (list_init): Function removed.
1341         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1342         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1343         * sysdeps/pthread/Makefile: ... here, new file.
1344
1345         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1346         * sysdeps/nptl/Implies: ... here.
1347         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1348         * nptl/sysdeps/pthread/list.h: Moved ...
1349         * include/list.h: ... here.
1350         * nptl/sysdeps/pthread/createthread.c: Moved ...
1351         * nptl/createthread.c: ... here.
1352         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1353         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1354         * nptl/pt-longjmp.c: ... here.
1355         * nptl/sysdeps/pthread/Makefile: Moved ...
1356         * sysdeps/nptl/Makefile: ... here.
1357         * nptl/sysdeps/pthread/Subdirs: Moved ...
1358         * sysdeps/nptl/Subdirs: ... here.
1359         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1360         * sysdeps/nptl/aio_misc.h: ... here.
1361         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1362         * sysdeps/nptl/bits/libc-lock.h: ... here.
1363         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1364         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1365         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1366         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1367         * nptl/sysdeps/pthread/configure: Moved ...
1368         * sysdeps/nptl/configure: ... here.
1369         * nptl/sysdeps/pthread/configure.ac: Moved ...
1370         * sysdeps/nptl/configure.ac: ... here.
1371         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1372         * sysdeps/nptl/gai_misc.h: ... here.
1373         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1374         * sysdeps/nptl/librt-cancellation.c: ... here.
1375         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1376         * sysdeps/nptl/malloc-machine.h: ... here.
1377         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1378         * sysdeps/nptl/pthread-functions.h: ... here.
1379         * nptl/sysdeps/pthread/pthread.h: Moved ...
1380         * sysdeps/nptl/pthread.h: ... here.
1381         * nptl/sysdeps/pthread/setxid.h: Moved ...
1382         * sysdeps/nptl/setxid.h: ... here.
1383         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1384         * sysdeps/nptl/sigfillset.c: ... here.
1385         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1386         * sysdeps/nptl/tcb-offsets.h: ... here.
1387         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1388         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1389         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1390         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1391         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1392         * sysdeps/pthread/allocalim.h: ... here.
1393         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1394         * sysdeps/pthread/bits/sigthread.h: ... here.
1395         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1396         * sysdeps/pthread/flockfile.c: ... here.
1397         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1398         * sysdeps/pthread/ftrylockfile.c: ... here.
1399         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1400         * sysdeps/pthread/funlockfile.c: ... here.
1401         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1402         * sysdeps/pthread/posix-timer.h: ... here.
1403         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1404         * sysdeps/pthread/timer_create.c: ... here.
1405         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1406         * sysdeps/pthread/timer_delete.c: ... here.
1407         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1408         * sysdeps/pthread/timer_getoverr.c: ... here.
1409         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1410         * sysdeps/pthread/timer_gettime.c: ... here.
1411         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1412         * sysdeps/pthread/timer_routines.c: ... here.
1413         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1414         * sysdeps/pthread/timer_settime.c: ... here.
1415         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1416         * sysdeps/pthread/tst-timer.c: ... here.
1417         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1418         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1419
1420         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1421         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1422
1423         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1424         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1425         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1426         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1427         Update #include target.
1428         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1429         * sysdeps/i386/i686/nptl/Makefile: ... here.
1430         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1431         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1432         Update #include target.
1433         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1434         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1435         * nptl/sysdeps/i386/Makefile: Moved ...
1436         * sysdeps/i386/nptl/Makefile: ... here.
1437         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1438         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1439         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1440         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1441         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1442         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1443         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1444         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1445         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1446         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1447         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1448         * nptl/sysdeps/i386/tls.h: Moved ...
1449         * sysdeps/i386/nptl/tls.h: ... here.
1450
1451         * sysdeps/sh/Makefile [$(subdir) = csu]
1452         (gen-as-const-headers): Add tcb-offsets.sym.
1453         * nptl/sysdeps/sh/Makefile: File removed.
1454         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1455         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1456         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1457         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1458         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1459         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1460         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1461         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1462         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1463         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1464         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1465         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1466         * nptl/sysdeps/sh/tls.h: Moved ...
1467         * sysdeps/sh/nptl/tls.h: ... here.
1468         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1469         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1470         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1471         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1472         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1473         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1474         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1475         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1476         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1477         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1478         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1479         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1480         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1481         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1482         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1483         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1484         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1485         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1486         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1487         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1488         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1489         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1490         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1491         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1492         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1493         Moved ...
1494         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1495         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1496         Moved ...
1497         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1498         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1499         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1500         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1501         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1502         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1503         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1504         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1505         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1506         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1507         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1508         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1509         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1510         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1511         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1512         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1513         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1514         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1515         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1516
1517 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1518
1519         * posix/spawn_faction_addopen.c: Include string.h.
1520
1521 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1522
1523         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1524         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1525         * nptl/sysdeps/x86_64/Makefile: Moved ...
1526         * sysdeps/x86_64/nptl/Makefile: ... here.
1527         * nptl/sysdeps/x86_64/configure: Moved ...
1528         * sysdeps/x86_64/nptl/configure: ... here.
1529         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1530         * sysdeps/x86_64/nptl/configure.ac: ... here.
1531         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1532         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
1533         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
1534         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
1535         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
1536         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
1537         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
1538         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
1539         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
1540         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
1541         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
1542         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
1543         * nptl/sysdeps/x86_64/tls.h: Moved ...
1544         * sysdeps/x86_64/nptl/tls.h: ... here.
1545         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
1546         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
1547         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
1548         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
1549
1550         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
1551
1552 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1553
1554         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1555
1556 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
1557
1558         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
1559         type.
1560         [POSIX] (off_t): Likewise.
1561         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
1562         [POSIX] (S_ISBLK): Require macro.
1563         [POSIX] (S_ISCHR): Likewise.
1564         [POSIX] (S_ISDIR): Likewise.
1565         [POSIX] (S_ISFIFO): Likewise.
1566         [POSIX] (S_ISREG): Likewise.
1567         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
1568         optional-macro.
1569         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
1570         type.
1571         [POSIX] (time_t): Likewise.
1572         [POSIX] (timer_t): Likewise.
1573
1574 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1575
1576         [BZ #17048]
1577         * posix/spawn_int.h (struct __spawn_action): Make the path string
1578         non-const to support deallocation.
1579         * posix/spawn_faction_addopen.c
1580         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1581         * posix/spawn_faction_destroy.c
1582         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1583         path in all spawn_do_open actions.
1584         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1585         posix_spawn_file_actions_addopen.
1586
1587 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1588
1589         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1590         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1591         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1592         conditional code always true.
1593         (__libc_vfork): New alias.
1594
1595 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1596
1597         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1598         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1599
1600         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1601
1602         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1603         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1604
1605         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1606         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1607
1608         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1609         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1610
1611 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1612
1613         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1614         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1615         multiarch strcmp for PPC64.
1616         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1617         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1618         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1619         multiarch optimizations.
1620         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1621         (__libc_ifunc_impl_list): Likewise.
1622
1623 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1624
1625         * benchtests/scripts/validate_benchout.py: New script.
1626         * benchtests/Makefile (bench-func): Call it.
1627         * benchtests/scripts/benchout.schema.json: New file.
1628
1629 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1630
1631         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1632         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1633         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1634         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1635         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1636         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1637         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1638         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1639         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1640         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1641         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1642         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1643         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1644         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1645         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1646         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1647         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1648         Moved ...
1649         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1650         ... here.
1651         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1652         Moved ...
1653         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1655         Moved ...
1656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1657         ... here.
1658         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1659         Moved ...
1660         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1661         ... here.
1662         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1663         Moved ...
1664         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1665         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1666         Moved ...
1667         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1668         ... here.
1669         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1670         Moved ...
1671         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1672         ... here.
1673         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1674         Moved ...
1675         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1676         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1677         Moved ...
1678         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1679         ... here.
1680         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1681         Moved ...
1682         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1683         ... here.
1684         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1685         Moved ...
1686         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1687         ... here.
1688         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1689         Moved ...
1690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1691         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1692         Moved ...
1693         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1694         ... here.
1695         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1696         Moved ...
1697         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1698         ... here.
1699         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1700         Moved ...
1701         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1702         ... here.
1703         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1704         Moved ...
1705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1706         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1707         Moved ...
1708         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1709         ... here.
1710         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1711         Moved ...
1712         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1713         ... here.
1714         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1715         Moved ...
1716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1717         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1718         Moved ...
1719         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1720         ... here.
1721         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1722         Moved ...
1723         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1724         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1725         Moved ...
1726         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1727         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1728         Moved ...
1729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1730         ... here.
1731         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1732         Moved ...
1733         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1734         ... here.
1735         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1736         Moved ...
1737         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1738         ... here.
1739         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1740         Moved ...
1741         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1743         Moved ...
1744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1745         ... here.
1746         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1747         Moved ...
1748         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1749         ... here.
1750         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1751         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1752         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1753         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1754         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1755         Moved ...
1756         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1757         ... here.
1758         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1759         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1760         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1761         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1762         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1763         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1764         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1765         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1766         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1767         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1768         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1769         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1770         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1771         Moved ...
1772         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1773         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1774         Moved ...
1775         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1776         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1777         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1778         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1779         Moved ...
1780         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1781         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1782         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1783         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1784         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1785         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1786         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1787
1788 2014-06-10  Wilco  <wdijkstr@arm.com>
1789
1790         * math/test-fenv-return.c: New file.
1791         * math/Makefile: Add new test test-fenv-return.
1792
1793 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1794
1795         [BZ #17042]
1796         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1797         when x - 1 is zero.
1798         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1799         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1800         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1801         0.0L for an argument of 1.0L.
1802         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1803         Likewise.
1804         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1805         value when x - 1 is zero.
1806         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1807         * sysdeps/i386/fpu/libm-test-ulps: Update.
1808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1809
1810 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1811
1812         [BZ #15119]
1813         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1814
1815 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1816
1817         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1818         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1819
1820 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1821
1822         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1823         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1824
1825         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1826         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1827
1828         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1829         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1830
1831         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1832         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1833
1834         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1835         if not already defined.
1836         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1837         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1838         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1839         (TLS_INIT_TP): Use it.
1840         (TLS_DEFINE_INIT_TP): New macro.
1841         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1842
1843 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1844
1845         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1846         constant.
1847         [POSIX] (IXANY): Likewise.
1848         [POSIX] (OLCUC): Likewise.
1849         [POSIX || POSIX2008] (CBAUD): Do not allow.
1850         [POSIX || POSIX2008] (DEFECHO): Likewise.
1851         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1852         [POSIX || POSIX2008] (ECHOKE): Likewise.
1853         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1854         [POSIX || POSIX2008] (EXTA): Likewise.
1855         [POSIX || POSIX2008] (EXTB): Likewise.
1856         [POSIX || POSIX2008] (FLUSHO): Likewise.
1857         [POSIX || POSIX2008] (LOBLK): Likewise.
1858         [POSIX || POSIX2008] (PENDIN): Likewise.
1859         [POSIX || POSIX2008] (SWTCH): Likewise.
1860         [POSIX || POSIX2008] (VDISCARD): Likewise.
1861         [POSIX || POSIX2008] (VDSUSP): Likewise.
1862         [POSIX || POSIX2008] (VLNEXT): Likewise.
1863         [POSIX || POSIX2008] (VREPRINT): Likewise.
1864         [POSIX || POSIX2008] (VSTATUS): Likewise.
1865         [POSIX || POSIX2008] (VWERASE): Likewise.
1866         (B*): Change to B[0123456789]*.
1867         * conform/data/time.h-data [POSIX || UNIX98]
1868         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1869         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1870         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1871         [POSIX] (tm_*): Do not allow.
1872
1873 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1874
1875         * Makefile (install): Don't set LANGUAGE.
1876         * Makefile.in (install): Likewise.
1877         * assert/Makefile (test-assert-ENV): Remove variable.
1878         (test-assert-perr-ENV): Likewise.
1879         * elf/Makefile (neededtest4-ENV): Likewise.
1880         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1881         [$(cross-compiling) = no]: Don't set LANGUAGE.
1882         * io/ftwtest-sh (LANG): Remove variable.
1883         * libio/Makefile (tst-widetext-ENV): Likewise.
1884         * manual/install.texi (Running make install): Don't refer to
1885         environment settings for make install.
1886         * INSTALL: Regenerated.
1887         * nptl/tst-tls6.sh: Don't set LANG.
1888         * posix/globtest.sh (LANG): Remove variable.
1889         * string/Makefile (tester-ENV): Likewise.
1890         (inl-tester-ENV): Likewise.
1891         (noinl-tester-ENV): Likewise.
1892         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1893         [$(cross-compiling) = no]: Don't set LANGUAGE.
1894         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1895         without explicit environment settings.
1896
1897 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1898
1899         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1900         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1901         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1902         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1903
1904 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1905
1906         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1907         other files in the crypt directory.
1908         * crypt/crypt.c: Remove duplicate includes.
1909         * crypt/crypt-entry.c: Likewise.
1910         * crypt/crypt_util.c: Likewise.
1911
1912 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1913
1914         * Makeconfig (run-program-env): New variable.
1915         (run-program-prefix-before-env): Likewise.
1916         (run-program-prefix-after-env): Likewise.
1917         (run-program-prefix): Define in terms of new variables.
1918         (built-program-cmd-before-env): New variable.
1919         (built-program-cmd-after-env): Likewise.
1920         (built-program-cmd): Define in terms of new variables.
1921         (test-program-prefix-before-env): New variable.
1922         (test-program-prefix-after-env): Likewise.
1923         (test-program-prefix): Define in terms of new variables.
1924         (test-program-cmd-before-env): New variable.
1925         (test-program-cmd-after-env): Likewise.
1926         (test-program-cmd): Define in terms of new variables.
1927         * Rules (make-test-out): Use $(run-program-env).
1928         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1929         (help): Do not mention environment variables.  Mention
1930         --timeoutfactor option.
1931         (timeoutfactor): New variable.
1932         (blacklist_exports): Remove function.
1933         (exports): Remove variable.
1934         (command): Do not include ${exports}.
1935         * manual/install.texi (Configuring and compiling): Do not mention
1936         test wrappers preserving environment variables.  Mention that last
1937         assignment to a variable must take precedence.
1938         * INSTALL: Regenerated.
1939         * benchtests/Makefile (run-bench): Use $(run-program-env).
1940         * catgets/Makefile ($(objpfx)test1.cat): Use
1941         $(built-program-cmd-before-env), $(run-program-env) and
1942         $(built-program-cmd-after-env).
1943         ($(objpfx)test2.cat): Do not specify environment variables
1944         explicitly.
1945         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1946         $(run-program-env) and $(built-program-cmd-after-env).
1947         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1948         $(run-program-env) and $(test-program-cmd-after-env).
1949         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1950         explicitly.
1951         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1952         run_program_env and test_program_cmd_after_env arguments.
1953         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1954         * elf/tst-pathopt.sh: Use run_program_env argument.
1955         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1956         $(test-wrapper-env) and $(run-program-env).
1957         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1958         run_program_env arguments.
1959         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1960         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1961         $(test-program-prefix-before-env), $(run-program-env) and
1962         $(test-program-prefix-after-env).
1963         ($(objpfx)tst-gettext2.out): Likewise.
1964         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1965         run_program_env and test_program_prefix_after_env arguments.
1966         * intl/tst-gettext2.sh: Likewise.
1967         * intl/tst-gettext4.sh: Do not set environment variables
1968         explicitly.
1969         * intl/tst-gettext6.sh: Likewise.
1970         * intl/tst-translit.sh: Likewise.
1971         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1972         $(test-program-prefix-before-env), $(run-program-env) and
1973         $(test-program-prefix-after-env).
1974         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1975         run_program_env and test_program_prefix_after_env arguments.
1976         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1977         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1978         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1979         explicitly with each use of ${test_wrapper_env}.
1980         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1981         $(test-program-prefix-before-env), $(run-program-env) and
1982         $(test-program-prefix-after-env).
1983         * posix/tst-getconf.sh: Do not set environment variables
1984         explicitly.
1985         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1986         run_program_env and test_program_prefix_after_env arguments.
1987         * stdio-common/tst-printf.sh: Do not set environment variables
1988         explicitly.
1989         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1990         $(test-program-prefix-before-env), $(run-program-env) and
1991         $(test-program-prefix-after-env).
1992         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1993         run_program_env and test_program_prefix_after_env arguments.
1994         Split $test calls into $test_pre and $test.
1995         * timezone/Makefile (build-testdata): Use
1996         $(built-program-cmd-before-env), $(run-program-env) and
1997         $(built-program-cmd-after-env).
1998
1999 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2000
2001         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
2002         strlen for non SHARED builds.
2003
2004 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2005
2006         * nptl/allocatestack.c (check_list): Inlined function...
2007         (__reclaim_stacks): ... here.
2008
2009 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
2010
2011         [BZ #15698]
2012         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
2013         memory overrun.
2014
2015 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
2016
2017         * Rules (make-test-out): Include
2018         LOCPATH=$(common-objpfx)localedata in default environment.
2019         * debug/Makefile (tst-chk1-ENV): Remove variable.
2020         (tst-chk2-ENV): Likewise.
2021         (tst-chk3-ENV): Likewise.
2022         (tst-chk4-ENV): Likewise.
2023         (tst-chk5-ENV): Likewise.
2024         (tst-chk6-ENV): Likewise.
2025         (tst-lfschk1-ENV): Likewise.
2026         (tst-lfschk2-ENV): Likewise.
2027         (tst-lfschk3-ENV): Likewise.
2028         (tst-lfschk4-ENV): Likewise.
2029         (tst-lfschk5-ENV): Likewise.
2030         (tst-lfschk6-ENV): Likewise.
2031         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
2032         (tst-iconv7-ENV): Likewise.
2033         * intl/Makefile (LOCPATH-ENV): Likewise.
2034         (tst-codeset-ENV): Likewise.
2035         (tst-gettext3-ENV): Likewise.
2036         (tst-gettext5-ENV): Likewise.
2037         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
2038         (tst-fopenloc-ENV): Likewise.
2039         (tst-fgetws-ENV): Remove variable.
2040         (tst-ungetwc1-ENV): Likewise.
2041         (tst-ungetwc2-ENV): Likewise.
2042         (bug-ungetwc2-ENV): Likewise.
2043         (tst-swscanf-ENV): Likewise.
2044         (bug-ftell-ENV): Likewise.
2045         (tst-fgetwc-ENV): Likewise.
2046         (tst-fseek-ENV): Likewise.
2047         (tst-ftell-partial-wide-ENV): Likewise.
2048         (tst-ftell-active-handler-ENV): Likewise.
2049         (tst-ftell-append-ENV): Likewise.
2050         * posix/Makefile (tst-fnmatch-ENV): Likewise.
2051         (tst-regexloc-ENV): Likewise.
2052         (bug-regex1-ENV): Likewise.
2053         (tst-regex-ENV): Likewise.
2054         (tst-regex2-ENV): Likewise.
2055         (bug-regex5-ENV): Likewise.
2056         (bug-regex6-ENV): Likewise.
2057         (bug-regex17-ENV): Likewise.
2058         (bug-regex18-ENV): Likewise.
2059         (bug-regex19-ENV): Likewise.
2060         (bug-regex20-ENV): Likewise.
2061         (bug-regex22-ENV): Likewise.
2062         (bug-regex23-ENV): Likewise.
2063         (bug-regex25-ENV): Likewise.
2064         (bug-regex26-ENV): Likewise.
2065         (bug-regex30-ENV): Likewise.
2066         (bug-regex32-ENV): Likewise.
2067         (bug-regex33-ENV): Likewise.
2068         (bug-regex34-ENV): Likewise.
2069         (bug-regex35-ENV): Likewise.
2070         (tst-rxspencer-ENV): Likewise.
2071         (tst-rxspencer-no-utf8-ENV): Likewise.
2072         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
2073         (tst-sscanf-ENV): Likewise.
2074         (tst-swprintf-ENV): Likewise.
2075         (tst-swscanf-ENV): Likewise.
2076         (test-vfprintf-ENV): Likewise.
2077         (scanf13-ENV): Likewise.
2078         (bug14-ENV): Likewise.
2079         (tst-grouping-ENV): Likewise.
2080         * stdlib/Makefile (tst-strtod-ENV): Likewise.
2081         (tst-strtod3-ENV): Likewise.
2082         (tst-strtod4-ENV): Likewise.
2083         (tst-strtod5-ENV): Likewise.
2084         (testmb2-ENV): Likewise./
2085         * string/Makefile (tst-strxfrm-ENV): Likewise.
2086         (tst-strxfrm2-ENV): Likewise.
2087         (bug-strcoll1-ENV): Likewise.
2088         (test-strcasecmp-ENV): Likewise.
2089         (test-strncasecmp-ENV): Likewise.
2090         * time/Makefile (tst-strptime-ENV): Likewise.
2091         (tst-ftime_l-ENV): Likewise.
2092         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
2093         (tst-mbrtowc-ENV): Likewise.
2094         (tst-wcrtomb-ENV): Likewise.
2095         (tst-mbrtowc2-ENV): Likewise.
2096         (tst-c16c32-1-ENV): Likewise.
2097         (tst-mbsnrtowcs-ENV): Likewise.
2098
2099 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
2100
2101         * manual/resource.texi (How to get information about the memory
2102         subsystem?): Fix typo.
2103         Reported by Peon de la Parra Ivan <peon@keba.com>
2104
2105 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
2106
2107         [BZ #16882]
2108         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
2109         (pthread_spin_lock): Branch out of spin loop to proper location.
2110         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
2111         (pthread_spin_lock): Likewise.
2112
2113         * nptl/tst-spin4.c: New test.
2114         * nptl/Makefile (tests): Add tst-spin4.
2115
2116 2014-06-03  Andreas Schwab  <schwab@suse.de>
2117
2118         [BZ #15946]
2119         * resolv/res_send.c (send_dg): Reload file descriptor after
2120         calling reopen.
2121
2122 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
2123
2124         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
2125
2126 2014-06-03  Richard Henderson  <rth@redhat.com>
2127
2128         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
2129         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
2130         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
2131         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
2132         in the SAVE_PID block.
2133         (__libc_vfork): New alias.
2134         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
2135
2136         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
2137         child in registers, not on the stack.  Remove RESET_PID conditionals.
2138         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
2139
2140 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2141
2142         * sysdeps/aarch64/libm-test-ulps: Regenerate.
2143
2144 2014-06-03  Wilco  <wdijkstr@arm.com>
2145
2146         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
2147         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
2148         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2149         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
2150         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
2151         Likewise.
2152
2153 2014-06-03  Wilco  <wdijkstr@arm.com>
2154
2155         * sysdeps/aarch64/fpu/math_private.h
2156         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
2157         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
2158         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
2159         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2160         Fix declarations.
2161
2162 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2163
2164         * crypt/crypt-private.h: Include ufc-crypt.h.
2165         (__b64_from_24bit): Declare extern.
2166         * crypt/crypt_util.c(__b64_from_24bit): New function.
2167         (b64t): New static const variable.
2168         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
2169         (b64t): Remove variable.
2170         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
2171         * crypt/sha256-crypt.c: Include crypt-private.h.
2172         (b64t): Remove variable.
2173         (__sha256_crypt_r): Remove b64_from_24bit and replace
2174         with __b64_from_24bit.
2175         * crypt/sha512-crypt.c: Likewise.
2176
2177 2014-06-02  Roland McGrath  <roland@hack.frob.com>
2178
2179         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
2180         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
2181         Label the code __libc_vfork rather than __vfork.
2182         [!NOT_IN_libc] (vfork): Define as weak alias.
2183         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
2184         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
2185         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
2186
2187 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2188
2189         * malloc/malloc.c (malloc_info): Fix format specifier for
2190         n_mmaps.
2191
2192 2014-06-02  Wilco  <wdijkstr@arm.com>
2193
2194         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2195         FPCR write.
2196
2197 2014-06-02  Wilco  <wdijkstr@arm.com>
2198
2199         [BZ #17009]
2200         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2201         Rewrite to reduce FPCR/FPSR accesses.
2202
2203 2014-06-01  David S. Miller  <davem@davemloft.net>
2204
2205         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2206
2207 2014-05-31  David S. Miller  <davem@davemloft.net>
2208
2209         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2210         to occur in round to nearest mode when |x| >= 2.0
2211
2212 2014-05-30  Richard Henderson  <rth@twiddle.net>
2213
2214         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2215         (PSEUDO_RET_NOERRNO): Remove.
2216         (ret): Don't redefine.
2217         (ret_NOERRNO): Define in terms of ret.
2218         (ret_ERRVAL): Likewise.
2219
2220         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2221         use of PSEUDO_RET; perform the error check directly.
2222
2223 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2224
2225         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2226         with __int128_t.
2227
2228 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2229
2230         * malloc/malloc (malloc_info): Fix formatting.
2231
2232 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2233             Roland McGrath  <roland@hack.frob.com>
2234
2235         * malloc/malloc (malloc_info): Also print mmapped statistics.
2236
2237 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2238
2239         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2240         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2241
2242 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2243
2244         * malloc/malloc.c (malloc_info): Inline mi_arena.
2245
2246 2014-05-29  Richard Henderson  <rth@twiddle.net>
2247
2248         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2249         Remove comma before expanding ASM_ARGS_##nr.
2250         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2251         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2252         of ASM_ARGS_##nr.
2253         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2254         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2255         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2256         (ASM_ARGS_1): Add leading comma.
2257
2258         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2259         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2260         to __errno_location.
2261         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2262         Remove the expected plt for __errno_location.
2263
2264         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2265         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2266         call to __read_tp.
2267
2268         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2269         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2270         it and break it down.
2271         (DOCARGS_0, DOCARGS_1): Do nothing.
2272         (DOCARGS_2): Update to store into the new stack frame.
2273         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2274         (UNDOCARGS_1): Update to restore from the new stack frame.
2275         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2276         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2277
2278         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2279         (SINGLE_THREAD_P): New parameter for result regno.
2280         (PSEUDO): Update to match; use cbz instead of beq.
2281
2282         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2283         Use ENTRY to define the _nocancel entry point.  Share the syscall
2284         and syscall error check paths with the cancel path.
2285         (PSEUDO_END): New.
2286
2287         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2288         whitespace; tabs before and after asm mnemonics.
2289
2290 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2291
2292         [BZ #15132]
2293         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2294         Call fstat64 or stat64 internally, depending on arguments passed.
2295         Replace stat buffer argument with file descriptor argument.
2296         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2297         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2298         Pass fd to __internal_statvfs instead of calling fstat64.
2299         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2300         Pass fd to __internal_statvfs64 instead of calling fstat64.
2301         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2302         Pass -1 to __internal_statvfs instead of calling stat64.
2303         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2304         Pass -1 to __internal_statvfs64 instead of calling stat64.
2305
2306 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2307
2308         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2309         that was previously under [RESET_PID].
2310         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2311
2312         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2313         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2314
2315 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2316
2317         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2318
2319         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2320         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2321
2322 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2323
2324         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2325
2326 2014-05-27  Andreas Schwab  <schwab@suse.de>
2327
2328         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2329         TLS_INIT_TP macro.
2330         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2331         * elf/rtld.c (init_tls, dl_main): Likewise.
2332         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2333         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2334         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2335         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2336         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2337         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2338         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2339         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2340         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2341         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2342         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2343         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2344         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2345         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2346         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2347         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2348         * sysdeps/generic/tls.h: Update description.
2349
2350 2014-05-27  Will Newton  <will.newton@linaro.org>
2351
2352         [BZ #16990]
2353         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2354         and restore r2 rather than just restoring.
2355
2356 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2357
2358         [BZ #16724]
2359         * libio/tst-ftell-append.c: New test case.
2360         * libio/Makefile (tests): Add test case.
2361         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2362         append mode.
2363         * libio/wfileops.c (do_ftell_wide): Likewise.
2364
2365 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2366
2367         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2368
2369         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2370         ...
2371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2373         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2374         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2375         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2376         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2377         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2378         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2379         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2380         Moved ...
2381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2382         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2383         Moved ...
2384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2385         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2386         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2387         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2388         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2389         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2390         ...
2391         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2392         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2393         Moved ...
2394         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2395         here.
2396         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2397         ...
2398         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2399         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2400         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2401
2402         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2403         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2404         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2405         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2406
2407         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2408         merge into ...
2409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2410         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2411         ...
2412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2413         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2414         ...
2415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2416         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2417         Moved ...
2418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2419         here.
2420         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2421         Moved ...
2422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2423         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2424         Moved ...
2425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2426
2427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2428         conditional [RESET_PID].
2429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2430         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2431         removed.
2432         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2433         removed.
2434
2435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2436         <tcb-offsets.h>.
2437         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2438         (__libc_vfork): New strong alias.
2439         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2440         removed.
2441         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2442         Removed.
2443
2444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2445         <tcb-offsets.h>.
2446         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2447         (__libc_vfork): New strong alias.
2448         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2449         removed.
2450         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2451         removed.
2452
2453 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2454
2455         * malloc/malloc.c (mi_arena): New function.
2456         (malloc_info): Remove nested function mi_arena. Call non-nosted
2457         function mi_arena.
2458
2459 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2460
2461         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2462         by insrwi.
2463         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2464         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2465         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2466         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2467         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2468         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2469         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2470
2471 2014-05-26  Andreas Schwab  <schwab@suse.de>
2472
2473         [BZ #16984]
2474         * locale/programs/repertoire.c (repertoire_read): Add slash
2475         between I18NPATH element and file name.
2476         * locale/programs/locfile.c (locfile_read): Likewise.
2477
2478 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2479
2480         * nptl/pthread_mutexattr_settype.c
2481         (__pthread_mutexattr_settype):
2482         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2483
2484 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2485
2486         * nptl/tst-mutex5 (do_test):
2487         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2488
2489 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2490
2491         * benchtests/README: Document 'init' directive.
2492         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2493         BENCH_INIT.
2494         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2495         (parse_file): Recognize 'init' directive.
2496
2497 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2498
2499         [BZ #16796]
2500         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2501         alignment of struct pthread.
2502
2503 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2504
2505         [BZ #16878]
2506         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2507         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2508         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2509         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2510
2511 2014-05-25  Richard Henderson  <rth@twiddle.net>
2512
2513         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2514         (SINGLE_THREAD_P_PIC): Remove.
2515         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2516         (SINGLE_THREAD_P_PIC): Remove.
2517
2518         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2519         branch to syscall error ...
2520         (PSEUDO): ... here.
2521         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2522         from __local_syscall_error to .Lsyscall_error.
2523         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2524         (SYSCALL_ERROR): Update label name.
2525
2526         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2527         Do not use DOARGS/UNDOARGS.
2528         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2529         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2530         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2531         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2532         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
2533
2534         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
2535         block comment.
2536
2537         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
2538         define if !NOT_IN_libc.
2539         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
2540         define with non-default symbol versions.
2541
2542 2014-05-23  Richard Henderson  <rth@twiddle.net>
2543
2544         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
2545         (vfork, __vfork): Define via compat_symbol.
2546
2547         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
2548         [!HAVE_IFUNC] (vfork_compat): Remove.
2549         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
2550
2551 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2552
2553         [BZ #16978]
2554         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
2555         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
2556         variable.
2557
2558 2014-05-23  Richard Henderson  <rth@twiddle.net>
2559
2560         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
2561         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
2562         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
2563         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
2564
2565         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
2566         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
2567         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
2568         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
2569         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
2570         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
2571         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
2572         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
2573         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
2574         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2575         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2576         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2577         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2578         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2579         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2580         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2581         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2582         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2583         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2584         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2585         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2586         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2587         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2588         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2589         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2590         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2591         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2592         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2593         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2594         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2595         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2596         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2597         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2598         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2599         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2600         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2601         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2602         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2603         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2604         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2605         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2606         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2607         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2608         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2609         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2610         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2611         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2612         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2613         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2614         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2615         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2616         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2617         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2618         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2619         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2620         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2621
2622         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2623         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2624         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2625         before exiting on error.
2626         (__libc_vfork): New strong alias.
2627         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2628         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2629
2630         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2631         that was previously under [RESET_PID].
2632         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2633
2634         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2635
2636 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2637
2638         [BZ #16977]
2639         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2640         value when x - 1 is zero.
2641         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2642         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2643         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2644         0.0L for an argument of 1.0L.
2645         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2646         Likewise.
2647         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2648         value when x - 1 is zero.
2649         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2650         * sysdeps/i386/fpu/libm-test-ulps: Update.
2651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2652
2653 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2654
2655         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2656         alphasort and versionsort.
2657
2658 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2659
2660         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2661         macro.
2662         [copysignf]: Likewise.
2663
2664 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2665
2666         * crypt/md5-crypt.c: Fix formatting.
2667
2668 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2669
2670         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2671         (b64_from_24bit): New function.
2672
2673 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2674
2675         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2676         libc_hidden_builtin_def to ifunc.
2677         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2678         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2679
2680 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2681
2682         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2683         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2684
2685 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2686
2687         * nscd/Depend (linuxthreads): Remove.
2688         (nptl): Add.
2689         * resolv/Depend (linuxthreads): Remove.
2690         * rt/Depend (linuxthreads): Remove.
2691
2692         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2693         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2694         $(common-objpfx)elf/.
2695         (link-libc-before-gnulib): Likewise.
2696         (elfobjdir): Remove variable.
2697         * Makefile (install): Use $(elf-objpfx) instead of
2698         $(common-objpfx)elf/.
2699         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2700         $(elfobjdir)/.
2701         (link-libc-deps): Likewise.
2702         ($(common-objpfx)libc.so): Likewise.
2703         ($(common-objpfx)linkobj/libc.so): Likewise.
2704         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2705         instead of $(common-objpfx)elf/.
2706         (symbolic-link-list): Likewise.
2707         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2708         [$(cross-compiling) = no]: Likewise.
2709         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2710         $(elfobjdir)/.
2711         (static-gnulib-arch): Likewise.
2712         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2713         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2714         $(common-objpfx)elf/.
2715
2716 2014-05-21  Richard Henderson  <rth@redhat.com>
2717
2718         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2719         (SINGLE_THREAD_P): Use the correct width load.  Fold
2720         into the ldr offset.
2721
2722         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2723         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2724
2725 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2726
2727         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2728         (libgcc_s_resume): Use __attribute_used__.
2729         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2730         Likewise.
2731
2732 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2733
2734         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2735         optimization when used with float constants.
2736
2737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2738
2739 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2740
2741         [BZ #16915]
2742         * locale/nl_langinfo_l.c: Make direct reference to every
2743         _nl_current_CATEGORY symbol.
2744         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2745         (tests-static): Add tst-langinfo-static.
2746         (tests-special): Add tst-langinfo-static.out.
2747         ($(objpfx)tst-langinfo.out): Redirect output.
2748         ($(objpfx)tst-langinfo-static.out): New.
2749         * localedata/tst-langinfo.sh: Send output to stdout.
2750         * localedata/tst-langinfo-static.c: New file.
2751
2752         [BZ #16965]
2753         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2754         when the shift amount is modulo the limb size.
2755
2756 2014-05-20  Richard Henderson  <rth@redhat.com>
2757
2758         [BZ #16967]
2759         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2760         Change type of sa_flags from unsigned int to int.
2761
2762         [BZ #16966]
2763         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2764
2765         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2766
2767 2014-05-20  Will Newton  <will.newton@linaro.org>
2768
2769         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2770         Test the return value of the system call in the nocancel case.
2771
2772 2014-05-20  Will Newton  <will.newton@linaro.org>
2773             Yvan Roux  <yvan.roux@linaro.org>
2774
2775         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2776         #include of asm/ptrace.h.
2777         (PTRACE_GET_THREAD_AREA): Remove #undef.
2778         (PTRACE_GETHBPREGS): Likewise.
2779         (PTRACE_SETHBPREGS): Likewise.
2780         (struct user_regs_struct): New structure.
2781         (struct user_fpsimd_struct): New structure.
2782         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2783         #include of asm/ptrace.h and second #include of sys/user.h.
2784         (PTRACE_GET_THREAD_AREA): Remove #undef.
2785         (PTRACE_GETHBPREGS): Likewise.
2786         (PTRACE_SETHBPREGS): Likewise.
2787         (ELF_NGREG): Use new struct user_regs_struct.
2788         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2789
2790 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2791
2792         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2793         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2794
2795 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2796
2797         [BZ #16958]
2798         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2799         membar to avoid block loads/stores to overlap previous stores.
2800
2801 2014-05-17  Richard Henderson  <rth@redhat.com>
2802
2803         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2804         Create the __##syscall_name##_nocancel entry point.
2805         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2806         Remove; let the sysdep-cancel.h code create it.
2807
2808 2014-05-17  David S. Miller  <davem@davemloft.net>
2809
2810         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2811         Protect with __USE_GNU.
2812         (TIOCSET_TEMPT): Likewise.
2813         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2814         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2815         these are already provided in bits/ioctl-types.h
2816
2817 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2818
2819         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2820         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2821
2822         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2823         Use wait4 regardless of [__NR_waitpid].
2824
2825 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2826
2827         PR libgcc/60166
2828         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2829         (_FP_NANSIGN_Q): Set the quiet bit.
2830
2831 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2832
2833         * benchtests/Makefile
2834         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2835         not $(common-objpfx)math/libm.so.
2836         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2837         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2838         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2839         $(common-objpfx)dlfcn/libdl.so.
2840         ($(objpfx)tst-audit8): Depend on $(libm), not
2841         $(common-objpfx)math/libm.so.
2842         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2843         not $(common-objpfx)dlfcn/libdl.so.
2844         * math/Makefile
2845         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2846         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2847         [$(build-shared) = yes].
2848         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2849         $(common-objpfx)nptl/libpthread.so.
2850         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2851         $(common-objpfx)math/libm.so$(libm.so-version) or
2852         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2853         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2854         $(common-objpfx)dlfcn/libdl.so.
2855         * setjmp/Makefile (link-libm): Remove variable.
2856         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2857         * stdio-common/Makefile (link-libm): Remove variable.
2858         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2859         * stdlib/Makefile (link-libm): Remove variable.
2860         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2861         ($(objpfx)tst-strtod-round): Likewise.
2862         ($(objpfx)tst-tininess): Likewise.
2863         ($(objpfx)tst-strtod-underflow): Likewise.
2864         ($(objpfx)tst-strtod6): Likewise.
2865         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2866         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2867         $(common-objpfx)dlfcn/libdl.so.
2868
2869 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2870
2871         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2872         BSD terminal modes definitions.
2873
2874 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2875
2876         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2877         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2878
2879         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2880         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2881         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2882         Don't do #include_next.
2883         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2884         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2885         Don't do #include_next.
2886         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2887         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2888         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2889         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2890
2891 2014-05-16  Allan McRae  <allan@archlinux.org>
2892
2893         * po/sv.po: Update Swedish translation from translation project.
2894
2895         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2896         in sed expression.
2897
2898 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2899
2900         [BZ #16917]
2901         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2902         errno if the TIOCGPTN ioctl fails with an error different than
2903         EINVAL.
2904         * login/tst-ptsname.c: New file.
2905         * login/Makefile (tests): Add tst-ptsname.
2906
2907         [BZ #16943]
2908         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2909         and prlimit64.
2910
2911 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2912
2913         [BZ #16849]
2914         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2915         herrno to return EAI_AGAIN.
2916
2917 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2918
2919         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2920         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2921         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2922         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2923         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2924         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2925         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2926         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2927         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2928         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2929         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2930         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2931         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2932         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2933         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2934         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2935         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2936         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2937         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2938         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2939         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2940         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2941         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2942         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2943         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2944         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2945         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2946         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2947         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2948         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2949         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2950         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2952         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2953         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2954         Moved ...
2955         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2956         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2957         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2959         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2960         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2961         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2962         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2963         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2964         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2965         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2966         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2967         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2968         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2969         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2971         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2972         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2973         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2974         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2975         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2976         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2977         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2978         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2979         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2980         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2981         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2982         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2983         Moved ...
2984         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2985         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2986         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2987         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2988         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2989         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2990         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2991         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2992         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2993         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2994         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2995         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2996         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2997         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2998         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2999         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
3000         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
3001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
3002         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
3003         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3004         Moved ...
3005         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
3006         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
3007         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
3008
3009         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
3010         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
3011         (libpthread-sysdep_routines): Add elision-related stuff here instead.
3012         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
3013         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
3014         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
3015         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
3016         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
3017         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
3018         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
3019         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
3020         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
3021         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
3022         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
3023         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
3024         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
3025         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
3026         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
3027         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
3028         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
3029         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
3030         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
3031         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
3032         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
3033         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
3034         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
3035         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
3036         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
3037         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
3038         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
3039         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
3040
3041         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
3042         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
3043
3044         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
3045         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
3046         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
3047         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
3048         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
3049         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
3050         Moved ...
3051         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
3052         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
3053         Moved ...
3054         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
3055         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
3056         Moved ...
3057         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
3058         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
3059         Moved ...
3060         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
3061         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
3062         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
3063         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
3064         Moved ...
3065         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
3066         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
3067         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
3068         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
3069         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
3070         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
3071         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
3072         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
3073         Moved ...
3074         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
3075         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
3076         Moved ...
3077         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
3078         ... here.
3079         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
3080         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
3081         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
3082         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
3083         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
3084         Moved ...
3085         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
3086         ... here.
3087         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
3088         Moved ...
3089         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
3090         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
3091         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
3092         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
3093         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
3094         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3095         Moved ...
3096         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
3097         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3098         Moved ...
3099         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
3100         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
3101         Moved ...
3102         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
3103         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3104         Moved ...
3105         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
3106         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
3107         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
3108         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3109         Moved ...
3110         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
3111         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
3112         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
3113         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
3114         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
3115         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
3116         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
3117         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3118         Moved ...
3119         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
3120         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3121         Moved ...
3122         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3123         ... here.
3124         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
3125         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
3126         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
3127         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
3128         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3129         Moved ...
3130         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3131         ... here.
3132         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3133         Moved ...
3134         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
3135         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
3136         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
3137         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
3138         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
3139         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
3140         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
3141         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
3142         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
3143         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
3144         Moved ...
3145         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
3146         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
3147         Moved ...
3148         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
3149         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
3150         Moved ...
3151         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
3152         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
3153         Moved ...
3154         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
3155         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
3156         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
3157         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
3158         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
3159         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
3160         Moved ...
3161         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
3162         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
3163         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
3164         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
3165         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
3166         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
3167         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
3168         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
3169         Moved ...
3170         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
3171         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3172         Moved ...
3173         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3174         ... here.
3175         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
3176         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
3177         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
3178         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
3179         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3180         Moved ...
3181         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3182         ... here.
3183         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
3184         Moved ...
3185         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
3186         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
3187         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
3188         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
3189         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
3190         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3191         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3192         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3193         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3194         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3195         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3196
3197         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3198         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3199
3200         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3201         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3202
3203         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3204         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3205         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3206         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3207         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3208         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3209         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3210         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3211         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3212         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3213         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3214         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3215         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3216         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3217         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3218         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3219         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3220         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3221         Moved ...
3222         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3223         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3224         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3225         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3226         Moved ...
3227         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3228         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3229         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3230         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3231         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3232         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3233         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3234         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3235         Moved ...
3236         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3237         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3238         Moved ...
3239         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3240         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3241         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3242         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3243         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3244         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3245         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3246         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3247         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3248         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3249         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3250         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3251         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3252         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3253         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3254         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3255         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3256
3257         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3258         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3259         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3260         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3261         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3262
3263         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3264         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3265         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3266         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3267         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3268         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3269         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3270         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3271         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3272         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3273
3274         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3275         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3276
3277         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3278         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3279         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3280         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3281         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3282         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3283         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3284         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3285         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3286         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3287         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3288         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3289         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3290         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3291         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3292         Update #include.
3293         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3294         Likewise.
3295         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3296         Likewise.
3297         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3298         Likewise.
3299         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3300         Likewise.
3301         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3302         Likewise.
3303         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3304         Likewise.
3305         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3306         Likewise.
3307         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3308         Likewise.
3309         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3310         Likewise.
3311         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3312         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3313         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3314         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3315         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3316         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3317         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3318         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3319         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3320         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3321         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3322         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3323         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3324         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3325         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3326
3327         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3328         that was previously under [RESET_PID].
3329         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3330         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3331         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3332
3333         * sysdeps/i386/nptl/Implies: New file.
3334         * sysdeps/x86_64/nptl/Implies: New file.
3335         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3336         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3337         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3338         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3339
3340         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3341         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3342         (__libc_vfork): New strong alias.
3343         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3344         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3345
3346         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3347         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3348         (__libc_vfork): New strong alias.
3349         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3350         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3351
3352         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3353         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3354         (__libc_vfork): New strong alias.
3355         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3356         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3357         * nptl/pt-vfork.c: New file.
3358         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3359         (libpthread: GLIBC_2.20): New version set (empty).
3360
3361 2014-05-14  Will Newton  <will.newton@linaro.org>
3362
3363         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3364         rather than #if.
3365
3366 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3367
3368         [BZ #16564]
3369         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3370         arguments with exponent 65 or above.
3371         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3372         arguments 0x1p113L or above.
3373         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3374         to arguments 0x1p107L or above.
3375         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3376         positive arguments with exponent 65 or above.
3377         * math/auto-libm-test-in: Add more tests of log1p.
3378         * math/auto-libm-test-out: Regenerated.
3379
3380         [BZ #16928]
3381         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3382         non-finite arguments is +0.
3383         * math/s_cacosf.c (__cacosf): Likewise.
3384         * math/s_cacosl.c (__cacosl): Likewise.
3385         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3386         * sysdeps/i386/fpu/libm-test-ulps: Update.
3387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3388
3389         [BZ #16927]
3390         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3391         value.
3392         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3393         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3394         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3395         for explicit high bit of mantissa when testing for argument equal
3396         to 1.
3397         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3398         * sysdeps/i386/fpu/libm-test-ulps: Update.
3399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3400
3401         [BZ #16516]
3402         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3403         (__erf): Scale by 16 instead of 8 in potentially underflowing
3404         case.  Ensure exception if result actually underflows.
3405         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3406         (__erff): Scale by 16 instead of 8 in potentially underflowing
3407         case.  Ensure exception if result actually underflows.
3408         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
3409         (efx8): Remove variable.
3410         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3411         case.  Ensure exception if result actually underflows.
3412         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3413         (efx8): Remove variable.
3414         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3415         case.  Ensure exception if result actually underflows.
3416         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3417         (efx8): Remove variable.
3418         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3419         case.  Ensure exception if result actually underflows.
3420         * math/auto-libm-test-in: Add more tests of erf.
3421         * math/auto-libm-test-out: Regenerated.
3422
3423 2014-05-14  Andreas Schwab  <schwab@suse.de>
3424
3425         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3426         Remove code conditionalized on USE___THREAD.
3427
3428         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3429         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3430         not definedness.
3431
3432 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3433
3434         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3435         Define unconditionally.
3436         (__ASSUME_O_CLOEXEC): Likewise.
3437         (__ASSUME_SOCK_CLOEXEC): Likewise.
3438         (__ASSUME_IN_NONBLOCK): Likewise.
3439         (__ASSUME_PIPE2): Likewise.
3440         (__ASSUME_EVENTFD2): Likewise.
3441         (__ASSUME_SIGNALFD4): Likewise.
3442         (__ASSUME_DUP3): Likewise.
3443         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3444         (__ASSUME_DUP3): Do not define.
3445         (__ASSUME_EVENTFD2): Likewise.
3446         (__ASSUME_IN_NONBLOCK): Likewise.
3447         (__ASSUME_O_CLOEXEC): Likewise.
3448         (__ASSUME_PIPE2): Likewise.
3449         (__ASSUME_SIGNALFD4): Likewise.
3450         (__ASSUME_SOCK_CLOEXEC): Likewise.
3451         (__ASSUME_UTIMES): Undefine.
3452         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3453         (__ASSUME_UTIMES): Do not define.
3454         (__ASSUME_O_CLOEXEC): Likewise.
3455         (__ASSUME_SOCK_CLOEXEC): Likewise.
3456         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3457         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3458         0x020621].
3459         (__ASSUME_PIPE2): Likewise.
3460         (__ASSUME_EVENTFD2): Likewise.
3461         (__ASSUME_SIGNALFD4): Likewise.
3462         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3463         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3464         Do not define.
3465         (__ASSUME_EVENTFD2): Likewise.
3466         (__ASSUME_SIGNALFD4): Likewise.
3467         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3468         (__ASSUME_32BITUIDS): Likewise.
3469         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3470         (__ASSUME_IPC64): Likewise.
3471         (__ASSUME_ST_INO_64_BIT): Likewise.
3472         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3473         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3474         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3475         (__ASSUME_UTIMES): Do not define.
3476         (__ASSUME_PSELECT): Likewise.
3477         (__ASSUME_PPOLL): Likewise.
3478         (__ASSUME_O_CLOEXEC): Likewise.
3479         (__ASSUME_SOCK_CLOEXEC): Likewise.
3480         (__ASSUME_IN_NONBLOCK): Likewise.
3481         (__ASSUME_PIPE2): Likewise.
3482         (__ASSUME_EVENTFD2): Likewise.
3483         (__ASSUME_SIGNALFD4): Likewise.
3484         (__ASSUME_DUP3): Likewise.
3485         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3486         (__ASSUME_UTIMES): Likewise.
3487         (__ASSUME_O_CLOEXEC): Likewise.
3488         (__ASSUME_SOCK_CLOEXEC): Likewise.
3489         (__ASSUME_IN_NONBLOCK): Likewise.
3490         (__ASSUME_PIPE2): Likewise.
3491         (__ASSUME_EVENTFD2): Likewise.
3492         (__ASSUME_SIGNALFD4): Likewise.
3493         (__ASSUME_DUP3): Likewise.
3494         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3495         (__ASSUME_UTIMES): Likewise.
3496         (__ASSUME_O_CLOEXEC): Likewise.
3497         (__ASSUME_SOCK_CLOEXEC): Likewise.
3498         (__ASSUME_IN_NONBLOCK): Likewise.
3499         (__ASSUME_PIPE2): Likewise.
3500         (__ASSUME_EVENTFD2): Likewise.
3501         (__ASSUME_SIGNALFD4): Likewise.
3502         (__ASSUME_DUP3): Likewise.
3503         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3504         Likewise.
3505         (__ASSUME_UTIMES): Likewise.
3506         (__ASSUME_EVENTFD2): Likewise.
3507         (__ASSUME_SIGNALFD4): Likewise.
3508         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3509         (__ASSUME_O_CLOEXEC): Likewise.
3510         (__ASSUME_SOCK_CLOEXEC): Likewise.
3511         (__ASSUME_IN_NONBLOCK): Likewise.
3512         (__ASSUME_PIPE2): Likewise.
3513         (__ASSUME_EVENTFD2): Likewise.
3514         (__ASSUME_SIGNALFD4): Likewise.
3515         (__ASSUME_DUP3): Likewise.
3516         (__ASSUME_UTIMES): Undefine.
3517
3518         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3519         feclearexcept.  Remove symbol versioning code.
3520         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3521         symbol versioning code.
3522         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3523         symbol versioning code.
3524         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3525         feupdateenv.  Remove symbol versioning code.
3526         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3527         fegetexceptflag.  Remove symbol versioning code.
3528         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3529         fesetexceptflag.  Remove symbol versioning code.
3530         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3531         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3532         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
3533         (__posix_fadvise64_l32): Remove prototype.
3534         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
3535         code.
3536
3537 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3538
3539         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
3540         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
3541         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
3542         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
3543
3544 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
3545
3546         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
3547         current working directory
3548
3549 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3550
3551         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
3552         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
3553         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
3554         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
3555         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
3556         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
3557         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
3558         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
3559         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
3560         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
3561         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
3562         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
3563         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
3564         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
3565         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
3566         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
3567         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
3568         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
3569         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
3570         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
3571         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
3572         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
3573         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
3574         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3575         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3576         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3577         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3578         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3579         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3580         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3581         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3582         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3583         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3584         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3585         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3586         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3587         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3588         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3589         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3590         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3591         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3592         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3593
3594         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3595         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3596
3597         * sysdeps/unix/sysv/linux/arm/Makefile
3598         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3599         Add rt-aeabi_unwind_cpp_pr1.
3600         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3601         Add nptl-aeabi_unwind_cpp_pr1.
3602         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3603         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3604         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3605         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3606         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3607         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3608
3609         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3610         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3611         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3612         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3613
3614         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3615         Deconditionalize the code that was previously under [RESET_PID].
3616         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3617
3618         * sysdeps/generic/exit-thread.h: New file.
3619         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3620         * include/unistd.h (__exit_thread): Remove declaration.
3621         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3622         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3623         * csu/libc-start.c: Include <exit-thread.h>.
3624         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3625         * nptl/pthread_create.c: Include <exit-thread.h>.
3626         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3627         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3628         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3629         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3630         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3631         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3632         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3633         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3634         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3635         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3636         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3637         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3638         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3639         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3640         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3641         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3642         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3643
3644 2014-05-13  Andreas Schwab  <schwab@suse.de>
3645
3646         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3647
3648 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3649
3650         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3651         (__ASSUME_UTIMES): Do not condition on kernel version.
3652         (__ASSUME_PSELECT): Define unconditionally.
3653         (__ASSUME_PPOLL): Likewise.
3654         (__ASSUME_ATFCTS): Likewise.
3655         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3656         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3657         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3658         (__ASSUME_UTIMENSAT): Define unconditionally.
3659         (__ASSUME_PRIVATE_FUTEX): Likewise.
3660         (__ASSUME_FALLOCATE): Likewise.
3661         (__ASSUME_O_CLOEXEC): Likewise.
3662         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3663         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3664         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3665         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3666         (__ASSUME_IN_NONBLOCK): Likewise.
3667         (__ASSUME_PIPE2): Likewise.
3668         (__ASSUME_EVENTFD2): Likewise.
3669         (__ASSUME_SIGNALFD4): Likewise.
3670         (__ASSUME_DUP3): Likewise.
3671         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3672         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3673         (__ASSUME_AT_RANDOM): Likewise.
3674         (__ASSUME_PREADV): Likewise.
3675         (__ASSUME_PWRITEV): Likewise.
3676         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3677         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3678         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3679         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3680         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3681         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3682         (__ASSUME_O_CLOEXEC): Define unconditionally.
3683         (__ASSUME_PSELECT): Do not undefine conditionally.
3684         (__ASSUME_PPOLL): Likewise.
3685         (__ASSUME_ATFCTS): Likewise.
3686         (__ASSUME_SET_ROBUST_LIST): Likewise.
3687         (__ASSUME_UTIMENSAT): Likewise.
3688         (__ASSUME_FDATASYNC): Define unconditionally.
3689         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3690         (__ASSUME_SIGFRAME_V2): Likewise.
3691         )__ASSUME_EVENTFD2): Likewise.
3692         (__ASSUME_SIGNALFD4): Likewise.
3693         (__ASSUME_PSELECT): Do not undefine conditionally.
3694         (__ASSUME_PPOLL): Likewise.
3695         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3696         (__ASSUME_PSELECT): Define unconditionally.
3697         (__ASSUME_PPOLL): Likewise.
3698         (__ASSUME_O_CLOEXEC): Likewise.
3699         (__ASSUME_SOCK_CLOEXEC): Likewise.
3700         (__ASSUME_IN_NONBLOCK): Likewise.
3701         (__ASSUME_PIPE2): Likewise.
3702         (__ASSUME_EVENTFD2): Likewise.
3703         (__ASSUME_SIGNALFD4): Likewise.
3704         (__ASSUME_DUP3): Likewise.
3705         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3706         (__ASSUME_O_CLOEXEC): Likewise.
3707         (__ASSUME_SOCK_CLOEXEC): Likewise.
3708         (__ASSUME_IN_NONBLOCK): Likewise.
3709         (__ASSUME_PIPE2): Likewise.
3710         (__ASSUME_EVENTFD2): Likewise.
3711         (__ASSUME_SIGNALFD4): Likewise.
3712         (__ASSUME_DUP3): Likewise.
3713         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3714         (__ASSUME_EVENTFD2): Likewise.
3715         (__ASSUME_SIGNALFD4): Likewise.
3716         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3717
3718 2014-05-12  Andreas Schwab  <schwab@suse.de>
3719
3720         [BZ #16932]
3721         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3722         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3723         than maximum RPC packet size.
3724         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3725         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3726         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3727         (_nss_nis_getservbyport_r): Likewise.
3728
3729 2014-05-12  Will Newton  <will.newton@linaro.org>
3730
3731         * malloc/Makefile (tests): Add tst-mallopt.
3732         * malloc/tst-mallopt.c: New file.
3733
3734 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3735
3736         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3737         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3738
3739 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3740
3741         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3742         (tst-tlsmod6.so): Likewise.
3743
3744 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3745
3746         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3747
3748 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3749
3750         [BZ #16064]
3751         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3752         and <dl-procinfo.h>.
3753         (__fegetenv): Save SSE state in envp->__eip if supported.
3754         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3755         envp->__eip if supported.
3756         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3757         and <dl-procinfo.h>.
3758         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3759         __data_offset and __data_selector in environment to 0.  Set SSE
3760         state if supported.
3761         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3762         test-fenv-sse.
3763         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3764         -mfpmath=sse.
3765         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3766
3767 2014-05-09  Will Newton  <will.newton@linaro.org>
3768
3769         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3770         and libc_relro_required for ARM.
3771         * sysdeps/arm/preconfigure: Regenerate.
3772
3773 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3774             Stefan Liebler  <stli@linux.vnet.ibm.com>
3775
3776         * config.make.in (enable-lock-elision): New Makefile variable.
3777         * configure.ac: Likewise.
3778         * configure: Regenerate.
3779         * sysdeps/s390/configure.ac:
3780         Add check for gcc transactions support.
3781         * sysdeps/s390/configure: Regenerate.
3782         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3783         Build elision files if enabled.
3784         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3785         Add lock elision support for s390.
3786         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3787         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3788         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3789         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3790         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3791         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3792         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3793         Likewise.
3794         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3795         Likewise.
3796         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3797         Likewise.
3798         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3799         Likewise.
3800         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3801         (__lll_timedlock_elision, __lll_lock_elision)
3802         (__lll_unlock_elision, __lll_trylock_elision)
3803         (lll_timedlock_elision, lll_lock_elision)
3804         (lll_unlock_elision, lll_trylock_elision): Add.
3805         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3806         (pthread_mutex_t): Add lock elision support for s390.
3807
3808 2014-05-14  Wilco  <wdijkstr@arm.com>
3809
3810         * sysdeps/arm/fclrexcpt.c: Cleanup.
3811         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3812         * sysdeps/arm/feenablxcpt.c: Cleanup.
3813         * sysdeps/arm/fegetenv.c: Cleanup.
3814         * sysdeps/arm/fegetexcept.c: Cleanup.
3815         * sysdeps/arm/fegetround.c: Cleanup.
3816         * sysdeps/arm/feholdexcpt.c: Cleanup.
3817         * sysdeps/arm/fesetenv.c: Cleanup.
3818         * sysdeps/arm/fesetround.c: Cleanup.
3819         * sysdeps/arm/feupdateenv.c: Cleanup.
3820         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3821         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3822         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3823         * sysdeps/arm/ftestexcept.c: Cleanup.
3824         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3825         * sysdeps/arm/setfpucw.c: Cleanup.
3826
3827 2014-05-09  Will Newton  <will.newton@linaro.org>
3828
3829         * sysdeps/arm/armv7/strcmp.S: New file.
3830         * NEWS: Mention addition of ARMv7 optimized strcmp.
3831
3832 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3833
3834         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3835         look for %.ac rather than %.in.
3836
3837         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3838         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3839         * sysdeps/mach/hurd/configure: Regenerated.
3840         * sysdeps/unix/sysv/linux/configure: Regenerated.
3841
3842         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3843
3844 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3845
3846         [BZ# 16922]
3847         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3848         (LONG_SUB): Ditto.
3849         (PTR_SUB): Ditto.
3850
3851 2014-05-07  Andreas Schwab  <schwab@suse.de>
3852
3853         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3854         when skipping over non-matching result from nscd.
3855
3856 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3857
3858         [BZ #16876]
3859         * nptl/sockperf.c (client): Check socket return value.
3860
3861         [BZ #16877]
3862         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3863         nscd security class.
3864
3865 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3866
3867         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3868         * sysdeps/arm/unwind.h: ... here.
3869
3870 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3871
3872         [BZ# 16916]
3873         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3874         Define.
3875
3876 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3877
3878         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3879         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3880         multiarch strncpy for PPC64.
3881         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3882         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3883         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3884         multiarch optimizations.
3885         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3886         (__libc_ifunc_impl_list): Likewise.
3887         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3888         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3889         multiarch stpncpy for PPC64.
3890         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3891         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3892
3893 2014-05-06  Andreas Schwab  <schwab@suse.de>
3894
3895         [BZ #16912]
3896         * gmon/mcount.c (_MCOUNT_DECL): Use
3897         atomic_compare_and_exchange_bool_acq instead of
3898         catomic_compare_and_exchange_bool_acq.
3899
3900 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3901
3902         * elf/Makefile (others, install-bin): Remove pldd.
3903         (pldd-modules): Variable removed.
3904         ($(objpfx)pldd): Target removed.
3905         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3906         (others, install-bin): Append pldd here.
3907         ($(objpfx)pldd): New target.
3908
3909         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3910         to 0, so the first #if test emitted later doesn't see it undefined.
3911         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3912         * sysdeps/gnu/errlist.c: Regenerated.
3913
3914 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3915
3916         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3917         [libc_hidden_builtin_def]: Define to empty value.
3918         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3919         [libc_hidden_builtin_def]: Likewise.
3920         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3921         [libc_hidden_builtin_def]: Likewise.
3922         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3923         [libc_hidden_builtin_def]: Likewise.
3924         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3925         __redirect_memcpy and define ifunc as default hidden symbol.
3926         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3927         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3928
3929 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3930
3931         * locale/iso-4217.def: Reintroduce XDR currency.
3932
3933 2014-05-04  Allan McRae  <allan@archlinux.org>
3934
3935         * po/eo.po: Update Esperanto translation from translation project.
3936
3937 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3938
3939         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3940         and FEATURE_INDEX_MAX to 1.
3941         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3942
3943 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3944
3945         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3946         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3947         * iconvdata/big5.c (ONE_DIRECTION): Define.
3948         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3949         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3950         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3951         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3952         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3953         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3954         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3955         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3956         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3957         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3958         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3959         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3960         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3961         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3962         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3963         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3964         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3965         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3966         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3967         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3968         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3969         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3970         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3971         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3972         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3973         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3974         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3975         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3976         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3977         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3978         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3979         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3980         * iconvdata/johab.c (ONE_DIRECTION): Define.
3981         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3982         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3983         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3984         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3985         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3986         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3987         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3988         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3989         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3990         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3991
3992 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3993
3994         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3995         (_IO_JUMPS_OFFSET): Define to 0.
3996
3997         * nptl/sysdeps/pthread/bits/libc-lock.h
3998         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3999         (__libc_lock_define_initialized_recursive): Always define using
4000         initializer.  Modern compilers treat uninitialized (implicit zero) and
4001         explicit zero initializers the same (i.e. put the datum in bss).
4002
4003 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4004
4005         * nscd/nscd-client.h: Include <string.h>.
4006
4007 2014-05-01  David S. Miller  <davem@davemloft.net>
4008
4009         [BZ #16885]
4010         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
4011         multiple zero bytes exist at the end of a string.
4012         Reported by Aurelien Jarno <aurelien@aurel32.net>
4013
4014         * string/test-strcmp.c (check): Add explicit test for situations where
4015         there are multiple zero bytes after the first.
4016
4017 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4018
4019         [BZ #16890]
4020         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
4021         when compiling wprintf.
4022         * stdio-common/tstdiomisc.c (t3): New function.
4023         (main): Call it.
4024
4025 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4026
4027         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
4028         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
4029         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
4030         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
4031
4032 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4033
4034         * stdlib/longlong.h: Updated from GCC.
4035
4036 2014-05-01  Will Newton  <will.newton@linaro.org>
4037             Bernard Ogden  <bernie.ogden@linaro.org>
4038
4039         * NEWS: Update fixed bug list.
4040
4041         [BZ #15119]
4042         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
4043
4044 2014-04-30  David S. Miller  <davem@davemloft.net>
4045
4046         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
4047         (libc_feholdexcept_setround_sparc_ctx): New function.
4048         (libc_fesetenv_sparc_ctx): Likewise.
4049         (libc_feupdateenv_sparc_ctx): Likewise.
4050         (libc_feholdsetround_sparc_ctx): Likewise.
4051         (libc_feholdexcept_setround_ctx): Define.
4052         (libc_feholdexcept_setroundf_ctx): Likewise.
4053         (libc_feholdexcept_setroundl_ctx): Likewise.
4054         (libc_fesetenv_ctx): Likewise.
4055         (libc_fesetenvf_ctx): Likewise.
4056         (libc_fesetenvl_ctx): Likewise.
4057         (libc_feupdateenv_ctx): Likewise.
4058         (libc_feupdateenvf_ctx): Likewise.
4059         (libc_feupdateenvl_ctx): Likewise.
4060         (libc_feresetround_ctx): Likewise.
4061         (libc_feresetroundf_ctx): Likewise.
4062         (libc_feresetroundl_ctx): Likewise.
4063         (libc_feholdsetround_ctx): Likewise.
4064         (libc_feholdsetroundf_ctx): Likewise.
4065         (libc_feholdsetroundl_ctx): Likewise.
4066
4067         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
4068         with __USE_GNU instead of XOPEN cpp guards.
4069
4070         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
4071         0.
4072
4073         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
4074         with XOPEN cpp guards.
4075
4076 2014-04-30  Julian Brown  <julian@codesourcery.com>
4077
4078         [BZ #16888]
4079         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
4080         handling.
4081
4082 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
4083
4084         [BZ #9894]
4085         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4086         Change to 2.6.32.
4087         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
4088         * sysdeps/unix/sysv/linux/configure: Regenerated.
4089         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
4090         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
4091         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
4092         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
4093         * README: Update reference to required Linux kernel version.
4094         * manual/install.texi (Linux): Update reference to required Linux
4095         kernel headers version.
4096         * INSTALL: Regenerated.
4097
4098         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
4099         header inclusion.
4100         [POSIX] (limits.h): Likewise.
4101         [POSIX] (math.h): Likewise.
4102         [POSIX] (sys/wait.h): Likewise.
4103         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
4104         function.
4105         [POSIX] (stddef.h): Do not allow header inclusion.
4106
4107 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4108
4109         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
4110
4111 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
4112
4113         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
4114         Return immediately after lll_futex_wake.
4115
4116 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4117
4118         [BZ #16791]
4119         * nscd/nscd-client.h (datahead_init_common): Initialize entire
4120         structure.
4121         (datahead_init_pos): Call datahead_init_common early.
4122         (datahead_init_neg): Likewise.
4123
4124         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
4125         datahead_init_neg): New functions.
4126         * nscd/aicache.c (addhstaiX): Use them.
4127         * nscd/grpcache.c (cache_addgr): Likewise.
4128         * nscd/hstcache.c (cache_addhst): Likewise.
4129         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4130         * nscd/netgroupcache.c (do_notfound): Likewise.
4131         (addgetnetgrentX): Likewise.
4132         (addinnetgrX): Likewise.
4133         * nscd/pwdcache.c (cache_addpw): Likewise.
4134         * nscd/servicescache.c (cache_addserv): Likewise.
4135
4136 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4137             Atsushi Onoe  <atsushi@onoe.org>
4138
4139         [BZ #14308]
4140         [BZ #12994]
4141         [BZ #13651]
4142         * resolv/res_query.c (__libc_res_nsearch): Return if at least
4143         one response is valid.
4144         * resolv/res_send.c (send_dg): Check for validity of other
4145         response if the current response is a referral.
4146
4147 2014-04-29  Steve Ellcey  <sellcey@mips.com>
4148
4149         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
4150
4151 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
4152
4153         [BZ #16823]
4154         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
4155         Always divide by positive zero when computing -Inf result.
4156         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
4157         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
4158
4159 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4160
4161         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
4162         FPSCR if value do not change.
4163         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4164         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
4165         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
4166         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
4167         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
4168         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
4169         function.
4170
4171 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
4172
4173         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
4174         * sysdeps/unix/sysv/linux/hppa: Move directory from
4175         ports/systeps/unix/sysv/linux/hppa.
4176         * README: Update listing for hppa-*-linux-gnu.
4177
4178 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
4179
4180         [BZ #16754]
4181         * manual/stdio.texi (Hook functions): Fix types of stream hook
4182         functions.
4183         [BZ #16854]
4184         * socket/sys/socket.h: Fix typo in comment.
4185
4186 2014-04-28  Wilco  <wdijkstr@arm.com>
4187
4188         * sysdeps/arm/fenv_private.h: New file.
4189         * sysdeps/arm/math_private.h: New file.
4190         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4191
4192 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4193
4194         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4195         with __int128_t.
4196         (La_x86_64_retval): Likewise.
4197
4198 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4199
4200         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4201         fpsr if value didn't change.
4202         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4203         to fpcr if value didn't change.
4204         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4205         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4206         fpsr or fpcr if value didn't change.
4207         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4208         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4209         fpcr if value didn't change.
4210         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4211         to fpsr if value didn't change.
4212
4213 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4214
4215         * nptl/tst-sem3.c: Use test-skeleton.c
4216         (main): Rename to do_test.  Use return instead of
4217         exit.
4218         * nptl/tst-sem4.c: Use test-skeleton.c
4219         (main): Rename to do_test.
4220
4221 2014-04-22  David S. Miller  <davem@davemloft.net>
4222
4223         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4224         (struct sigaction): New struct member __glibc_reserved0, change
4225         type of sa_flags to int.
4226
4227 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4228
4229         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4230         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4231
4232 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4233
4234         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4235         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4236
4237 2014-04-22  Will Newton  <will.newton@linaro.org>
4238             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4239
4240         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4241         (__longjmp): Add longjmp and longjmp_target SystemTap
4242         probes.
4243         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4244         (__sigsetjmp): Add setjmp SystemTap probe.
4245
4246 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4247
4248         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4249         match manual order.
4250
4251 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4252
4253         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4254
4255         * sysdeps/powerpc/fpu/fenv_private.h
4256         (libc_feholdexcept_setroundl_ctx): Define to
4257         libc_feholdexcept_setround_ppc_ctx.
4258         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4259         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4260         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4261         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4262
4263 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4264
4265         * sysdeps/aarch64/math-tests.h: New file.
4266
4267 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4268
4269         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4270         New.
4271         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4272         Check and set bit_AVX2_Usable.
4273         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4274         macro.
4275         (bit_AVX2): Likewise.
4276         (index_AVX2_Usable): Likewise.
4277         (CPUID_AVX2): Likewise.
4278         (HAS_AVX2): Likewise.
4279
4280 2014-04-17  Will Newton  <will.newton@linaro.org>
4281
4282         * manual/setjmp.texi (System V contexts): Add note that
4283         calling setcontext on a context created by a call to a
4284         signal handler is undefined.  Update text to note that
4285         setcontext from a signal handler is possible but not
4286         recommended.
4287
4288         [BZ #16629]
4289         * stdlib/tst-setcontext.c: Include signal.h.
4290         (main): Check that the signal stack before and
4291         after swapcontext is the same.
4292
4293         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4294         Re-implement to restore registers in user code and avoid
4295         rt_sigreturn system call.
4296
4297 2014-04-17  Wilco  <wdijkstr@arm.com>
4298
4299         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4300         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4301         * math/test-fenv.c: Skip exception trap tests on targets which only
4302         support non-stop mode.
4303
4304 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4305             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4306
4307         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4308         (libc_feholdsetround_aarch64_ctx)
4309         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4310         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4311         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4312         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4313         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4314         (libc_feresetround_noexl_ctx): Define.
4315
4316 2014-04-16  Richard Henderson  <rth@redhat.com>
4317
4318         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4319
4320         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4321         unwind tables.
4322
4323         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4324         const from the non-libc, non-ldso copy.
4325
4326         * sysdeps/alpha/libm-test-ulps: Regenerate.
4327
4328 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4329             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4330
4331         * sysdeps/aarch64/fpu/math_private.h: New file.
4332
4333 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4334
4335         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4336
4337 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4338
4339         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4340         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4341         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4342         Intel MPX bound registers before _dl_profile_fixup.
4343         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4344         registers after _dl_profile_fixup.  Save and restore bound
4345         registers bnd0/bnd1 when calling _dl_call_pltexit.
4346         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4347         (LR_BND_OFFSET): Likewise.
4348         (LRV_BND0_OFFSET): Likewise.
4349         (LRV_BND1_OFFSET): Likewise.
4350
4351 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4352
4353         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4354         to...
4355         * sysdeps/mach/hurd/i386/tls.h: ... here.
4356         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4357         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4358         fields.
4359
4360 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4361
4362         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4363
4364 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4365
4366         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4367
4368 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4369
4370         [BZ #14770]
4371         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4372         * sysdeps/s390/configure: Regenerate.
4373
4374         [BZ #16824]
4375         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4376         Set round-to-nearest internally to reduce error accumulation.
4377
4378 2014-04-16  Alan Modra  <amodra@gmail.com>
4379
4380         [BZ #16740]
4381         [BZ #16619]
4382         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4383         * math/libm-test.inc (frexp_test_data): Add tests.
4384         * NEWS: Update fixed bug list.
4385
4386 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4387
4388         * benchtests/Makefile: Depend on libraries in build directory.
4389         (bench-math): Separate out math tests.
4390         (bench-pthread): Separate out pthread tests.
4391         (bench): Include math and pthread tests.
4392
4393 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4394
4395         [BZ #16831]
4396         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4397         _dl_debug_initialize.
4398
4399         * configure.ac: Remove SELinux header check.
4400         * configure: Regenerate.
4401         * nscd/selinux.c (perms): Array of const char* to permission names.
4402         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4403         default policy. Call string_to_security_class and string_to_av_perm to
4404         translate strings. Enforce default policy and call avs_has_perm with
4405         results of translated strings.
4406
4407 2014-04-13  David S. Miller  <davem@davemloft.net>
4408
4409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4410
4411 2014-04-12  Allan McRae  <allan@archlinux.org>
4412
4413         [BZ #16838]
4414         * manual/string.texi (Collation Functions): Fix qsort argument
4415         order in example.
4416         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4417
4418 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4419
4420         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4421         Make the test a no-op if there are no exceptions defined.
4422
4423 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4424
4425         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4426         enable-hardcoded-path-in-tests
4427
4428 2014-04-11  Will Newton  <will.newton@linaro.org>
4429
4430         * benchtests/Makefile (extra-objs): Add json-lib.o.
4431         (bench-func): Tidy up JSON output.
4432         * benchtests/bench-skeleton.c: Include json-lib.h.
4433         (main): Use JSON library functions to do output of
4434         benchmark results.
4435         * benchtests/bench-timing-type.c (main): Output the
4436         timing type simply, leaving formatting to the user.
4437         * benchtests/json-lib.c: New file.
4438         * benchtests/json-lib.h: Likewise.
4439
4440 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4441
4442         [BZ #15215]
4443         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4444         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4445         memory barriers.  Add comments.
4446         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4447         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4448         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4449         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4450         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4451         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4452
4453 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4454
4455         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4456         * sysdeps/s390/s390-64/configure.ac: ... this ...
4457         * sysdeps/s390/configure.ac: ... to here.
4458         * sysdeps/s390/s390-32/configure: Delete file.
4459         * sysdeps/s390/s390-64/configure: Delete file.
4460         * sysdeps/s390/configure: Regenerate.
4461
4462 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4463
4464         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4465
4466 2014-04-11  Will Newton  <will.newton@linaro.org>
4467
4468         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4469         to zero if it is not defined elsewhere.  (mtrim): Test
4470         the value of MALLOC_DEBUG with #if rather than #ifdef.
4471
4472 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4473
4474         * benchtests/pthread_once-inputs: New file.
4475         * benchtests/pthread_once-source.c: New file.
4476         * benchtests/README: Update documentation.
4477
4478 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4479             H.J. Lu  <hongjiu.lu@intel.com>
4480
4481         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4482         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4483         * sysdeps/x86_64/configure: Regenerated.
4484         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4485         macro.
4486         (REGISTER_SAVE_RAX): Likewise.
4487         (REGISTER_SAVE_RCX): Likewise.
4488         (REGISTER_SAVE_RDX): Likewise.
4489         (REGISTER_SAVE_RSI): Likewise.
4490         (REGISTER_SAVE_RDI): Likewise.
4491         (REGISTER_SAVE_R8): Likewise.
4492         (REGISTER_SAVE_R9): Likewise.
4493         (REGISTER_SAVE_BND0): Likewise.
4494         (REGISTER_SAVE_BND1): Likewise.
4495         (REGISTER_SAVE_BND2): Likewise.
4496         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4497         bound registers when calling _dl_fixup.
4498
4499 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4500
4501         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4502         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4503         of its definition.
4504         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4505         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4506         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4507         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4508         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4509         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4510         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4511
4512 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4513
4514         [BZ #15514]
4515         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4516         pathconf(_PC_NAME_MAX).
4517
4518 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4519
4520         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4521         Remove macro usage.
4522         (__PTHREAD_SPINS): Move definition to ...
4523         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4524         (__PTHREAD_SPINS): ... here.
4525         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4526         (__PTHREAD_SPIN): Likewise.
4527         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4528         (__PTHREAD_SPIN): Likewise.
4529         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4530         (__PTHREAD_SPIN): Likewise.
4531         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4532         (__PTHREAD_SPIN): Likewise.
4533         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
4534         (__PTHREAD_SPIN): Likewise.
4535         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
4536         (__PTHREAD_SPIN): Likewise.
4537         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
4538         (__PTHREAD_SPIN): Likewise.
4539         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
4540         (__PTHREAD_SPIN): Likewise.
4541         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
4542         (__PTHREAD_SPIN): Likewise.
4543         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
4544         (__PTHREAD_SPIN): Likewise.
4545         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
4546         (__PTHREAD_SPIN): Likewise.
4547         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
4548         (__PTHREAD_SPIN): Likewise.
4549
4550         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4551         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
4552         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
4553         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
4554         imply folder.
4555         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
4556         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4557         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
4558         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
4559         correct imply path.
4560         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
4561         strlen symbol for non multi-arch builds.
4562         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
4563         missing hidden_def and weak_alias.
4564
4565 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
4566
4567         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
4568
4569 2014-04-07  Will Newton  <will.newton@linaro.org>
4570
4571         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
4572         and contents.  [!_LIBC] Remove #ifndef and contents.
4573         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
4574         * string/memccpy.c (__memccpy): Use ANSI prototype.
4575         * string/memfrob.c (memfrob): Likewise.
4576         * string/strcoll.c (STRCOLL): Likewise.
4577         * string/strlen.c (strlen): Likewise.
4578         * string/strtok.c (STRTOK): Likewise.
4579         * string/strcat.c: Remove unused #include of memcopy.h.
4580         (strcat): Use ANSI prototype.
4581         * string/strchr.c: Remove unused #include of memcopy.h.
4582         (strchr): Use ANSI prototype.
4583         * string/strcmp.c: Remove unused #include of memcopy.h.
4584         (strcmp): Use ANSI prototype.
4585         * string/strcpy.c: Remove unused #include of memcopy.h.
4586         (strcpy): Use ANSI prototype.
4587
4588 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4589
4590         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4591         * config.make.in (config-extra-cppflags): Set it from
4592         libc_extra_cppflags.
4593         * configure.ac (libc_extra_cflags): Make it accumulate over
4594         configure fragments.
4595         (libc_extra_cppflags): New flag.
4596         * configure. Regenerate.
4597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4598         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4599         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4601
4602         [BZ #16815]
4603         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4604         result for FE_DOWNWARD rounding mode.
4605         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4606         Likewise.
4607         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4608
4609 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4610
4611         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4612         in function argument name.
4613
4614 2014-04-03  David Svoboda  <svoboda@cert.org>
4615
4616         [BZ #5666]
4617         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4618         explicitly.
4619
4620 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4621
4622         * elf/dl-unmap-segments.h: New file.
4623         * sysdeps/generic/ldsodefs.h
4624         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4625         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4626         * elf/dl-fptr.c: Likewise.
4627         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4628         * sysdeps/aarch64/tlsdesc.c: Likewise.
4629         * sysdeps/arm/tlsdesc.c: Likewise.
4630         * sysdeps/i386/tlsdesc.c: Likewise.
4631         * sysdeps/tile/dl-runtime.c: Likewise.
4632         * sysdeps/x86_64/tlsdesc.c: Likewise.
4633         * elf/dl-load.h: New file.
4634         * elf/dl-load.c: Include it.
4635         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4636         Macros moved to dl-load.h.
4637         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4638         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4639         Use _dl_unmap_segments in place of __munmap.
4640         Break out segment-mapping loop into ...
4641         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4642
4643 2014-04-03  Will Newton  <will.newton@linaro.org>
4644
4645         * elf/dl-lookup.c (do_lookup_x): Remove comment
4646         referring to nested function and move variable
4647         declarations down to before first use.
4648
4649 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4650
4651         [BZ #16799]
4652         [BZ #16800]
4653         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4654         with 0 numerator.
4655         * math/s_catanf.c (__catanf): Likewise.
4656         * math/s_catanh.c (__catanh): Likewise.
4657         * math/s_catanhf.c (__catanhf): Likewise.
4658         * math/s_catanhl.c (__catanhl): Likewise.
4659         * math/s_catanl.c (__catanl): Likewise.
4660         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4661         by positive zero when computing -Inf result.
4662         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4663         (catanh_test): Likewise.
4664         * sysdeps/i386/fpu/libm-test-ulps: Update.
4665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4666
4667         [BZ #16789]
4668         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4669         instead of using underflowing value in computing result.
4670         * math/s_clog10.c (__clog10): Likewise.
4671         * math/s_clog10f.c (__clog10f): Likewise.
4672         * math/s_clog10l.c (__clog10l): Likewise.
4673         * math/s_clogf.c (__clogf): Likewise.
4674         * math/s_clogl.c (__clogl): Likewise.
4675         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4676         (clog10_test): Likewise.
4677         * sysdeps/i386/fpu/libm-test-ulps: Update.
4678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4679
4680 2014-04-02  Alan Modra  <amodra@gmail.com>
4681
4682         [BZ #16739]
4683         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4684         output when value is near a power of two.  Use int64_t for lx and
4685         remove casts.  Use decimal rather than hex exponent constants.
4686         Don't use long double multiplication when double will suffice.
4687         * math/libm-test.inc (nextafter_test_data): Add tests.
4688         * NEWS: Add 16739 and 16786 to bug list.
4689
4690         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4691
4692         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4693
4694 2014-04-01  Will Newton  <will.newton@linaro.org>
4695
4696         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4697         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4698
4699 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4700
4701         [BZ #13347]
4702         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4703         * nptl/tst-setuid2.c: New file.
4704         * nptl/Makefile (xtests): Add tst-setuid2.
4705
4706 2014-04-01  Alan Modra  <amodra@gmail.com>
4707
4708         [BZ #16786]
4709         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4710
4711 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4712
4713         [BZ #6803]
4714         [BZ #6804]
4715         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4716         set errno as appropriate.
4717         * math/w_scalbf.c (__scalbf): Likewise.
4718         * math/w_scalbl.c (__scalbl): Likewise.
4719         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4720         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4721         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4722         Add more NaN tests.
4723
4724         [BZ #16349]
4725         * math/w_atan2.c: Include <errno.h>.
4726         (__atan2): Set errno for result underflowing to zero.
4727         * math/w_atan2f.c: Include <errno.h>.
4728         (__atan2f): Set errno for result underflowing to zero.
4729         * math/w_atan2l.c: Include <errno.h>.
4730         (__atan2l): Set errno for result underflowing to zero.
4731         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4732         tests.
4733         * math/auto-libm-test-out: Regenerated.
4734
4735 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4736
4737         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4738         Encode instruction correctly in little endian.
4739         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4740         Likewise.
4741         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4742         Likewise.
4743         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4744         Likewise.
4745         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4746         Likewise.
4747
4748 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4749
4750         [BZ #9894]
4751         * sysdeps/unix/sysv/linux/kernel-features.h
4752         [__sparc__ && !__arch64__ && !__sparc_v9__]
4753         (__ASSUME_SET_ROBUST_LIST): Do not define.
4754         [__sparc__ && !__arch64__ && !__sparc_v9__]
4755         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4756         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4757         Likewise.
4758         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4759         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4760         (__ASSUME_REQUEUE_PI): Likewise.
4761         (__ASSUME_SET_ROBUST_LIST): Likewise.
4762         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4763         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4764         Undefine.
4765         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4766         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4767         Likewise.
4768         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4769         Likewise.
4770         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4771         Likewise.
4772         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4773         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4774         Undefine.
4775         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4776         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4777         Likewise.
4778
4779         [BZ #16648]
4780         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4781         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4782         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4783
4784 2014-03-31  Will Newton  <will.newton@linaro.org>
4785
4786         * benchtests/Makefile (bench): Add ffs and ffsll to list
4787         of tests.
4788         * benchtests/ffs-inputs: New file.
4789         * benchtests/ffsll-inputs: Likewise.
4790
4791 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4792
4793         [BZ #16770]
4794         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4795         too large before casting to int.
4796         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4797         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4798         * math/libm-test.inc (scalb_test_data): Add more tests.
4799
4800 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4801
4802         * benchtests/Makefile (DETAILED_OPT): New make option.
4803         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4804         set.
4805         * benchtests/bench-skeleton.c: Include stdbool.h.
4806         (main): Store and print timings per input.
4807         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4808         member to each argument value.
4809         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4810         (_print_arg_data): Initialize per-input timing to 0.
4811
4812         * benchtests/Makefile (timing-type): New binary.
4813         (bench-clean): Also remove bench-timing-type.
4814         (bench): New target for timing-type.
4815         (bench-func): Print output in JSON format.
4816         * benchtests/bench-skeleton.c (main): Print output in JSON
4817         format.
4818         * benchtests/bench-timing-type.c: New file.
4819         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4820         (TIMING_PRINT_STATS): Remove.
4821         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4822         name separately.
4823
4824         * benchtests/bench-modf.c: Remove.
4825         * benchtests/modf-inputs: New inputs file.
4826
4827 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4828
4829         [BZ #16362]
4830         * math/s_clog10.c (M_PI_LOG10E): New macro.
4831         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4832         imaginary parts are 0.
4833         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4834         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4835         imaginary parts are 0.
4836         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4837         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4838         imaginary parts are 0.
4839         * math/libm-test.inc (clog10_test_data): Update expected results
4840         for when real and imaginary parts are 0.
4841
4842 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4843
4844         * elf/dl-load.c: Finish conversion of __builtin_expect into
4845         __glibc_{un}likely.
4846
4847 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4848
4849         [BZ #16348]
4850         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4851         1+x for argument with exponent below -67.
4852         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4853         Likewise.
4854         * math/auto-libm-test-in: Add more tests of exp.
4855         * math/auto-libm-test-out: Regenerated.
4856
4857 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4858
4859         [BZ #16759]
4860         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4861         (nscd_getnetgrent): Use it.
4862
4863         [BZ #16760]
4864         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4865         of stpcpy.
4866
4867 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4868
4869         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4870         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4871         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4872         (lll_robust_unlock): Remove out of line section. Use cfi
4873         intrinsics.
4874         (LLL_STUB_UNWIND_INFO*): Remove.
4875         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4876         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4877         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4878         (lll_robust_unlock): Remove out of line section. Use cfi
4879         intrinsics.
4880         (LLL_STUB_UNWIND_INFO*): Remove.
4881
4882 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4883
4884         [BZ #16758]
4885         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4886         blank values.
4887
4888 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4889
4890         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4891
4892 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4893
4894         [BZ #16198]
4895         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4896         fnstenv.
4897         * math/test-fenv-preserve.c: New file.
4898         * math/Makefile (tests): Add test-fenv-preserve.
4899
4900 2014-03-26  Will Newton <will.newton@linaro.org>
4901
4902         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4903
4904 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4905
4906         * scripts/versionlist.awk: Partition the version sets and emit all
4907         GLIBC_* (sorted) before all others (sorted).
4908
4909 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4910
4911         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4912         GLIBC_2.2.5 version.
4913
4914 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4915
4916         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4917         calls.
4918
4919         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4920         previous change.
4921
4922         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4923
4924 2014-03-25  Andreas Schwab  <schwab@suse.de>
4925
4926         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4927         label to be used after in6ailist is initialized.
4928
4929 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4930
4931         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4932         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4933
4934 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4935
4936         [BZ #16357]
4937         [BZ #16599]
4938         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4939         min_plus_half.
4940         (fp_formats): Update initializers.
4941         (init_fp_formats): Initialize new field.
4942         (output_for_one_input_case): Allow underflow for results up to
4943         min_plus_half.
4944         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4945         * math/auto-libm-test-in: Don't mark some underflows from asin and
4946         atanh as spurious.
4947         * math/auto-libm-test-out: Regenerated.
4948         * sysdeps/i386/fpu/libm-test-ulps: Update.
4949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4950
4951 2014-03-25  Andreas Schwab  <schwab@suse.de>
4952
4953         * libio/Makefile (tst-ftell-partial-wide-ENV)
4954         (tst-ftell-active-handler-ENV): Define.
4955
4956 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4957
4958         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4959
4960 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4961
4962         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4963
4964 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4965
4966         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4967         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4968         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4969
4970 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4971
4972         [BZ #16634]
4973         * elf/dl-load.c (open_verify): Add mode parameter.
4974         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4975         (open_path): Change from boolean 'secure' to complete flag 'mode'
4976         (_dl_map_object): Adjust.
4977         * elf/Makefile (tests): Add tst-dlopen-aout.
4978         * elf/tst-dlopen-aout.c: New test.
4979
4980 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4981
4982         [BZ #16714]
4983         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4984         (struct stat): Rename member pad0 to __glibc_reserved0.
4985
4986         [BZ #16712]
4987         * sysdeps/s390/s390-32/bits/wordsize.h
4988         (__WORDSIZE32_SIZE_ULONG): New define.
4989         * sysdeps/s390/s390-64/bits/wordsize.h
4990         (__WORDSIZE32_SIZE_ULONG): Likewise.
4991         * sysdeps/generic/stdint.h (SIZE_MAX):
4992         Define as UL if __WORDSIZE32_SIZE_ULONG.
4993
4994         [BZ #16713]
4995         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4996         (__glibc_reserved0): New variable.
4997         (sa_flags): Change type to int.
4998
4999         * posix/Makefile (before-compile): Use += before-compile instead
5000         of a :=.
5001
5002         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5003         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
5004
5005 2014-03-20  Andreas Schwab  <schwab@suse.de>
5006
5007         [BZ #16743]
5008         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
5009         non-matching result from nscd.
5010
5011 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5012
5013         * scripts/bench.py: Moved to ...
5014         * benchtests/scripts/bench.py: ... here.
5015         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
5016
5017 2014-03-24  Andreas Schwab  <schwab@suse.de>
5018
5019         [BZ #16002]
5020         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
5021         alloca_account and account alloca use for struct in6ailist.
5022
5023 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
5024
5025         [BZ #16284]
5026         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
5027         rounding mode to recompute results that overflow to infinity or
5028         underflow to zero.
5029         * math/auto-libm-test-in: Don't mark tests as expected to fail for
5030         bug 16284.
5031         * math/auto-libm-test-out: Regenerated.
5032         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
5033         (ccosh_test): Likewise.
5034         (csin_test_data): Use plus_oflow.
5035         (csin_test): Use ALL_RM_TEST.
5036         (csinh_test_data): Use plus_oflow.
5037         (csinh_test): Use ALL_RM_TEST.
5038         * sysdeps/i386/fpu/libm-test-ulps: Update.
5039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5040
5041 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
5042
5043         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
5044         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
5045         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
5046
5047         [BZ #16731]
5048         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
5049         when x - 1 is zero.
5050         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
5051         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
5052         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
5053         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
5054         argument is 1.
5055         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
5056         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
5057         zero.
5058         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
5059         * sysdeps/i386/fpu/libm-test-ulps: Update.
5060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5061
5062 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5063
5064         * scripts/bench.pl: Remove file.
5065         * scripts/bench.py: New benchmark script.
5066         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
5067         * benchtests/README: Mention python dependency.
5068         * scripts/pylintrc: New file.
5069         * scripts/pylint: New file.
5070
5071         * bits/mathdef.h: Use #ifdef instead of #if.
5072         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
5073         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5074         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
5075         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5076         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
5077         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5078
5079 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5080             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5081
5082         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
5083         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
5084         and strpbrk-ppc64 objects.
5085         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5086         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
5087         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
5088         multiarch strpbrk for POWER7.
5089         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
5090         multiarch strpbrk for PPC64.
5091         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
5092         ifunc selector.
5093         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
5094         strpbrk for POWER7.
5095
5096 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5097
5098         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
5099         (atan_test): Likewise.
5100         (atanh_test_data): Use NO_TEST_INLINE for two tests.
5101         (atanh_test): Use ALL_RM_TEST.
5102         (atan2_test_data): Likewise.
5103         (cabs_test): Likewise.
5104         (cacosh_test): Likewise.
5105         (carg_test): Likewise.
5106         (casin_test): Likewise.
5107         (casinh_test): Likewise.
5108         (cbrt_test): Likewise.
5109         (csqrt_test): Likewise.
5110         (erf_test): Likewise.
5111         (erfc_test): Likewise.
5112         (pow10_test): Likewise.
5113         (exp2_test): Likewise.
5114         (hypot_test): Likewise.
5115         (j0_test): Likewise.
5116         (j1_test): Likewise.
5117         (lgamma_test): Likewise.
5118         (gamma_test): Likewise.
5119         (sincos_test): Likewise.
5120         (tanh_test): Likewise.
5121         (y0_test): Likewise.
5122         (y1_test): Likewise.
5123         * sysdeps/i386/fpu/libm-test-ulps: Update.
5124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5125
5126 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5127
5128         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
5129         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
5130         and strcspn-ppc64 objects.
5131         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5132         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
5133         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
5134         multiarch strcspn for POWER7.
5135         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
5136         multiarch strcspn for PPC64.
5137         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
5138         ifunc selector.
5139         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
5140         strcspn for POWER7.
5141
5142 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5143
5144         * math/gen-libm-test.pl (generate_testfile): Expect only function
5145         name as argument to AUTO_TESTS_* and pass results for all rounding
5146         modes to parse_args.
5147         (parse_auto_input): Separate inputs of automatic tests from
5148         outputs before storing in %auto_tests.
5149         * math/libm-test.inc (acos_test_data): Update call to
5150         AUTO_TESTS_f_f.
5151         (acos_test): Use ALL_RM_TEST.
5152         (acos_tonearest_test_data): Remove.
5153         (acos_test_tonearest): Likewise.
5154         (acos_towardzero_test_data): Likewise.
5155         (acos_test_towardzero): Likewise.
5156         (acos_downward_test_data): Likewise.
5157         (acos_test_downward): Likewise.
5158         (acos_upward_test_data): Likewise.
5159         (acos_test_upward): Likewise.
5160         (acosh_test_data): Update call to AUTO_TESTS_f_f.
5161         (asin_test_data): Likewise.
5162         (asin_test): Use ALL_RM_TEST.
5163         (asin_tonearest_test_data): Remove.
5164         (asin_test_tonearest): Likewise.
5165         (asin_towardzero_test_data): Likewise.
5166         (asin_test_towardzero): Likewise.
5167         (asin_downward_test_data): Likewise.
5168         (asin_test_downward): Likewise.
5169         (asin_upward_test_data): Likewise.
5170         (asin_test_upward): Likewise.
5171         (asinh_test_data): Update call to AUTO_TESTS_f_f.
5172         (atan_test_data): Likewise.
5173         (atanh_test_data): Likewise.
5174         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
5175         (cabs_test_data): Update call to AUTO_TESTS_c_f.
5176         (carg_test_data): Likewise.
5177         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
5178         (ccos_test_data): Update call to AUTO_TESTS_c_c.
5179         (ccosh_test_data): Likewise.
5180         (cexp_test_data): Likewise.
5181         (clog_test_data): Likewise.
5182         (clog10_test_data): Likewise.
5183         (cos_test_data): Update call to AUTO_TESTS_f_f.
5184         (cos_test): Use ALL_RM_TEST.
5185         (cos_tonearest_test_data): Remove.
5186         (cos_test_tonearest): Likewise.
5187         (cos_towardzero_test_data): Likewise.
5188         (cos_test_towardzero): Likewise.
5189         (cos_downward_test_data): Likewise.
5190         (cos_test_downward): Likewise.
5191         (cos_upward_test_data): Likewise.
5192         (cos_test_upward): Likewise.
5193         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5194         (cosh_test): Use ALL_RM_TEST.
5195         (cosh_tonearest_test_data): Remove.
5196         (cosh_test_tonearest): Likewise.
5197         (cosh_towardzero_test_data): Likewise.
5198         (cosh_test_towardzero): Likewise.
5199         (cosh_downward_test_data): Likewise.
5200         (cosh_test_downward): Likewise.
5201         (cosh_upward_test_data): Likewise.
5202         (cosh_test_upward): Likewise.
5203         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5204         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5205         (ctan_test_data): Likewise.
5206         (ctan_test): Use ALL_RM_TEST.
5207         (ctan_tonearest_test_data): Remove.
5208         (ctan_test_tonearest): Likewise.
5209         (ctan_towardzero_test_data): Likewise.
5210         (ctan_test_towardzero): Likewise.
5211         (ctan_downward_test_data): Likewise.
5212         (ctan_test_downward): Likewise.
5213         (ctan_upward_test_data): Likewise.
5214         (ctan_test_upward): Likewise.
5215         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5216         (ctanh_test): Use ALL_RM_TEST.
5217         (ctanh_tonearest_test_data): Remove.
5218         (ctanh_test_tonearest): Likewise.
5219         (ctanh_towardzero_test_data): Likewise.
5220         (ctanh_test_towardzero): Likewise.
5221         (ctanh_downward_test_data): Likewise.
5222         (ctanh_test_downward): Likewise.
5223         (ctanh_upward_test_data): Likewise.
5224         (ctanh_test_upward): Likewise.
5225         (erf_test_data): Update call to AUTO_TESTS_f_f.
5226         (erfc_test_data): Likewise.
5227         (exp_test_data): Likewise.
5228         (exp_test): Use ALL_RM_TEST.
5229         (exp_tonearest_test_data): Remove.
5230         (exp_test_tonearest): Likewise.
5231         (exp_towardzero_test_data): Likewise.
5232         (exp_test_towardzero): Likewise.
5233         (exp_downward_test_data): Likewise.
5234         (exp_test_downward): Likewise.
5235         (exp_upward_test_data): Likewise.
5236         (exp_test_upward): Likewise.
5237         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5238         (exp10_test): Use ALL_RM_TEST.
5239         (exp10_tonearest_test_data): Remove.
5240         (exp10_test_tonearest): Likewise.
5241         (exp10_towardzero_test_data): Likewise.
5242         (exp10_test_towardzero): Likewise.
5243         (exp10_downward_test_data): Likewise.
5244         (exp10_test_downward): Likewise.
5245         (exp10_upward_test_data): Likewise.
5246         (exp10_test_upward): Likewise.
5247         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5248         (expm1_test_data): Likewise.
5249         (expm1_test): Use ALL_RM_TEST.
5250         (expm1_tonearest_test_data): Remove.
5251         (expm1_test_tonearest): Likewise.
5252         (expm1_towardzero_test_data): Likewise.
5253         (expm1_test_towardzero): Likewise.
5254         (expm1_downward_test_data): Likewise.
5255         (expm1_test_downward): Likewise.
5256         (expm1_upward_test_data): Likewise.
5257         (expm1_test_upward): Likewise.
5258         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5259         (fma_test): Use ALL_RM_TEST.
5260         (fma_towardzero_test_data): Remove.
5261         (fma_test_towardzero): Likewise.
5262         (fma_downward_test_data): Likewise.
5263         (fma_test_downward): Likewise.
5264         (fma_upward_test_data): Likewise.
5265         (fma_test_upward): Likewise.
5266         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5267         (j0_test_data): Update call to AUTO_TESTS_f_f.
5268         (j1_test_data): Likewise.
5269         (jn_test_data): Update call to AUTO_TESTS_if_f.
5270         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5271         (log_test_data): Update call to AUTO_TESTS_f_f.
5272         (log10_test_data): Likewise.
5273         (log1p_test_data): Likewise.
5274         (log2_test_data): Likewise.
5275         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5276         (pow_tonearest_test_data): Likewise.
5277         (sin_test_data): Update call to AUTO_TESTS_f_f.
5278         (sin_test): Use ALL_RM_TEST.
5279         (sin_tonearest_test_data): Remove.
5280         (sin_test_tonearest): Likewise.
5281         (sin_towardzero_test_data): Likewise.
5282         (sin_test_towardzero): Likewise.
5283         (sin_downward_test_data): Likewise.
5284         (sin_test_downward): Likewise.
5285         (sin_upward_test_data): Likewise.
5286         (sin_test_upward): Likewise.
5287         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5288         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5289         (sinh_test): Use ALL_RM_TEST.
5290         (sinh_tonearest_test_data): Remove.
5291         (sinh_test_tonearest): Likewise.
5292         (sinh_towardzero_test_data): Likewise.
5293         (sinh_test_towardzero): Likewise.
5294         (sinh_downward_test_data): Likewise.
5295         (sinh_test_downward): Likewise.
5296         (sinh_upward_test_data): Likewise.
5297         (sinh_test_upward): Likewise.
5298         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5299         (sqrt_test): Use ALL_RM_TEST.
5300         (sqrt_tonearest_test_data): Remove.
5301         (sqrt_test_tonearest): Likewise.
5302         (sqrt_towardzero_test_data): Likewise.
5303         (sqrt_test_towardzero): Likewise.
5304         (sqrt_downward_test_data): Likewise.
5305         (sqrt_test_downward): Likewise.
5306         (sqrt_upward_test_data): Likewise.
5307         (sqrt_test_upward): Likewise.
5308         (tan_test_data): Update call to AUTO_TESTS_f_f.
5309         (tan_test): Use ALL_RM_TEST.
5310         (tan_tonearest_test_data): Remove.
5311         (tan_test_tonearest): Likewise.
5312         (tan_towardzero_test_data): Likewise.
5313         (tan_test_towardzero): Likewise.
5314         (tan_downward_test_data): Likewise.
5315         (tan_test_downward): Likewise.
5316         (tan_upward_test_data): Likewise.
5317         (tan_test_upward): Likewise.
5318         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5319         (tgamma_test_data): Likewise.
5320         (y0_test_data): Likewise.
5321         (y1_test_data): Likewise.
5322         (yn_test_data): Update call to AUTO_TESTS_if_f.
5323         (main): Do not call removed functions.
5324
5325 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5326
5327         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5328         (ldexp_test_data): Remove.
5329         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5330         scalbn_test_data.
5331         (scalb_test): Use ALL_RM_TEST.
5332
5333 2014-03-19  Andreas Schwab  <schwab@suse.de>
5334
5335         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5336
5337 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5338
5339         [BZ #16649]
5340         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5341         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5342         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5343         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5344         (__ASSUME_PREADV): Undefine.
5345         (__ASSUME_PWRITEV): Likewise.
5346
5347 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5348
5349         * bits/mman-linux.h: Add comment about non-Linux use.
5350         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5351         bits/mman-linux.h resting place.
5352
5353         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5354         * bits/mman-linux.h: ... here.
5355
5356 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5357
5358         * conform/conformtest.pl: Add standard definition when calling C
5359         preprocessor on data files.
5360         (checknamespace): Remove unused variable.
5361
5362 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5363
5364         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5365         minus_oflow, plus_uflow and minus_uflow in expected results.
5366         * math/libm-test.inc (scalbn_test_data): Add more tests of
5367         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5368         minus_uflow.
5369         (scalbn_test): Use ALL_RM_TEST.
5370         (scalbln_test_data): Add more tests of negative arguments.  Use
5371         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5372         (scalbln_test): Use ALL_RM_TEST.
5373
5374 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5375
5376         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5377
5378 2014-03-18  Will Newton  <will.newton@linaro.org>
5379
5380         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5381         inaccurate comment.
5382
5383 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5384
5385         * Makerules [!subdir] (check-abi): Exit with error status if a
5386         test failed.
5387
5388 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5389
5390         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5391         for rint.  Include results for all rounding modes.
5392         (nearbyint_test): Use ALL_RM_TEST.
5393         (rint_test_data): Include all tests used for nearbyint.
5394
5395 2014-03-17  Will Newton  <will.newton@linaro.org>
5396
5397         * nptl/sysdeps/pthread/pthread.h: Revert previous
5398         change.
5399
5400         * sysdeps/generic/ldsodefs.h: Revert previous
5401         change.
5402
5403         * libio/genops.c: Revert previous change.
5404         * libio/libioP.h: Likewise.
5405         * stdio-common/vfprintf.c: Likewise.
5406
5407         * sysdeps/generic/math_private.h: Revert previous
5408         change.
5409
5410         * sysdeps/generic/math_private.h: Check whether
5411         HAVE_RM_CTX is defined with #ifdef rather
5412         than #if.
5413
5414         * argp/argp-fmtstream.h: Check whether
5415         __STRICT_ANSI__ is defined with #ifdef rather
5416         than #if.
5417         * argp/argp.h: Likewise.
5418
5419         * libio/genops.c: Check whether
5420         _IO_JUMPS_OFFSET is defined with #ifdef rather
5421         than #if.
5422         * libio/libioP.h: Likewise.
5423         * stdio-common/vfprintf.c: Likewise.
5424
5425         * sysdeps/generic/ldsodefs.h: Check whether
5426         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5427         than #if.
5428
5429         * nptl/sysdeps/pthread/pthread.h: Check
5430         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5431         its value.
5432
5433 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5434
5435         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5436         setting O_APPEND.
5437         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5438         test case.
5439
5440         [BZ #16680]
5441         * libio/fileops.c (_IO_file_open): Seek to end of file but
5442         don't cache the offset.
5443         (get_file_offset): Remove function.
5444         (do_ftell): Use cached offset when available.
5445         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5446         don't cache the offset.
5447         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5448         case.
5449         (do_one_test): Call it.
5450         (do_ftell_test): Fix up expected old offset for a+ mode.
5451         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5452         available.
5453
5454         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5455         up test status with function return status.
5456         (do_write_test): Likewise.
5457         (do_append_test): Likewise.
5458
5459         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5460         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5461         Remove.
5462
5463 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5464
5465         * math/gen-libm-test.pl (parse_args): Handle results specified for
5466         each rounding mode separately.
5467         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5468         tests and results from lrint_tonearest_test_data,
5469         lrint_towardzero_test_data, lrint_downward_test_data and
5470         lrint_upward_test_data.
5471         (lrint_test): Use ALL_RM_TEST.
5472         (lrint_tonearest_test_data): Remove.
5473         (lrint_test_tonearest): Likewise.
5474         (lrint_towardzero_test_data): Likewise.
5475         (lrint_test_towardzero): Likewise.
5476         (lrint_downward_test_data): Likewise.
5477         (lrint_test_downward): Likewise.
5478         (lrint_upward_test_data): Likewise.
5479         (lrint_test_upward): Likewise.
5480         (llrint_test_data): Merge in per-rounding-mode tests and results
5481         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5482         llrint_downward_test_data and llrint_upward_test_data.
5483         (llrint_test): Use ALL_RM_TEST.
5484         (llrint_tonearest_test_data): Remove.
5485         (llrint_test_tonearest): Likewise.
5486         (llrint_towardzero_test_data): Likewise.
5487         (llrint_test_towardzero): Likewise.
5488         (llrint_downward_test_data): Likewise.
5489         (llrint_test_downward): Likewise.
5490         (llrint_upward_test_data): Likewise.
5491         (llrint_test_upward): Likewise.
5492         (rint_test_data): Merge in per-rounding-mode tests and results
5493         from rint_tonearest_test_data, rint_towardzero_test_data,
5494         rint_downward_test_data and rint_upward_test_data.  Add
5495         per-rounding-mode results for tests not in those arrays.
5496         (rint_test): Use ALL_RM_TEST.
5497         (rint_tonearest_test_data): Remove.
5498         (rint_test_tonearest): Likewise.
5499         (rint_towardzero_test_data): Likewise.
5500         (rint_test_towardzero): Likewise.
5501         (rint_downward_test_data): Likewise.
5502         (rint_test_downward): Likewise.
5503         (rint_upward_test_data): Likewise.
5504         (rint_test_upward): Likewise.
5505         (main): Don't call removed functions.
5506
5507 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5508
5509         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5510         "Compiled on ..." crapola.  It is anti-useful.
5511
5512 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5513
5514         * scripts/evaluate-test.sh: Handle fourth argument to determine
5515         whether test run should stop on failure.
5516         * Makeconfig (stop-on-test-failure): New variable.
5517         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5518         $(stop-on-test-failure).
5519         * Makefile (tests): Give a summary of results from testing and
5520         exit with failure status if they include an ERROR or FAIL.
5521         (xtests): Likewise.
5522         * manual/install.texi (Configuring and compiling): Mention
5523         stop-on-test-failure=y.
5524         * INSTALL: Regenerated.
5525
5526 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5527
5528         * scripts/versionlist.awk: New file.
5529         * Makerules [$(build-shared) = yes]
5530         (postclean-generated): Add Versions.def, not Versions.def.v and
5531         Versions.def.v.i.
5532         ($(common-objpfx)Versions.def.v.i): Target removed.
5533         ($(common-objpfx)Versions.def): New target.
5534         ($(common-objpfx)Versions.all): Depend on that rather that
5535         $(common-objpfx)Versions.def.v.
5536         * Versions.def: File removed.
5537
5538         * Makeconfig (+gccwarn): Add -Wundef.
5539         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
5540         a dl-sysdep.h breaking its contract.
5541         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
5542         * include/stackinfo.h: New file.
5543         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
5544         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
5545         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
5546         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
5547         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
5548         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
5549         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5550         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5551         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5552         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5553         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5554         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
5555         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5556         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5557         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5558
5559 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5560
5561         [BZ #16707]
5562         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
5563         implementation.
5564         * math/libm-test.inc (round_test_data): Add more tests.
5565
5566         [BZ #16706]
5567         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
5568         implementation.
5569         * math/libm-test.inc (nearbyint_test_data): Add more tests.
5570
5571         [BZ #16701]
5572         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
5573         implementation.
5574         * math/libm-test.inc (ceil_test_data): Add more tests.
5575
5576         * math/libm-test.inc (trunc_test_data): Add more tests related to
5577         BZ#16414.
5578
5579 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5580
5581         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5582         with #if rather than #ifdef.
5583         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5584
5585 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5586
5587         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5588         first.  Disable AVX-512 GCC support if assembler doesn't support
5589         it.
5590         * sysdeps/x86_64/configure: Regenerated.
5591
5592 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5593
5594         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5595         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5596         (__old_pthread_attr_setstack): Likewise.
5597         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5598         [!_STACK_GROWS_DOWN]: Likewise.
5599
5600 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5601
5602         * config.make.in (have-bash2): Delete.
5603         * configure.ac (libc_cv_have_bash2): Delete.
5604         * configure: Regenerate.
5605         * elf/Makefile (common-ldd-rewrite): Rename to ...
5606         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5607         (sh-ldd-rewrite): Delete.
5608         (bash-ldd-rewrite): Delete.
5609         (have-bash2): Delete checks.
5610         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5611         ldd-rewrite.
5612
5613         * config.make.in (have-ksh): Delete.
5614         (KSH): Delete.
5615         * configure.ac (libc_cv_have_ksh): Delete.
5616         * configure: Regenerate.
5617
5618         * elf/Makefile: Delete $(have-ksh) check.
5619         ($(objpfx)sotruss): Change KSH to BASH.
5620         * elf/sotruss.ksh: Rename to ...
5621         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5622         function style to match POSIX.  Drop ksh vim mode setting.
5623
5624         * manual/time.texi (Specifying the Time Zone with TZ): Change
5625         Tuesday to Thursday.
5626
5627         * debug/tst-longjmp_chk2.c: Update header comment.
5628         (stackoverflow_handler): Add comment.  Call assert on pass value.
5629
5630 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5631
5632         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5633         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5634         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5635         (La_x86_64_vector): Add zmm.
5636         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5637         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5638         ($(objpfx)tst-audit10): New target.
5639         ($(objpfx)tst-audit10.out): Likewise.
5640         (tst-audit10-ENV): New.
5641         (AVX512-CFLAGS): Likewise.
5642         (CFLAGS-tst-audit10.c): Likewise.
5643         (CFLAGS-tst-auditmod10a.c): Likewise.
5644         (CFLAGS-tst-auditmod10b.c): Likewise.
5645         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5646         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5647         * sysdeps/x86_64/configure: Regenerated.
5648         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5649         AVX-512 zmm register support.
5650         (_dl_x86_64_save_sse): Likewise.
5651         (_dl_x86_64_restore_sse): Likewise.
5652         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5653         size vector registers.
5654         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5655         (ZMM_SIZE): Likewise.
5656         * sysdeps/x86_64/tst-audit10.c: New file.
5657         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5658         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5659
5660 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5661
5662         * configure.ac (HAVE_EHDR_START): New check.
5663         * configure: Regenerated.
5664         * config.h.in (HAVE_EHDR_START): New #undef.
5665         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5666         assuming the lowest-addressed segment maps the start of the file.
5667
5668 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5669
5670         * INSTALL: Regenerated.
5671
5672 2014-03-13  Will Newton  <will.newton@linaro.org>
5673
5674         * manual/setjmp.texi (System V contexts): Improve
5675         clarity and grammar of documentation.
5676
5677 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5678
5679         [BZ #16381]
5680         * elf/Makefile (tests): Add tst-pie2.
5681         (tests-pie): Add tst-pie2.
5682         * elf/tst-pie2.c: New file.
5683         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5684         for ET_EXEC.
5685         * elf/rtld.c (map_doit): Load executable as lt_executable.
5686         (dl_main): Likewise.
5687
5688 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5689
5690         [BZ #16642]
5691         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5692         (__ASSUME_PSELECT): Undefine.
5693
5694 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5695
5696         [BZ #16689]
5697         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5698         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5699         static build.
5700         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5701         selector for static builds.
5702
5703 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5704
5705         [BZ #16695]
5706         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5707         key in the buffer.
5708
5709 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5710
5711         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5712         IFUNC selector for static builds.
5713
5714 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * sysdeps/mips/math_private.h [__mips_hard_float]
5717         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5718         libc_feresetround_mips_ctx.
5719         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5720         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5721         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5722
5723         [BZ #16677]
5724         * math/s_nextafter.c (__nextafter): Do not return value from
5725         overflowing computation.
5726         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5727         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5728         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5729         Likewise.
5730         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5731         Likewise.
5732         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5733         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5734
5735 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5736
5737         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5738         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5739         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5740         the new mov targetting sp.
5741
5742 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5743
5744         [BZ #16683]
5745         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5746         Define it for static builds as well.
5747         (NO_BZERO_IMPL): Likewise.
5748
5749 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5750
5751         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5752         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5753         multiarch strspn for PPC64.
5754         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5755         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5756         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5757         (__libc_ifunc_impl_list): Likewise.
5758         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5759         multiarch optimizations
5760         * string/strspn.c (strspn): Using macro to redefine symbol name.
5761
5762 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5763             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5764
5765         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5766         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5767         multiarch strncat for PPC64.
5768         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5769         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5770         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5771         (__libc_ifunc_impl_list): Likewise.
5772         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5773         multiarch optimizations
5774
5775 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5776
5777         [BZ #16639]
5778         * nscd/nscd.service: Make service type forking.
5779
5780 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5781
5782         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5783         sign in non default rounding modes.
5784         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5785
5786 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5787
5788         * math/libm-test.inc (ALL_RM_TEST): New macro.
5789         (ceil_test): Use ALL_RM_TEST.
5790         (cimag_test): Likewise.
5791         (conj_test): Likewise.
5792         (copysign_test): Likewise.
5793         (cproj_test): Likewise.
5794         (creal_test): Likewise.
5795         (fabs_test): Likewise.
5796         (floor_test): Likewise.
5797         (fmax_test): Likewise.
5798         (fmin_test): Likewise.
5799         (fmod_test): Likewise.
5800         (fpclassify_test): Likewise.
5801         (frexp_test): Likewise.
5802         (ilogb_test): Likewise.
5803         (isfinite_test): Likewise.
5804         (finite_test): Likewise.
5805         (isgreater_test): Likewise.
5806         (isgreaterequal_test): Likewise.
5807         (isinf_test): Likewise.
5808         (isless_test): Likewise.
5809         (islessequal_test): Likewise.
5810         (islessgreater_test): Likewise.
5811         (isnan_test): Likewise.
5812         (isnormal_test): Likewise.
5813         (issignaling_test): Likewise.
5814         (isunordered_test): Likewise.
5815         (logb_test): Likewise.
5816         (logb_downward_test_data): Remove.
5817         (logb_test_downward): Likewise.
5818         (lround_test): Use ALL_RM_TEST.
5819         (llround_test): Likewise.
5820         (modf_test): Likewise.
5821         (nexttoward_test): Likewise.
5822         (remainder_test): Likewise.
5823         (drem_test): Likewise.
5824         (remainder_tonearest_test_data): Likewise.
5825         (remainder_test_tonearest): Likewise.
5826         (drem_test_tonearest): Likewise.
5827         (remainder_towardzero_test_data): Likewise.
5828         (remainder_test_towardzero): Likewise.
5829         (drem_test_towardzero): Likewise.
5830         (remainder_downward_test_data): Likewise.
5831         (remainder_test_downward): Likewise.
5832         (drem_test_downward): Likewise.
5833         (remainder_upward_test_data): Likewise.
5834         (remainder_test_upward): Likewise.
5835         (drem_test_upward): Likewise.
5836         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5837         (round_test): Use ALL_RM_TEST.
5838         (signbit_test): Likewise.
5839         (trunc_test): Likewise.
5840         (significand_test): Likewise.
5841         (main): Don't call removed functions.
5842
5843 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5844
5845         [BZ #16674]
5846         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5847         || __USE_XOPEN2K8].
5848         (ILL_ILLOPN): Likewise.
5849         (ILL_ILLADR): Likewise.
5850         (ILL_ILLTRP): Likewise.
5851         (ILL_PRVOPC): Likewise.
5852         (ILL_PRVREG): Likewise.
5853         (ILL_COPROC): Likewise.
5854         (ILL_BADSTK): Likewise.
5855         (FPE_INTDIV): Likewise.
5856         (FPE_INTOVF): Likewise.
5857         (FPE_FLTDIV): Likewise.
5858         (FPE_FLTOVF): Likewise.
5859         (FPE_FLTUND): Likewise.
5860         (FPE_FLTRES): Likewise.
5861         (FPE_FLTINV): Likewise.
5862         (FPE_FLTSUB): Likewise.
5863         (SEGV_MAPERR): Likewise.
5864         (SEGV_ACCERR): Likewise.
5865         (BUS_ADRALN): Likewise.
5866         (BUS_ADRERR): Likewise.
5867         (BUS_OBJERR): Likewise.
5868         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5869         (TRAP_TRACE): Likewise.
5870         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5871         __USE_XOPEN2K8].
5872         (CLD_KILLED): Likewise.
5873         (CLD_DUMPED): Likewise.
5874         (CLD_TRAPPED): Likewise.
5875         (CLD_STOPPED): Likewise.
5876         (CLD_CONTINUED): Likewise.
5877         (POLL_IN): Likewise.
5878         (POLL_OUT): Likewise.
5879         (POLL_MSG): Likewise.
5880         (POLL_ERR): Likewise.
5881         (POLL_PRI): Likewise.
5882         (POLL_HUP): Likewise.
5883         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5884         Likewise.
5885         (ILL_ILLOPN): Likewise.
5886         (ILL_ILLADR): Likewise.
5887         (ILL_ILLTRP): Likewise.
5888         (ILL_PRVOPC): Likewise.
5889         (ILL_PRVREG): Likewise.
5890         (ILL_COPROC): Likewise.
5891         (ILL_BADSTK): Likewise.
5892         (FPE_INTDIV): Likewise.
5893         (FPE_INTOVF): Likewise.
5894         (FPE_FLTDIV): Likewise.
5895         (FPE_FLTOVF): Likewise.
5896         (FPE_FLTUND): Likewise.
5897         (FPE_FLTRES): Likewise.
5898         (FPE_FLTINV): Likewise.
5899         (FPE_FLTSUB): Likewise.
5900         (SEGV_MAPERR): Likewise.
5901         (SEGV_ACCERR): Likewise.
5902         (BUS_ADRALN): Likewise.
5903         (BUS_ADRERR): Likewise.
5904         (BUS_OBJERR): Likewise.
5905         (BUS_MCEERR_AR): Likewise.
5906         (BUS_MCEERR_AO): Likewise.
5907         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5908         (TRAP_TRACE): Likewise.
5909         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5910         __USE_XOPEN2K8].
5911         (CLD_KILLED): Likewise.
5912         (CLD_DUMPED): Likewise.
5913         (CLD_TRAPPED): Likewise.
5914         (CLD_STOPPED): Likewise.
5915         (CLD_CONTINUED): Likewise.
5916         (POLL_IN): Likewise.
5917         (POLL_OUT): Likewise.
5918         (POLL_MSG): Likewise.
5919         (POLL_ERR): Likewise.
5920         (POLL_PRI): Likewise.
5921         (POLL_HUP): Likewise.
5922         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5923         (ILL_ILLOPN): Likewise.
5924         (ILL_ILLADR): Likewise.
5925         (ILL_ILLTRP): Likewise.
5926         (ILL_PRVOPC): Likewise.
5927         (ILL_PRVREG): Likewise.
5928         (ILL_COPROC): Likewise.
5929         (ILL_BADSTK): Likewise.
5930         (FPE_INTDIV): Likewise.
5931         (FPE_INTOVF): Likewise.
5932         (FPE_FLTDIV): Likewise.
5933         (FPE_FLTOVF): Likewise.
5934         (FPE_FLTUND): Likewise.
5935         (FPE_FLTRES): Likewise.
5936         (FPE_FLTINV): Likewise.
5937         (FPE_FLTSUB): Likewise.
5938         (SEGV_MAPERR): Likewise.
5939         (SEGV_ACCERR): Likewise.
5940         (BUS_ADRALN): Likewise.
5941         (BUS_ADRERR): Likewise.
5942         (BUS_OBJERR): Likewise.
5943         (BUS_MCEERR_AR): Likewise.
5944         (BUS_MCEERR_AO): Likewise.
5945         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5946         (TRAP_TRACE): Likewise.
5947         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5948         __USE_XOPEN2K8].
5949         (CLD_KILLED): Likewise.
5950         (CLD_DUMPED): Likewise.
5951         (CLD_TRAPPED): Likewise.
5952         (CLD_STOPPED): Likewise.
5953         (CLD_CONTINUED): Likewise.
5954         (POLL_IN): Likewise.
5955         (POLL_OUT): Likewise.
5956         (POLL_MSG): Likewise.
5957         (POLL_ERR): Likewise.
5958         (POLL_PRI): Likewise.
5959         (POLL_HUP): Likewise.
5960         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5961         Likewise.
5962         (ILL_ILLOPN): Likewise.
5963         (ILL_ILLADR): Likewise.
5964         (ILL_ILLTRP): Likewise.
5965         (ILL_PRVOPC): Likewise.
5966         (ILL_PRVREG): Likewise.
5967         (ILL_COPROC): Likewise.
5968         (ILL_BADSTK): Likewise.
5969         (ILL_BADIADDR): Likewise.
5970         (ILL_BREAK): Likewise.
5971         (FPE_INTDIV): Likewise.
5972         (FPE_INTOVF): Likewise.
5973         (FPE_FLTDIV): Likewise.
5974         (FPE_FLTOVF): Likewise.
5975         (FPE_FLTUND): Likewise.
5976         (FPE_FLTRES): Likewise.
5977         (FPE_FLTINV): Likewise.
5978         (FPE_FLTSUB): Likewise.
5979         (FPE_DECOVF): Likewise.
5980         (FPE_DECDIV): Likewise.
5981         (FPE_DECERR): Likewise.
5982         (FPE_INVASC): Likewise.
5983         (FPE_INVDEC): Likewise.
5984         (SEGV_MAPERR): Likewise.
5985         (SEGV_ACCERR): Likewise.
5986         (SEGV_PSTKOVF): Likewise.
5987         (BUS_ADRALN): Likewise.
5988         (BUS_ADRERR): Likewise.
5989         (BUS_OBJERR): Likewise.
5990         (BUS_MCEERR_AR): Likewise.
5991         (BUS_MCEERR_AO): Likewise.
5992         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5993         (TRAP_TRACE): Likewise.
5994         (TRAP_BRANCH): Likewise.
5995         (TRAP_HWBKPT): Likewise.
5996         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5997         __USE_XOPEN2K8].
5998         (CLD_KILLED): Likewise.
5999         (CLD_DUMPED): Likewise.
6000         (CLD_TRAPPED): Likewise.
6001         (CLD_STOPPED): Likewise.
6002         (CLD_CONTINUED): Likewise.
6003         (POLL_IN): Likewise.
6004         (POLL_OUT): Likewise.
6005         (POLL_MSG): Likewise.
6006         (POLL_ERR): Likewise.
6007         (POLL_PRI): Likewise.
6008         (POLL_HUP): Likewise.
6009         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
6010         (ILL_ILLOPN): Likewise.
6011         (ILL_ILLADR): Likewise.
6012         (ILL_ILLTRP): Likewise.
6013         (ILL_PRVOPC): Likewise.
6014         (ILL_PRVREG): Likewise.
6015         (ILL_COPROC): Likewise.
6016         (ILL_BADSTK): Likewise.
6017         (FPE_INTDIV): Likewise.
6018         (FPE_INTOVF): Likewise.
6019         (FPE_FLTDIV): Likewise.
6020         (FPE_FLTOVF): Likewise.
6021         (FPE_FLTUND): Likewise.
6022         (FPE_FLTRES): Likewise.
6023         (FPE_FLTINV): Likewise.
6024         (FPE_FLTSUB): Likewise.
6025         (SEGV_MAPERR): Likewise.
6026         (SEGV_ACCERR): Likewise.
6027         (BUS_ADRALN): Likewise.
6028         (BUS_ADRERR): Likewise.
6029         (BUS_OBJERR): Likewise.
6030         (BUS_MCEERR_AR): Likewise.
6031         (BUS_MCEERR_AO): Likewise.
6032         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6033         (TRAP_TRACE): Likewise.
6034         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6035         __USE_XOPEN2K8].
6036         (CLD_KILLED): Likewise.
6037         (CLD_DUMPED): Likewise.
6038         (CLD_TRAPPED): Likewise.
6039         (CLD_STOPPED): Likewise.
6040         (CLD_CONTINUED): Likewise.
6041         (POLL_IN): Likewise.
6042         (POLL_OUT): Likewise.
6043         (POLL_MSG): Likewise.
6044         (POLL_ERR): Likewise.
6045         (POLL_PRI): Likewise.
6046         (POLL_HUP): Likewise.
6047         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
6048         (ILL_ILLOPN): Likewise.
6049         (ILL_ILLADR): Likewise.
6050         (ILL_ILLTRP): Likewise.
6051         (ILL_PRVOPC): Likewise.
6052         (ILL_PRVREG): Likewise.
6053         (ILL_COPROC): Likewise.
6054         (ILL_BADSTK): Likewise.
6055         (FPE_INTDIV): Likewise.
6056         (FPE_INTOVF): Likewise.
6057         (FPE_FLTDIV): Likewise.
6058         (FPE_FLTOVF): Likewise.
6059         (FPE_FLTUND): Likewise.
6060         (FPE_FLTRES): Likewise.
6061         (FPE_FLTINV): Likewise.
6062         (FPE_FLTSUB): Likewise.
6063         (SEGV_MAPERR): Likewise.
6064         (SEGV_ACCERR): Likewise.
6065         (BUS_ADRALN): Likewise.
6066         (BUS_ADRERR): Likewise.
6067         (BUS_OBJERR): Likewise.
6068         (BUS_MCEERR_AR): Likewise.
6069         (BUS_MCEERR_AO): Likewise.
6070         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6071         (TRAP_TRACE): Likewise.
6072         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6073         __USE_XOPEN2K8].
6074         (CLD_KILLED): Likewise.
6075         (CLD_DUMPED): Likewise.
6076         (CLD_TRAPPED): Likewise.
6077         (CLD_STOPPED): Likewise.
6078         (CLD_CONTINUED): Likewise.
6079         (POLL_IN): Likewise.
6080         (POLL_OUT): Likewise.
6081         (POLL_MSG): Likewise.
6082         (POLL_ERR): Likewise.
6083         (POLL_PRI): Likewise.
6084         (POLL_HUP): Likewise.
6085         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
6086         (ILL_ILLOPN): Likewise.
6087         (ILL_ILLADR): Likewise.
6088         (ILL_ILLTRP): Likewise.
6089         (ILL_PRVOPC): Likewise.
6090         (ILL_PRVREG): Likewise.
6091         (ILL_COPROC): Likewise.
6092         (ILL_BADSTK): Likewise.
6093         (FPE_INTDIV): Likewise.
6094         (FPE_INTOVF): Likewise.
6095         (FPE_FLTDIV): Likewise.
6096         (FPE_FLTOVF): Likewise.
6097         (FPE_FLTUND): Likewise.
6098         (FPE_FLTRES): Likewise.
6099         (FPE_FLTINV): Likewise.
6100         (FPE_FLTSUB): Likewise.
6101         (SEGV_MAPERR): Likewise.
6102         (SEGV_ACCERR): Likewise.
6103         (BUS_ADRALN): Likewise.
6104         (BUS_ADRERR): Likewise.
6105         (BUS_OBJERR): Likewise.
6106         (BUS_MCEERR_AR): Likewise.
6107         (BUS_MCEERR_AO): Likewise.
6108         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6109         (TRAP_TRACE): Likewise.
6110         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6111         __USE_XOPEN2K8].
6112         (CLD_KILLED): Likewise.
6113         (CLD_DUMPED): Likewise.
6114         (CLD_TRAPPED): Likewise.
6115         (CLD_STOPPED): Likewise.
6116         (CLD_CONTINUED): Likewise.
6117         (POLL_IN): Likewise.
6118         (POLL_OUT): Likewise.
6119         (POLL_MSG): Likewise.
6120         (POLL_ERR): Likewise.
6121         (POLL_PRI): Likewise.
6122         (POLL_HUP): Likewise.
6123         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
6124         (ILL_ILLOPN): Likewise.
6125         (ILL_ILLADR): Likewise.
6126         (ILL_ILLTRP): Likewise.
6127         (ILL_PRVOPC): Likewise.
6128         (ILL_PRVREG): Likewise.
6129         (ILL_COPROC): Likewise.
6130         (ILL_BADSTK): Likewise.
6131         (ILL_DBLFLT): Likewise.
6132         (ILL_HARDWALL): Likewise.
6133         (FPE_INTDIV): Likewise.
6134         (FPE_INTOVF): Likewise.
6135         (FPE_FLTDIV): Likewise.
6136         (FPE_FLTOVF): Likewise.
6137         (FPE_FLTUND): Likewise.
6138         (FPE_FLTRES): Likewise.
6139         (FPE_FLTINV): Likewise.
6140         (FPE_FLTSUB): Likewise.
6141         (SEGV_MAPERR): Likewise.
6142         (SEGV_ACCERR): Likewise.
6143         (BUS_ADRALN): Likewise.
6144         (BUS_ADRERR): Likewise.
6145         (BUS_OBJERR): Likewise.
6146         (BUS_MCEERR_AR): Likewise.
6147         (BUS_MCEERR_AO): Likewise.
6148         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6149         (TRAP_TRACE): Likewise.
6150         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6151         __USE_XOPEN2K8].
6152         (CLD_KILLED): Likewise.
6153         (CLD_DUMPED): Likewise.
6154         (CLD_TRAPPED): Likewise.
6155         (CLD_STOPPED): Likewise.
6156         (CLD_CONTINUED): Likewise.
6157         (POLL_IN): Likewise.
6158         (POLL_OUT): Likewise.
6159         (POLL_MSG): Likewise.
6160         (POLL_ERR): Likewise.
6161         (POLL_PRI): Likewise.
6162         (POLL_HUP): Likewise.
6163         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
6164         (ILL_ILLOPN): Likewise.
6165         (ILL_ILLADR): Likewise.
6166         (ILL_ILLTRP): Likewise.
6167         (ILL_PRVOPC): Likewise.
6168         (ILL_PRVREG): Likewise.
6169         (ILL_COPROC): Likewise.
6170         (ILL_BADSTK): Likewise.
6171         (FPE_INTDIV): Likewise.
6172         (FPE_INTOVF): Likewise.
6173         (FPE_FLTDIV): Likewise.
6174         (FPE_FLTOVF): Likewise.
6175         (FPE_FLTUND): Likewise.
6176         (FPE_FLTRES): Likewise.
6177         (FPE_FLTINV): Likewise.
6178         (FPE_FLTSUB): Likewise.
6179         (SEGV_MAPERR): Likewise.
6180         (SEGV_ACCERR): Likewise.
6181         (BUS_ADRALN): Likewise.
6182         (BUS_ADRERR): Likewise.
6183         (BUS_OBJERR): Likewise.
6184         (BUS_MCEERR_AR): Likewise.
6185         (BUS_MCEERR_AO): Likewise.
6186         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6187         (TRAP_TRACE): Likewise.
6188         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6189         __USE_XOPEN2K8].
6190         (CLD_KILLED): Likewise.
6191         (CLD_DUMPED): Likewise.
6192         (CLD_TRAPPED): Likewise.
6193         (CLD_STOPPED): Likewise.
6194         (CLD_CONTINUED): Likewise.
6195         (POLL_IN): Likewise.
6196         (POLL_OUT): Likewise.
6197         (POLL_MSG): Likewise.
6198         (POLL_ERR): Likewise.
6199         (POLL_PRI): Likewise.
6200         (POLL_HUP): Likewise.
6201         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6202         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6203
6204         [BZ #16670]
6205         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6206         before #include of <time.h>.
6207         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6208         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6209         (test-xfail-UNIX98/sched.h/conform): Likewise.
6210
6211 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6212
6213         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6214         error absence of trapping exception support.
6215         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6216
6217 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6218
6219         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6220         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6221         * timezone/Makefile (testdata): Move definition above include of
6222         Rules.
6223         (test-zones): New variable.
6224         (tests-special): Add zone files.
6225         (build-testdata): Use $(evaluate-test).
6226
6227         * elf/Makefile (tests-special): Rename tests to end with .out.
6228         ($(objpfx)noload-mem): Likewise.
6229         ($(objpfx)tst-leaks1-mem): Likewise.
6230         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6231         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6232         $(objpfx)test-iconvconfig.out.
6233         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6234         set -e inside subshell and redirect output to file.
6235         * iconvdata/Makefile (generated): Rename tests to end with .out.
6236         Correct type.
6237         (tests-special): Rename tests to end with .out.
6238         ($(objpfx)mtrace-tst-loading): Likewise.
6239         * intl/Makefile (generated): Likewise.
6240         (tests-special): Likewise.
6241         ($(objpfx)mtrace-tst-gettext): Likewise.
6242         * misc/Makefile (generated): Likewise.
6243         (tests-special): Likewise.
6244         ($(objpfx)tst-error1-mem): Likewise.
6245         * nptl/Makefile (tests-special): Likewise.
6246         ($(objpfx)tst-stack3-mem): Likewise.
6247         (generated): Likewise.
6248         * posix/Makefile (generated): Likewise.
6249         (tests-special): Likewise.
6250         (xtests-special): Likewise.
6251         ($(objpfx)tst-fnmatch-mem): Likewise.
6252         ($(objpfx)bug-regex2-mem): Likewise.
6253         ($(objpfx)bug-regex14-mem): Likewise.
6254         ($(objpfx)bug-regex21-mem): Likewise.
6255         ($(objpfx)bug-regex31-mem): Likewise.
6256         ($(objpfx)tst-vfork3-mem): Likewise.
6257         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6258         ($(objpfx)tst-pcre-mem): Likewise.
6259         ($(objpfx)tst-boost-mem): Likewise.
6260         ($(objpfx)bug-ga2-mem): Likewise.
6261         ($(objpfx)bug-glob2-mem): Likewise.
6262         * resolv/Makefile (generate): Likewise.
6263         (tests-special): Likewise.
6264         (xtests-special): Likewise.
6265         (generated): Likewise.
6266         ($(objpfx)mtrace-tst-leaks): Likewise.
6267         ($(objpfx)mtrace-tst-leaks2): Likewise.
6268
6269         * scripts/merge-test-results.sh: New file.
6270         * Makefile (tests-special-notdir): New variable.
6271         (tests): Run merge-test-results.sh.
6272         (xtests): Likewise.
6273         * Rules (tests-special-notdir): New variable.
6274         (xtests-special-notdir): Likewise.
6275         (tests): Run merge-test-results.sh
6276         (xtests): Likewise.
6277
6278         * Makeconfig (test-xfail-name): New variable.
6279         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6280         compute variable name for expected failures.
6281         * conform/Makefile (conformtest-headers-data): New variable.
6282         (conformtest-standards): Likewise.
6283         (conformtest-headers-ISO): Likewise.
6284         (conformtest-headers-ISO99): Likewise.
6285         (conformtest-headers-ISO11): Likewise.
6286         (conformtest-headers-POSIX): Likewise.
6287         (conformtest-headers-XPG3): Likewise.
6288         (conformtest-headers-XPG4): Likewise.
6289         (conformtest-headers-UNIX98): Likewise.
6290         (conformtest-headers-XOPEN2K): Likewise.
6291         (conformtest-headers-POSIX2008): Likewise.
6292         (conformtest-headers-XOPEN2K8): Likewise.
6293         (conformtest-header-list-base): Likewise.
6294         (conformtest-header-list-tests): Likewise.
6295         (conformtest-header-base): Likewise.
6296         (conformtest-header-tests): Likewise.
6297         (tests-special): Add $(conformtest-header-list-tests).  If
6298         [$(fast-check) && !$(cross-compiling)], add
6299         $(conformtest-header-tests) instead of
6300         $(objpfx)run-conformtest.out.
6301         (generated): Add $(conformtest-header-list-base).  If
6302         [$(fast-check) && !$(cross-compiling)], add
6303         $(conformtest-header-base).  Remove previous setting.
6304         ($(conformtest-header-list-tests)): New target.
6305         (test-xfail-run-conformtest): Remove variable.
6306         ($(objpfx)run-conformtest.out): Remove target.
6307         (test-xfail-ISO11/complex.h/conform): New variable.
6308         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6309         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6310         (test-xfail-XPG3/varargs.h/conform): Likewise.
6311         (test-xfail-XPG4/varargs.h/conform): Likewise.
6312         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6313         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6314         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6315         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6316         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6317         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6318         (test-xfail-XPG3/ftw.h/conform): Likewise.
6319         (test-xfail-XPG3/grp.h/conform): Likewise.
6320         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6321         (test-xfail-XPG3/limits.h/conform): Likewise.
6322         (test-xfail-XPG3/pwd.h/conform): Likewise.
6323         (test-xfail-XPG3/search.h/conform): Likewise.
6324         (test-xfail-XPG3/signal.h/conform): Likewise.
6325         (test-xfail-XPG3/stdio.h/conform): Likewise.
6326         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6327         (test-xfail-XPG3/string.h/conform): Likewise.
6328         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6329         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6330         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6331         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6332         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6333         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6334         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6335         (test-xfail-XPG3/termios.h/conform): Likewise.
6336         (test-xfail-XPG3/time.h/conform): Likewise.
6337         (test-xfail-XPG3/unistd.h/conform): Likewise.
6338         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6339         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6340         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6341         (test-xfail-XPG4/netdb.h/conform): Likewise.
6342         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6343         (test-xfail-XPG4/signal.h/conform): Likewise.
6344         (test-xfail-XPG4/stdio.h/conform): Likewise.
6345         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6346         (test-xfail-XPG4/stropts.h/conform): Likewise.
6347         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6348         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6349         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6350         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6351         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6352         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6353         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6354         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6355         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6356         (test-xfail-XPG4/termios.h/conform): Likewise.
6357         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6358         (test-xfail-XPG4/unistd.h/conform): Likewise.
6359         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6360         (test-xfail-POSIX/sched.h/conform): Likewise.
6361         (test-xfail-POSIX/signal.h/conform): Likewise.
6362         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6363         (test-xfail-POSIX/tar.h/conform): Likewise.
6364         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6365         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6366         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6367         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6368         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6369         (test-xfail-UNIX98/sched.h/conform): Likewise.
6370         (test-xfail-UNIX98/signal.h/conform): Likewise.
6371         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6372         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6373         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6374         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6375         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6376         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6377         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6378         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6379         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6380         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6381         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6382         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6383         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6384         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6385         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6386         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6387         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6388         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6389         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6390         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6391         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6392         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6393         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6394         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6395         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6396         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6397         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6398         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6399         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6400         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6401         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6402         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6403         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6404         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6405         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6406         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6407         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6408         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6409         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6410         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6411         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6412         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6413         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6414         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6415         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6416         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6417         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6418         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6419         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6420         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6421         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6422         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6423         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6424         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6425         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6426         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6427         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6428         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6429         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6430         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6431         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6432         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6433         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6434         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6435         (conformtest-cc-flags): Likewise.
6436         ($(conformtest-header-tests): New target.
6437         * conform/check-header-lists.sh: New file.
6438         * conform/run-conformtest.sh: Remove.
6439
6440         * conform/conformtest.pl: Allow ' and \ in values given for
6441         constants.
6442         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6443         inclusion.
6444         [POSIX] (sys/types.h): Likewise.
6445         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6446         inclusion.
6447         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6448         inclusion.
6449         * conform/data/signal.h-data (SIGIO): Remove expectation.
6450         [XPG3] (SIGBUS): Do not expect.
6451         [POSIX || XPG3] (SIGPOLL): Likewise.
6452         [POSIX || XPG3] (SIGPROF): Likewise.
6453         [POSIX || XPG3] (SIGSYS): Likewise.
6454         [XPG3] (SIGTRAP): Likewise.
6455         [POSIX || XPG3] (SIGURG): Likewise.
6456         [POSIX || XPG3] (SIGVTALRM): Likewise.
6457         [POSIX || XPG3] (SIGXCPU): Likewise.
6458         [POSIX || XPG3] (SIGXFSZ): Likewise.
6459         [POSIX] (SA_SIGINFO): Expect.
6460         [XPG3] (siginfo_t): Do not expect type or contents.
6461         [POSIX] (si_pid): Do not expect element.
6462         [POSIX] (si_uid): Likewise.
6463         [POSIX] (si_addr): Likewise.
6464         [POSIX] (si_status): Likewise.
6465         [POSIX] (si_band): Likewise.
6466         [XPG4] (si_value): Likewise.
6467         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6468         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6469         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6470         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6471         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6472         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6473         [POSIX || XPG3] (ILL_COPROC): Likewise.
6474         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6475         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6476         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6477         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6478         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6479         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6480         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6481         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6482         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6483         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6484         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6485         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6486         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6487         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6488         [POSIX || XPG3] (CLD_EXITED): Likewise.
6489         [POSIX || XPG3] (CLD_KILLED): Likewise.
6490         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6491         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6492         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6493         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6494         [POSIX || XPG3] (POLL_IN): Likewise.
6495         [POSIX || XPG3] (POLL_OUT): Likewise.
6496         [POSIX || XPG3] (POLL_MSG): Likewise.
6497         [POSIX || XPG3] (POLL_ERR): Likewise.
6498         [POSIX || XPG3] (POLL_PRI): Likewise.
6499         [POSIX || XPG3] (POLL_HUP): Likewise.
6500         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6501         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6502         (SIG*): Do not allow.
6503         [XPG3] (si_*): Likewise.
6504         [XPG3] (SI_*): Likewise.
6505         [XPG3 || XPG4] (sigev_*): Likewise.
6506         [XPG3 || XPG4] (SIGEV_*): Likewise.
6507         [XPG3 || XPG4] (sival_*): Likewise.
6508         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6509         [POSIX || XPG3] (BUS_*): Likewise.
6510         [POSIX || XPG3] (CLD_*): Likewise.
6511         [POSIX || XPG3] (FPE_*): Likewise.
6512         [POSIX || XPG3] (ILL_*): Likewise.
6513         [POSIX || XPG3] (POLL_*): Likewise.
6514         [POSIX || XPG3] (SEGV_*): Likewise.
6515         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6516         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6517         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6518         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6519         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6520         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6521         Specify type and value.
6522         (TVERSLEN): Likewise.
6523         (REGTYPE): Likewise.
6524         (AREGTYPE): Likewise.
6525         (LNKTYPE): Likewise.
6526         (SYMTYPE): Likewise.
6527         (CHRTYPE): Likewise.
6528         (BLKTYPE): Likewise.
6529         (DIRTYPE): Likewise.
6530         (FIFOTYPE): Likewise.
6531         (CONTTYPE): Likewise.
6532         (TSUID): Likewise.
6533         (TSGID): Likewise.
6534         (TSVTX): Likewise.
6535         (TUREAD): Likewise.
6536         (TUWRITE): Likewise.
6537         (TUEXEC): Likewise.
6538         (TGREAD): Likewise.
6539         (TGWRITE): Likewise.
6540         (TGEXEC): Likewise.
6541         (TOREAD): Likewise.
6542         (TOWRITE): Likewise.
6543         (TOEXEC): Likewise.
6544         [POSIX] (TSVTX): Expect constant.
6545
6546 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
6547
6548         * Makefile (tests): Change dependencies to ....
6549         (tests-special): ... additions to this variable.
6550         (tests): Depend on $(tests-special).
6551         * Makerules (check-abi-list): New variable.
6552         (check-abi): Depend on $(check-abi-list).
6553         [$(subdir) = elf] (tests-special): Add
6554         $(objpfx)check-abi-libc.out.
6555         [$(build-shared) = yes && subdir] (tests-special): Add
6556         $(check-abi-list).
6557         [$(build-shared) = yes && subdir] (tests): Do not depend on
6558         check-abi.
6559         * Rules (tests): Depend on $(tests-special).
6560         (xtests): Depend on $(xtests-special).
6561         * catgets/Makefile (tests): Change dependencies to ....
6562         (tests-special): ... additions to this variable.
6563         * conform/Makefile (tests): Change dependencies to ....
6564         (tests-special): ... additions to this variable.
6565         * elf/Makefile (tests): Change dependencies to ....
6566         (tests-special): ... additions to this variable.
6567         * grp/Makefile (tests): Change dependencies to ....
6568         (tests-special): ... additions to this variable.
6569         * iconv/Makefile (xtests): Change dependencies to ....
6570         (xtests-special): ... additions to this variable.
6571         * iconvdata/Makefile (tests): Change dependencies to ....
6572         (tests-special): ... additions to this variable.
6573         * intl/Makefile (tests): Change dependencies to ....
6574         (tests-special): ... additions to this variable.  Also add
6575         $(objpfx)tst-gettext.out.
6576         * io/Makefile (tests): Change dependencies to ....
6577         (tests-special): ... additions to this variable.
6578         * libio/Makefile (tests): Change dependencies to ....
6579         (tests-special): ... additions to this variable.
6580         * malloc/Makefile (tests): Change dependencies to ....
6581         (tests-special): ... additions to this variable.
6582         * misc/Makefile (tests): Change dependencies to ....
6583         (tests-special): ... additions to this variable.
6584         * nptl/Makefile (tests): Change dependencies to ....
6585         (tests-special): ... additions to this variable.
6586         * nptl_db/Makefile (tests): Change dependencies to ....
6587         (tests-special): ... additions to this variable.
6588         * posix/Makefile (tests): Change dependencies to ....
6589         (tests-special): ... additions to this variable.
6590         (xtests): Change dependencies to ....
6591         (xtests-special): ... additions to this variable.
6592         * resolv/Makefile (tests): Change dependencies to ....
6593         (tests-special): ... additions to this variable.
6594         (xtests): Change dependencies to ....
6595         (xtests-special): ... additions to this variable.
6596         * stdio-common/Makefile (tests): Change dependencies to ....
6597         (tests-special): ... additions to this variable.
6598         (do-tst-unbputc): Remove target.
6599         (do-tst-printf): Likewise.
6600         * stdlib/Makefile (tests): Change dependencies to ....
6601         (tests-special): ... additions to this variable.
6602         * string/Makefile (tests): Change dependencies to ....
6603         (tests-special): ... additions to this variable.
6604         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6605         (tests-special): ... additions to this variable.
6606
6607         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6608         whole file.
6609         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6610         whole file.
6611         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6612         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6613
6614         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6615         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6616         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6617         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6618         * conform/data/libgen.h-data [XPG3]: Likewise.
6619         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6620         * conform/data/ndbm.h-data [XPG3]: Likewise.
6621         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6622         * conform/data/netdb.h-data [XPG3]: Likewise.
6623         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6624         * conform/data/poll.h-data [XPG3]: Likewise.
6625         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6626         * conform/data/strings.h-data [XPG3]: Likewise.
6627         * conform/data/stropts.h-data [XPG3]: Likewise.
6628         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6629         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6630         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6631         Likewise.
6632         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6633         * conform/data/sys/time.h-data [XPG3]: Likewise.
6634         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6635         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6636         * conform/data/sys/un.h-data [XPG3]: Likewise.
6637         * conform/data/syslog.h-data [XPG3]: Likewise.
6638         * conform/data/ucontext.h-data [XPG3]: Likewise.
6639         * conform/data/utmpx.h-data [XPG3]: Likewise.
6640         * conform/data/varargs.h-data [UNIX98]: Enable file.
6641
6642         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6643
6644         * math/libm-test.inc (struct test_f_f_data): Move expected results
6645         into structure for each rounding mode.
6646         (struct test_ff_f_data): Likewise.
6647         (struct test_ff_f_data_nexttoward): Likewise.
6648         (struct test_fi_f_data): Likewise.
6649         (struct test_fl_f_data): Likewise.
6650         (struct test_if_f_data): Likewise.
6651         (struct test_fff_f_data): Likewise.
6652         (struct test_c_f_data): Likewise.
6653         (struct test_f_f1_data): Likewise.
6654         (struct test_fF_f1_data): Likewise.
6655         (struct test_ffI_f1_data): Likewise.
6656         (struct test_c_c_data): Likewise.
6657         (struct test_cc_c_data): Likewise.
6658         (struct test_f_i_data): Likewise.
6659         (struct test_ff_i_data): Likewise.
6660         (struct test_f_l_data): Likewise.
6661         (struct test_f_L_data): Likewise.
6662         (struct test_fFF_11_data): Likewise.
6663         (RM_): New macro.
6664         (RM_FE_DOWNWARD): Likewise.
6665         (RM_FE_TONEAREST): Likewise.
6666         (RM_FE_TOWARDZERO): Likewise.
6667         (RM_FE_UPWARD): Likewise.
6668         (RUN_TEST_LOOP_f_f): Update references to expected results.
6669         (RUN_TEST_LOOP_2_f): Likewise.
6670         (RUN_TEST_LOOP_fff_f): Likewise.
6671         (RUN_TEST_LOOP_c_f): Likewise.
6672         (RUN_TEST_LOOP_f_f1): Likewise.
6673         (RUN_TEST_LOOP_fF_f1): Likewise.
6674         (RUN_TEST_LOOP_fI_f1): Likewise.
6675         (RUN_TEST_LOOP_ffI_f1): Likewise.
6676         (RUN_TEST_LOOP_c_c): Likewise.
6677         (RUN_TEST_LOOP_cc_c): Likewise.
6678         (RUN_TEST_LOOP_f_i): Likewise.
6679         (RUN_TEST_LOOP_f_i_tg): Likewise.
6680         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6681         (RUN_TEST_LOOP_f_b): Likewise.
6682         (RUN_TEST_LOOP_f_b_tg): Likewise.
6683         (RUN_TEST_LOOP_f_l): Likewise.
6684         (RUN_TEST_LOOP_f_L): Likewise.
6685         (RUN_TEST_LOOP_fFF_11): Likewise.
6686         * math/gen-libm-test.pl (parse_args): Output four copies of
6687         expected results for each test.
6688
6689         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6690         (__ASSUME_UTIMES): Remove.
6691         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6692         (__ASSUME_UTIMES): Likewise.
6693
6694         * math/gen-auto-libm-tests.c: Update comment on output format.
6695         (output_for_one_input_case): Generate before-rounding and
6696         after-rounding information as conditions on output flags not
6697         floating-point format.
6698         * math/auto-libm-test-out: Regenerated.
6699         * math/gen-libm-test.pl (cond_value): New function.
6700         (or_cond_value): Use cond_value.
6701         (generate_testfile): Handle conditional exceptions.
6702
6703 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6704
6705         * math/libm-test.inc (max_valid_error): New variable.
6706         (init_max_error): Take new argument specifying whether function
6707         results are exactly determined.  Set max_valid_error and bound
6708         other variables for errors based on this argument.
6709         (set_max_error): Do not record results above max_valid_error.
6710         (check_float_internal): Only accept errors of up to 0.5ulps if
6711         also at most max_valid_error.
6712         (START): Take new argument EXACT and pass it to init_max_error.
6713         (acos_test): Update call to START.
6714         (acos_test_tonearest): Likewise.
6715         (acos_test_towardzero): Likewise.
6716         (acos_test_downward): Likewise.
6717         (acos_test_upward): Likewise.
6718         (acosh_test): Likewise.
6719         (asin_test): Likewise.
6720         (asin_test_tonearest): Likewise.
6721         (asin_test_towardzero): Likewise.
6722         (asin_test_downward): Likewise.
6723         (asin_test_upward): Likewise.
6724         (asinh_test): Likewise.
6725         (atan_test): Likewise.
6726         (atanh_test): Likewise.
6727         (atan2_test): Likewise.
6728         (cabs_test): Likewise.
6729         (cacos_test): Likewise.
6730         (cacosh_test): Likewise.
6731         (carg_test): Likewise.
6732         (casin_test): Likewise.
6733         (casinh_test): Likewise.
6734         (catan_test): Likewise.
6735         (catanh_test): Likewise.
6736         (cbrt_test): Likewise.
6737         (ccos_test): Likewise.
6738         (ccosh_test): Likewise.
6739         (ceil_test): Likewise.
6740         (cexp_test): Likewise.
6741         (cimag_test): Likewise.
6742         (clog_test): Likewise.
6743         (clog10_test): Likewise.
6744         (conj_test): Likewise.
6745         (copysign_test): Likewise.
6746         (cos_test): Likewise.
6747         (cos_test_tonearest): Likewise.
6748         (cos_test_towardzero): Likewise.
6749         (cos_test_downward): Likewise.
6750         (cos_test_upward): Likewise.
6751         (cosh_test): Likewise.
6752         (cosh_test_tonearest): Likewise.
6753         (cosh_test_towardzero): Likewise.
6754         (cosh_test_downward): Likewise.
6755         (cosh_test_upward): Likewise.
6756         (cpow_test): Likewise.
6757         (cproj_test): Likewise.
6758         (creal_test): Likewise.
6759         (csin_test): Likewise.
6760         (csinh_test): Likewise.
6761         (csqrt_test): Likewise.
6762         (ctan_test): Likewise.
6763         (ctan_test_tonearest): Likewise.
6764         (ctan_test_towardzero): Likewise.
6765         (ctan_test_downward): Likewise.
6766         (ctan_test_upward): Likewise.
6767         (ctanh_test): Likewise.
6768         (ctanh_test_tonearest): Likewise.
6769         (ctanh_test_towardzero): Likewise.
6770         (ctanh_test_downward): Likewise.
6771         (ctanh_test_upward): Likewise.
6772         (erf_test): Likewise.
6773         (erfc_test): Likewise.
6774         (exp_test): Likewise.
6775         (exp_test_tonearest): Likewise.
6776         (exp_test_towardzero): Likewise.
6777         (exp_test_downward): Likewise.
6778         (exp_test_upward): Likewise.
6779         (exp10_test): Likewise.
6780         (exp10_test_tonearest): Likewise.
6781         (exp10_test_towardzero): Likewise.
6782         (exp10_test_downward): Likewise.
6783         (exp10_test_upward): Likewise.
6784         (pow10_test): Likewise.
6785         (exp2_test): Likewise.
6786         (expm1_test): Likewise.
6787         (expm1_test_tonearest): Likewise.
6788         (expm1_test_towardzero): Likewise.
6789         (expm1_test_downward): Likewise.
6790         (expm1_test_upward): Likewise.
6791         (fabs_test): Likewise.
6792         (fdim_test): Likewise.
6793         (floor_test): Likewise.
6794         (fma_test): Likewise.
6795         (fma_test_towardzero): Likewise.
6796         (fma_test_downward): Likewise.
6797         (fma_test_upward): Likewise.
6798         (fmax_test): Likewise.
6799         (fmin_test): Likewise.
6800         (fmod_test): Likewise.
6801         (fpclassify_test): Likewise.
6802         (frexp_test): Likewise.
6803         (hypot_test): Likewise.
6804         (ilogb_test): Likewise.
6805         (isfinite_test): Likewise.
6806         (finite_test): Likewise.
6807         (isgreater_test): Likewise.
6808         (isgreaterequal_test): Likewise.
6809         (isinf_test): Likewise.
6810         (isless_test): Likewise.
6811         (islessequal_test): Likewise.
6812         (islessgreater_test): Likewise.
6813         (isnan_test): Likewise.
6814         (isnormal_test): Likewise.
6815         (issignaling_test): Likewise.
6816         (isunordered_test): Likewise.
6817         (j0_test): Likewise.
6818         (j1_test): Likewise.
6819         (jn_test): Likewise.
6820         (ldexp_test): Likewise.
6821         (lgamma_test): Likewise.
6822         (gamma_test): Likewise.
6823         (lrint_test): Likewise.
6824         (lrint_test_tonearest): Likewise.
6825         (lrint_test_towardzero): Likewise.
6826         (lrint_test_downward): Likewise.
6827         (lrint_test_upward): Likewise.
6828         (llrint_test): Likewise.
6829         (llrint_test_tonearest): Likewise.
6830         (llrint_test_towardzero): Likewise.
6831         (llrint_test_downward): Likewise.
6832         (llrint_test_upward): Likewise.
6833         (log_test): Likewise.
6834         (log10_test): Likewise.
6835         (log1p_test): Likewise.
6836         (log2_test): Likewise.
6837         (logb_test): Likewise.
6838         (logb_test_downward): Likewise.
6839         (lround_test): Likewise.
6840         (llround_test): Likewise.
6841         (modf_test): Likewise.
6842         (nearbyint_test): Likewise.
6843         (nextafter_test): Likewise.
6844         (nexttoward_test): Likewise.
6845         (pow_test): Likewise.
6846         (pow_test_tonearest): Likewise.
6847         (pow_test_towardzero): Likewise.
6848         (pow_test_downward): Likewise.
6849         (pow_test_upward): Likewise.
6850         (remainder_test): Likewise.
6851         (drem_test): Likewise.
6852         (remainder_test_tonearest): Likewise.
6853         (drem_test_tonearest): Likewise.
6854         (remainder_test_towardzero): Likewise.
6855         (drem_test_towardzero): Likewise.
6856         (remainder_test_downward): Likewise.
6857         (drem_test_downward): Likewise.
6858         (remainder_test_upward): Likewise.
6859         (drem_test_upward): Likewise.
6860         (remquo_test): Likewise.
6861         (rint_test): Likewise.
6862         (rint_test_tonearest): Likewise.
6863         (rint_test_towardzero): Likewise.
6864         (rint_test_downward): Likewise.
6865         (rint_test_upward): Likewise.
6866         (round_test): Likewise.
6867         (scalb_test): Likewise.
6868         (scalbn_test): Likewise.
6869         (scalbln_test): Likewise.
6870         (signbit_test): Likewise.
6871         (sin_test): Likewise.
6872         (sin_test_tonearest): Likewise.
6873         (sin_test_towardzero): Likewise.
6874         (sin_test_downward): Likewise.
6875         (sin_test_upward): Likewise.
6876         (sincos_test): Likewise.
6877         (sinh_test): Likewise.
6878         (sinh_test_tonearest): Likewise.
6879         (sinh_test_towardzero): Likewise.
6880         (sinh_test_downward): Likewise.
6881         (sinh_test_upward): Likewise.
6882         (sqrt_test): Likewise.
6883         (sqrt_test_tonearest): Likewise.
6884         (sqrt_test_towardzero): Likewise.
6885         (sqrt_test_downward): Likewise.
6886         (sqrt_test_upward): Likewise.
6887         (tan_test): Likewise.
6888         (tan_test_tonearest): Likewise.
6889         (tan_test_towardzero): Likewise.
6890         (tan_test_downward): Likewise.
6891         (tan_test_upward): Likewise.
6892         (tanh_test): Likewise.
6893         (tgamma_test): Likewise.
6894         (trunc_test): Likewise.
6895         (y0_test): Likewise.
6896         (y1_test): Likewise.
6897         (yn_test): Likewise.
6898         (significand_test): Likewise.
6899
6900         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6901         individual tests in comment.
6902         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6903         (prev_max_error): New variable.
6904         (prev_real_max_error): Likewise.
6905         (prev_imag_max_error): Likewise.
6906         (compare_ulp_data): Don't refer to test names in comment.
6907         (find_test_ulps): Remove function.
6908         (find_function_ulps): Likewise.
6909         (find_complex_function_ulps): Likewise.
6910         (init_max_error): Take function name as argument.  Look up ulps
6911         for that function.
6912         (print_ulps): Remove function.
6913         (print_max_error): Use prev_max_error instead of calling
6914         find_function_ulps.
6915         (print_complex_max_error): Use prev_real_max_error and
6916         prev_imag_max_error instead of calling find_complex_function_ulps.
6917         (check_float_internal): Take max_ulp parameter instead of calling
6918         find_test_ulps.  Don't call print_ulps.
6919         (check_float): Update call to check_float_internal.
6920         (check_complex): Update calls to check_float_internal.
6921         (START): Pass argument to init_max_error.
6922         * math/gen-libm-test.pl (%results): Don't include "kind"
6923         information.
6924         (parse_ulps): Don't handle ulps of individual tests.
6925         (print_ulps_file): Likewise.
6926         (output_ulps): Likewise.
6927         * math/README.libm-test: Update.
6928         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6929         individual tests.
6930         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6931         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6932         * sysdeps/arm/libm-test-ulps: Likewise.
6933         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6934         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6935         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6936         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6937         * sysdeps/microblaze/libm-test-ulps: Likewise.
6938         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6939         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6940         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6941         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6942         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6943         * sysdeps/sh/libm-test-ulps: Likewise.
6944         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6945         * sysdeps/tile/libm-test-ulps: Likewise.
6946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6947
6948 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6949
6950         * math/libm-test.inc (print_complex_max_error): Check separately
6951         whether real and imaginary errors are within allowed range and
6952         pass 0 to print_complex_function_ulps instead of value within
6953         allowed range.
6954
6955 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6956
6957         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6958         formatting.
6959         (get_handles_fopen): Likewise.
6960         (do_write_test): Likewise.
6961
6962         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6963
6964         * libio/fileops.c (do_ftell): Use cached offset when
6965         available.
6966         * libio/iofwide.c (do_ftell_wide): Likewise.
6967         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6968         _IO_file_attach.
6969         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6970
6971         [BZ #16532]
6972         * libio/libioP.h (get_file_offset): New function.
6973         * libio/fileops.c (get_file_offset): Likewise.
6974         (do_ftell): Likewise.
6975         (_IO_new_file_seekoff): Split out ftell logic.
6976         * libio/wfileops.c (do_ftell_wide): Likewise.
6977         (_IO_wfile_seekoff): Split out ftell logic.
6978         * libio/tst-ftell-active-handler.c: New test case.
6979         * libio/Makefile (tests): Add it.
6980
6981 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6982
6983         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6984         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6985
6986 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6987
6988         [BZ #16639]
6989         * nscd/connections.c (nscd_init): Call do_exit.
6990         (start_threads): Call do_exit and notify_parent.
6991         (begin_drop_privileges): Call do_exit.
6992         (finish_drop_privileges): Likewise.
6993         * nscd/selinux.c (preserve_capabilities): Likewise.
6994         (install_real_capabilities): Likewise.
6995         (nscd_selinux_enabled): Likewise.
6996         (avc_create_thread): Likewise.
6997         (avc_alloc_lock): Likewise.
6998         (nscd_avc_init): Likewise.
6999         * nscd/nscd.c (parent_fd): New static variable.
7000         (main): Create a pipe between parent and child processes.
7001         Skip closing parent_fd.
7002         (monitor_child): New function.
7003         (do_exit): Likewise.
7004         (notify_parent): Likewise.
7005         * nscd/nscd.h (notify_parent): Likewise.
7006         (do_exit): Likewise.
7007
7008 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
7009
7010         * malloc/malloc.c (__libc_calloc): Revert last change.
7011
7012 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7013
7014         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7015
7016 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7017
7018         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
7019         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
7020         implementation.
7021         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7022         (__libc_ifunc_impl_list): Likewise.
7023         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
7024         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
7025         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
7026         * string/strrchr.c: Define STRRCHR.
7027
7028 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
7029
7030         * benchtest/bench-strtok.c (simple_strtok): Delete.
7031         (strtok_string): Use as benchmark.
7032         * string/strtok (STRTOK): New macro.
7033
7034 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
7035
7036         * manual/threads.texi: Add header and standard comments to all
7037         functions.
7038
7039         * elf/dl-lookup.c (check_match): New function.
7040         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
7041         (do_lookup_x): Remove nested function check_match. Use non-nested
7042         function check_match.
7043
7044 2014-02-28  Roland McGrath  <roland@hack.frob.com>
7045
7046         * csu/Makefile (generated, before-compile): Use += rather than =.
7047         * catgets/Makefile (generated, generated-dirs): Likewise.
7048         * debug/Makefile (generated): Likewise.
7049         * dlfcn/Makefile (generated): Likewise.
7050         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
7051         * iconvdata/Makefile (before-compile, generated): Likewise.
7052         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
7053         * libio/Makefile (generated): Likewise.
7054         * malloc/Makefile (generated): Likewise.
7055         * manual/Makefile (generated, generated-dirs): Likewise.
7056         * misc/Makefile (generated): Likewise.
7057         * posix/Makefile (generated): Likewise.
7058         * resolv/Makefile (generated): Likewise.
7059         * sunrpc/Makefile (generated, generated-dirs): Likewise.
7060         * timezone/Makefile (generated, generated-dirs): Likewise.
7061
7062         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
7063
7064 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7065
7066         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
7067         power8 implementation.
7068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
7069         file: POWER8 llround ifunc implementation.
7070         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
7071         (__lllround): Add POWER8 implementation.
7072         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
7073         POWER8 llround implementation.
7074
7075         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
7076         power8 implementation.
7077         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
7078         file: POWER8 llrint ifunc implementation.
7079         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
7080         Add POWER8 implementation.
7081         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
7082         POWER8 llrint implementation.
7083
7084         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
7085         power8 implementation.
7086         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
7087         file: POWER8 finite ifunc implementation.
7088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
7089         Add POWER8 implementation.
7090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
7091         Likewise.
7092         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
7093         POWER8 finite implementation.
7094         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
7095
7096         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
7097         power8 implementation.
7098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
7099         file: POWER8 isinf ifunc implementation.
7100         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
7101         POWER8 implementation.
7102         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
7103         Likewise.
7104         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
7105         isinf implementation.
7106         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
7107
7108         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
7109         (INIT_ARCH): Add hwcap2 initialization.
7110         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
7111         power8 implementation.
7112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
7113         file: POWER8 isnan ifunc implementation.
7114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
7115         POWER8 implementation.
7116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
7117         Likewise.
7118         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
7119         isnan implementation.
7120         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
7121
7122 2014-02-27  Joey Ye  <joey.ye@arm.com>
7123
7124         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
7125         (_FP_NANFRAC_Q): Set to zero.
7126
7127 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7128
7129         [BZ #16623]
7130         * math/auto-libm-test-in: New test inputs.
7131         * math/auto-libm-test-out: Regenerate.
7132         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
7133         and DA.
7134         (__cos): Likewise.
7135         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
7136
7137 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
7138
7139         * scripts/evaluate-test.sh: Take new argument indicating whether
7140         failure is expected.
7141         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
7142         indicating whether failure is expected.
7143         * conform/Makefile (test-xfail-run-conformtest): New variable.
7144         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
7145         level.
7146         * posix/Makefile (test-xfail-annexc): New variable.
7147         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
7148
7149 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
7150
7151         * argp/Makefile: Include Makeconfig immediately after defining
7152         subdir.
7153         * assert/Makefile: Likewise.
7154         * benchtests/Makefile: Likewise.
7155         * catgets/Makefile: Likewise.
7156         * conform/Makefile: Likewise.
7157         * crypt/Makefile: Likewise.
7158         * csu/Makefile: Likewise.
7159         (all): Remove target.
7160         * ctype/Makefile: Include Makeconfig immediately after defining
7161         subdir.
7162         * debug/Makefile: Likewise.
7163         * dirent/Makefile: Likewise.
7164         * dlfcn/Makefile: Likewise.
7165         * gmon/Makefile: Likewise.
7166         * gnulib/Makefile: Likewise.
7167         * grp/Makefile: Likewise.
7168         * gshadow/Makefile: Likewise.
7169         * hesiod/Makefile: Likewise.
7170         * hurd/Makefile: Likewise.
7171         (all): Remove target.
7172         * iconvdata/Makefile: Include Makeconfig immediately after
7173         defining subdir.
7174         * inet/Makefile: Likewise.
7175         * intl/Makefile: Likewise.
7176         * io/Makefile: Likewise.
7177         * libio/Makefile: Likewise.
7178         (all): Remove target.
7179         * locale/Makefile: Include Makeconfig immediately after defining
7180         subdir.
7181         * login/Makefile: Likewise.
7182         * mach/Makefile: Likewise.
7183         (all): Remove target.
7184         * malloc/Makefile: Include Makeconfig immediately after defining
7185         subdir.
7186         (all): Remove target.
7187         * manual/Makefile: Include Makeconfig immediately after defining
7188         subdir.
7189         * math/Makefile: Likewise.
7190         * misc/Makefile: Likewise.
7191         * nis/Makefile: Likewise.
7192         * nss/Makefile: Likewise.
7193         * po/Makefile: Likewise.
7194         (all): Remove target.
7195         * posix/Makefile: Include Makeconfig immediately after defining
7196         subdir.
7197         * pwd/Makefile: Likewise.
7198         * resolv/Makefile: Likewise.
7199         * resource/Makefile: Likewise.
7200         * rt/Makefile: Likewise.
7201         * setjmp/Makefile: Likewise.
7202         * shadow/Makefile: Likewise.
7203         * signal/Makefile: Likewise.
7204         * socket/Makefile: Likewise.
7205         * soft-fp/Makefile: Likewise.
7206         * stdio-common/Makefile: Likewise.
7207         * stdlib/Makefile: Likewise.
7208         * streams/Makefile: Likewise.
7209         * string/Makefile: Likewise.
7210         * sunrpc/Makefile: Likewise.
7211         (all): Remove target.
7212         * sysvipc/Makefile: Include Makeconfig immediately after defining
7213         subdir.
7214         * termios/Makefile: Likewise.
7215         * time/Makefile: Likewise.
7216         * timezone/Makefile: Likewise.
7217         (all): Remove target.
7218         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7219         subdir.
7220         * wctype/Makefile: Likewise.
7221
7222 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7223
7224         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7225         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7226         (libc_feholdexcept_setround_mips): Ditto.
7227         (libc_feholdsetround): New.
7228         (libc_feholdsetroundf): New.
7229         (libc_feholdsetroundl): New.
7230         (libc_feupdateenv_test_mips): New.
7231         (libc_feupdateenv_test): New.
7232         (libc_feupdateenv_testf): New.
7233         (libc_feupdateenv_testl): New.
7234         (libc_feresetround): New.
7235         (libc_feresetroundf): New.
7236         (libc_feresetroundl): New.
7237         (libc_fetestexcept_mips): New.
7238         (libc_fetestexcept): New.
7239         (libc_fetestexceptf): New.
7240         (libc_fetestexceptl): New.
7241         (HAVE_RM_CTX): New.
7242         (libc_feholdexcept_setround_mips_ctx): New.
7243         (libc_feholdexcept_setround_ctx): New.
7244         (libc_feholdexcept_setroundf_ctx): New.
7245         (libc_feholdexcept_setroundl_ctx): New.
7246         (libc_fesetenv_mips_ctx): New.
7247         (libc_fesetenv_ctx): New.
7248         (libc_fesetenv_ctxf): New.
7249         (libc_fesetenv_ctxl): New.
7250         (libc_feupdateenv_mips_ctx): New.
7251         (libc_feupdateenv_ctx): New.
7252         (libc_feupdateenvf_ctx): New.
7253         (libc_feupdateenvl_ctx): New.
7254         (libc_feholdsetround_mips_ctx): New.
7255         (libc_feholdsetround_ctx): New.
7256         (libc_feholdsetroundf_ctx): New.
7257         (libc_feholdsetroundl_ctx): New.
7258         (libc_feresetround_mips_ctx): New.
7259         (libc_feresetround_ctx): New.
7260         (libc_feresetroundf_ctx): New.
7261         (libc_feresetroundl_ctx): New.
7262
7263 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7264
7265         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7266
7267         * manual/ipc.texi: New file.
7268         * manual/Makefile (chapters): Add ipc.
7269         * manual/job.texi: Add "Inter-Process Communication" to next.
7270         * manual/process.texi: Add "Inter-Process Communication" to prev.
7271
7272 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7273
7274         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7275
7276 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7277
7278         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7279
7280         * manual/arith.texi: Fix spaces after sentences.
7281         * manual/charset.texi: Likewise.
7282         * manual/errno.texi: Likewise.
7283         * manual/install.texi: Likewise.
7284         * manual/llio.texi: Likewise.
7285         * manual/locale.texi: Likewise.
7286         * manual/maint.texi: Likewise.
7287         * manual/math.texi: Likewise.
7288         * manual/memory.texi: Likewise.
7289         * manual/message.texi: Likewise.
7290         * manual/probes.texi: Likewise.
7291         * manual/resource.texi: Likewise.
7292         * manual/signal.texi: Likewise.
7293         * manual/socket.texi: Likewise.
7294         * manual/stdio.texi: Likewise.
7295         * manual/string.texi: Likewise.
7296         * manual/time.texi: Likewise.
7297         * manual/users.texi: Likewise.
7298
7299 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7300
7301         [BZ #16632]
7302         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7303         _DEFAULT_SOURCE is defined.
7304
7305 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7306             Carlos O'Donell  <carlos@redhat.com>
7307
7308         [BZ #16613]
7309         * elf/dl-tls.c (_dl_count_modids): New function.
7310         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7311         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7312         audit library and increment generation counter.
7313         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7314         * elf/tst-audit9.c: New file.
7315         * elf/tst-auditmod9a.c: New file.
7316         * elf/tst-auditmod9b.c: New file.
7317         * elf/Makefile: Add rules to build and run tst-audit9.
7318
7319 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7320
7321         [BZ #15347]
7322         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7323
7324 2014-02-25  Will Newton  <will.newton@linaro.org>
7325
7326         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7327         (__longjmp): Restore sp and lr before restoring callee
7328         saved registers.  Add longjmp and longjmp_target
7329         SystemTap probe point.
7330         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7331         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7332         Define to zero to match jmpbuf layout.
7333         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7334         (__sigsetjmp): Save sp and lr before saving callee
7335         saved registers.  Add setjmp SystemTap probe point.
7336
7337 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7338
7339         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7340
7341 2014-02-24  Andreas Schwab  <schwab@suse.de>
7342
7343         [BZ #15804]
7344         * elf/pldd.c (wait_for_ptrace_stop): New function.
7345         (main): Call it after attaching.
7346
7347 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7348
7349         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7350         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7351         Versions files is now verboten.
7352         * hurd/Versions (libc: GLIBC_2.0):
7353         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7354         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7355         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7356         * mach/Versions: Likewise.
7357
7358         * csu/Versions: Remove unused %include.
7359         * resolv/Versions: Likewise.
7360
7361 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7362
7363         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7364         ($(objpfx)check-local-headers.out): Likewise.
7365         ($(objpfx)begin-end-check.out): Likewise.
7366         * Makerules (check-abi-%.out): Likewise.
7367         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7368         ($(objpfx)test2.cat): Likewise.
7369         ($(objpfx)de/libc.cat): Likewise.
7370         ($(objpfx)test-gencat.out): Likewise.
7371         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7372         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7373         ($(objpfx)noload-mem): Likewise.
7374         ($(objpfx)tst-pathopt.out): Likewise.
7375         ($(objpfx)tst-rtld-load-self.out): Likewise.
7376         ($(objpfx)tst-array1-cmp.out): Likewise.
7377         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7378         ($(objpfx)tst-array2-cmp.out): Likewise.
7379         ($(objpfx)tst-array3-cmp.out): Likewise.
7380         ($(objpfx)tst-array4-cmp.out): Likewise.
7381         ($(objpfx)tst-array5-cmp.out): Likewise.
7382         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7383         ($(objpfx)check-textrel.out): Likewise.
7384         ($(objpfx)check-execstack.out): Likewise.
7385         ($(objpfx)check-localplt.out): Likewise.
7386         ($(objpfx)order2-cmp.out): Likewise.
7387         ($(objpfx)tst-leaks1-mem): Likewise.
7388         ($(objpfx)tst-leaks1-static-mem): Likewise.
7389         ($(objpfx)tst-initorder-cmp.out): Likewise.
7390         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7391         ($(objpfx)tst-unused-dep.out): Likewise.
7392         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7393         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7394         * iconv/Makefile (test-iconvconfig): Likewise.
7395         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7396         ($(objpfx)iconv-test.out): Likewise.
7397         ($(objpfx)tst-tables.out): Likewise.
7398         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7399         ($(objpfx)tst-gettext.out): Likewise.
7400         ($(objpfx)tst-translit.out): Likewise.
7401         ($(objpfx)tst-gettext2.out): Likewise.
7402         ($(objpfx)tst-gettext4.out): Likewise.
7403         ($(objpfx)tst-gettext6.out): Likewise.
7404         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7405         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7406         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7407         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7408         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7409         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7410         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7411         ($(objpfx)wordexp-tst.out): Likewise.
7412         ($(objpfx)annexc.out): Likewise.
7413         ($(objpfx)tst-fnmatch-mem): Likewise.
7414         ($(objpfx)bug-regex2-mem): Likewise.
7415         ($(objpfx)bug-regex14-mem): Likewise.
7416         ($(objpfx)bug-regex21-mem): Likewise.
7417         ($(objpfx)bug-regex31-mem): Likewise.
7418         ($(objpfx)tst-vfork3-mem): Likewise.
7419         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7420         ($(objpfx)tst-pcre-mem): Likewise.
7421         ($(objpfx)tst-boost-mem): Likewise.
7422         ($(objpfx)tst-getconf.out): Likewise.
7423         ($(objpfx)bug-ga2-mem): Likewise.
7424         ($(objpfx)bug-glob2-mem): Likewise.
7425         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7426         ($(objpfx)mtrace-tst-leaks2): Likewise.
7427         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7428         ($(objpfx)tst-printf.out): Likewise.
7429         ($(objpfx)tst-setvbuf1.out): Likewise.
7430         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7431         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7432         ($(objpfx)tst-fmtmsg.out): Likewise.
7433         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7434         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7435
7436         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7437         * bits/sigaction.h [__USE_MISC]: Likewise.
7438         * bits/waitstatus.h: Update #endif comments.
7439         * ctype/ctype.h: Likewise.
7440         * dirent/dirent.h: Likewise.
7441         [__USE_MISC]: Remove redundant conditionals.
7442         * grp/grp.h: Update #endif comments.
7443         [__USE_GNU]: Remove redundant conditionals.
7444         [__USE_MISC]: Likewise.
7445         * inet/netinet/in.h [__USE_GNU]: Likewise.
7446         * io/sys/stat.h [__USE_MISC]: Likewise.
7447         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7448         * libio/bits/stdio.h: Update #endif comments.
7449         [__USE_MISC]: Remove redundant conditionals.
7450         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7451         * libio/stdio.h: Update #endif comments.
7452         [__USE_MISC]: Remove redundant conditionals.
7453         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7454         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7455         * math/math.h: Update #else and #endif comments.
7456         [__USE_MISC]: Remove redundant conditionals.
7457         * misc/sys/uio.h: Update #endif comments.
7458         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7459         * posix/glob.h [__USE_MISC]: Likewise.
7460         * posix/sys/types.h: Update #endif comments.
7461         [__USE_MISC]: Remove redundant conditionals.
7462         * posix/sys/wait.h: Update #endif comments.
7463         [__USE_MISC]: Remove redundant conditionals.
7464         * posix/unistd.h: Update #endif comments.
7465         [__USE_MISC]: Remove redundant conditionals.
7466         * pwd/pwd.h [__USE_GNU]: Likewise.
7467         [__USE_MISC]: Likewise.
7468         * resolv/netdb.h [__USE_GNU]: Likewise.
7469         * signal/signal.h: Update #endif comments.
7470         [__USE_MISC]: Remove redundant conditionals.
7471         * stdlib/stdlib.h: Update #else and #endif comments.
7472         [__USE_MISC]: Remove redundant conditionals.
7473         [__USE_GNU]: Likewise.
7474         * string/bits/string2.h [__USE_MISC]: Likewise.
7475         * string/string.h: Update #endif comments.
7476         [__USE_MISC]: Remove redundant conditionals.
7477         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7478         Likewise.
7479         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7480         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7481         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7482         Likewise.
7483         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7484         Likewise.
7485         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7486         comments.
7487         [__USE_MISC]: Remove redundant conditionals.
7488         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7489         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7490         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7491         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7492         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7493         Likewise.
7494         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7495         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7496         Likewise.
7497         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7498         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7499         Likewise.
7500         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7501         Likewise.
7502         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7503         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7504         Likewise.
7505         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7506         Likewise.
7507         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7508         * sysdeps/x86/bits/string.h: Update #endif comments.
7509         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7510         conditionals.
7511         * time/sys/time.h: Update #endif comments.
7512         * time/time.h: Likewise.
7513         [__USE_MISC]: Remove redundant conditionals.
7514
7515 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7516
7517         [BZ #16600]
7518         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7519
7520 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7521
7522         * Versions.def (librt): Add GLIBC_2.17.
7523
7524 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7525
7526         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7527         synonym for _SYS_AUXV_H to allow direct inclusion.
7528         * sysdeps/sparc/bits/hwcap.h: Likewise.
7529         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7530         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7531         * sysdeps/sparc/sysdep.h: Likewise.
7532
7533 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7534
7535         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
7536
7537 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7538
7539         * benchtests/bench-strrchr.c: Print length instead of position.
7540
7541 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
7542
7543         [BZ #16611]
7544         * sysdeps/unix/sysv/linux/kernel-features.h
7545         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
7546         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
7547         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
7548         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
7549         Likewise.
7550         [__i386__ || __powerpc__ || __sh__ || __sparc__]
7551         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7552         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
7553         (__ASSUME_SENDMMSG): Define instead of using previous
7554         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
7555         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7556         (__ASSUME_SENDMMSG_SYSCALL): Define.
7557         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7558         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
7559         Likewise.
7560         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7561         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7562         Likewise.
7563         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7564         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7565         Likewise.
7566         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
7567         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7568         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7569         [__ASSUME_SENDMMSG]: Change conditionals to
7570         [__ASSUME_SENDMMSG_SOCKETCALL].
7571         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7572         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
7573         Define.
7574         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7575         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7576         Likewise.
7577         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7578         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7579         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7580         [!__ASSUME_SENDMMSG]: Change conditional to
7581         [!__ASSUME_SENDMMSG_SOCKETCALL].
7582         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7583         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7584         Define.
7585
7586         [BZ #16610]
7587         * sysdeps/unix/sysv/linux/kernel-features.h
7588         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7589         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7590         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7591         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7592         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7593         [__i386__ || __sparc__]
7594         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7595         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7596         (__ASSUME_RECVMMSG): Define instead of using previous
7597         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7598         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7599         (__ASSUME_RECVMMSG_SYSCALL): Define.
7600         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7601         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7602         Likewise.
7603         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7604         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7605         Likewise.
7606         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7607         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7608         Likewise.
7609         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7610         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7611         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7612         [__ASSUME_RECVMMSG]: Change condition to
7613         [__ASSUME_RECVMMSG_SOCKETCALL].
7614         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7615         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7616         Define.
7617         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7618         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7619         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7620         Likewise.
7621         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7622         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7623         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7624         [!__ASSUME_RECVMMSG]: Change condition to
7625         [!__ASSUME_RECVMMSG_SOCKETCALL].
7626         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7627         (__ASSUME_RECVMMSG_SYSCALL): Define.
7628
7629         [BZ #16609]
7630         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7631         __powerpc__ || __s390__ || __sh__ || __sparc__]
7632         (__ASSUME_SOCKETCALL): Define.
7633         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7634         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7635         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7636         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7637         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7638         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7639         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7640         (__ASSUME_ACCEPT4): Define instead of using previous
7641         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7642         __powerpc__ || __sparc__ || __s390__)] condition.
7643         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7644         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7645         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7646         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7647         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7648         [!__ASSUME_ACCEPT4]: Change condition to
7649         [!__ASSUME_ACCEPT4_SOCKETCALL].
7650         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7651         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7652         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7653         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7654         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7655         __ASSUME_ACCEPT4_SYSCALL.
7656         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7657         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7658         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7659         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7660         __ASSUME_ACCEPT4_SYSCALL.
7661         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7662         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7663         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7664         [__ASSUME_ACCEPT4]: Change condition to
7665         [__ASSUME_ACCEPT4_SOCKETCALL].
7666         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7667         (__ASSUME_SOCKETCALL): Define.
7668         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7669         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7670         (__ASSUME_SOCKETCALL): Define.
7671         (__ASSUME_ACCEPT4): Remove.
7672         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7673         Define.
7674         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7675         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7676         Likewise.
7677         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7678         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7679
7680         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7681         macro.
7682         (HWCAP_ARM_LPAE): Likewise.
7683         (HWCAP_ARM_EVTSTRM): Likewise.
7684         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7685         Add vpfd32, lpae and evtstrm.
7686         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7687         Increase to 22.
7688
7689 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7690
7691         * math/auto-libm-test-in: Add tests of clog10.
7692         * math/auto-libm-test-out: Regenerated.
7693         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7694         * sysdeps/i386/fpu/libm-test-ulps: Update.
7695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7696
7697 2014-02-18  Andreas Schwab  <schwab@suse.de>
7698
7699         [BZ #16574]
7700         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7701         Store non-zero if the second buffer was newly allocated.
7702         (send_dg): Likewise.
7703         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7704         to send_vc and send_dg.
7705         (res_nsend): Pass NULL for ansp2_malloced.
7706         * resolv/res_query.c (__libc_res_nquery): Add parameter
7707         answerp2_malloced and pass it down to __libc_res_nsend.
7708         (res_nquery): Pass additional NULL to __libc_res_nquery.
7709         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7710         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7711         second answer buffer if answerp2_malloced was set.
7712         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7713         (__libc_res_nquerydomain): Add parameter
7714         answerp2_malloced and pass it down to __libc_res_nquery.
7715         (res_nquerydomain): Pass additional NULL to
7716         __libc_res_nquerydomain.
7717         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7718         additional NULL to __libc_res_nsend and __libc_res_nquery.
7719         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7720         additional NULL to __libc_res_nsearch.
7721         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7722         parameter of __libc_res_nsearch to check for separately allocated
7723         second buffer.
7724         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7725         __libc_res_nquery.
7726         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7727         additional NULL to __libc_res_nquery.
7728         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7729         __libc_res_nsearch.
7730         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7731         * include/resolv.h: Update prototypes of __libc_res_nquery,
7732         __libc_res_nsearch, __libc_res_nsend.
7733
7734 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7735
7736         * math/auto-libm-test-in: Add tests of fma.
7737         * math/auto-libm-test-out: Regenerated.
7738         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7739         (fma_towardzero_test_data): Likewise.
7740         (fma_downward_test_data): Likewise.
7741         (fma_upward_test_data): Likewise.
7742         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7743         mpc_mode.
7744         (rounding_modes): Add values for new field.
7745         (func_calc_method): Add value mpfr_fff_f.
7746         (func_calc_desc): Add mpfr_fff_f union field.
7747         (test_function): Add field exact_args.
7748         (FUNC): Add macro argument EXACT_ARGS.
7749         (FUNC_mpfr_f_f): Update call to FUNC.
7750         (FUNC_mpfr_f_f): Likewise.
7751         (FUNC_mpfr_ff_f): Likewise.
7752         (FUNC_mpfr_if_f): Likewise.
7753         (FUNC_mpc_c_f): Likewise.
7754         (FUNC_mpc_c_c): Likewise.
7755         (test_functions): Add fma.  Update calls to FUNC.
7756         (handle_input_arg): Add argument exact_args.
7757         (add_test): Update call to handle_input_arg.
7758         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7759         (output_for_one_input_case): Update call to calc_generic_results.
7760         Recalculate exact zero results in each rounding mode.
7761
7762         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7763         non-negative before setting low bit.
7764         * math/auto-libm-test-in: Mark one asin test possibly having
7765         spurious underflow.
7766         * math/auto-libm-test-out: Regenerated.
7767         * sysdeps/i386/fpu/libm-test-ulps: Update.
7768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7769
7770 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7771
7772         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7773         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7774         ports/sysdeps/unix/sysv/linux/microblaze.
7775         * README: Add missing listing for microblaze*-*-linux-gnu.
7776
7777 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7778
7779         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7780         * sysdeps/unix/sysv/linux/ia64: Move directory from
7781         ports/sysdeps/unix/sysv/linux/ia64.
7782         * README: Update listing for ia64-*-linux-gnu.
7783
7784 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7785             Joseph Myers  <joseph@codesourcery.com>
7786
7787         * Makeconfig (test-name): New variable.
7788         (evaluate-test): Likewise.
7789         * Makerules (do-test-clean): Remove .test-result files.
7790         (common-mostlyclean): Likewise.
7791         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7792         * scripts/evaluate-test.sh: New file.
7793
7794 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7795
7796         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7797         separate $(objpfx)tst-fopenloc-cmp.out and
7798         $(objpfx)tst-fopenloc-mem.out targets.
7799         (tests): Update dependencies.
7800         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7801         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7802         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7803         (tst-rxspencer-no-utf8-ARGS): New variable.
7804         (tst-rxspencer-no-utf8-ENV): Likewise.
7805         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7806         instead of $(objpfx)tst-rxspencer-mem.
7807         ($(objpfx)tst-rxspencer-mem): Change target to
7808         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7809         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7810         * posix/tst-rxspencer-no-utf8.c: New file.
7811
7812         * elf/Makefile ($(objpfx)order.out): Remove rule.
7813         [$(run-built-tests) = yes] (tests): Depend on
7814         $(objpfx)order-cmp.out.
7815         ($(objpfx)order-cmp.out): New rule.
7816         [$(run-built-tests) = yes] (tests): Depend on
7817         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7818         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7819         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7820         $(objpfx)tst-array5-static-cmp.out.
7821         ($(objpfx)tst-array1.out): Remove rule.
7822         ($(objpfx)tst-array1-cmp.out): New rule.
7823         ($(objpfx)tst-array1-static.out): Remove rule.
7824         ($(objpfx)tst-array1-static-cmp.out): New rule.
7825         ($(objpfx)tst-array2.out): Remove rule.
7826         ($(objpfx)tst-array2-cmp.out): New rule.
7827         ($(objpfx)tst-array3.out): Remove rule.
7828         ($(objpfx)tst-array3-cmp.out): New rule.
7829         ($(objpfx)tst-array4.out): Remove rule.
7830         ($(objpfx)tst-array4-cmp.out): New rule.
7831         ($(objpfx)tst-array5.out): Remove rule.
7832         ($(objpfx)tst-array5-cmp.out): New rule.
7833         ($(objpfx)tst-array5-static.out): Remove rule.
7834         ($(objpfx)tst-array5-static-cmp.out): New rule.
7835         [$(run-built-tests) = yes] (tests): Depend on
7836         $(objpfx)order2-cmp.out.
7837         ($(objpfx)order2.out): Remove rule.
7838         ($(objpfx)order2-cmp.out): New rule.
7839         ($(objpfx)tst-initorder.out): Remove rule.
7840         [$(run-built-tests) = yes] (tests): Depend on
7841         $(objpfx)tst-initorder-cmp.out.
7842         ($(objpfx)tst-initorder-cmp.out): New rule.
7843         ($(objpfx)tst-initorder2.out): Remove rule.
7844         [$(run-built-tests) = yes] (tests): Depend on
7845         $(objpfx)tst-initorder2-cmp.out.
7846         ($(objpfx)tst-initorder2-cmp.out): New rule.
7847         [$(run-built-tests) = yes] (tests): Depend on
7848         $(objpfx)tst-unused-dep-cmp.out.
7849         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7850         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7851         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7852         on $(objpfx)tst-setvbuf1-cmp.out.
7853         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7854         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7855         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7856         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7857         ($(objpfx)tst-svc.out): Remove rule.
7858         ($(objpfx)tst-svc-cmp.out): New rule.
7859
7860 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7861
7862         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7863         * ctype/ctype.h [__USE_MISC]: Likewise.
7864         * dirent/dirent.h [__USE_MISC]: Likewise.
7865         * grp/grp.h [__USE_MISC]: Likewise.
7866         * io/fcntl.h [__USE_MISC]: Likewise.
7867         * io/sys/stat.h [__USE_MISC]: Likewise.
7868         * libio/stdio.h [__USE_MISC]: Likewise.
7869         * posix/unistd.h [__USE_MISC]: Likewise.
7870         * pwd/pwd.h [__USE_MISC]: Likewise.
7871         * stdlib.h [__USE_MISC]: Likewise.
7872         * string/bits/string2.h [__USE_MISC]: Likewise.
7873         * string/string.h [__USE_MISC]: Likewise.
7874         * time/time.h [__USE_MISC]: Likewise.
7875
7876 2014-02-13  Andreas Schwab  <schwab@suse.de>
7877
7878         [BZ #16574]
7879         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7880         second answer buffer if it was separately allocated.
7881
7882 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7883
7884         * sysdeps/mips/math-tests.h: Include <features.h>.
7885         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7886         (ROUNDING_TESTS_long_double): Do not define.
7887         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7888         (EXCEPTION_TESTS_long_double): Likewise.
7889         * sysdeps/mips/mips64/libm-test-ulps: Update.
7890
7891         * include/features.h (__USE_BSD): Remove macro definitions.
7892         (__USE_SVID): Likewise.
7893         (_BSD_SOURCE): Likewise.
7894         (_SVID_SOURCE): Likewise.
7895         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7896         from definition of _DEFAULT_SOURCE.
7897         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7898         [_DEFAULT_SOURCE].
7899         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7900         * bits/mman.h [__USE_BSD]: Likewise.
7901         * bits/termios.h [__USE_BSD]: Likewise.
7902         * bits/waitstatus.h [__USE_BSD]: Likewise.
7903         * ctype/ctype.h [__USE_SVID]: Likewise.
7904         * dirent/dirent.h [__USE_BSD]: Likewise.
7905         * grp/grp.h [__USE_SVID]: Likewise.
7906         [__USE_BSD]: Likewise.
7907         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7908         * io/fcntl.h [__USE_BSD]: Likewise.
7909         * io/ftw.h [__USE_BSD]: Likewise.
7910         * io/sys/stat.h [__USE_BSD]: Likewise.
7911         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7912         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7913         * libio/stdio.h [__USE_SVID]: Likewise.
7914         [__USE_BSD]: Likewise.
7915         * math/math.h [__USE_SVID]: Likewise.
7916         [__USE_BSD]: Likewise.
7917         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7918         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7919         * misc/search.h [__USE_SVID]: Likewise.
7920         * misc/sys/mman.h [__USE_BSD]: Likewise.
7921         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7922         * misc/sys/uio.h [__USE_BSD]: Likewise.
7923         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7924         * posix/glob.h [__USE_BSD]: Likewise.
7925         * posix/regex.h [__USE_BSD]: Likewise.
7926         * posix/sys/types.h [__USE_BSD]: Likewise.
7927         [__USE_SVID]: Likewise.
7928         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7929         * posix/sys/wait.h [__USE_BSD]: Likewise.
7930         [__USE_SVID]: Likewise.
7931         * posix/unistd.h [__USE_BSD]: Likewise.
7932         [__USE_SVID]: Likewise.
7933         * pwd/pwd.h [__USE_SVID]: Likewise.
7934         * resolv/netdb.h [__USE_BSD]: Likewise.
7935         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7936         * signal/signal.h [__USE_BSD]: Likewise.
7937         [__USE_SVID]: Likewise.
7938         * socket/sys/socket.h [__USE_BSD]: Likewise.
7939         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7940         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7941         [__USE_SVID]: Likewise.
7942         * string/bits/string2.h [__USE_BSD]: Likewise.
7943         [__USE_SVID]: Likewise.
7944         * string/bits/string3.h [__USE_BSD]: Likewise.
7945         * string/endian.h [__USE_BSD]: Likewise.
7946         * string/string.h [__USE_SVID]: Likewise.
7947         [__USE_BSD]: Likewise.
7948         * string/strings.h [__USE_BSD]: Likewise.
7949         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7950         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7951         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7952         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7953         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7954         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7955         Likewise.
7956         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7957         Likewise.
7958         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7959         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7960         Likewise.
7961         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7962         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7963         Likewise.
7964         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7965         Likewise.
7966         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7967         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7968         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7969         Likewise.
7970         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7971         Likewise.
7972         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7973         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7974         * termios/termios.h [__USE_BSD]: Likewise.
7975         * time/sys/time.h [__USE_BSD]: Likewise.
7976         * time/time.h [__USE_BSD]: Likewise.
7977         [__USE_SVID]: Likewise.
7978
7979         * Makefile (subdir_targets): Remove subdir_lint.out.
7980
7981         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7982         (do-tst-printf): Likewise.
7983         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7984         $(objpfx)tst-printf.out.
7985
7986         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7987
7988         * Makerules (check-abi-%): Change target to
7989         $(objpfx)check-abi-%.out.
7990         (check-abi target): Update dependencies.
7991         (check-abi-pattern variable): Redirect output of diff to $@.
7992         (check-abi variable): Likewise.
7993         * elf/Makefile (check-abi): Update dependencies.
7994
7995         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7996         unused.
7997         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7998         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7999         subnormal range.
8000         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
8001         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
8002         value has largest subnormal exponent.
8003         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
8004         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
8005         * sysdeps/aarch64/soft-fp/sfp-machine.h
8006         (_FP_TININESS_AFTER_ROUNDING): New macro.
8007         * sysdeps/alpha/soft-fp/sfp-machine.h
8008         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8009         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8010         Likewise.
8011         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
8012         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8013         * sysdeps/mips/soft-fp/sfp-machine.h
8014         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8015         * sysdeps/powerpc/soft-fp/sfp-machine.h
8016         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8017         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8018         Likewise.
8019         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
8020         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8021         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
8022         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8023         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8024         Likewise.
8025
8026 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
8027
8028         [BZ #16545]
8029         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
8030         model 1.
8031
8032 2014-02-12  Richard Henderson  <rth@redhat.com>
8033
8034         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
8035         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
8036         * sysdeps/unix/sysv/linux/alpha: Move directory from
8037         ports/sysdeps/unix/sysv/linux/alpha.
8038         * README: Update listing for alpha-*-linux-gnu.
8039
8040 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
8041
8042         * include/features.h: Update comment documenting feature test
8043         macros.
8044         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
8045         _DEFAULT_SOURCE.
8046         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
8047         (_SVID_SOURCE): Likewise.
8048         (_DEFAULT_SOURCE): Update description of default features.
8049         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
8050         with _GNU_SOURCE.
8051         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
8052         (S_ISVTX): Likewise.
8053         * manual/math.texi (Mathematical Constants): Likewise.
8054         * manual/signal.texi (Interrupted Primitives): Likewise.
8055         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
8056         * math/test-matherr.c (_SVID_SOURCE): Do not define.
8057         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
8058         Don't refer to _SVID_SOURCE in warning text.
8059
8060         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8061
8062         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
8063         already defined.
8064         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
8065         * sysdeps/mips/dl-lookup.c: Remove.
8066         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
8067
8068 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8069
8070         [BZ #16447]
8071         * math/auto-libm-test-in: Add testcase for expl.
8072         * math/auto-libm-test-out: Regenerate.
8073         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
8074         calculation of unsafe.
8075         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
8076
8077 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8078
8079         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
8080         * sysdeps/unix/sysv/linux/aarch64: Move directory from
8081         ports/sysdeps/unix/sysv/linux/aarch64.
8082         * README: Update listing for aarch64*-*-linux-gnu.
8083
8084 2014-02-11  Will Newton  <will.newton@linaro.org>
8085
8086         * manual/probes.texi (Mathematical Function Probes): Use
8087         "triggered" instead of "hit".
8088
8089         * manual/probes.texi (Internal Probes): Add documentation
8090         of setjmp, longjmp and longjmp_target probes.
8091
8092         * include/stap-probe.h: Add comment about probe argument
8093         format.
8094
8095         * malloc/mtrace.c (attribute_hidden): Remove unused macro
8096         definition.  (tr_where, tr_freehook, tr_mallochook,
8097         tr_reallochook, tr_memalignhook): Use ANSI protoype.
8098
8099 2014-02-11  David S. Miller  <davem@davemloft.net>
8100
8101         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
8102         processing int_tests.
8103
8104 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
8105
8106         * sysdeps/mips: Move directory from ports/sysdeps/mips.
8107         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
8108         * sysdeps/unix/sysv/linux/mips: Move directory from
8109         ports/sysdeps/unix/sysv/linux/mips.
8110         * README: Update listing for mips-*-linux-gnu and
8111         mips64-*-linux-gnu.
8112
8113 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
8114
8115         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
8116         * sysdeps/unix/sysv/linux/m68k: Move directory from
8117         ports/sysdeps/unix/sysv/linux/m68k.
8118         * README: Update listing for m68k-*-linux-gnu.
8119
8120 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
8121
8122         * sysdeps/tile: Move directory from ports/sysdeps/tile.
8123         * sysdeps/unix/sysv/linux/generic: Move directory from
8124         ports/sysdeps/unix/sysv/linux/generic.
8125         * sysdeps/unix/sysv/linux/tile: Move directory from
8126         ports/sysdeps/unix/sysv/linux/tile.
8127         * README: Update listing for tile*-*-linux-gnu.
8128
8129 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
8130
8131         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
8132         __builtin_expect.
8133         * benchtests/bench-memmem.c (simple_memmem): Likewise.
8134         * catgets/open_catalog.c (__open_catalog): Likewise.
8135         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
8136         * debug/confstr_chk.c: Likewise.
8137         * debug/fread_chk.c (__fread_chk): Likewise.
8138         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
8139         * debug/getgroups_chk.c: Likewise.
8140         * debug/mbsnrtowcs_chk.c: Likewise.
8141         * debug/mbsrtowcs_chk.c: Likewise.
8142         * debug/mbstowcs_chk.c: Likewise.
8143         * debug/memcpy_chk.c: Likewise.
8144         * debug/memmove_chk.c: Likewise.
8145         * debug/mempcpy_chk.c: Likewise.
8146         * debug/memset_chk.c: Likewise.
8147         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
8148         * debug/strcat_chk.c (__strcat_chk): Likewise.
8149         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
8150         * debug/strncat_chk.c (__strncat_chk): Likewise.
8151         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
8152         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
8153         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
8154         * debug/wcpncpy_chk.c: Likewise.
8155         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
8156         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
8157         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
8158         * debug/wcsncpy_chk.c: Likewise.
8159         * debug/wcsnrtombs_chk.c: Likewise.
8160         * debug/wcsrtombs_chk.c: Likewise.
8161         * debug/wcstombs_chk.c: Likewise.
8162         * debug/wmemcpy_chk.c: Likewise.
8163         * debug/wmemmove_chk.c: Likewise.
8164         * debug/wmempcpy_chk.c: Likewise.
8165         * debug/wmemset_chk.c: Likewise.
8166         * dirent/scandirat.c (SCANDIRAT): Likewise.
8167         * dlfcn/dladdr1.c (dladdr1): Likewise.
8168         * dlfcn/dladdr.c (dladdr): Likewise.
8169         * dlfcn/dlclose.c (dlclose_doit): Likewise.
8170         * dlfcn/dlerror.c (__dlerror): Likewise.
8171         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8172         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8173         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8174         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
8175         * dlfcn/dlsym.c (dlsym_doit): Likewise.
8176         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
8177         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
8178         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
8179         Likewise.
8180         * elf/dl-conflict.c: Likewise.
8181         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
8182         * elf/dl-dst.h: Likewise.
8183         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
8184         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
8185         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
8186         * elf/dl-init.c (call_init, _dl_init): Likewise.
8187         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
8188         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
8189         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
8190         Likewise.
8191         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8192         Likewise.
8193         * elf/dl-minimal.c (__libc_memalign): Likewise.
8194         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8195         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8196         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8197         * elf/dl-sym.c (do_sym): Likewise.
8198         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8199         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8200         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8201         * elf/dl-writev.h (_dl_writev): Likewise.
8202         * elf/ldconfig.c (search_dir): Likewise.
8203         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8204         (dl_main): Likewise.
8205         * elf/setup-vdso.h (setup_vdso): Likewise.
8206         * grp/compat-initgroups.c (compat_call): Likewise.
8207         * grp/fgetgrent.c (fgetgrent): Likewise.
8208         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8209         * grp/putgrent.c (putgrent): Likewise.
8210         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8211         Likewise.
8212         * hurd/hurdinit.c: Likewise.
8213         * iconvdata/8bit-gap.c (struct): Likewise.
8214         * iconvdata/ansi_x3.110.c : Likewise.
8215         * iconvdata/big5.c : Likewise.
8216         * iconvdata/big5hkscs.c : Likewise.
8217         * iconvdata/cp1255.c: Likewise.
8218         * iconvdata/cp1258.c : Likewise.
8219         * iconvdata/cp932.c : Likewise.
8220         * iconvdata/euc-cn.c: Likewise.
8221         * iconvdata/euc-jisx0213.c : Likewise.
8222         * iconvdata/euc-jp.c: Likewise.
8223         * iconvdata/euc-jp-ms.c : Likewise.
8224         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8225         * iconvdata/gb18030.c : Likewise.
8226         * iconvdata/gbbig5.c (const): Likewise.
8227         * iconvdata/gbgbk.c: Likewise.
8228         * iconvdata/gbk.c : Likewise.
8229         * iconvdata/ibm1364.c : Likewise.
8230         * iconvdata/ibm930.c : Likewise.
8231         * iconvdata/ibm932.c: Likewise.
8232         * iconvdata/ibm933.c : Likewise.
8233         * iconvdata/ibm935.c : Likewise.
8234         * iconvdata/ibm937.c : Likewise.
8235         * iconvdata/ibm939.c : Likewise.
8236         * iconvdata/ibm943.c: Likewise.
8237         * iconvdata/iso_11548-1.c: Likewise.
8238         * iconvdata/iso-2022-cn.c : Likewise.
8239         * iconvdata/iso-2022-cn-ext.c : Likewise.
8240         * iconvdata/iso-2022-jp-3.c: Likewise.
8241         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8242         * iconvdata/iso-2022-kr.c : Likewise.
8243         * iconvdata/iso646.c (gconv_end): Likewise.
8244         * iconvdata/iso_6937-2.c : Likewise.
8245         * iconvdata/iso_6937.c : Likewise.
8246         * iconvdata/iso8859-1.c: Likewise.
8247         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8248         * iconvdata/shift_jisx0213.c : Likewise.
8249         * iconvdata/sjis.c : Likewise.
8250         * iconvdata/t.61.c : Likewise.
8251         * iconvdata/tcvn5712-1.c : Likewise.
8252         * iconvdata/tscii.c: Likewise.
8253         * iconvdata/uhc.c : Likewise.
8254         * iconvdata/unicode.c (gconv_end): Likewise.
8255         * iconvdata/utf-16.c (gconv_end): Likewise.
8256         * iconvdata/utf-32.c (gconv_end): Likewise.
8257         * iconvdata/utf-7.c (base64): Likewise.
8258         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8259         * iconv/gconv_close.c (__gconv_close): Likewise.
8260         * iconv/gconv_open.c (__gconv_open): Likewise.
8261         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8262         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8263         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8264         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8265         (ucs4le_internal_loop_single): Likewise.
8266         * iconv/iconv.c (iconv): Likewise.
8267         * iconv/iconv_close.c: Likewise.
8268         * iconv/loop.c (SINGLE): Likewise.
8269         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8270         * include/atomic.h: Likewise.
8271         * inet/inet6_option.c (option_alloc): Likewise.
8272         * intl/bindtextdom.c (set_binding_values): Likewise.
8273         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8274         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8275         * intl/localealias.c (read_alias_file): Likewise.
8276         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8277         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8278         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8279         * libio/fmemopen.c (fmemopen): Likewise.
8280         * libio/iofgets.c (_IO_fgets): Likewise.
8281         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8282         * libio/iofgetws.c (fgetws): Likewise.
8283         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8284         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8285         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8286         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8287         * locale/findlocale.c (_nl_find_locale): Likewise.
8288         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8289         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8290         Likewise.
8291         * locale/setlocale.c (setlocale): Likewise.
8292         * login/programs/pt_chown.c (main): Likewise.
8293         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8294         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8295         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8296         (mmap, mmap64, mremap, munmap): Likewise.
8297         * math/e_exp2l.c: Likewise.
8298         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8299         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8300         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8301         * math/s_catan.c (__catan): Likewise.
8302         * math/s_catanf.c (__catanf): Likewise.
8303         * math/s_catanh.c (__catanh): Likewise.
8304         * math/s_catanhf.c (__catanhf): Likewise.
8305         * math/s_catanhl.c (__catanhl): Likewise.
8306         * math/s_catanl.c (__catanl): Likewise.
8307         * math/s_ccosh.c (__ccosh): Likewise.
8308         * math/s_ccoshf.c (__ccoshf): Likewise.
8309         * math/s_ccoshl.c (__ccoshl): Likewise.
8310         * math/s_cexp.c (__cexp): Likewise.
8311         * math/s_cexpf.c (__cexpf): Likewise.
8312         * math/s_cexpl.c (__cexpl): Likewise.
8313         * math/s_clog10.c (__clog10): Likewise.
8314         * math/s_clog10f.c (__clog10f): Likewise.
8315         * math/s_clog10l.c (__clog10l): Likewise.
8316         * math/s_clog.c (__clog): Likewise.
8317         * math/s_clogf.c (__clogf): Likewise.
8318         * math/s_clogl.c (__clogl): Likewise.
8319         * math/s_csin.c (__csin): Likewise.
8320         * math/s_csinf.c (__csinf): Likewise.
8321         * math/s_csinh.c (__csinh): Likewise.
8322         * math/s_csinhf.c (__csinhf): Likewise.
8323         * math/s_csinhl.c (__csinhl): Likewise.
8324         * math/s_csinl.c (__csinl): Likewise.
8325         * math/s_csqrt.c (__csqrt): Likewise.
8326         * math/s_csqrtf.c (__csqrtf): Likewise.
8327         * math/s_csqrtl.c (__csqrtl): Likewise.
8328         * math/s_ctan.c (__ctan): Likewise.
8329         * math/s_ctanf.c (__ctanf): Likewise.
8330         * math/s_ctanh.c (__ctanh): Likewise.
8331         * math/s_ctanhf.c (__ctanhf): Likewise.
8332         * math/s_ctanhl.c (__ctanhl): Likewise.
8333         * math/s_ctanl.c (__ctanl): Likewise.
8334         * math/w_pow.c: Likewise.
8335         * math/w_powf.c: Likewise.
8336         * math/w_powl.c: Likewise.
8337         * math/w_scalb.c (sysv_scalb): Likewise.
8338         * math/w_scalbf.c (sysv_scalbf): Likewise.
8339         * math/w_scalbl.c (sysv_scalbl): Likewise.
8340         * misc/error.c (error_tail): Likewise.
8341         * misc/pselect.c (__pselect): Likewise.
8342         * nis/nis_callback.c (__nis_create_callback): Likewise.
8343         * nis/nis_call.c (__nisfind_server): Likewise.
8344         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8345         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8346         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8347         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8348         * nis/nis_lookup.c (nis_lookup): Likewise.
8349         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8350         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8351         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8352         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8353         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8354         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8355         * nis/nss_compat/compat-initgroups.c (add_group)
8356         (internal_getgrent_r): Likewise.
8357         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8358         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8359         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8360         (internal_getspnam_r): Likewise.
8361         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8362         (_nss_nis_getaliasbyname_r): Likewise.
8363         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8364         (_nss_nis_getntohost_r): Likewise.
8365         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8366         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8367         (_nss_nis_getgrgid_r): Likewise.
8368         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8369         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8370         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8371         (_nss_nis_gethostbyname4_r): Likewise.
8372         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8373         (initgroups_netid): Likewise.
8374         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8375         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8376         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8377         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8378         (_nss_nis_getprotobynumber_r): Likewise.
8379         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8380         (_nss_nis_getsecretkey): Likewise.
8381         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8382         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8383         (_nss_nis_getpwuid_r): Likewise.
8384         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8385         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8386         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8387         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8388         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8389         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8390         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8391         Likewise.
8392         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8393         (_nss_nisplus_getntohost_r): Likewise.
8394         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8395         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8396         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8397         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8398         Likewise.
8399         * nis/nss_nisplus/nisplus-initgroups.c
8400         (_nss_nisplus_initgroups_dyn): Likewise.
8401         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8402         (_nss_nisplus_getnetbyaddr_r): Likewise.
8403         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8404         (_nss_nisplus_getprotobynumber_r): Likewise.
8405         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8406         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8407         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8408         Likewise.
8409         * nis/nss_nisplus/nisplus-service.c
8410         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8411         (_nss_nisplus_getservbyport_r): Likewise.
8412         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8413         (_nss_nisplus_getspnam_r): Likewise.
8414         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8415         Likewise.
8416         * nscd/aicache.c (addhstaiX): Likewise.
8417         * nscd/cache.c (cache_search, prune_cache): Likewise.
8418         * nscd/connections.c (register_traced_file, send_ro_fd)
8419         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8420         (main_loop_epoll): Likewise.
8421         * nscd/grpcache.c (addgrbyX): Likewise.
8422         * nscd/hstcache.c (addhstbyX): Likewise.
8423         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8424         * nscd/mem.c (gc, mempool_alloc): Likewise.
8425         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8426         (addinnetgrX): Likewise.
8427         * nscd/nscd-client.h (__nscd_acquire_maplock)
8428         (__nscd_drop_map_ref): Likewise.
8429         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8430         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8431         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8432         Likewise.
8433         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8434         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8435         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8436         (__nscd_get_map_ref): Likewise.
8437         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8438         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8439         Likewise.
8440         * nscd/pwdcache.c (addpwbyX): Likewise.
8441         * nscd/selinux.c (preserve_capabilities): Likewise.
8442         * nscd/servicescache.c (addservbyX): Likewise.
8443         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8444         * posix/fnmatch.c (fnmatch): Likewise.
8445         * posix/getopt.c (_getopt_internal_r): Likewise.
8446         * posix/glob.c (glob, glob_in_dir): Likewise.
8447         * posix/wordexp.c (exec_comm_child): Likewise.
8448         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8449         (getanswer_r, gaih_getanswer_slice): Likewise.
8450         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8451         * resolv/res_init.c: Likewise.
8452         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8453         * resolv/res_query.c (__libc_res_nquery): Likewise.
8454         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8455         Likewise.
8456         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8457         * stdio-common/perror.c (perror): Likewise.
8458         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8459         * stdio-common/tmpnam.c (tmpnam): Likewise.
8460         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8461         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8462         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8463         Likewise.
8464         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8465         * stdlib/putenv.c (putenv): Likewise.
8466         * stdlib/setenv.c (__add_to_environ): Likewise.
8467         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8468         * stdlib/strtol_l.c (INTERNAL): Likewise.
8469         * string/memmem.c (memmem): Likewise.
8470         * string/strerror.c (strerror): Likewise.
8471         * string/strnlen.c (__strnlen): Likewise.
8472         * string/test-memmem.c (simple_memmem): Likewise.
8473         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8474         * sunrpc/pm_getport.c (__get_socket): Likewise.
8475         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8476         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8477         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8478         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8479         Likewise.
8480         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8481         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8482         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8483         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8484         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8485         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8486         Likewise.
8487         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8488         Likewise.
8489         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8490         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8491         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8492         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8493         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8495         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8496         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8497         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8498         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8499         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8500         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8501         Likewise.
8502         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8503         Likewise.
8504         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8505         Likewise.
8506         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8507         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8508         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8509         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8510         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8511         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8512         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8513         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8514         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8515         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8516         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8517         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8518         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8519         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8520         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8521         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8522         Likewise.
8523         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8524         Likewise.
8525         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8526         Likewise.
8527         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8528         Likewise.
8529         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8530         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8531         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8532         Likewise.
8533         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
8534         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
8535         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8536         * sysdeps/posix/sleep.c: Likewise.
8537         * sysdeps/posix/tempname.c: Likewise.
8538         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
8539         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8540         Likewise.
8541         * sysdeps/powerpc/powerpc32/dl-machine.h
8542         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
8543         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8544         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8545         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
8546         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
8547         Likewise.
8548         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
8549         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
8550         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8551         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
8552         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8553         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
8554         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
8555         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
8556         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8557         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
8558         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
8559         (elf_machine_lazy_rel): Likewise.
8560         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8561         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
8562         (elf_machine_lazy_rel): Likewise.
8563         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
8564         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
8565         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
8566         * sysdeps/unix/grantpt.c (grantpt): Likewise.
8567         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
8568         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
8569         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8570         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8571         Likewise.
8572         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8573         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8574         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8575         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8576         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8577         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8578         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8579         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8580         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8581         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8582         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8583         Likewise.
8584         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8585         (__posix_fallocate64_l64): Likewise.
8586         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8587         (posix_fallocate): Likewise.
8588         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8589         Likewise.
8590         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8591         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8592         (getifaddrs_internal): Likewise.
8593         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8594         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8595         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8596         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8597         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8598         (__posix_fallocate64_l64): Likewise.
8599         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8600         Likewise.
8601         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8602         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8603         (__get_clockfreq): Likewise.
8604         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8605         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8606         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8607         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8608         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8609         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8610         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8611         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8612         Likewise.
8613         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8614         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8615         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8616         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8617         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8618         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8619         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8620         Likewise.
8621         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8622         (posix_fallocate): Likewise.
8623         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8624         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8625         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8626         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8627         (elf_machine_rela, elf_machine_rela_relative)
8628         (elf_machine_lazy_rel): Likewise.
8629         * time/asctime.c (asctime_internal): Likewise.
8630         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8631         * time/tzset.c (__tzset_parse_tz): Likewise.
8632         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8633         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8634         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8635         * wcsmbs/wcsmbsload.h: Likewise.
8636
8637         [BZ #15894]
8638         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8639
8640         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8641         (arena_get2): Remove THREAD_STATS conditionals.
8642         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8643         (__malloc_stats, int): Likewise.
8644
8645 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8646
8647         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8648         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8649
8650         * manual/setjmp.texi: Fix typos/grammar errors.
8651
8652         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8653         Only return early when n is <= 0.  Delete unused return statement.
8654
8655         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8656         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8657         * debug/tst-longjmp_chk3.c: New file.
8658
8659         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8660         (test_main): Replace code with set_fortify_handler call.
8661         * debug/test-strcpy_chk.c: Likewise.
8662         * debug/tst-chk1.c: Likewise.
8663         * debug/tst-longjmp_chk.c: Likewise.
8664         * test-skeleton.c: Include fcntl.h & paths.h
8665         (set_fortify_handler): Define.
8666
8667         * debug/tst-longjmp_chk.c: Add header comment and include
8668         ../test-skeleton.c.
8669         (do_test): Mark static.
8670         (TEST_FUNCTION): Define.
8671
8672         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8673         (IP_PMTUDISC_INTERFACE): Likewise.
8674         (IP_MULTICAST_IF): Likewise.
8675         (IP_MULTICAST_TTL): Likewise.
8676         (IP_MULTICAST_LOOP): Likewise.
8677         (IP_ADD_MEMBERSHIP): Likewise.
8678         (IP_DROP_MEMBERSHIP): Likewise.
8679         (IP_UNBLOCK_SOURCE): Likewise.
8680         (IP_BLOCK_SOURCE): Likewise.
8681         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8682         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8683         (IP_MSFILTER): Likewise.
8684         (MCAST_JOIN_GROUP): Likewise.
8685         (MCAST_BLOCK_SOURCE): Likewise.
8686         (MCAST_UNBLOCK_SOURCE): Likewise.
8687         (MCAST_LEAVE_GROUP): Likewise.
8688         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8689         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8690         (MCAST_MSFILTER): Likewise.
8691         (IP_MULTICAST_ALL): Likewise.
8692         (IP_UNICAST_IF): Likewise.
8693
8694         * timezone/Makefile: Delete $(have-ksh) check.
8695         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8696         * timezone/tzselect.ksh: Add +x mode bits.
8697
8698         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8699         (ANON_INODE_FS_MAGIC): Likewise.
8700         (BDEVFS_MAGIC): Likewise.
8701         (BINFMTFS_MAGIC): Likewise.
8702         (BTRFS_TEST_MAGIC): Likewise.
8703         (CRAMFS_MAGIC_WEND): Likewise.
8704         (DEBUGFS_MAGIC): Likewise.
8705         (ECRYPTFS_SUPER_MAGIC): Likewise.
8706         (EXT3_SUPER_MAGIC): Likewise.
8707         (EXT4_SUPER_MAGIC): Likewise.
8708         (FUTEXFS_SUPER_MAGIC): Likewise.
8709         (HOSTFS_SUPER_MAGIC): Likewise.
8710         (HUGETLBFS_MAGIC): Likewise.
8711         (MINIX3_SUPER_MAGIC): Likewise.
8712         (MTD_INODE_FS_MAGIC): Likewise.
8713         (NILFS_SUPER_MAGIC): Likewise.
8714         (OPENPROM_SUPER_MAGIC): Likewise.
8715         (PIPEFS_MAGIC): Likewise.
8716         (PSTOREFS_MAGIC): Likewise.
8717         (QNX6_SUPER_MAGIC): Likewise.
8718         (RAMFS_MAGIC): Likewise.
8719         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8720         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8721         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8722         (SECURITYFS_MAGIC): Likewise.
8723         (SELINUX_MAGIC): Likewise.
8724         (SMACK_MAGIC): Likewise.
8725         (SOCKFS_MAGIC): Likewise.
8726         (SQUASHFS_MAGIC): Likewise.
8727         (STACK_END_MAGIC): Likewise.
8728         (TMPFS_MAGIC): Likewise.
8729         (USBDEVICE_SUPER_MAGIC): Likewise.
8730         (V9FS_MAGIC): Likewise.
8731         (XENFS_SUPER_MAGIC): Likewise.
8732         (CRAMFS_MAGIC): Fix typo in comment.
8733         (EXT2_SUPER_MAGIC): Update comment.
8734         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8735
8736 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8737
8738         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8739         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8740         * sysdeps/unix/sysv/linux/arm: Move directory from
8741         ports/sysdeps/unix/sysv/linux/arm.
8742         * README: Update listing for arm-*-linux-gnueabi.
8743
8744         * README: Remove mention of am33.
8745
8746 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8747
8748         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8749         than the comma operator, to avoid "rhs of comma has no effect"
8750         compiler warnings.
8751         (__sigfillset, __sigandset, __sigorset): Likewise.
8752         * include/signal.h (__sigemptyset): Likewise.
8753         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8754
8755 2014-02-07  Allan McRae  <allan@archlinux.org>
8756
8757         * version.h (RELEASE): Set to "development".
8758         (VERSION): Set to "2.19.90"
8759         * NEWS: Add 2.20 section.
8760
8761 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8762
8763         [BZ #16529]
8764         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8765
8766 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8767
8768         * manual/contrib.texi: Update entry for Carlos O'Donell,
8769         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8770
8771 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8772
8773         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8774
8775         * sysdeps/unix/sysv/linux/kernel-features.h
8776         [__LINUX_KERNEL_VERSION >= 0x020621]
8777         (__ASSUME_PROC_PID_TASK_COMM): Define.
8778
8779 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8780
8781         [BZ #16398]
8782         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8783         conversion when destination buffer does not have enough space.
8784         * libio/tst-ftell-partial-wide.c: New test case.
8785         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8786
8787         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8788         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8789         Leonard and Allan McRae.
8790
8791 2014-02-04  David S. Miller  <davem@davemloft.net>
8792
8793         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8794         32-bit.
8795
8796 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8797
8798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8799         New file
8800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8801         New file
8802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8803         New file.
8804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8805         New file.
8806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8807         New file.
8808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8809         New file.
8810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8811         New file.
8812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8813         New file.
8814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8815         New file.
8816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8817         New file.
8818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8819         New file.
8820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8821         New file.
8822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8823         New file.
8824
8825 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8826
8827         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8828         * shlib-versions: Likewise.
8829
8830 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8831             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8832
8833         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8834         (abilist-pattern): New variable, set to %-le.abilist.
8835
8836         * Makerules (abilist-pattern): New variable.
8837         (vpath): Use $(abilist-pattern) in place of %.abilist.
8838         (check-abi-% pattern rule): Likewise.
8839         (check-abi, update-abi): Likewise.
8840
8841 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8842
8843         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8844
8845 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8846
8847         * manual/startup.texi: Add next, previous, and top entries for
8848         the `Program Arguments' and `Environment Variables' nodes.
8849
8850 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8851
8852         * manual/macros.texi: Add comments before MTASC-safety macros.
8853
8854         * manual/users.texi: Document MTASC-safety properties.
8855
8856         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8857         (pthread_getspecific, pthread_setspecific): Format with
8858         @deftypefun, and add @safety note.
8859         * manual/signal.texi: Move comments that analyze the above
8860         functions to their home place.
8861
8862 2014-02-03  Allan McRae  <allan@archlinux.org>
8863
8864         * po/sl.po: Update Slovenian translation from translation project.
8865
8866 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8867
8868         * manual/time.texi (timegm): Add missing blank after @c.
8869         Reported by Joseph Myers <joseph@codesourcery.com>.
8870
8871 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8872
8873         * manual/check-safety.sh: New.
8874         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8875
8876         * manual/terminal.texi: Document MTASC-safety properties.
8877
8878         * manual/filesys.texi: Document MTASC-safety properties.
8879
8880         * manual/errno.texi: Document MTASC-safety properties.
8881
8882         * manual/intro.texi: Document safety identifiers and
8883         conditionals.
8884
8885         * manual/string.texi (wcstok): Fix prototype.
8886         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8887
8888         * manual/time.texi: Document MTASC-safety properties.
8889
8890         * manual/string.texi: Document MTASC-safety properties.
8891
8892         * manual/threads.texi: Document MTASC-safety properties.
8893
8894         * manual/stdio.texi: Document MTASC-safety properties.
8895
8896         * manual/syslog.texi: Document MTASC-safety properties.
8897
8898         * manual/sysinfo.texi: Document MTASC-safety properties.
8899
8900         * manual/startup.texi: Document MTASC-safety properties.
8901
8902         * manual/socket.texi: Document MTASC-safety properties.
8903
8904         * manual/signal.texi: Document MTASC-safety properties.
8905
8906 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8907
8908         * manual/setjmp.texi: Document MTASC-safety properties.
8909
8910         * manual/search.texi: Document MTASC-safety properties.
8911
8912         * manual/resource.texi: Document MTASC-safety properties.
8913
8914         * manual/process.texi: Document MTASC-safety properties.
8915
8916         * manual/platform.texi: Document MTASC-safety properties.
8917
8918         * manual/pipe.texi: Document MTASC-safety properties.
8919
8920         * manual/pattern.texi: Document MTASC-safety properties.
8921
8922         * manual/message.texi: Document MTASC-safety properties.
8923
8924         [BZ #12751]
8925         * manual/memory.texi: Document MTASC-safety properties.
8926
8927         * manual/math.texi: Document MTASC-safety properties.
8928
8929         * manual/locale.texi: Document MTASC-safety properties.
8930
8931         * manual/llio.texi: Document MTASC-safety properties.
8932
8933         * manual/libdl.texi: New.
8934
8935         * manual/lang.texi: Document MTASC-safety properties.
8936
8937         * manual/job.texi: Document MTASC-safety properties.
8938
8939         * manual/getopt.texi: Document MTASC-safety properties.
8940
8941         * manual/ctype.texi: Document MTASC-safety properties.
8942
8943 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8944
8945         [BZ #16046]
8946         * csu/libc-tls.c (static_map): Remove variable.
8947         (__libc_setup_tls): Use main executable's link map for TLS data.
8948         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8949         casing for LM_ID_BASE and GL(dl_nns).
8950         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8951         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8952         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8953         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8954         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8955         member.
8956         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8957         l_phnum members.
8958
8959 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8960
8961         * manual/debug.texi: Document MTASC-safety properties.
8962
8963 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8964
8965         [BZ #16510]
8966         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8967         of __x86_64__ when disabling x87 inline functions.
8968
8969 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8970
8971         * manual/charset.texi: Document MTASC-safety properties.
8972
8973         * manual/crypt.texi: Document MTASC-safety properties.
8974
8975         * manual/conf.texi: Document MTASC-safety properties.
8976
8977         * manual/arith.texi: Document MTASC-safety properties.
8978
8979         * manual/argp.texi: Document MTASC-safety properties.
8980
8981         * manual/macros.texi: Introduce macros to document multi
8982         thread, asynchronous signal and asynchronous cancellation
8983         safety properties.
8984         * manual/intro.texi: Introduce the properties themselves.
8985
8986 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8987
8988         * sysdeps/sh/sh4/Makefile: New file.
8989
8990 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8991
8992         * math/gen-libm-test.pl ($srcdir): New variable.
8993         ($auto_input): Use it.
8994
8995 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8996
8997         [BZ #16506]
8998         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8999         access beyond array bounds when parsing netgroups file.
9000
9001         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
9002         the old buffer before realloc.
9003
9004 2014-01-27  Allan McRae  <allan@archlinux.org>
9005
9006         * po/fr.po: Update French translation from translation project.
9007
9008 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9009
9010         * sysdeps/sh/libm-test-ulps: Regenerate.
9011
9012 2014-01-24  David S. Miller  <davem@davemloft.net>
9013
9014         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
9015
9016 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9017
9018         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
9019         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
9020
9021 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9022
9023         [BZ #16474]
9024         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
9025         string pointers after reallocation.
9026
9027 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9028
9029         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
9030         __SH4A__ instead of __SH_FPU_ANY__.
9031
9032 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9033
9034         * sysdeps/sh/fpu_control.h: New file.
9035         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
9036         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
9037         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
9038         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
9039         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
9040         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
9041         * sysdeps/sh/sys/ucontext.h: Remove.
9042         * sysdeps/sh/sys: Remove directory.
9043
9044 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9045
9046         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
9047         s390/sys/ucontext.h.
9048         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9049         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
9050
9051 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
9052
9053         [BZ #15605]
9054         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
9055
9056 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9057
9058         [BZ#16431]
9059         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
9060         Adjust the vDSO correctly for internal calls.
9061         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
9062
9063 2014-01-20  Allan McRae  <allan@archlinux.org>
9064
9065         * po/ca.po: Update Catalan translation from translation project.
9066
9067 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
9068
9069         * sysdeps/s390/sotruss-lib.c: New file.
9070
9071 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9072
9073         [BZ#16430]
9074         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
9075         (__GI___gettimeofday): Alias for a different internal symbol to avoid
9076         local calls issues by not having a PLT stub required for IFUNC calls.
9077         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
9078
9079 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
9080
9081         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
9082         * math/test-fpucw-static.c: Likewise.
9083
9084 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9085
9086         [BZ #16453]
9087         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
9088
9089 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9090
9091         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
9092         implementation for powerpc.
9093
9094 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
9095
9096         [BZ #14782]
9097         * sysdeps/posix/system.c (__libc_system): Do not enable
9098         asynchronous cancellation.
9099
9100 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9101
9102         [BZ #16427]
9103         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
9104         handling only for numbers special also in the IEEE case.
9105
9106 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9107
9108         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9109
9110 2014-01-11  Allan McRae  <allan@archlinux.org>
9111
9112         * po/bg.po: Update Bulgarian translation from translation project.
9113
9114         * po/de.po: Update German translation from translation project.
9115
9116 2014-01-10  Roland McGrath  <roland@hack.frob.com>
9117
9118         * sysdeps/generic/gcc-compat.h: New file.
9119
9120 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9121
9122         * benchtests/asin-inputs: Correct slow inputs.
9123         * benchtests/acos-inputs: Likewise.
9124
9125 2014-01-10  Allan McRae  <allan@archlinux.org>
9126
9127         * po:sv.po: Update Swedish translation from translation project.
9128
9129         * po/vi.po: Update Vietnamese translation from translation project.
9130
9131         * po/eo.po: Update Esperanto translation from translation project.
9132
9133         * po/cs.po: Update Czech translation from translation project.
9134
9135         * po/nl.po: Update Dutch translation from translation project.
9136
9137         * po/pl.po: Update Polish translation from translation project.
9138
9139         * po/ru.po: Update Russian translation from translation project.
9140
9141         * po/uk.po: Update Ukrainian translation from translation project.
9142
9143 2014-01-08  Brooks Moses  <bmoses@google.com>
9144
9145         * elf/dl-load.c: Fix comment typo.
9146
9147 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
9148
9149         * po/header.pot: Rename to...
9150         * po/pot.header: ... this.
9151         * po/Makefile: Use pot.header.
9152
9153 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
9154             Maxim Kuvyrkov  <maxim@kugelworks.com>
9155
9156         [BZ #16394]
9157         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
9158         SRC and DEST against LEN.
9159
9160 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9161
9162         [BZ #16414]
9163         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
9164         implementation.
9165         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
9166
9167 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9168
9169         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9170
9171 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
9172
9173         [BZ #16408]
9174         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
9175         for large positive arguments.
9176
9177 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
9178
9179         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9180
9181         * math/auto-libm-test-in: Mark various tests with
9182         xfail-rounding:ldbl-128ibm.
9183         * math/auto-libm-test-out: Regenerated.
9184
9185         [BZ #16407]
9186         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
9187         Increase overflow threshold.
9188
9189 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
9190
9191         [BZ #14286]
9192         * stdio-common/vfprintf.c: Check for integer overflow.
9193
9194 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9195
9196         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9197         the first argument and return value of __tls_get_addr_internal.
9198
9199 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9200
9201         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9202         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9203
9204 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9205
9206         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9207         * sysdeps/s390/rtld-global-offsets.sym: New file.
9208         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9209         GLIBC_2.19 symbol.
9210         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9211         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9212         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9213         ... this.
9214         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9215         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9216         ... this.
9217         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9218         Regenerate.
9219         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9220         Regenerate.
9221         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9222         halfs of GPRs for high_gprs contexts.
9223         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9224         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9225         field.
9226         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9227         uc_flags field.
9228         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9229         64 bit versions:
9230         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9231         for high GPRs (uc_high_gprs) and for future extensions
9232         (__reserved).
9233         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9234         for future extensions (__reserved).
9235         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9236         64 bit versions:
9237         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9238         SC_HIGHGPRS offset definition.
9239         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9240         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9241
9242         * Versions.def: Add GLIBC_2.19 for libpthread.
9243         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9244         siglongjmp for libpthread with GLIBC_2.19 symver.
9245         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9246         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9247         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9248         * sysdeps/s390/__longjmp.c: New file.
9249         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9250         * sysdeps/s390/longjmp.c: New file.
9251         * sysdeps/s390/setjmp.S: New file.
9252         * sysdeps/s390/sigjmp.S: New file.
9253         * sysdeps/s390/v1-longjmp.c: New file.
9254         * sysdeps/s390/v1-setjmp.h: New file.
9255         * sysdeps/s390/v1-sigjmp.c: New file.
9256         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9257         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9258         GLIBC_2.19 version.
9259         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9260         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9261         versioned symbols for ____longjmp_chk.
9262         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9263         Likewise.
9264         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9265         Regenerate.
9266         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9267         Regenerate.
9268         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9269         Regenerate.
9270         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9271         Regenerate.
9272         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9273         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9274         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9275         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9276         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9277         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9278         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9279         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9280         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9281         * sysdeps/s390/rtld-__longjmp.c: New file.
9282         * sysdeps/s390/rtld-setjmp.S: New file.
9283
9284 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9285
9286         [BZ #16400]
9287         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9288         Return -__logl (x) for small positive arguments without evaluating
9289         a polynomial.
9290
9291 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9292
9293         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9294         Rename to ...
9295         (__ptrace_peeksiginfo_args): ... this.
9296         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9297         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9298         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9299
9300 2014-01-06  Allan McRae  <allan@archlinux.org>
9301
9302         * inet/netinet/in.h: Fix typo in comment.
9303
9304 2014-01-05  Andreas Jaeger  <aj@suse.de>
9305
9306         * sysdeps/i386/fpu/libm-test-ulps: Update.
9307
9308 2014-01-05  Allan McRae  <allan@archlinux.org>
9309
9310         * po/libc.pot: Regenerated.
9311
9312         * malloc/memusagestat.c: Fix gettext call formatting.
9313
9314 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9315
9316         * nscd/nscd.c: Improve usage() output.
9317
9318 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9319
9320         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9321         * sysdeps/unix/sysv/linux/configure: Regenerated.
9322         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9323         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9324
9325 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9326
9327         [BZ #16390]
9328         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9329         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9330
9331 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9332
9333         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9334         extra tokens at end of #undef directive.
9335         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9336         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9337         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9338
9339 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9340
9341         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9342
9343         * math/auto-libm-test-in: Mark various tests with
9344         xfail-rounding:ldbl-128ibm.
9345         * math/auto-libm-test-out: Regenerated.
9346
9347 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9348
9349         [BZ #16386]
9350         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9351         numbers with subnormal high part when calculating exponent.
9352
9353         [BZ #16385]
9354         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9355         fabs.
9356
9357         [BZ #16384]
9358         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9359         M_LN2l.
9360         (__ieee754_acoshl): Use __log1pl not __log1p.
9361
9362 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9363
9364         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9365         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9366         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9367         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9368         (reused_arena, arena_get2): Convert to GNU style.
9369         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9370         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9371         (memalign_check, __malloc_set_state): Likewise.
9372         * malloc/mallocbug.c (main): Likewise.
9373         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9374         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9375         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9376         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9377         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9378         (__posix_memalign, malloc_info): Likewise.
9379         * malloc/malloc.h: Likewise.
9380         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9381         (mallochook, memalignhook, reallochook, mabort): Likewise.
9382         * malloc/mcheck.h: Likewise.
9383         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9384         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9385         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9386         * malloc/morecore.c (__default_morecore): Likewise.
9387         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9388         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9389         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9390         (print_and_abort): Likewise.
9391         * malloc/obstack.h: Likewise.
9392         * malloc/set-freeres.c (__libc_freeres): Likewise.
9393         * malloc/tst-mallocstate.c (main): Likewise.
9394         * malloc/tst-mtrace.c (main): Likewise.
9395         * malloc/tst-realloc.c (do_test): Likewise.
9396
9397 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9398
9399         [BZ #16366]
9400         * nscd/netgroupcache.c (do_notfound): New function.
9401         (addgetnetgrentX): Use it.
9402
9403         [BZ # 16365]
9404         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9405         NSS_STATUS_NOTFOUND.
9406
9407 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9408
9409         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9411
9412 2014-01-01  Allan McRae  <allan@archlinux.org>
9413
9414         * scripts/update-copyrights: Update configure input file suffix.
9415
9416         * NEWS: Update copyright year.
9417         * catgets/gencat.c: Likewise.
9418         * csu/version.c: Likewise.
9419         * debug/catchsegv.sh: Likewise.
9420         * debug/pcprofiledump.c: Likewise.
9421         * debug/xtrace.sh: Likewise.
9422         * elf/ldconfig.c: Likewise.
9423         * elf/ldd.bash.in: Likewise.
9424         * elf/pldd.c: Likewise.
9425         * elf/sotruss.ksh: Likewise.
9426         * elf/sprof.c: Likewise.
9427         * iconv/iconv_prog.c: Likewise.
9428         * iconv/iconvconfig.c: Likewise.
9429         * locale/programs/locale.c: Likewise.
9430         * locale/programs/localedef.c: Likewise.
9431         * login/programs/pt_chown.c: Likewise.
9432         * malloc/memusage.sh: Likewise.
9433         * malloc/memusagestat.c: Likewise.
9434         * malloc/mtrace.pl: Likewise.
9435         * manual/libc.texinfo: Likewise.
9436         * nscd/nscd.c: Likewise.
9437         * nss/getent.c: Likewise.
9438         * nss/makedb.c: Likewise.
9439         * posix/getconf.c: Likewise.
9440         * scripts/test-installation.pl: Likewise.
9441
9442         * All files with FSF copyright notices: Update copyright dates
9443         using scripts/update-copyrights.
9444         * intl/plural.c: Regenerated.
9445         * locale/programs/charmap-kw.h: Likewise.
9446         * locale/programs/locfile-kw.h: Likewise.
9447
9448 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9449
9450         * sysdeps/unix/sysv/linux/configure: Regenerated.
9451         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9452         the linux/fanotify.h header.
9453         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9454         HAVE_LINUX_FANOTIFY_H is defined.
9455
9456 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9457
9458         * benchtests/cos-inputs: New inputs.
9459         * benchtests/sin-inputs: Likewise.
9460
9461         * benchtests/atan-inputs: New inputs. Fix name of multiple
9462         precision fallback inputs.
9463
9464         * benchtests/atanh-inputs: New inputs.
9465         * benchtests/tanh-inputs: Likewise.
9466
9467         * benchtests/acosh-inputs: New inputs.
9468         * benchtests/asinh-inputs: Likewise.
9469
9470         * benchtests/cosh-inputs: New inputs.
9471         * benchtests/sinh-inputs: Likewise.
9472
9473         * benchtests/acos-inputs: Add more inputs.
9474         * benchtests/asin-inputs: Likewise.
9475
9476 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9477
9478         [BZ #16375]
9479         * manual/arith.texi: Fix spelling.
9480         * manual/charset.texi: Likewise.
9481         * manual/errno.texi: Likewise.
9482         * manual/filesys.texi: Likewise.
9483         * manual/lang.texi: Likewise.
9484         * manual/llio.texi: Likewise.
9485         * manual/locale.texi: Likewise.
9486         * manual/message.texi: Likewise.
9487         * manual/resource.texi: Likewise.
9488         * manual/search.texi: Likewise.
9489         * manual/setjmp.texi: Likewise.
9490         * manual/stdio.texi: Likewise.
9491         * manual/string.texi: Likewise.
9492         * manual/sysinfo.texi: Likewise.
9493         * manual/time.texi: Likewise.
9494
9495 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9496
9497         * po/sl.po: New file.
9498
9499 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9500
9501         * .gitignore: Add core/.gdbinit/.gdb_history.
9502
9503 2013-12-27  Allan McRae  <allan@archlinux.org>
9504
9505         [BZ #16369]
9506         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9507         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9508
9509 2013-12-24  Brooks Moses  <bmoses@google.com>
9510
9511         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9512         all compilers that claim C++98 compliance, not just GCC.
9513         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9514         Likewise.
9515
9516 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9517
9518         * NEWS: Restore accidentally deleted bug-fix entries.
9519
9520 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9521             Ondřej Bílka  <neleai@seznam.cz>
9522
9523         [BZ #15073]
9524         * malloc/malloc.c (_int_free): Perform sanity check only if we
9525         have_lock.
9526
9527 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9528
9529         [BZ #12986]
9530         * manual/stdio.texi (String Input Conversions): Clarify that character
9531         classes are not supported.
9532
9533 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9534
9535         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9536
9537 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
9538
9539         [BZ #16337]
9540         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9541         Calculate results for small negative arguments directly rather
9542         than using reflection formula with special underflow handling.
9543
9544         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
9545         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
9546         sysdeps/unix/bsd/bsd4.4/syscalls.list.
9547         (fchflags): Likewise.
9548         (revoke): Likewise.
9549         (setlogin): Likewise.
9550         (sigaltstack): Likewise.
9551         (wait4): Likewise.
9552         (sigblock): Remove.
9553         (sigsetmask): Likewise.
9554         (wait3): Likewise.
9555         (waitpid): Likewise.
9556         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
9557         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
9558         file.
9559         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
9560         * sysdeps/unix/bsd/Makefile: ... here.
9561         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
9562         * sysdeps/unix/bsd/Versions: ... here.
9563         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
9564         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
9565         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
9566         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
9567         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
9568         * sysdeps/unix/bsd/sigblock.c: ... here.
9569         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
9570         * sysdeps/unix/bsd/sigsetmask.c: ... here.
9571         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
9572         * sysdeps/unix/bsd/sigvec.c: ... here.
9573         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
9574         * sysdeps/unix/bsd/tcdrain.c: ... here.
9575         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9576         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9577         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9578         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9579         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9580         * sysdeps/unix/bsd/wait.c: ... here.
9581         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9582         * sysdeps/unix/bsd/wait3.c: ... here.
9583         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9584         * sysdeps/unix/bsd/waitpid.c: ... here.
9585
9586 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9587
9588         [BZ #16356]
9589         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9590         round-to-nearest for [!USE_AS_EXPM1L].
9591         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9592         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9593         more tests of exp and exp10.  Expect some exp10 tests to miss
9594         exceptions or fail in directed rounding modes.
9595         * math/auto-libm-test-out: Regenerated.
9596         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9597         (exp10_test_tonearest): New function.
9598         (exp10_towardzero_test_data): New array.
9599         (exp10_test_towardzero): New function.
9600         (exp10_downward_test_data): New array.
9601         (exp10_test_downward): New function.
9602         (exp10_upward_test_data): New array.
9603         (exp10_test_upward): New function.
9604         (main): Call the new functions.
9605         * sysdeps/i386/fpu/libm-test-ulps: Update.
9606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9607
9608 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9609
9610         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9611         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9612         * math/auto-libm-test-out: Regenerated.
9613         * math/libm-test.inc (acosh_test_data): Add more tests.
9614         (atanh_test_data): Likewise.
9615         (ceil_test_data): Likewise.
9616         (copysign_test_data): Likewise.
9617         * sysdeps/i386/fpu/libm-test-ulps: Update.
9618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9619
9620         * timezone/checktab.awk: Update from tzcode 2013i.
9621         * timezone/private.h: Likewise.
9622         * timezone/scheck.c: Likewise.
9623         * timezone/tzfile.h: Likewise.
9624         * timezone/tzselect.ksh: Likewise.
9625         * timezone/zdump.c: Likewise.
9626         * timezone/zic.c: Likewise.
9627
9628         * math/auto-libm-test-in: Add tests of cpow.
9629         * math/auto-libm-test-out: Regenerated.
9630         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9631         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9632         mpc_cc_c.
9633         (func_calc_desc): Add mpc_cc_c union field.
9634         (test_functions): Add cpow.
9635         (special_fill_2pi): New function.
9636         (special_real_inputs): Add 2pi.
9637         (calc_generic_results): Handle mpc_cc_c.
9638         * sysdeps/i386/fpu/libm-test-ulps: Update.
9639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9640
9641         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9642         csqrt, ctan and ctanh.
9643         * math/auto-libm-test-out: Regenerated.
9644         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9645         (TEST_COND_x86): Likewise.
9646         (ccos_test_data): Use AUTO_TESTS_c_c.
9647         (ccosh_test_data): Likewise.
9648         (cexp_test_data): Likewise.
9649         (clog_test_data): Likewise.
9650         (csqrt_test_data): Likewise.
9651         (ctan_test_data): Likewise.
9652         (ctan_tonearest_test_data): Likewise.
9653         (ctan_towardzero_test_data): Likewise.
9654         (ctan_downward_test_data): Likewise.
9655         (ctan_upward_test_data): Likewise.
9656         (ctanh_test_data): Likewise.
9657         (ctanh_tonearest_test_data): Likewise.
9658         (ctanh_towardzero_test_data): Likewise.
9659         (ctanh_downward_test_data): Likewise.
9660         (ctanh_upward_test_data): Likewise.
9661         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9662         mpc_c_c.
9663         (func_calc_desc): Add mpc_c_c union field.
9664         (FUNC_mpc_c_c): New macro.
9665         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9666         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9667         ctanh.
9668         (special_fill_min_subnorm_p120): New function.
9669         (special_real_inputs): Add min_subnorm_p120.
9670         (calc_generic_results): Handle mpc_c_c.
9671         * sysdeps/i386/fpu/libm-test-ulps: Update.
9672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9673
9674 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9675
9676         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9677         (do_sin_slow): New functions.
9678         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9679         (cslow2, csloww1, csloww2): Use the new functions.
9680
9681         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9682         Use M to change sign of result instead of X.  Assume X is
9683         positive.
9684         (csloww1): Likewise.
9685         (__sin): Adjust.
9686         (__cos): Adjust.
9687
9688         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9689         arguments A and DA.
9690         (__sin): Adjust.
9691         (__cos): Likewise.
9692
9693         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9694         (__cos): Likewise.
9695         (sloww1): Don't adjust sign of DX.
9696         (csloww1): Likewise.
9697         (sloww2): Use X directly and don't adjust sign of DX.
9698         (csloww2): Likewise.
9699
9700 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9701
9702         * math/auto-libm-test-in: Add tests of cabs and carg.
9703         * math/auto-libm-test-out: Regenerated.
9704         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9705         (carg_test_data): Likewise.
9706         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9707         mpc_c_f.
9708         (func_calc_desc): Add mpc_c_f union field.
9709         (test_functions): Add cabs and carg.
9710         (calc_generic_results): Handle mpc_c_f.
9711
9712         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9713         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9714         as a macro and a compat symbol.
9715         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9716         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9717         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9718         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9719         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9720         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9721         not use .hidden.
9722         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9723         Likewise.
9724         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9725         Likewise.
9726         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9727         Likewise.
9728         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9729         Likewise.
9730         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9731         Likewise.
9732         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9733         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9734         from GLIBC_2.3.2.
9735
9736 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9737
9738         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9739
9740 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9741
9742         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9743         trailing whitespace removed.
9744         * scripts/config.guess: Update to version 2013-11-29.
9745         * scripts/config.sub: Update to version 2013-10-01.
9746
9747         * math/auto-libm-test-in: Add tests of sincos.
9748         * math/auto-libm-test-out: Regenerated.
9749         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9750         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9751         mpfr_f_11.
9752         (func_calc_desc): Add mpfr_f_11 union field.
9753         (test_functions): Add sincos.
9754         (calc_generic_results): Handle mpfr_f_11.
9755         * sysdeps/i386/fpu/libm-test-ulps: Update.
9756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9757
9758 2013-12-19  Andreas Schwab  <schwab@suse.de>
9759
9760         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9761         CALL_MCOUNT.
9762         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9763         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9764         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9765
9766 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9767
9768         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9769         * sysdeps/i386/fpu/libm-test-ulps: Update.
9770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9771
9772         [BZ #16293]
9773         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9774         round-to-nearest mode when using frndint.
9775         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9776         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9777         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9778         Likewise.
9779         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9780         sinh test to fail.
9781         * math/auto-libm-test-out: Regenerated.
9782         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9783         (TEST_COND_x86): Likewise.
9784         (expm1_tonearest_test_data): New array.
9785         (expm1_test_tonearest): New function.
9786         (expm1_towardzero_test_data): New array.
9787         (expm1_test_towardzero): New function.
9788         (expm1_downward_test_data): New array.
9789         (expm1_test_downward): New function.
9790         (expm1_upward_test_data): New array.
9791         (expm1_test_upward): New function.
9792         (main): Run the new test functions.
9793         * sysdeps/i386/fpu/libm-test-ulps: Update.
9794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9795
9796         * include/features.h: Update comment documenting feature test
9797         macros.  Mention _DEFAULT_SOURCE in comment.
9798         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9799         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9800         _BSD_SOURCE and _SVID_SOURCE.
9801         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9802         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9803         !_SVID_SOURCE]: Likewise.
9804         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9805         (__USE_POSIX_IMPLICITLY): Define.
9806         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9807         (_POSIX_SOURCE): Undefine and redefine.
9808         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9809         (_POSIX_C_SOURCE): Likewise.
9810         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9811         (Feature Test Macros): Update documentation of default features.
9812
9813 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9814
9815         * benchtests/Makefile: Add bench-strtok.
9816         * benchtests/bench-strtok.c: New file: strtok benchtest.
9817
9818 2013-12-19  Allan McRae  <allan@archlinux.org>
9819
9820         * manual/install.texi: Suppress menu for plain text output.
9821         * INSTALL: Regenerated.
9822
9823 2013-12-18  Brooks Moses  <bmoses@google.com>
9824
9825         [BZ #15846]
9826         * misc/getauxval.c: Include errno.h.
9827         (__getauxval): Set errno to ENOENT if the requested type is not
9828         found.
9829         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9830         don't declare with __attribute_const__.
9831         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9832         * manual/startup.texi: Document that getauxval sets errno.
9833
9834 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9835
9836         * math/auto-libm-test-in: Add tests of jn and yn.
9837         * math/auto-libm-test-out: Regenerated.
9838         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9839         (yn_test_data): Likewise.
9840         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9841         mpfr_if_f.
9842         (func_calc_desc): Add mpfr_if_f union field.
9843         (FUNC_mpfr_if_f): New macro.
9844         (test_functions): Add jn and yn.
9845         (calc_generic_results): Assert type of second input for
9846         mpfr_ff_f.  Handle mpfr_if_f.
9847         (output_for_one_input_case): Disable all checking for arguments
9848         fitting floating-point types in case of an integer argument.
9849         * sysdeps/i386/fpu/libm-test-ulps: Update.
9850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9851
9852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9853         Don't expect fegetround reference in libm.so.
9854
9855 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9856
9857         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9858         $(config-cflags-nofma).
9859
9860 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9861
9862         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9863         * math/auto-libm-test-out: Regenerated.
9864
9865         [BZ #16338]
9866         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9867         to determine exponent and adjust argument to have exponent of -1.
9868         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9869         log2.
9870         * math/auto-libm-test-out: Regenerated.
9871         * sysdeps/i386/fpu/libm-test-ulps: Update.
9872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9873
9874 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9875
9876         * manual/probes.texi: Remove cases when per-thread arenas are
9877         disabled.
9878
9879 2013-12-18  Andreas Schwab  <schwab@suse.de>
9880
9881         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9882         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9883         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9884         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9885         * sysdeps/i386/i686/multiarch/Makefile: Update.
9886         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9887
9888 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9889
9890         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9891         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9892
9893 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9894
9895         [BZ #15968]
9896         Support TZ transition times < 00:00:00.
9897         This is needed for version-3 tz-format files; it supports time
9898         stamps past 2037 for America/Godthab (the only entry in the tz
9899         database for which this change is relevant).
9900         * manual/time.texi (TZ Variable): Document transition times
9901         from -167:59:59 through -00:00:01.
9902         * time/tzset.c (tz_rule): Time of day is now signed.
9903         (__tzset_parse_tz): Parse negative time of day.
9904
9905         Document TZ transition times >= 25:00:00.
9906         * manual/time.texi (TZ Variable): Document transition times from
9907         25:00:00 through 167:59:59.  These are already supported, and this
9908         support will help with version-3 tz-format files.
9909
9910         * manual/time.texi (TZ Variable): Modernize North America example
9911         to reflect current (i.e., 2007-and-later) daylight saving rules.
9912
9913         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9914
9915 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9916
9917         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9918         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9919         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9920         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9921         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9922         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9923         * sysdeps/unix/bsd/clock.c: Likewise.
9924         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9925         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9926         * sysdeps/unix/bsd/init-posix.c: Likewise.
9927         * sysdeps/unix/bsd/poll.c: Likewise.
9928         * sysdeps/unix/bsd/ptsname.c: Likewise.
9929         * sysdeps/unix/bsd/seekdir.c: Likewise.
9930         * sysdeps/unix/bsd/setegid.c: Likewise.
9931         * sysdeps/unix/bsd/seteuid.c: Likewise.
9932         * sysdeps/unix/bsd/setgid.c: Likewise.
9933         * sysdeps/unix/bsd/setrgid.c: Likewise.
9934         * sysdeps/unix/bsd/setruid.c: Likewise.
9935         * sysdeps/unix/bsd/setsid.c: Likewise.
9936         * sysdeps/unix/bsd/setuid.c: Likewise.
9937         * sysdeps/unix/bsd/sigaction.c: Likewise.
9938         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9939         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9940         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9941         * sysdeps/unix/bsd/telldir.c: Likewise.
9942         * sysdeps/unix/bsd/times.c: Likewise.
9943         * sysdeps/unix/bsd/usleep.c: Likewise.
9944
9945         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9946         ($(objpfx)libbsd-compat.a): Remove rule.
9947
9948         * include/features.h (__FAVOR_BSD): Do not define.
9949         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9950         features conflicting with POSIX.
9951         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9952         (_BSD_SOURCE): Remove description of not being a subset of other
9953         feature test macros.
9954         * manual/job.texi (getpgrp): Do not document BSD version.
9955         (getpgid): Do not document by reference to BSD getpgrp.
9956         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9957         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9958         * signal/signal.h [__FAVOR_BSD]: Likewise.
9959         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9960         instead of making contents conditional on [__FAVOR_BSD].
9961         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9962
9963 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9964
9965         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9966
9967 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9968
9969         [BZ #16314]
9970         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9971         values below 2**-450, not 2**-500.
9972         * math/auto-libm-test-in: Don't allow spurious underflow from
9973         hypot.
9974         * math/auto-libm-test-out: Regenerated.
9975
9976         [BZ #16316]
9977         [BZ #16330]
9978         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9979         values of ha and hb and sort them after adjusting subnormal
9980         arguments.
9981         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9982         Likewise.
9983         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9984         values of ea and eb and sort them after adjusting subnormal
9985         arguments.
9986         * math/auto-libm-test-in: Do not expect some hypot tests of
9987         subnormals to fail.  Add more hypot tests.
9988         * math/auto-libm-test-out: Regenerated.
9989
9990 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9991
9992         [BZ #13304]
9993         * sysdeps/sh/s_fma.c: New file.
9994         * sysdeps/sh/s_fmaf.c: New file.
9995         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9996         version.
9997         * sysdeps/sh/Implies: Add sh/soft-fp.
9998
9999 2013-12-16  Roland McGrath  <roland@hack.frob.com>
10000
10001         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
10002         level of indirection to members `objname', `errstring', `malloced'.
10003         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
10004         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
10005         it as the __longjmp argument (just pass 1 instead).
10006         (_dl_catch_error): Initialize C with argument pointers and address of
10007         volatile local ERRCODE rather than copying values out of C at return.
10008
10009 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
10010
10011         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
10012         * math/auto-libm-test-out: Regenerated.
10013         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
10014         (hypot_test_data): Likewise.
10015         (pow_test_data): Likewise.
10016         (pow_tonearest_test_data): Likewise.
10017         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10018         mpfr_ff_f.
10019         (func_calc_desc): Add mpfr_ff_f union field.
10020         (FUNC_mpfr_ff_f): New macro.
10021         (test_functions): Add atan2, hypot and pow.
10022         (special_fill_min): New function.
10023         (special_fill_minus_min): Likewise.
10024         (special_fill_min_subnorm): Likewise.
10025         (special_fill_minus_min_subnorm): Likewise.
10026         (special_real_inputs): Add min, -min, min_subnorm and
10027         -min_subnorm.
10028         (calc_generic_results): Handle mpfr_ff_f.
10029         * sysdeps/i386/fpu/libm-test-ulps: Update.
10030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10031
10032 2013-12-16  Will Newton  <will.newton@linaro.org>
10033
10034         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
10035         (Aligned Memory Blocks): Add documentation for aligned_alloc
10036         and suggest it as an alternative to posix_memalign.
10037         (Hooks for Malloc): Document __memalign_hook is also called
10038         for aligned_alloc.  (Summary of Malloc): Add summary for
10039         aligned alloc.  Document __memalign_hook is also called
10040         for aligned_alloc.
10041
10042 2013-12-16  Will Newton  <will.newton@linaro.org>
10043
10044         * manual/memory.texi (Malloc Examples): Clarify default
10045         alignment documentation.  Suggest posix_memalign rather
10046         than memalign or valloc.
10047         (Aligned Memory Blocks): Remove suggestion to use memalign
10048         or valloc.  Remove obsolete comment about BSD.
10049         Document memalign errno values and mark the function obsolete.
10050         Document posix_memalign returned error codes.  Mark valloc
10051         as obsolete.  (Hooks for Malloc): __memalign_hook is also
10052         called for posix_memalign and valloc.
10053         (Summary of Malloc): Add posix_memalign to function summary.
10054         __memalign_hook is also called for posix_memalign and valloc.
10055
10056 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10057
10058         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
10059         TAYLOR_SIN.
10060         (__sin): Adjust.
10061         (__cos): Likewise.
10062         (sloww): Use mynumber union.  Expand ternary operator into
10063         if-else statements.
10064         (cslow): use mynumber union.
10065
10066 2013-12-16  Allan McRae  <allan@archlinux.org>
10067
10068         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
10069         * configure: Regenerated.
10070
10071         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
10072
10073         [BZ #14120]
10074         * configure.ac: Added --enable-maintainer-mode. Check for
10075         autoconf when enabled.
10076         * configure: Regenerated.
10077
10078         * nscd/nscd.service: New file.
10079         * nscd/nscd.tmpfiles: New file.
10080
10081 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
10082
10083         [BZ #12100]
10084         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
10085         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
10086         * sysdeps/x86_64/multiarch/strstr.c: ... here.
10087         (strstr): Add __strstr_sse2_unaligned ifunc.
10088         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
10089         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
10090         (strcasestr): Remove __strcasestr_sse42 ifunc.
10091         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
10092         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
10093         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
10094
10095 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10096
10097         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
10098         * sysdeps/sh/bits/fenv.h: ... here.
10099         * sysdeps/sh/sh4/fpu/bits: Remove directory.
10100
10101 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10102
10103         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
10104
10105         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
10106         hypotf multiarch implementations.
10107         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
10108         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
10109         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
10110         multiarch hypot for PPC64.
10111         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
10112         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
10113         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
10114         multiarch hypotf for PPC64.
10115
10116         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
10117         modff multiarch implementations.
10118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
10119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
10120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
10121         multiarch modf for PPC64.
10122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
10123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
10124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
10125         multiarch modff for PPC64.
10126
10127         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
10128         and logl multiarch implementations.
10129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
10130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
10131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
10132         multiarch logb for PPC64.
10133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
10134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
10135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
10136         multiarch logb for PPC64.
10137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
10138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
10139         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
10140         multiarch logb for PPC64.
10141
10142         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
10143         isinff multiarch implementation.
10144         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
10145         file.
10146         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
10147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
10148         multiarch isinf for PPC64.
10149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
10150         file.
10151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
10152         multiarch isinff for PPC64.
10153
10154         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
10155         finitef multiarch implementation.
10156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
10157         file.
10158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
10159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
10160         multiarch finite for PPC64.
10161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
10162         file.
10163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
10164         multiarch finitef for PPC64.
10165
10166         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
10167         lrint multiarch implementation.
10168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
10169         file.
10170         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
10171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
10172         multiarch llrint for PPC64.
10173         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
10174         multiarch lrint for PPC64.
10175
10176         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
10177         copysignf multiarch implementation.
10178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
10179         file.
10180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
10181         file.
10182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
10183         multiarch copysign for PPC64.
10184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
10185         multiarch copysignf for PPC64.
10186
10187         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
10188         multiarch implementation.
10189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
10190         file.
10191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10192         file.
10193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10194         file.
10195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10196         file.
10197         multiarch llround for PPC64.
10198         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10199         multiarch trunc for PPC64.
10200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10201         multiarch truncf for PPC64.
10202
10203         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10204         multiarch implementation.
10205         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10206         file.
10207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10208         file.
10209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10210         file.
10211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10212         file.
10213         multiarch llround for PPC64.
10214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10215         multiarch round for PPC64.
10216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10217         multiarch roundf for PPC64.
10218
10219         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10220         multiarch implementation.
10221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10222         file.
10223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10224         file.
10225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10226         file.
10227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10228         file.
10229         multiarch llround for PPC64.
10230         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10231         multiarch floor for PPC64.
10232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10233         multiarch floorf for PPC64.
10234
10235         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10236         multiarch implementation.
10237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10238         file.
10239         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10240         file.
10241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10242         file.
10243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10244         file.
10245         multiarch llround for PPC64.
10246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10247         multiarch ceil for PPC64.
10248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10249         multiarch ceilf for PPC64.
10250
10251         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10252         multiarch implementation.
10253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10254         file.
10255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10256         file.
10257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10258         file.
10259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10260         multiarch llround for PPC64.
10261         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10262         multiarch lround for PPC64.
10263
10264         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10265         multiarch implementation.
10266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10267         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10269         file.
10270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10271         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10272         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10273         multiarch isnan for PPC64.
10274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10275         multiarch isnanf for PPC64.
10276
10277         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10278         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10279         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10280         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10281         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10283
10284         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10285         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10286         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10287         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10288
10289         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10290         multiarch implementations.
10291         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10292         (__libc_ifunc_impl_list): Likewise.
10293         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10294         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10295         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10296         multiarch stpcpy for PPC64.
10297
10298         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10299         multiarch implementations.
10300         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10301         (__libc_ifunc_impl_list): Likewise.
10302         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10303         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10304         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10305         multiarch strcpy for PPC64.
10306
10307         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10308         redefine function name.
10309         (_wordcopy_fwd_dest_aligned): Likewise.
10310         (_wordcopy_bwd_aligned): Likewise.
10311         (_wordcopy_bwd_dest_aligned): Likewise.
10312         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10313         multiarch implementations.
10314         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10315         (__libc_ifunc_impl_list): Likewise.
10316         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10317         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10318         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10319         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10320         multiarch wcscpy for PPC64.
10321
10322         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10323         multiarch implementations.
10324         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10325         (__libc_ifunc_impl_list): Likewise.
10326         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10327         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10328         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10329         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10330         multiarch wcscpy for PPC64.
10331
10332         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10333         multiarch implementations.
10334         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10335         (__libc_ifunc_impl_list): Likewise.
10336         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10337         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10338         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10339         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10340         multiarch wcsrchr for PPC64.
10341
10342         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10343         multiarch implementations.
10344         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10345         (__libc_ifunc_impl_list): Likewise.
10346         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10347         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10348         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10349         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10350         multiarch wcschr for PPC64.
10351
10352         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10353         multiarch implementations.
10354         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10355         (__libc_ifunc_impl_list): Likewise.
10356         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10357         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10358         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10359         multiarch strchrnul for PPC64.
10360
10361         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10362         implementations.
10363         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10364         (__libc_ifunc_impl_list): Likewise.
10365         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10366         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10367         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10368         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10369         strchr for PPC64.
10370
10371         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10372         implementations.
10373         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10374         (__libc_ifunc_impl_list): Likewise.
10375         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10376         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10377         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10378         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10379         strncmp for PPC64.
10380
10381         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10382         multiarch implementations.
10383         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10384         (__libc_ifunc_impl_list): Likewise.
10385         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10386         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10387         strncasecmp for PPC64.
10388         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10389         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10390         multiarch strncasecmp_l for PPC64.
10391
10392         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10393         multiarch implementations.
10394         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10395         (__libc_ifunc_impl_list): Likewise.
10396         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10397         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10398         multiarch strcasecmp for PPC64.
10399         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10400         file.
10401         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10402         multiarch strcasecmp_l for PPC64.
10403
10404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10405         implementations.
10406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10407         (__libc_ifunc_impl_list): Likewise.
10408         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10409         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10410         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10411         strnlen for PPC64.
10412
10413         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10414         implementations.
10415         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10416         (__libc_ifunc_impl_list): Likewise.
10417         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10418         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10419         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10420         strlen for PPC64.
10421
10422         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10423         implementations.
10424         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10425         (__libc_ifunc_impl_list): Likewise.
10426         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10427         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10428         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10429         rawmemrchr for PPC64.
10430
10431         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10432         implementation.
10433         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10434         (__libc_ifunc_impl_list): Likewise.
10435         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10436         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10437         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10438         memrchr for PPC64.
10439
10440         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10441         implementation.
10442         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10443         (__libc_ifunc_impl_list): Likewise.
10444         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10445         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10446         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10447         memchr for PPC64.
10448
10449         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10450         implementation.
10451         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10452         (__libc_ifunc_impl_list): Likewise.
10453         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10454         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10455         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10456         mempcpy for PPC64.
10457
10458         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10459         avoid cretion of __bzero symbol.
10460         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10461         Likewise.
10462         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10463         Likewise.
10464         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10465         Likewise.
10466         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10467         multiarch implementations.
10468         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10469         (__libc_ifunc_impl_list): Likewise.
10470         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10471         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10472         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10473         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10474         bzero for PPC32.
10475         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10476         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10477         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10478         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10479         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10480         memset for PPC64.
10481         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10482
10483         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10484         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10485         implementations.
10486         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10487         (__libc_ifunc_impl_list): Likewise.
10488         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10489         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10490         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10491         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10492         memcmp for PPC64.
10493
10494         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10495         multiarch for POWER/PPC64.
10496         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10497         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10498         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10499         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10500         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10501         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10502         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10503         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10504         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10505         memcpy for PPC64.
10506
10507         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10508         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10509         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10510         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10511         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10512         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10513         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10514         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10515         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10516         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10517         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10518         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10519         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10520         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10521         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10529
10530 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10531
10532         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
10533
10534 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10535
10536         * benchtests/Makefile (bench): Add exp2 and log2.
10537         (LDLIBS-bench-exp2): Add -lm.
10538         (LDLIBS-bench-log2): Likewise.
10539         * benchtests/exp2-inputs: New inputs file.
10540         * benchtests/log2-inputs: New inputs file.
10541         * benchtests/log-inputs: Add new inputs.
10542         * benchtests/tan-inputs: Likewise.
10543
10544 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10545
10546         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
10547         definition...
10548         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
10549         (csloww2): ... from here.
10550
10551         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
10552         instead of structures.
10553         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
10554         (POLYNOMIAL): Likewise.
10555         (TAYLOR_SLOW): Likewise.
10556         (__sin): Likewise.
10557         (__cos): Likewise.
10558         (slow1): Likewise.
10559         (slow2): Likewise.
10560         (sloww): Likewise.
10561         (sloww1); Likewise.
10562         (sloww2): Likewise.
10563         (bsloww1): Likewise.
10564         (bsloww2): Likewise.
10565         (cslow2): Likewise.
10566         (csloww): Likewise.
10567         (csloww1): Likewise.
10568         (csloww2): Likewise.
10569
10570 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
10571
10572         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
10573         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
10574         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10575         * malloc/hooks.c (realloc_check): Likewise.
10576
10577         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10578         * malloc/arena.c: Remove PER_THREAD conditional.
10579         [!PER_THREAD]: Remove code.
10580         (ptmalloc_unlock_all2): Likewise.
10581         (ptmalloc_init): Likewise.
10582         (_int_new_arena): Likewise.
10583         (arena_get2): Likewise.
10584         * malloc/hooks.c (__malloc_get_state): Likewise.
10585         (__malloc_set_state): Likewise.
10586         * malloc/malloc.c: Likewise.
10587         (struct malloc_state): Likewise.
10588         (struct malloc_par): Likewise.
10589         (__libc_realloc): Likewise.
10590         (__libc_mallopt): Likewise.
10591
10592 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10593
10594         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10595
10596 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10597
10598         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10599         macro to a function.  Check for zero perturb_byte.
10600         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10601
10602         * malloc/malloc.c: (force_reg): Remove.
10603         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10604         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10605         force_reg by atomic_forced_read.
10606         * malloc/arena.c (ptmalloc_init): Likewise.
10607         * malloc/hooks.c (top_check): Likewise.
10608
10609 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10610
10611         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10612
10613 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10614
10615         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10616
10617 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10618
10619         * math/auto-libm-test-in: Add tests of lgamma.
10620         * math/auto-libm-test-out: Regenerated.
10621         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10622         (M_LOG_2_SQRT_PIl): Likewise.
10623         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10624         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10625         mpfr_f_f1.
10626         (func_calc_desc): Add mpfr_f_f1 union field.
10627         (ARGS1): New macro.
10628         (ARGS2): Likewise.
10629         (ARGS3): Likewise.
10630         (ARGS4): Likewise.
10631         (RET1): Likewise.
10632         (RET2): Likewise.
10633         (CALC): Likewise.
10634         (FUNC): Likewise.
10635         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10636         (test_functions): Add lgamma.
10637         (calc_generic_results): Handle mpfr_f_f1.
10638         * sysdeps/i386/fpu/libm-test-ulps: Update.
10639         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10640
10641 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10642
10643         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10644         __mpn_add_n for PowerPC64/POWER7.
10645         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10646         __mpn_sub_n for PowerPC64/POWER7.
10647
10648         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10649         __mpn_addmul_1 for PowerPC64.
10650         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10651         __mpn_submul_1 for PowerPC64.
10652         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10653         for PowerPC64.
10654         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10655         for PowerPC64.
10656
10657 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10658
10659         [BZ #15089]
10660         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10661
10662 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10663
10664         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10665
10666         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10667         add multiarch folders.
10668         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10669         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10670         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10671         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10672         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10673         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10674         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10675         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10676         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10677         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10678         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10685
10686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10687         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10689         New file.
10690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10691         New file.
10692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10693         multiarch __ieee754_hypot for PowerPC32.
10694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10695         New file.
10696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10697         New file.
10698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10699         multiarch __ieee754_hypotf for PowerPC32.
10700
10701         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10702         long_double_symbol only if __logbl is defined.
10703         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10704         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10705         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10706         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10707         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10708         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10709         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10710         path for implementation.
10711         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10712         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10714         logb, and logbl multiarch implementations for PowerPC32.
10715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10716         file.
10717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10718         file.
10719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10720         multiarch logb for PowerPC32.
10721         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10722         file.
10723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10724         file.
10725         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10726         multiarch logbf for PowerPC32.
10727         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10729         file.
10730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10731         multiarch logbl implementation for PowerPC32.
10732
10733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10734         and modff multiarch implementations.
10735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10736         New file.
10737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10738         New file.
10739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10740         multiarch modf for PowerPC32.
10741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10742         New file.
10743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10744         New file.
10745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10746         multiarch modff for PowerPC32.
10747
10748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10749         and lrintf multiarch implementations.
10750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10751         New file.
10752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10753         New file.
10754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10755         multiarch lrint for PowerPC32.
10756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10757         file: multiarch lrintf for PowerPC32.
10758
10759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10760         and lroundf multiarch implementations.
10761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10762         New file.
10763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10764         New file.
10765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10766         New file.
10767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10768         multiarch lround for PowerPC32.
10769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10770         file: multiarch lroundf for PowerPC32.
10771
10772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10773         copysign and copysignf multiarch implementations.
10774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10775         New file.
10776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10777         New file.
10778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10779         file: multiarch copysign for PowerPC32.
10780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10781         file: multiarch copysignf for PowerPC32.
10782
10783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10784         and truncf multiarch implementations.
10785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10786         New file.
10787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10788         file.
10789         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10790         multiarch trunc for PowerPC32.
10791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10792         New file.
10793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10794         New file.
10795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10796         multiarch truncf for PowerPC32.
10797
10798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10799         and roundf multiarch implementations.
10800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10801         New file.
10802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10803         file.
10804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10805         multiarch round for PowerPC32.
10806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10807         New file.
10808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10809         New file.
10810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10811         multiarch roundf for PowerPC32.
10812
10813         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10814         and floorf multiarch implementations.
10815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10816         New file.
10817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10818         file.
10819         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10820         multiarch floor for PowerPC32.
10821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10822         New file.
10823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10824         New file.
10825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10826         multiarch floorf for PowerPC32.
10827
10828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10829         and ceilf multiarch implementations.
10830         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10831         New file.
10832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10833         file.
10834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10835         multiarch ceil for PowerPC32.
10836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10837         New file.
10838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10839         file.
10840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10841         multiarch ceilf for PowerPC32.
10842
10843         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10844         is defined.
10845         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10846         FINITEF is defined.
10847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10848         and finitef multiarch implementations.
10849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10850         New file.
10851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10852         file.
10853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10854         multiarch finite for PowerPC32.
10855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10856         New file.
10857         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10858         file: multiarch finitef for PowerPC32.
10859
10860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10861         and isinff multiarch implementations.
10862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10863         file.
10864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10865         file.
10866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10867         multiarch isinf for PowerPC32.
10868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10869         New file.
10870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10871         multiarch isinff for PowerPC32.
10872
10873         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10874         alias when __isnan is defined.
10875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10876         and isnanf multiarch implementations.
10877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10878         file.
10879         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10880         file.
10881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10882         file.
10883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10884         file.
10885         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10886         multiarch isnan for PowerPC32.
10887         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10888         New file.
10889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10890         New file.
10891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10892         multiarch isnanf for PowerPC32.
10893
10894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10895         and sqrtf multiarch implementations.
10896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10897         file.
10898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10899         file.
10900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10901         multiarch sqrt for PowerPC32.
10902         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10903         file.
10904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10905         file.
10906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10907         multiarch sqrtf for PowerPC32.
10908
10909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10910         and llroundf multiarch implementations.
10911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10912         New file.
10913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10914         New file.
10915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10916         New file.
10917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10918         file: multiarch llround for PowerPC32.
10919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10920         file: multiarch llroundf for PowerPC32.
10921
10922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10923         multiarch PowerPC32 fpu implementations.
10924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10925         New file.
10926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10927         New file.
10928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10929         multiarch llrint for PowerPC32.
10930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10931         New file.
10932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10933         New file.
10934         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10935         file.
10936
10937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10938
10939         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10940         file.
10941         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10942         file.
10943         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10944         file.
10945         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10946         multiarch wordcopy for PPC32.
10947         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10948         wordcopy objects.
10949         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10950         (__libc_ifunc_impl_list): Likewise.
10951         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10952         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10953         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10954         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10955         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10956         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10957
10958         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10959         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10960         file.
10961         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10962         file.
10963         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10964         file.
10965         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10966         multiarch wcscpy for PPC32.
10967         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10968         multiarch objects.
10969         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10970         (__libc_ifunc_impl_list): Likewise.
10971         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10972         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10973         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10974         sysdeps/powerpc/power6/wcscpy.c.
10975
10976         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10977         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10978         file.
10979         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10980         file.
10981         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10982         file.
10983         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10984         multiarch wcsrchr for PPC32.
10985         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10986         multiarch objects.
10987         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10988         (__libc_ifunc_impl_list): Likewise.
10989         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10990         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10991         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10992         sysdeps/powerpc/power6/wcsrchr.c.
10993
10994         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10995         file.
10996         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10997         file.
10998         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10999         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
11000         multiarch wcschr for PPc32.
11001         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
11002         multiarch objects.
11003         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11004         (__libc_ifunc_impl_list): Likewise.
11005         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
11006         * sysdeps/powerpc/power6/wcschr.c: ... to here.
11007         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
11008         sysdeps/powerpc/power6/wcschr.c.
11009
11010         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
11011         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
11012         file.
11013         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
11014         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
11015         file: multiarch strchr for PPC32.
11016         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
11017         multiarch objects.
11018         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11019         (__libc_ifunc_impl_list): Likewise.
11020
11021         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
11022         name.
11023         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
11024         file.
11025         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
11026         file.
11027         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
11028         multiarch strchrnul for PPC32.
11029         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
11030         multiarch objects.
11031         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11032         (__libc_ifunc_impl_list): Likewise.
11033
11034         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
11035         file.
11036         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
11037         multiarch strncasecmp for PPC32.
11038         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
11039         file.
11040         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
11041         multiarch strncasecmp_l for PPC32.
11042         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
11043         strncasecmp multiarch objects.
11044         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11045         (__libc_ifunc_impl_list): Likewise.
11046
11047         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
11048         file.
11049         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
11050         multiarch strncasecmp for PPC32.
11051         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
11052         New file.
11053         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
11054         multiarch strcasecmp_l for PPC32.
11055         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
11056         multiarch objects.
11057         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11058         (__libc_ifunc_impl_list): Likewise.
11059
11060         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
11061         file.
11062         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
11063         file.
11064         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
11065         multiarch strncmp for PPC32.
11066         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
11067         multiarch objects.
11068         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11069         (__libc_ifunc_impl_list): Likewise.
11070
11071         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
11072         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
11073         file.
11074         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
11075         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
11076         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
11077         multiarch objects.
11078         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11079         (__libc_ifunc_impl_list): Likewise.
11080
11081         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
11082         file.
11083         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
11084         file.
11085         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
11086         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
11087         multiarch objects.
11088         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11089         (__libc_ifunc_impl_list): Likewise.
11090
11091         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
11092         file.
11093         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
11094         file.
11095         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
11096         multiarch rawmemchr for PPC32.
11097         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
11098         multiarch objects.
11099         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11100         (__libc_ifunc_impl_list): Likewise.
11101
11102         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
11103         file.
11104         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
11105         file.
11106         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
11107         file: memrchr multiarch for PPC32.
11108         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
11109         multiarch objects.
11110         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11111         (__libc_ifunc_impl_list): Likewise.
11112
11113         * string/memchr.c (__memchr): Using macro to redefine symbol name.
11114         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
11115         file.
11116         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
11117         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
11118         multiarch memchr for PPC32.
11119         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
11120         multiarch objects.
11121         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11122         (__libc_ifunc_impl_list): Likewise.
11123
11124         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
11125         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
11126         file.
11127         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
11128         file.
11129         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
11130         file: multiarch mempcpy for PPC32.
11131         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
11132         multiarch objects.
11133         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11134         (__libc_ifunc_impl_list): Likewise.
11135
11136         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
11137         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
11138         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
11139         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
11140         multiarch bzero for PPC32.
11141         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
11142         file.
11143         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
11144         file.
11145         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
11146         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
11147         file: multiarch memset for PPC32.
11148         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
11149         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
11150         memset multiarch objects.
11151         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11152         (__libc_ifunc_impl_list): Likewise.
11153
11154         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
11155         file.
11156         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
11157         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
11158         memcmp for PPC32.
11159         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
11160         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
11161         multiarch objects.
11162         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11163         (__libc_ifunc_impl_list): Likewise.
11164
11165         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
11166         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
11167         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
11168         file.
11169         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
11170         file.
11171         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
11172         file.
11173         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
11174         multiarch memcpy for PPC32.
11175         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
11176         multiarch objects.
11177         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11178         (__libc_ifunc_impl_list): Likewise.
11179
11180         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
11181         support multiarch for POWER/PPC32.
11182         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
11183         Likewise.
11184         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
11185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
11186         Implies file to make multiarch folder appers before the fpu and
11187         default folder for power4 configuration.
11188
11189 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11190
11191         * scripts/bench.pl: Append volatile keyword to type.
11192
11193 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11194
11195         * sysdeps/sh/sotruss-lib.c: New file.
11196         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11197
11198 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11199
11200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11201
11202 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11203
11204         [BZ #6810]
11205         * math/w_tgamma.c: Include <errno.h>.
11206         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11207         * math/w_tgammaf.c: Include <errno.h>.
11208         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11209         * math/w_tgammal.c: Include <errno.h>.
11210         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11211         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11212         underflow.  Add more tgamma tests.
11213         * math/auto-libm-test-out: Regenerated.
11214         * sysdeps/i386/fpu/libm-test-ulps: Update.
11215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11216
11217         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11218         sin, sinh, tan, tanh, tgamma, y0 and y1.
11219         * math/auto-libm-test-out: Regenerated.
11220         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11221         (TEST_COND_x86): Likewise.
11222         (M_E2l): Remove macro.
11223         (M_E3l): Likewise.
11224         (M_2_SQRT_PIl): Likewise.
11225         (M_SQRT_PIl): Likewise.
11226         (M_1_DIV_El): Likewise.
11227         (log_test_data): Use AUTO_TESTS_f_f.
11228         (log10_test_data): Likewise.
11229         (log1p_test_data): Likewise.
11230         (log2_test_data): Likewise.
11231         (sin_test_data): Likewise.
11232         (sin_tonearest_test_data): Likewise.
11233         (sin_towardzero_test_data): Likewise.
11234         (sin_downward_test_data): Likewise.
11235         (sin_upward_test_data): Likewise.
11236         (sinh_test_data): Likewise.
11237         (sinh_tonearest_test_data): Likewise.
11238         (sinh_towardzero_test_data): Likewise.
11239         (sinh_downward_test_data): Likewise.
11240         (sinh_upward_test_data): Likewise.
11241         (tan_test_data): Likewise.
11242         (tan_tonearest_test_data): Likewise.
11243         (tan_towardzero_test_data): Likewise.
11244         (tan_downward_test_data): Likewise.
11245         (tan_upward_test_data): Likewise.
11246         (tanh_test_data): Likewise.
11247         (tgamma_test_data): Likewise.
11248         (y0_test_data): Likewise.
11249         (y1_test_data): Likewise.
11250         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11251         (special_real_inputs): Add pi/4.
11252         * sysdeps/i386/fpu/libm-test-ulps: Update.
11253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11254
11255 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11256
11257         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11258         "longjmp_target" static probes.
11259         (__longjmp): Rename to __longjmp_symbol.
11260         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11261         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11262         on which longjmp to generate.
11263         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11264         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11265         probe.
11266         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11267         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11268         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11269         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11270         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11271         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11273         __longjmp_symbol based on which __longjmp to generate.
11274         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11275         probe.
11276         (setjmp): Rename to setjmp_symbol.
11277         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11278         (_setjmp): Rename to _setjmp_symbol.
11279         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11280         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11281         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11282         which setjmp to generate.
11283         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11284         "longjmp_target" static probes.
11285
11286 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11287
11288         * benchtests/README: Add note about output arguments.
11289         * benchtests/bench-sincos.c: Remove file.
11290         * benchtests/sincos-inputs: New file.
11291         * scripts/bench.pl: Identify output arguments and define
11292         static variables for them.
11293
11294         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11295
11296         [BZ #15941]
11297         * Makefile (INSTALL): Add install-plain.texi as the primary
11298         dependency.
11299         * manual/install-plain.texi: New file.
11300         * manual/install.texi: Include node directive only for
11301         non-plaintext output.
11302
11303 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11304
11305         * stdlib/longlong.h: Update from GCC.
11306
11307         [BZ #6807]
11308         [BZ #15901]
11309         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11310         * math/w_j0f.c (y0f): Likewise.
11311         * math/w_j0l.c (__y0l): Likewise.
11312         * math/w_j1.c (y1): Likewise.
11313         * math/w_j1f.c (y1f): Likewise.
11314         * math/w_j1l.c (__y1l): Likewise
11315         * math/w_jn.c (yn): Likewise.
11316         * math/w_jnf.c (ynf): Likewise.
11317         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11318         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11319         value for Bessel function domain errors outside _SVID_ mode.
11320         Adjust sign of return value for yn (negative integer, 0).
11321         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11322         by zero in return for negative x and set sign appropriately for
11323         negative n.
11324         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11325         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11326         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11327         expectations in error cases.
11328         (y1_test_data): Likewise.
11329         (yn_test_data): Likewise.
11330         * sysdeps/i386/fpu/libm-test-ulps: Update.
11331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11332
11333 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11334
11335         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11336         "64" to "64-v1".  Add "64-v2".
11337         (abi-64-options): Rename to ...
11338         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11339         (abi-64-condition): Rename to ...
11340         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11341         (abi-64-ld-soname): Rename to ...
11342         (abi-64-v1-ld-soname): ... this.
11343         (abi-64-v2-options): Define.
11344         (abi-64-v2-condition): Likewise.
11345         (abi-64-v2-ld-soname): Likewise.
11346         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11347         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11351
11352 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11353             Alan Modra  <amodra@gmail.com>
11354
11355         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11356         New versions for use with the ELFv2 ABI.
11357         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11358         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11359         declaration.
11360         (struct La_ppc64v2_retval): Likewise.
11361         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11362         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11363         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11364         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11365         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11366         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11367         Do not save or restore CR.
11368         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11369         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11370         return values for ELFv2 ABI.  Fix location of FPR return registers.
11371         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11372         updated values for _CALL_ELF == 2.
11373         (La_regs, La_retval, int_retval): Likewise.
11374
11375 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11376
11377         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11378         (FRAME_MIN_SIZE_PARM): Likewise.
11379         (FRAME_BACKCHAIN): Likewise.
11380         (FRAME_CR_SAVE): Likewise.
11381         (FRAME_LR_SAVE): Likewise.
11382         (FRAME_TOC_SAVE): Likewise.
11383         (FRAME_PARM_SAVE): Likewise.
11384         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11385         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11386         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11387         (call_mcount_parm_offset): New macro.
11388         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11389         (PROF): Use symbolic stack frame offsets.
11390         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11391         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11392         Redefine in terms of FRAME_MIN_SIZE.
11393         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11394         (_dl_profile_resolve): Likewise.  Update comment.
11395         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11396         symbols stack frame offsets.
11397         (__sigsetjmp): Likewise.
11398         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11399         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11400         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11401         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11402
11403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11404         (FRAME_BACKCHAIN): Remove.
11405         (FRAME_CR_SAVE): Likewise.
11406         (FRAME_LR_SAVE): Likewise.
11407         (FRAME_COMPILER_DW): Likewise.
11408         (FRAME_LINKER_DW): Likewise.
11409         (FRAME_TOC_SAVE): Likewise.
11410         (FRAME_PARM_SAVE): Likewise.
11411         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11412         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11413         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11415         (CHECK_SP): Use symbolic stack frame offsets.
11416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11417         zone" instead of caller's parameter save area for temp storage.
11418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11419         Likewise.  Also, use symbolic stack frame offsets.
11420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11421         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11422         our own stack frame instead of the caller's.
11423         (__socket): Use symbolic stack frame offsets.
11424
11425 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11426             Alan Modra  <amodra@gmail.com>
11427
11428         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11429         Define.
11430         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11431         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11432         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11433         New function.
11434         (elf_machine_fixup_plt): Call it.
11435         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11436         reloc arguments.
11437         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11438         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11439         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11440         r2 before calling target.
11441
11442 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11443             Alan Modra  <amodra@gmail.com>
11444
11445         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11446         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11447         versions of macros to support ELFv2 ABI.
11448         (LOCALENTRY): New macro.
11449         (ENTRY, EALIGN): Use it.
11450         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11451         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11452         fall through into ENTRY entry point.
11453         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11454         Only define if _CALL_ELF != 2.
11455
11456         (elf_machine_matches_host): Verify ABI version matches.
11457         (RTLD_START): Use LOCALENTRY.
11458         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11459         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11460         (PLT_ENTRY_WORDS): New macro.
11461         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11462         (elf_machine_runtime_setup): Support ELFv2 ABI.
11463         (elf_machine_fixup_plt): Likewise.
11464         (elf_machine_plt_conflict): Likewise.
11465         (resolve_ifunc): Likewise.
11466         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11467         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11468         Likewise.
11469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11470         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11472         (makecontext): Support ELFv2 ABI.
11473         * elf/elf.h (EF_PPC64_ABI): Define.
11474
11475 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11476
11477         * sysdeps/powerpc/powerpc64/sysdep.h
11478         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11479         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11480         (ENTRY) [ASSEMBLER]: ... but instead here ...
11481         (EALIGN) [ASSEMBLER]: ... and here.
11482         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11483         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11484         (ENTRY_2) [!ASSEMBLER]: Use it.
11485         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11486         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11487         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11488         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11489         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11491         Use PPC64_LOAD_FUNCPTR.
11492
11493         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11494
11495 2013-12-04  Alan Modra  <amodra@gmail.com>
11496
11497         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11498         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11499         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11500         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11501
11502         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11503         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11504         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11505         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11506         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11507         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11508
11509 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11510
11511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11512         (__makecontext): Fix incorrect CFI when backtracing out of
11513         context created via makecontext.
11514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11515         (__setcontext): Fix incorrect CFI during switch to new context.
11516         (__novec_setcontext): Likewise.
11517
11518 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11519
11520         [BZ #4772]
11521         * time/strptime_l.c (__strptime_internal): Allow modifiers
11522         in strptime.
11523         * time/tst-strptime.c (day_tests): Add testcase.
11524
11525 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11526
11527         * scripts/bench.pl: Skip over blank lines.
11528
11529 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11530
11531         [BZ #926]
11532         * manual/time.texi (Calendar Time): Clarify what timezone functions
11533         use.
11534
11535 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11536
11537         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11538
11539 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11540
11541         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
11542         implementation.
11543         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
11544         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
11545         * debug/memset_chk.c (__memset_chk): Likewise.
11546         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
11547         * debug/strncpy_chk.c: Likewise.
11548
11549 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11550
11551         [BZ #15268]
11552         [BZ #15425]
11553         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
11554         (__ieee754_exp): For possibly underflowing results, check size of
11555         result and force underflow exception if required.
11556         * math/auto-libm-test-in: Add more tests of exp.
11557         * math/auto-libm-test-out: Regenerated.
11558         * sysdeps/i386/fpu/libm-test-ulps: Update.
11559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11560
11561         [BZ #16283]
11562         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
11563         * math/w_exp2f.c (__exp2f): Likewise.
11564         * math/w_exp2l.c (__exp2l): Likewise.
11565         * math/auto-libm-test-in: Do not allow missing errno on exp2
11566         underflow.
11567         * math/auto-libm-test-out: Regenerated.
11568
11569 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
11570
11571         [BZ #16274]
11572         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
11573         handle filename validation.
11574         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11575         (do_open): Delete.
11576
11577 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11578
11579         [BZ #6786]
11580         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11581         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11582         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11583         <float.h>.
11584         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11585         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11586         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11587         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11588         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11589         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11590         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11591         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11592         Add more erfc tests.
11593         * math/auto-libm-test-out: Regenerated.
11594         * sysdeps/i386/fpu/libm-test-ulps: Update.
11595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11596
11597         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11598         exp2, expm1, j0 and j1.
11599         * math/auto-libm-test-out: Regenerated.
11600         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11601         (erfc_test_data): Likewise.
11602         (exp_test_data): Likewise.
11603         (exp_tonearest_test_data): Likewise.
11604         (exp_towardzero_test_data): Likewise.
11605         (exp_downward_test_data): Likewise.
11606         (exp_upward_test_data): Likewise.
11607         (exp10_test_data): Likewise.
11608         (exp2_test_data): Likewise.
11609         (expm1_test_data): Likewise.
11610         (j0_test_data): Likewise.
11611         (j1_test_data): Likewise.
11612         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11613         (input_flag_type): Add flag_xfail_rounding.
11614         (input_flags): Add xfail-rounding.
11615         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11616         (output_for_one_input_case): Handle flag_xfail_rounding.
11617         * sysdeps/i386/fpu/libm-test-ulps: Update.
11618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11619
11620 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11621
11622         [BZ #16289]
11623         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11624         division by 0.
11625
11626 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11627
11628         [BZ #16195]
11629         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11630         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11631         (STAP_PROBE0): New macro.
11632         (STAP_PROBE1): Likewise.
11633         (STAP_PROBE2): Likewise.
11634         (STAP_PROBE3): Likewise.
11635         (STAP_PROBE4): Likewise.
11636
11637 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11638
11639         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11640
11641 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11642
11643         * benchtests/Makefile (bench): Add sqrt.
11644         (LDLIBS-bench-sqrt): New.
11645         * benchtests/sqrt-input: New.
11646
11647 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11648
11649         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11650         (GAIH_EAI): Likewise.
11651         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11652         (gaih_inet): Likewise.
11653         (getaddrinfo): Don't use GAIH_EAI.
11654
11655         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11656         (struct gaih): Remove definition.
11657
11658 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11659
11660         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11661         Use HERRNOP directly.
11662
11663 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11664
11665         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11666
11667 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11668
11669         * math/gen-auto-libm-tests.c (test_functions): Add more
11670         single-argument functions.
11671         (special_fill_pi_2): New function.
11672         (special_fill_minus_pi_2): Likewise.
11673         (special_fill_pi_6): Likewise.
11674         (special_fill_minus_pi_6): Likewise.
11675         (special_fill_pi_3): Likewise.
11676         (special_fill_2pi_3): Likewise.
11677         (special_fill_e): Likewise.
11678         (special_fill_1_e): Likewise.
11679         (special_fill_e_minus_1): Likewise.
11680         (special_real_inputs): Add more special inputs.
11681         (output_for_one_input_case): Do not require ERANGE on underflow to
11682         zero if round-to-nearest result does not underflow to zero, unless
11683         exact results required.
11684         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11685         atan, atanh, cbrt, cos and cosh.
11686         * math/auto-libm-test-out: Regenerated.
11687         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11688         (acos_tonearest_test_data): Likewise.
11689         (acos_towardzero_test_data): Likewise.
11690         (acos_downward_test_data): Likewise.
11691         (acos_upward_test_data): Likewise.
11692         (acosh_test_data): Likewise.
11693         (asin_test_data): Likewise.
11694         (asin_tonearest_test_data): Likewise.
11695         (asin_towardzero_test_data): Likewise.
11696         (asin_upward_test_data): Likewise.
11697         (asinh_test_data): Likewise.
11698         (atan_test_data): Likewise.
11699         (atanh_test_data): Likewise.
11700         (cbrt_test_data): Likewise.
11701         (cos_test_data): Likewise.
11702         (cos_tonearest_test_data): Likewise.
11703         (cos_towardzero_test_data): Likewise.
11704         (cos_downward_test_data): Likewise.
11705         (cos_upward_test_data): Likewise.
11706         (cosh_test_data): Likewise.
11707         (cosh_tonearest_test_data): Likewise.
11708         (cosh_towardzero_test_data): Likewise.
11709         (cosh_downward_test_data): Likewise.
11710         (cosh_upward_test_data): Likewise.
11711         * sysdeps/i386/fpu/libm-test-ulps: Update.
11712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11713
11714 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11715
11716         [BZ #6787]
11717         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11718         * math/w_exp10f.c (__exp10f): Likewise.
11719         * math/w_exp10l.c (__exp10l): Likewise.
11720         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11721         errno settings in existing tests.
11722
11723         [BZ #14032]
11724         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11725         precision control set to double precision.
11726         * sysdeps/i386/fpu/w_sqrt.c: New file.
11727         * math/auto-libm-test-in: Add more tests.
11728         * math/auto-libm-test-out: Update.
11729
11730         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11731         (sqrt_test_tonearest): New function.
11732         (sqrt_towardzero_test_data): New variable.
11733         (sqrt_test_towardzero): New function.
11734         (sqrt_downward_test_data): New variable.
11735         (sqrt_test_downward): New function.
11736         (sqrt_upward_test_data): New variable.
11737         (sqrt_test_upward): New function.
11738         (main): Call the new functions.
11739
11740         * math/gen-auto-libm-tests.c: New file.
11741         * math/auto-libm-test-in: Likewise.
11742         * math/auto-libm-test-out: New generated file.
11743         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11744         variables.
11745         (%beautify): Add generated representations of zero.
11746         (top level): Set $auto_input and call parse_auto_input.
11747         (beautify): Remove trailing "f" from hex float constants.
11748         (parse_args): Handle XFAIL_TEST.
11749         (convert_condition): New function.
11750         (or_value): Likewise.
11751         (or_cond_value): Likewise.
11752         (generate_testfile): Handle AUTO_TESTS_* lines.
11753         (parse_auto_input): New function.
11754         * math/libm-test.inc (XFAIL_TEST): New macro.
11755         (ERRNO_UNCHANGED): Update value.
11756         (ERRNO_EDOM): Likewise.
11757         (ERRNO_ERANGE): Likewise.
11758         (IGNORE_RESULT): Likewise.
11759         (TEST_COND_flt_32): New macro.
11760         (TEST_COND_dbl_64): Likewise.
11761         (TEST_COND_ldbl_96_intel): Likewise.
11762         (TEST_COND_ldbl_96_m68k): Likewise.
11763         (TEST_COND_ldbl_128): Likewise.
11764         (TEST_COND_ldbl_128ibm): Likewise.
11765         (TEST_COND_long32): Likewise.
11766         (TEST_COND_long64): Likewise.
11767         (TEST_COND_before_rounding): Likewise.
11768         (TEST_COND_after_rounding): Likewise.
11769         (enable_test): Handle XFAIL_TEST flag.
11770         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11771         with finite results.
11772         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11773         auto-libm-test-out.
11774
11775 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11776             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11777
11778         [BZ #16214]
11779         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11780         __tls_get_addr_internal instead of __tls_get_offset in order to
11781         avoid GOT pointer dependency.  Make rtld export
11782         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11783         __tls_get_addr since we are a __tls_get_offset platform.
11784         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11785         GOT pointer being set up before.
11786         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11787
11788 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11789
11790         * manual/math.texi (Errors in Math Functions): Document accuracy
11791         goals.
11792
11793         [BZ #15004]
11794         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11795         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11796         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11797         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11798         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11799         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11800         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11801         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11802         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11803         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11804         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11805         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11806         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11807         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11808         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11810
11811         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11812         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11813         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11814         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11815         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11816         Likewise.
11817         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11818         Likewise.
11819         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11820         Likewise.
11821         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11822         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11823         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11824         atomic-feupdateenv and flt-rounds.
11825         * sysdeps/powerpc/nofpu/Versions (libc): Add
11826         __atomic_feholdexcept, __atomic_feclearexcept,
11827         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11828         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11829         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11830         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11831         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11832         here.
11833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11834         Update.
11835
11836         * manual/arith.texi (FP Exceptions): Document that exceptions may
11837         not be raised when matherr is used.
11838         (Math Error Reporting): Document overflow in directed rounding
11839         modes.  Document that errno may not be set when finite values are
11840         returned on overflow.  Document intent to set errno on underflow
11841         only for underflow to zero.
11842
11843         [BZ #16271]
11844         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11845         round-to-nearest then adjust result for other rounding modes.
11846         * include/fenv.h (fegetround): Use libm_hidden_proto.
11847         * math/fegetround.c (fegetround): Use libm_hidden_def.
11848         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11849         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11850         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11851         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11852         Likewise.
11853         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11854         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11855         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11856         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11857
11858 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11859
11860         [BZ #16077]
11861         * nss/Versions (libnss_files): Add
11862         _nss_files_gethostbyname3_r.
11863         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11864         New function.
11865         (HOST_DB_LOOKUP): Remove macro.
11866         (_nss_files_gethostbyname_r): Implement function without the
11867         HOST_DB_LOOKUP macro.
11868         (_nss_files_gethostbyname2_r): Likewise.
11869
11870 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11871
11872         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11873
11874 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11875
11876         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11877         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11878         warning.
11879
11880 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11881
11882         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11883         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11884         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11885         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11886         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11887         __fe_nomask_env_priv and attribute_hidden.
11888         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11889         (libc_feupdateenv_test_ppc): Likewise.
11890         (libc_feresetround_ppc): Likewise.
11891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11892         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11893         compat_symbol macro.
11894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11895         (__fe_nomask_env): Likewise.
11896         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11897
11898 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11899
11900         * string/Makefile: Remove ifunc tests.
11901         * string/test-string.h: Define TEST_IFUNC.
11902         * string/test-bcopy-ifunc.c: Remove.
11903         * string/test-bzero-ifunc.c: Likewise.
11904         * string/test-memccpy-ifunc.c: Likewise.
11905         * string/test-memchr-ifunc.c: Likewise.
11906         * string/test-memcmp-ifunc.c: Likewise.
11907         * string/test-memcpy-ifunc.c: Likewise.
11908         * string/test-memmem-ifunc.c: Likewise.
11909         * string/test-memmove-ifunc.c: Likewise.
11910         * string/test-mempcpy-ifunc.c: Likewise.
11911         * string/test-memrchr-ifunc.c: Likewise.
11912         * string/test-memset-ifunc.c: Likewise.
11913         * string/test-rawmemchr-ifunc.c: Likewise.
11914         * string/test-stpcpy-ifunc.c: Likewise.
11915         * string/test-stpncpy-ifunc.c: Likewise.
11916         * string/test-strcasecmp-ifunc.c: Likewise.
11917         * string/test-strcasestr-ifunc.c: Likewise.
11918         * string/test-strcat-ifunc.c: Likewise.
11919         * string/test-strchr-ifunc.c: Likewise.
11920         * string/test-strchrnul-ifunc.c: Likewise.
11921         * string/test-strcmp-ifunc.c: Likewise.
11922         * string/test-strcpy-ifunc.c: Likewise.
11923         * string/test-strcspn-ifunc.c: Likewise.
11924         * string/test-strlen-ifunc.c: Likewise.
11925         * string/test-strncasecmp-ifunc.c: Likewise.
11926         * string/test-strncat-ifunc.c: Likewise.
11927         * string/test-strncmp-ifunc.c: Likewise.
11928         * string/test-strncpy-ifunc.c: Likewise.
11929         * string/test-strnlen-ifunc.c: Likewise.
11930         * string/test-strpbrk-ifunc.c: Likewise.
11931         * string/test-strrchr-ifunc.c: Likewise.
11932         * string/test-strspn-ifunc.c: Likewise.
11933         * string/test-strstr-ifunc.c: Likewise.
11934
11935 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11936
11937         * benchtests/Makefile: Remove ifunc tests.
11938         * benchtests/bench-string.h: Define TEST_IFUNC.
11939         * benchtests/bench-bcopy-ifunc.c: Remove.
11940         * benchtests/bench-bzero-ifunc.c: Likewise.
11941         * benchtests/bench-memccpy-ifunc.c: Likewise.
11942         * benchtests/bench-memchr-ifunc.c: Likewise.
11943         * benchtests/bench-memcmp-ifunc.c: Likewise.
11944         * benchtests/bench-memcpy-ifunc.c: Likewise.
11945         * benchtests/bench-memmem-ifunc.c: Likewise.
11946         * benchtests/bench-memmove-ifunc.c: Likewise.
11947         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11948         * benchtests/bench-memrchr-ifunc.c: Likewise.
11949         * benchtests/bench-memset-ifunc.c: Likewise.
11950         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11951         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11952         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11953         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11954         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11955         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11956         * benchtests/bench-strcat-ifunc.c: Likewise.
11957         * benchtests/bench-strchr-ifunc.c: Likewise.
11958         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11959         * benchtests/bench-strcmp-ifunc.c: Likewise.
11960         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11961         * benchtests/bench-strcpy-ifunc.c: Likewise.
11962         * benchtests/bench-strcspn-ifunc.c: Likewise.
11963         * benchtests/bench-strlen-ifunc.c: Likewise.
11964         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11965         * benchtests/bench-strncat-ifunc.c: Likewise.
11966         * benchtests/bench-strncmp-ifunc.c: Likewise.
11967         * benchtests/bench-strncpy-ifunc.c: Likewise.
11968         * benchtests/bench-strnlen-ifunc.c: Likewise.
11969         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11970         * benchtests/bench-strrchr-ifunc.c: Likewise.
11971         * benchtests/bench-strsep-ifunc.c: Likewise.
11972         * benchtests/bench-strspn-ifunc.c: Likewise.
11973         * benchtests/bench-strstr-ifunc.c: Likewise.
11974
11975 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11976
11977         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11978
11979 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11980
11981         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11982         * rt/aio.h: Likewise.
11983         * sysdeps/gnu/bits/utmp.h: Likewise.
11984         * sysdeps/gnu/bits/utmpx.h: Likewise.
11985         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11986         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11987         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11988         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11989         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11990         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11991         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11992         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11993         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11994         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11995         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11996         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11997         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11999         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
12000         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
12001         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
12002         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
12003         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12004         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
12005         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
12006         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
12007         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
12008         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12009         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
12010         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12011         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
12012         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
12013         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
12014         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12015         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
12016         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
12017         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
12018         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
12019         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12020         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
12021         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
12022         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
12023         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
12024         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
12025         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
12026         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
12027
12028 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
12029
12030         [BZ #16245]
12031         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
12032         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
12033
12034 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
12035
12036         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
12037         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
12038         Likewise.
12039
12040 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12041
12042         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
12043         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
12044         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
12045         (__fesetround): Remove define.
12046         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
12047         rounding and exceptions handling.
12048         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
12049         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
12050         (__fe_nomask_env): Likewise.
12051         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
12052         __fegetround instead of fegetround.
12053         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
12054         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
12055
12056 2013-11-21  Roland McGrath  <roland@hack.frob.com>
12057
12058         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
12059         it's there.
12060
12061         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
12062
12063 2013-11-21  Meador Inge  <meadori@codesourcery.com>
12064
12065         [BZ #11157]
12066         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
12067         (encrypt_r): Likewise.
12068         * malloc/obstack.h (obstack_free): Likewise.
12069         * posix/unistd.h (encrypt): Likewise.
12070
12071 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
12072
12073         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
12074         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
12075         DL_CALL_DT_FINI() that call the functions directly.
12076         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
12077         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
12078         * elf/dl-fini.c: Likewise.
12079
12080 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
12081
12082         * malloc/hooks.c (memalign_check): Add alignment rounding.
12083         * malloc/malloc.c (_mid_memalign): New function.
12084         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
12085         Implement by calling _mid_memalign.
12086         * manual/probes.texi (Memory Allocation Probes): Remove
12087         memory_valloc_retry and memory_pvalloc_retry.
12088
12089 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12090
12091         * locale/programs/locarchive.c (open_archive): Add const
12092         qualifier to ARCHIVEFNAME and copy default fname to
12093         DEFAULT_FNAME.
12094
12095         [BZ #15601]
12096         * libio/tst-widetext.input: Rename Oriya to Odia.
12097         * locale/iso-639.def: Likewise.
12098
12099         * manual/probes.texi (Mathematical Function Probes): Add
12100         documentation for sin, cos, asin and acos probes.
12101         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
12102         (__sin32): Add slowasin probe.
12103         (__cos32): Add slowacos probe.
12104         (__mpsin): Add slowsin probe.
12105         (__mpcos): Add slowcos probe.
12106
12107 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
12108
12109         [BZ #15483]
12110         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
12111         thread-local __sim_exceptions_thread and global
12112         __sim_exceptions_global.
12113         (__sim_disabled_exceptions): Change to thread-local
12114         __sim_disabled_exceptions_thread and global
12115         __sim_disabled_exceptions_global.
12116         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12117         and global __sim_round_mode_global.
12118         (__simulate_exceptions): Use thread-local floating-point state and
12119         set global state from it as needed.
12120         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
12121         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
12122         __sim_round_mode_thread.
12123         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
12124         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
12125         and global __sim_exceptions_global.
12126         (__sim_disabled_exceptions): Change to thread-local
12127         __sim_disabled_exceptions_thread and global
12128         __sim_disabled_exceptions_global.
12129         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12130         and global __sim_round_mode_global.
12131         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
12132         (SIM_SET_GLOBAL): Likewise.
12133         * sysdeps/powerpc/soft-fp/sfp-machine.h
12134         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
12135         __sim_round_mode_thread.
12136         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
12137         __sim_disabled_exceptions_thread.
12138         (__sim_exceptions): Change to __sim_exceptions_thread.
12139         (__sim_disabled_exceptions): Change to
12140         __sim_disabled_exceptions_thread.
12141         (__sim_round_mode): Change to __sim_round_mode_thread.
12142         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
12143         thread-local floating-point state and set global state from it as
12144         needed.
12145         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
12146         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
12147         (__sim_disabled_exceptions): Remove extern declaration.
12148         (feenableexcept): Use thread-local floating-point state and set
12149         global state from it as needed.
12150         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
12151         extern declaration.
12152         (__sim_disabled_exceptions): Likewise.
12153         (__sim_round_mode): Likewise.
12154         (__fegetenv): Use thread-local floating-point state.
12155         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
12156         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12157         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
12158         floating-point state and set global state from it as needed.
12159         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
12160         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
12161         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
12162         Likewise.
12163         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
12164         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
12165         Likewise.
12166         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
12167         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
12168         Use __sim_round_mode_thread.
12169         * math/test-fenv-tls.c: New file.
12170         * math/Makefile (tests): Add test-fenv-tls.
12171         ($(objpfx)test-fenv-tls): Depend on
12172         $(common-objpfx)nptl/libpthread.so.
12173
12174 2013-11-19  Andreas Schwab  <schwab@suse.de>
12175
12176         * locale/programs/locale.c (show_info): Decode wordarray elements.
12177         * locale/categories.def (LC_MONETARY): Add element for
12178         _NL_MONETARY_CRNCYSTR.
12179         * locale/C-monetary.c (conversion_rate): New variable.
12180         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
12181         element.
12182
12183 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
12184
12185         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
12186         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
12187
12188 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12189
12190         * elf/Makefile (tst-auxv): New test.
12191         * elf/tst-auxv.c: New
12192         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12193
12194 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12195
12196         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12197         (hidden_proto): Caller changed.
12198         (hidden_tls_proto): New macro.
12199         (libc_hidden_tls_proto): Likewise.
12200         (rtld_hidden_tls_proto): Likewise.
12201         (libm_hidden_tls_proto): Likewise.
12202         (libresolv_hidden_tls_proto): Likewise.
12203         (librt_hidden_tls_proto): Likewise.
12204         (libdl_hidden_tls_proto): Likewise.
12205         (libnss_files_hidden_tls_proto): Likewise.
12206         (libnsl_hidden_tls_proto): Likewise.
12207         (libnss_nisplus_hidden_tls_proto): Likewise.
12208         (libutil_hidden_tls_proto): Likewise.
12209
12210 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12211
12212         [BZ #10253]
12213         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12214         (decompose_rpath): Defer expansion to fillin_rpath.
12215         (_dl_init_paths): Pass linkmap to fillin_rpath.
12216
12217 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12218
12219         * benchtests/Makefile: Add strsep.
12220         * benchtests/bench-strsep.c: New file: strsep benchtest.
12221         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12222
12223 2013-11-18  Andreas Schwab  <schwab@suse.de>
12224
12225         * locale/programs/locale.c (show_info) [case byte]: Check for
12226         '\377' instead of '\177'.
12227         * locale/C-monetary.c (not_available): Always use "\377".
12228         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12229         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12230         detect unavailable sign_posn locale elements.
12231         * locale/localeconv.c (__localeconv): For grouping and
12232         mon_grouping handle "\177" and "\377" like no grouping.
12233         (INT_ELEM): New macro.  Use it to set all numeric members.
12234         * locale/programs/ld-monetary.c (monetary_read)
12235         <tok_mon_grouping>: Normalize single -1 to the empty string.
12236         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12237         Likewise.
12238
12239 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12240
12241         [BZ #16055]
12242         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12243         when we match (nil).
12244         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12245
12246 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12247
12248         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12249         (NO_TEST_INLINE): Update value.
12250         (ERRNO_UNCHANGED): Likewise.
12251         (ERRNO_EDOM): Likewise.
12252         (ERRNO_ERANGE): Likewise.
12253         (IGNORE_RESULT): Likewise.
12254         (check_float_internal): Check signs of NaN results if
12255         TEST_NAN_SIGN used.
12256         (check_complex): Pass TEST_NAN_SIGN flag through to second
12257         check_float_internal call.
12258         (copysign_test_data): Add tests with quiet NaNs as second
12259         argument.  Use TEST_NAN_SIGN.
12260         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12261         TEST_NAN_SIGN.
12262         (signbit_test_data): Add tests of quiet NaN argument.
12263         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12264
12265         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12266         $ignore_result.
12267         (parse_args): Handle function results specified as IGNORE.
12268         * math/libm-test.inc (IGNORE_RESULT): New macro.
12269         (check_float_internal): Do not check numerical result if flag
12270         IGNORE_RESULT set.
12271         (check_complex): Pass through IGNORE_RESULT to second
12272         check_float_internal call.
12273         (check_int): Do not check numerical result if flag IGNORE_RESULT
12274         set.
12275         (check_long): Likewise.
12276         (check_bool): Likewise.
12277         (check_longlong): Likewise.
12278         (lrint_test_data): Add tests of infinite and NaN arguments.
12279         (lrint_tonearest_test_data): Likewise.
12280         (lrint_towardzero_test_data): Likewise.
12281         (lrint_downward_test_data): Likewise.
12282         (lrint_upward_test_data): Likewise.
12283         (llrint_test_data): Likewise.
12284         (llrint_tonearest_test_data): Likewise.
12285         (llrint_towardzero_test_data): Likewise.
12286         (llrint_downward_test_data): Likewise.
12287         (llrint_upward_test_data): Likewise.
12288         (lround_test_data): Likewise.
12289         (llround_test_data): Likewise.
12290
12291         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12292         (ERRNO_UNCHANGED): Update value.
12293         (ERRNO_EDOM): Likewise.
12294         (ERRNO_ERANGE): Likewise.
12295         (NO_TEST_INLINE_FLOAT): New macro.
12296         (NO_TEST_INLINE_DOUBLE): Likewise.
12297         (enable_test): New function.
12298         (RUN_TEST_f_f): Check enable_test before running test.
12299         (RUN_TEST_2_f): Likewise.
12300         (RUN_TEST_fff_f): Likewise.
12301         (RUN_TEST_c_f): Likewise.
12302         (RUN_TEST_f_f1): Likewise.
12303         (RUN_TEST_fF_f1): Likewise.
12304         (RUN_TEST_fI_f1): Likewise.
12305         (RUN_TEST_ffI_f1): Likewise.
12306         (RUN_TEST_c_c): Likewise.
12307         (RUN_TEST_cc_c): Likewise.
12308         (RUN_TEST_f_i): Likewise.
12309         (RUN_TEST_f_i_tg): Likewise.
12310         (RUN_TEST_ff_i_tg): Likewise.
12311         (RUN_TEST_f_b): Likewise.
12312         (RUN_TEST_f_b_tg): Likewise.
12313         (RUN_TEST_f_l): Likewise.
12314         (RUN_TEST_f_L): Likewise.
12315         (RUN_TEST_fFF_11): Likewise.
12316         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12317         conditionals.
12318         (cosh_test_data): Likewise.
12319         (exp_test_data): Likewise.
12320         (expm1_test_data): Likewise.
12321         (hypot_test_data): Likewise.
12322         (pow_test_data): Likewise.
12323         (sinh_test_data): Likewise.
12324         (tanh_test_data): Likewise.
12325         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12326         flags argument.
12327
12328         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12329         tests with quiet NaN input and output.
12330         (acosh_test_data): Likewise.
12331         (asin_test_data): Likewise.
12332         (asinh_test_data): Likewise.
12333         (atan_test_data): Likewise.
12334         (atanh_test_data): Likewise.
12335         (atan2_test_data): Likewise.
12336         (cbrt_test_data): Likewise.
12337         (cos_test_data): Likewise.
12338         (cosh_test_data): Likewise.
12339         (erf_test_data): Likewise.
12340         (erfc_test_data): Likewise.
12341         (exp_test_data): Likewise.
12342         (exp10_test_data): Likewise.
12343         (exp2_test_data): Likewise.
12344         (expm1_test_data): Likewise.
12345         (hypot_test_data): Likewise.
12346         (j0_test_data): Likewise.
12347         (j1_test_data): Likewise.
12348         (jn_test_data): Likewise.
12349         (lgamma_test_data): Likewise.
12350         (log_test_data): Likewise.
12351         (log10_test_data): Likewise.
12352         (log1p_test_data): Likewise.
12353         (log2_test_data): Likewise.
12354         (pow_test_data): Likewise.
12355         (scalb_test_data): Likewise.
12356         (sin_test_data): Likewise.
12357         (sincos_test_data): Likewise.
12358         (sinh_test_data): Likewise.
12359         (tan_test_data): Likewise.
12360         (tanh_test_data): Likewise.
12361         (tgamma_test_data): Likewise.
12362         (y0_test_data): Likewise.
12363         (y1_test_data): Likewise.
12364         (yn_test_data): Likewise.
12365
12366         [BZ #16167]
12367         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12368         argument being NaN and avoid computations with second argument in
12369         that case.
12370         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12371         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12372         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12373
12374 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12375
12376         * locale/iso-639.def: Add Chitwani Tharu (the).
12377
12378 2013-11-14  Andreas Schwab  <schwab@suse.de>
12379
12380         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12381         word instead of empty string.
12382
12383 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12384
12385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12386         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12388         (__fe_nomask_env): Likewise.
12389
12390 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12391
12392         * benchtests/bench-timing.h: Include time.h.
12393
12394 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12395
12396         [BZ #15997]
12397         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12398         to 3.4.0 for x32.
12399         * sysdeps/unix/sysv/linux/configure: Regenerated.
12400
12401 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12402
12403         [BZ #16151]
12404         * stdlib/strtod_l.c (round_and_return): Do not consider
12405         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12406         exponent one less than half the least subnormal exponent.
12407         * stdlib/test-strtod-round-data: Add more tests.
12408         * stdlib/tst-strtod-round.c (tests): Regenerated.
12409
12410 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12411
12412         [BZ #14143]
12413         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12414         (__fe_mask_env): Likewise.
12415         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12416         libm_hidden_proto and add function prototype.
12417         (__fe_mask_env): Add function prototype.
12418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12419         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12421         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12423         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12424
12425 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12426
12427         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12428         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12429
12430 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12431
12432         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12433         of htab_find_slot().
12434
12435 2013-11-11  David S. Miller  <davem@davemloft.net>
12436
12437         [BZ #16150]
12438         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12439         symbol in the non-vis3 case in static builds.
12440         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12441         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12442         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12443         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12444
12445 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12446
12447         [BZ #387]
12448         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12449         it is empty.
12450
12451 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12452
12453         * benchtests/Makefile: Add bench-strtod.
12454         * benchtests/bench-strtod.c: New file: strtod benchtest
12455
12456 2013-11-11  Andreas Schwab  <schwab@suse.de>
12457
12458         [BZ #16153]
12459         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12460         terminating NUL in key length.
12461
12462 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12463
12464         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12465         Add artificial ODP entry for vDSO symbol for PPC64.
12466         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12467         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12468
12469 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12470
12471         [BZ #15374]
12472         * nss/getent.c (services_keys): Recognize services starting with digit.
12473
12474 2013-11-06  David S. Miller  <davem@davemloft.net>
12475
12476         [BZ #15985]
12477         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12478         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12479
12480 2013-11-06  Will Newton  <will.newton@linaro.org>
12481
12482         * manual/memory.texi (Malloc Examples): Remove register
12483         keyword from examples.
12484
12485 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12486
12487         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12488
12489 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12490
12491         [BZ #6981]
12492         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12493         depending on [__GCC_IEC_559 > 0].
12494         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12495         depending on [__GCC_IEC_559_COMPLEX > 0].
12496
12497 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12498
12499         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12500         to iso-639.def.
12501
12502 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12503
12504         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12505
12506 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12507
12508         [BZ #16112]
12509         * malloc/malloc (malloc_info): Do not handle first bin as
12510         special case.
12511
12512 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12513
12514         * locale/iso-639.def: Add Central Nahuatl (nhn).
12515
12516 2013-11-01  Bruno Haible  <bruno@clisp.org>
12517
12518         [BZ #7003]
12519         * manual/math.texi (BSD Random): Specify range upper bound as
12520         in POSIX.
12521
12522 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12523
12524         * locale/iso-639.def: Add Meadow Mari (mhr).
12525
12526 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12527
12528         [BZ #14752], [BZ #15763]
12529         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12530         Validate name.
12531         * rt/tst_shm.c: Add test for escaping directory.
12532
12533 2013-10-31  Andreas Schwab  <schwab@suse.de>
12534
12535         [BZ #15917]
12536         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
12537         followed by 'x' as part of digit sequence.
12538         * stdio-common/tst-sscanf.c (double_tests2): New tests.
12539
12540 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12541
12542         [BZ #16037]
12543         * configure.ac: allow GNU Make 4.0 and greater.
12544         * configure: Regenerated.
12545
12546 2013-10-30  Will Newton  <will.newton@linaro.org>
12547
12548         [BZ #16038]
12549         * malloc/hooks.c (memalign_check): Limit alignment to the
12550         maximum representable power of two.
12551         * malloc/malloc.c (__libc_memalign): Likewise.
12552         * malloc/tst-memalign.c (do_test): Add test for very
12553         large alignment values.
12554         * malloc/tst-posix_memalign.c (do_test): Likewise.
12555
12556 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12557
12558         [BZ #11087]
12559         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
12560         (munmap_chunk): Likewise.
12561         (mremap_chunk): Likewise.
12562
12563 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12564
12565         [BZ #15799]
12566         * stdlib/div.c (div): Remove obsolete code.
12567         * stdlib/ldiv.c (ldiv): Likewise.
12568         * stdlib/lldiv.c (lldiv): Likewise.
12569
12570 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12571
12572         [BZ #16071]
12573         * nss/nss_files/files-XXX.c (get_contents_ret): New
12574         enumerator.
12575         (get_contents): New function.
12576         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12577
12578 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12579
12580         * configure.in: Moved to ...
12581         * configure.ac: ... here. Change reference to configure.in
12582         to configure.ac.
12583         * sysdeps/arm/preconfigure.ac: ... here.
12584         configure.in to configure.ac.
12585         * sysdeps/gnu/configure.in: Moved to ...
12586         * sysdeps/gnu/configure.ac: ... here.
12587         * sysdeps/i386/configure.in: Moved to ...
12588         * sysdeps/i386/configure.ac: ... here.
12589         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12590         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12591         * sysdeps/mach/configure.in: Moved to ...
12592         * sysdeps/mach/configure.ac: ... here.
12593         * sysdeps/mach/hurd/configure.in: Moved to ...
12594         * sysdeps/mach/hurd/configure.ac: ... here.
12595         * sysdeps/powerpc/configure.in: Moved to ...
12596         * sysdeps/powerpc/configure.ac: ... here.
12597         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12598         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12599         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12600         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12601         * sysdeps/s390/s390-32/configure.in: Moved to ...
12602         * sysdeps/s390/s390-32/configure.ac: ... here.
12603         * sysdeps/s390/s390-64/configure.in: Moved to ...
12604         * sysdeps/s390/s390-64/configure.ac: ... here.
12605         * sysdeps/sh/configure.in: Moved to ...
12606         * sysdeps/sh/configure.ac: ... here.
12607         * sysdeps/sparc/configure.in: Moved to ...
12608         * sysdeps/sparc/configure.ac: ... here.
12609         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12610         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12611         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12612         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12613         * sysdeps/x86_64/configure.in: Moved to ...
12614         * sysdeps/x86_64/configure.ac: ... here.
12615         * sysdeps/x86_64/preconfigure.in: Moved to ...
12616         * sysdeps/x86_64/preconfigure.ac: ... here.
12617         * aclocal.m4: Change reference to configure.in to configure.ac.
12618         * config.h.in: Likewise.
12619         * manual/install.texi: Likewise.
12620         * manual/maint.texi: Likewise.
12621         * Makefile: Likewise.
12622         * malloc/Makefile: Likewise.
12623         * nscd/Makefile: Likewise.
12624         * Makeconfig: Change reference to configure.in and
12625         preconfigure.in to configure.ac and preconfigure.ac
12626         respectively.
12627         * INSTALL: Regenerated.
12628         * configure: Likewise.
12629         * sysdeps/gnu/configure: Likewise.
12630         * sysdeps/i386/configure: Likewise.
12631         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12632         * sysdeps/mach/configure: Likewise.
12633         * sysdeps/mach/hurd/configure: Likewise.
12634         * sysdeps/powerpc/configure: Likewise.
12635         * sysdeps/powerpc/powerpc32/configure: Likewise.
12636         * sysdeps/powerpc/powerpc64/configure: Likewise.
12637         * sysdeps/s390/s390-32/configure: Likewise.
12638         * sysdeps/s390/s390-64/configure: Likewise.
12639         * sysdeps/sh/configure: Likewise.
12640         * sysdeps/sparc/configure: Likewise.
12641         * sysdeps/unix/sysv/linux/configure: Likewise.
12642         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12643         * sysdeps/x86_64/configure: Likewise.
12644         * sysdeps/x86_64/preconfigure: Likewise.
12645
12646 2013-10-29  Andreas Schwab  <schwab@suse.de>
12647
12648         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12649
12650 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12651
12652         * benchtests/pow-inputs: Add new inputs.
12653
12654         * benchtests/exp-inputs: Add new inputs.
12655
12656         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12657         conditional check for return value.
12658         (__cos32): Likewise.
12659
12660 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12661
12662         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12663         to provide a boost for large inputs with word alignment.
12664         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12665         implementation based on optimized PPC64 strcpy.
12666         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12667         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12668         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12669         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12670
12671 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12672
12673         [BZ #2801]
12674         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12675
12676 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12677
12678         [BZ #14876]
12679         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12680         * time/tst-strptime.c (day_tests): Add testcase.
12681
12682 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12683
12684         [BZ #14029]
12685         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12686
12687 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12688
12689         [BZ #16074]
12690         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12691         MAP_FAILED on error.
12692
12693 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12694
12695         [BZ #16072]
12696         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12697         heap for large requests.
12698
12699 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12700
12701         [BZ #9954]
12702         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12703         result if the result has no associated interface.
12704         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12705         interface for all 127.X.Y.Z addresses.
12706
12707 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12708
12709         * locale/iso-639.def: Add Ligurian (lij)
12710
12711 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12712
12713         [BZ #15825]
12714         * sunrpc/rpc_main.c: Document rpcgen -5.
12715
12716 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12717
12718         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12719
12720 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12721
12722         [BZ #10278]
12723         * posix/glob.c: Match only directories when trailing slash is present.
12724         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12725         (main): Add testcase.
12726
12727 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12728
12729         [BZ #15670]
12730         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12731
12732 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12733
12734         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12735         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12736         AUTH_DES and cindex for FIPS 140-2.
12737         (DES Encryption): Add cindex FIPS 46-3.
12738
12739         * locale/locarchive.h (struct locarhandle): Add fname.
12740         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12741         if an optional argument was specified to --list-archive,
12742         otherwise NULL.
12743         * locale/programs/locarchive.c (show_archive_content): Take new
12744         argument fname and pass it via ah.fname to open_archive.
12745         * locale/programs/localedef.h: Update decl.
12746         (open_archive): If AH->fname is non-null, open that file
12747         rather than the default file name, and don't ignore ENOENT.
12748         (create_archive): Set AH.fname to NULL.
12749         (delete_locales_from_archive): Likewise.
12750         (add_locales_to_archive): Likewise.
12751         * locale/programs/locfile.c (write_all_categories): Likewise.
12752
12753 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12754             Aldy Hernandez  <aldyh@redhat.com>
12755
12756         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12757         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12758         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12759         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12760         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12761         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12762         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12763         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12764         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12765         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12766         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12767         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12768         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12769         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12770         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12771         Likewise.
12772         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12773         Likewise.
12774         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12775         Likewise.
12776         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12777         Likewise.
12778         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12779         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12780         Likewise.
12781         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12782         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12783         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12784         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12785         Likewise.
12786         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12787         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12788         * sysdeps/powerpc/preconfigure: Likewise.
12789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12790         Likewise.
12791         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12792         Replace contents of file by #include of <fenv_libc.h>.
12793         * sysdeps/powerpc/soft-fp/sfp-machine.h
12794         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12795         and <sys/prctl.h>.
12796         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12797         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12798         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12799         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12800         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12801         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12802         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12803         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12804         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12805         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12806         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12807         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12809         Allow copysignl PLT reference to be missing.
12810
12811 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12812             Joseph Myers  <joseph@codesourcery.com
12813
12814         [BZ #15948]
12815         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12816         single character.
12817         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12818
12819 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12820
12821         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12822         * elf/tst-tls1.c: Likewise.
12823         * elf/tst-tls10.h: Likewise.
12824         * elf/tst-tls14.c: Likewise.
12825         * elf/tst-tls2.c: Likewise.
12826         * elf/tst-tls3.c: Likewise.
12827         * elf/tst-tls4.c: Likewise.
12828         * elf/tst-tls5.c: Likewise.
12829         * elf/tst-tls6.c: Likewise.
12830         * elf/tst-tls7.c: Likewise.
12831         * elf/tst-tls8.c: Likewise.
12832         * elf/tst-tls9.c: Likewise.
12833         * elf/tst-tlsmod1.c: Likewise.
12834         * elf/tst-tlsmod13.c: Likewise.
12835         * elf/tst-tlsmod13a.c: Likewise.
12836         * elf/tst-tlsmod14a.c: Likewise.
12837         * elf/tst-tlsmod16a.c: Likewise.
12838         * elf/tst-tlsmod16b.c: Likewise.
12839         * elf/tst-tlsmod2.c: Likewise.
12840         * elf/tst-tlsmod3.c: Likewise.
12841         * elf/tst-tlsmod4.c: Likewise.
12842         * elf/tst-tlsmod5.c: Likewise.
12843         * elf/tst-tlsmod6.c: Likewise.
12844
12845 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12846
12847         [BZ #12486]
12848         * malloc/malloc.c: remove checks for statistics.
12849
12850 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12851
12852         [BZ #15277]
12853         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12854         * inet/tst-network.c: Add testcase.
12855
12856 2013-10-17  Andreas Schwab  <schwab@suse.de>
12857
12858         [BZ #15218]
12859         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12860         to determine canonical name.
12861
12862 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12863
12864         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12865         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12866         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12867         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12868         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12869         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12870         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12871         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12872         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12873         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12874         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12875         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12876         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12877         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12878         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12879         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12880         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12881         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12882         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12883         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12884         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12885         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12886         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12887         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12888         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12889         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12890         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12891         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12892         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12893         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12894         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12895         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12896         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12897         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12898         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12899         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12900         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12901         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12902         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12903         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12904         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12905         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12906         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12907         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12908         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12909         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12910         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12911         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12912         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12913         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12914         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12915         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12916         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12917         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12918         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12919         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12920         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12921         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12922
12923 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12924
12925         [BZ #16041]
12926         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12927         make result into a quiet NaN.
12928
12929 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12930
12931         * soft-fp/adddf3.c: Fix horizontal whitespace.
12932         * soft-fp/addsf3.c: Likewise.
12933         * soft-fp/addtf3.c: Likewise.
12934         * soft-fp/divdf3.c: Likewise.
12935         * soft-fp/divsf3.c: Likewise.
12936         * soft-fp/divtf3.c: Likewise.
12937         * soft-fp/double.h: Likewise.
12938         * soft-fp/eqdf2.c: Likewise.
12939         * soft-fp/eqsf2.c: Likewise.
12940         * soft-fp/eqtf2.c: Likewise.
12941         * soft-fp/extenddftf2.c: Likewise.
12942         * soft-fp/extended.h: Likewise.
12943         * soft-fp/extendsfdf2.c: Likewise.
12944         * soft-fp/extendsftf2.c: Likewise.
12945         * soft-fp/extendxftf2.c: Likewise.
12946         * soft-fp/fixdfdi.c: Likewise.
12947         * soft-fp/fixdfsi.c: Likewise.
12948         * soft-fp/fixdfti.c: Likewise.
12949         * soft-fp/fixsfdi.c: Likewise.
12950         * soft-fp/fixsfsi.c: Likewise.
12951         * soft-fp/fixsfti.c: Likewise.
12952         * soft-fp/fixtfdi.c: Likewise.
12953         * soft-fp/fixtfsi.c: Likewise.
12954         * soft-fp/fixtfti.c: Likewise.
12955         * soft-fp/fixunsdfdi.c: Likewise.
12956         * soft-fp/fixunsdfsi.c: Likewise.
12957         * soft-fp/fixunsdfti.c: Likewise.
12958         * soft-fp/fixunssfdi.c: Likewise.
12959         * soft-fp/fixunssfsi.c: Likewise.
12960         * soft-fp/fixunssfti.c: Likewise.
12961         * soft-fp/fixunstfdi.c: Likewise.
12962         * soft-fp/fixunstfsi.c: Likewise.
12963         * soft-fp/fixunstfti.c: Likewise.
12964         * soft-fp/floatdidf.c: Likewise.
12965         * soft-fp/floatdisf.c: Likewise.
12966         * soft-fp/floatditf.c: Likewise.
12967         * soft-fp/floatsidf.c: Likewise.
12968         * soft-fp/floatsisf.c: Likewise.
12969         * soft-fp/floatsitf.c: Likewise.
12970         * soft-fp/floattidf.c: Likewise.
12971         * soft-fp/floattisf.c: Likewise.
12972         * soft-fp/floattitf.c: Likewise.
12973         * soft-fp/floatundidf.c: Likewise.
12974         * soft-fp/floatundisf.c: Likewise.
12975         * soft-fp/floatunditf.c: Likewise.
12976         * soft-fp/floatunsidf.c: Likewise.
12977         * soft-fp/floatunsisf.c: Likewise.
12978         * soft-fp/floatunsitf.c: Likewise.
12979         * soft-fp/floatuntidf.c: Likewise.
12980         * soft-fp/floatuntisf.c: Likewise.
12981         * soft-fp/floatuntitf.c: Likewise.
12982         * soft-fp/fmadf4.c: Likewise.
12983         * soft-fp/fmasf4.c: Likewise.
12984         * soft-fp/fmatf4.c: Likewise.
12985         * soft-fp/gedf2.c: Likewise.
12986         * soft-fp/gesf2.c: Likewise.
12987         * soft-fp/getf2.c: Likewise.
12988         * soft-fp/ledf2.c: Likewise.
12989         * soft-fp/lesf2.c: Likewise.
12990         * soft-fp/letf2.c: Likewise.
12991         * soft-fp/muldf3.c: Likewise.
12992         * soft-fp/mulsf3.c: Likewise.
12993         * soft-fp/multf3.c: Likewise.
12994         * soft-fp/negdf2.c: Likewise.
12995         * soft-fp/negsf2.c: Likewise.
12996         * soft-fp/negtf2.c: Likewise.
12997         * soft-fp/op-1.h: Likewise.
12998         * soft-fp/op-2.h: Likewise.
12999         * soft-fp/op-4.h: Likewise.
13000         * soft-fp/op-8.h: Likewise.
13001         * soft-fp/op-common.h: Likewise.
13002         * soft-fp/quad.h: Likewise.
13003         * soft-fp/single.h: Likewise.
13004         * soft-fp/soft-fp.h: Likewise.
13005         * soft-fp/sqrtdf2.c: Likewise.
13006         * soft-fp/sqrtsf2.c: Likewise.
13007         * soft-fp/sqrttf2.c: Likewise.
13008         * soft-fp/subdf3.c: Likewise.
13009         * soft-fp/subsf3.c: Likewise.
13010         * soft-fp/subtf3.c: Likewise.
13011         * soft-fp/truncdfsf2.c: Likewise.
13012         * soft-fp/trunctfdf2.c: Likewise.
13013         * soft-fp/trunctfsf2.c: Likewise.
13014         * soft-fp/trunctfxf2.c: Likewise.
13015         * soft-fp/unorddf2.c: Likewise.
13016         * soft-fp/unordsf2.c: Likewise.
13017         * soft-fp/unordtf2.c: Likewise.
13018
13019 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
13020
13021         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
13022         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
13023
13024 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
13025
13026         * elf/dl-libc.c: Clear initfini list after freeing.
13027
13028 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
13029
13030         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
13031         * soft-fp/addsf3.c: Likewise.
13032         * soft-fp/addtf3.c: Likewise.
13033         * soft-fp/divdf3.c: Likewise.
13034         * soft-fp/divsf3.c: Likewise.
13035         * soft-fp/divtf3.c: Likewise.
13036         * soft-fp/double.h: Likewise.
13037         * soft-fp/eqdf2.c: Likewise.
13038         * soft-fp/eqsf2.c: Likewise.
13039         * soft-fp/eqtf2.c: Likewise.
13040         * soft-fp/extenddftf2.c: Likewise.
13041         * soft-fp/extended.h: Likewise.
13042         * soft-fp/extendsfdf2.c: Likewise.
13043         * soft-fp/extendsftf2.c: Likewise.
13044         * soft-fp/extendxftf2.c: Likewise.
13045         * soft-fp/fixdfdi.c: Likewise.
13046         * soft-fp/fixdfsi.c: Likewise.
13047         * soft-fp/fixdfti.c: Likewise.
13048         * soft-fp/fixsfdi.c: Likewise.
13049         * soft-fp/fixsfsi.c: Likewise.
13050         * soft-fp/fixsfti.c: Likewise.
13051         * soft-fp/fixtfdi.c: Likewise.
13052         * soft-fp/fixtfsi.c: Likewise.
13053         * soft-fp/fixtfti.c: Likewise.
13054         * soft-fp/fixunsdfdi.c: Likewise.
13055         * soft-fp/fixunsdfsi.c: Likewise.
13056         * soft-fp/fixunsdfti.c: Likewise.
13057         * soft-fp/fixunssfdi.c: Likewise.
13058         * soft-fp/fixunssfsi.c: Likewise.
13059         * soft-fp/fixunssfti.c: Likewise.
13060         * soft-fp/fixunstfdi.c: Likewise.
13061         * soft-fp/fixunstfsi.c: Likewise.
13062         * soft-fp/fixunstfti.c: Likewise.
13063         * soft-fp/floatdidf.c: Likewise.
13064         * soft-fp/floatdisf.c: Likewise.
13065         * soft-fp/floatditf.c: Likewise.
13066         * soft-fp/floatsidf.c: Likewise.
13067         * soft-fp/floatsisf.c: Likewise.
13068         * soft-fp/floatsitf.c: Likewise.
13069         * soft-fp/floattidf.c: Likewise.
13070         * soft-fp/floattisf.c: Likewise.
13071         * soft-fp/floattitf.c: Likewise.
13072         * soft-fp/floatundidf.c: Likewise.
13073         * soft-fp/floatundisf.c: Likewise.
13074         * soft-fp/floatunsidf.c: Likewise.
13075         * soft-fp/floatunsisf.c: Likewise.
13076         * soft-fp/floatuntidf.c: Likewise.
13077         * soft-fp/floatuntisf.c: Likewise.
13078         * soft-fp/floatuntitf.c: Likewise.
13079         * soft-fp/fmadf4.c: Likewise.
13080         * soft-fp/fmasf4.c: Likewise.
13081         * soft-fp/fmatf4.c: Likewise.
13082         * soft-fp/gedf2.c: Likewise.
13083         * soft-fp/gesf2.c: Likewise.
13084         * soft-fp/getf2.c: Likewise.
13085         * soft-fp/ledf2.c: Likewise.
13086         * soft-fp/lesf2.c: Likewise.
13087         * soft-fp/letf2.c: Likewise.
13088         * soft-fp/muldf3.c: Likewise.
13089         * soft-fp/mulsf3.c: Likewise.
13090         * soft-fp/multf3.c: Likewise.
13091         * soft-fp/negdf2.c: Likewise.
13092         * soft-fp/negsf2.c: Likewise.
13093         * soft-fp/negtf2.c: Likewise.
13094         * soft-fp/op-1.h: Likewise.
13095         * soft-fp/op-2.h: Likewise.
13096         * soft-fp/op-4.h: Likewise.
13097         * soft-fp/op-8.h: Likewise.
13098         * soft-fp/op-common.h: Likewise.
13099         * soft-fp/quad.h: Likewise.
13100         * soft-fp/single.h: Likewise.
13101         * soft-fp/soft-fp.h: Likewise.
13102         * soft-fp/sqrtdf2.c: Likewise.
13103         * soft-fp/sqrtsf2.c: Likewise.
13104         * soft-fp/sqrttf2.c: Likewise.
13105         * soft-fp/subdf3.c: Likewise.
13106         * soft-fp/subsf3.c: Likewise.
13107         * soft-fp/subtf3.c: Likewise.
13108         * soft-fp/truncdfsf2.c: Likewise.
13109         * soft-fp/trunctfdf2.c: Likewise.
13110         * soft-fp/trunctfsf2.c: Likewise.
13111         * soft-fp/trunctfxf2.c: Likewise.
13112         * soft-fp/unorddf2.c: Likewise.
13113         * soft-fp/unordsf2.c: Likewise.
13114         * soft-fp/unordtf2.c: Likewise.
13115
13116 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
13117
13118         [BZ #15672]
13119         * misc/error.c (error_tail): Fix possible buffer overflow.
13120
13121 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
13122
13123         [BZ #13028]
13124         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
13125         address.
13126
13127 2013-10-14  P. J. McDermott  <pj@pehjota.net>
13128
13129         [BZ #832]
13130         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
13131         testing pipefail option.
13132
13133 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13134
13135         * soft-fp/double.h: Indent preprocessor directives inside #if.
13136         * soft-fp/extended.h: Likewise.
13137         * soft-fp/op-2.h: Likewise.
13138         * soft-fp/op-4.h: Likewise.
13139         * soft-fp/op-common.h: Likewise.
13140         * soft-fp/quad.h: Likewise.
13141         * soft-fp/single.h: Likewise.
13142         * soft-fp/soft-fp.h: Likewise.
13143
13144 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
13145
13146         * iconv/iconv_prog.c: Fix typos.
13147         * stdio-common/psiginfo-data.h: Likewise.
13148
13149 2013-10-12   Reuben Thomas <rrt@sc3d.org>
13150
13151         [BZ #15764]
13152         * locale/setlocale.c: Fix typo.
13153
13154 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13155
13156         [BZ #16036]
13157         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
13158         signaling NaN arguments.
13159         * soft-fp/unordsf2.c (__unordsf2): Likewise.
13160         * soft-fp/unordtf2.c (__unordtf2): Likewise.
13161
13162         [BZ #14910]
13163         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
13164         unordered operands.
13165         * soft-fp/gesf2.c (__gesf2): Likewise.
13166         * soft-fp/getf2.c (__getf2): Likewise.
13167         * soft-fp/ledf2.c (__ledf2): Likewise.
13168         * soft-fp/lesf2.c (__lesf2): Likewise.
13169         * soft-fp/letf2.c (__letf2): Likewise.
13170
13171         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
13172         * soft-fp/eqsf2.c (__eqsf2): Likewise.
13173         * soft-fp/eqtf2.c (__eqtf2): Likewise.
13174         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
13175         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
13176         * soft-fp/fixdfti.c (__fixdfti): Likewise.
13177         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
13178         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
13179         * soft-fp/fixsfti.c (__fixsfti): Likewise.
13180         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
13181         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
13182         * soft-fp/fixtfti.c (__fixtfti): Likewise.
13183         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
13184         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
13185         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
13186         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
13187         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
13188         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
13189         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
13190         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13191         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13192         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13193         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13194         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13195         * soft-fp/floattidf.c (__floattidf): Likewise.
13196         * soft-fp/floattisf.c (__floattisf): Likewise.
13197         * soft-fp/floattitf.c (__floattitf): Likewise.
13198         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13199         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13200         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13201         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13202         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13203         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13204         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13205         * soft-fp/gesf2.c (__gesf2): Likewise.
13206         * soft-fp/getf2.c (__getf2): Likewise.
13207         * soft-fp/ledf2.c (__ledf2): Likewise.
13208         * soft-fp/lesf2.c (__lesf2): Likewise.
13209         * soft-fp/letf2.c (__letf2): Likewise.
13210
13211         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13212         Undefine and redefine.
13213         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13214         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13215         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13216         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13217         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13218         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13219         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13220         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13221         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13222         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13223         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13224         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13225         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13226         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13227         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13228
13229         [BZ #16032]
13230         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13231         without decrementing exponent if mantissa >= that for the
13232         denominator, not >.
13233         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13234         denominator, not >.  Decrement exponent in < case instead of
13235         incrementing in >= case.
13236         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13237         without decrementing exponent if mantissa >= that for the
13238         denominator, not >.
13239
13240         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13241         computing saturated result for unsigned overflow.
13242
13243 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13244             Jeff Law  <law@redhat.com>
13245
13246         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13247         (atan2Mp): Add systemtap probe marker.
13248         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13249         (__ieee754_log): Add systemtap probe marker.
13250         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13251         (atanMp): Add systemtap probe marker.
13252         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13253         (tanMp): Add systemtap probe marker.
13254         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13255         (__slowexp): Add systemtap probe marker.
13256         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13257         (__slowpow): Add systemtap probe marker.
13258         * manual/probes.texi: Document probes.
13259
13260 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13261
13262         [BZ #15362]
13263         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13264         written.
13265         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13266         written.
13267         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13268         written to buffer but not flushed.
13269         * libio/iofwrite_u.c:  Likewise.
13270         * libio/iopadn.c:  Return bytes returned even if EOF was
13271         encountered.
13272         * libio/iowpadn.c:  Likewise.
13273         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13274         if _IO_padn does not write the whole buffer.
13275         [!COMPILE_WPRINTF] (PAD): Likewise.
13276
13277 2013-10-10  David S. Miller  <davem@davemloft.net>
13278
13279         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13280         directory block.
13281
13282 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13283
13284         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13285         instead of FSF address.
13286         * soft-fp/fixdfti.c: Likewise.
13287         * soft-fp/fixsfti.c: Likewise.
13288         * soft-fp/fixtfti.c: Likewise.
13289         * soft-fp/fixunsdfti.c: Likewise.
13290         * soft-fp/fixunssfti.c: Likewise.
13291         * soft-fp/fixunstfti.c: Likewise.
13292         * soft-fp/floattidf.c: Likewise.
13293         * soft-fp/floattisf.c: Likewise.
13294         * soft-fp/floattitf.c: Likewise.
13295         * soft-fp/floatuntidf.c: Likewise.
13296         * soft-fp/floatuntisf.c: Likewise.
13297         * soft-fp/floatuntitf.c: Likewise.
13298         * soft-fp/trunctfxf2.c: Likewise.
13299
13300         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13301         * soft-fp/fixdfti.c: Likewise.
13302         * soft-fp/fixsfti.c: Likewise.
13303         * soft-fp/fixtfti.c: Likewise.
13304         * soft-fp/fixunsdfti.c: Likewise.
13305         * soft-fp/fixunssfti.c: Likewise.
13306         * soft-fp/fixunstfti.c: Likewise.
13307         * soft-fp/floattidf.c: Likewise.
13308         * soft-fp/floattisf.c: Likewise.
13309         * soft-fp/floattitf.c: Likewise.
13310         * soft-fp/floatuntidf.c: Likewise.
13311         * soft-fp/floatuntisf.c: Likewise.
13312         * soft-fp/floatuntitf.c: Likewise.
13313         * soft-fp/trunctfxf2.c: Likewise.
13314
13315 2013-10-10  David S. Miller  <davem@davemloft.net>
13316
13317         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13318
13319 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13320
13321         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13322         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13323         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13324         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13325         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13326         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13327         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13328
13329         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13330         for NaNs before doing comparisons on argument.
13331         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13332         Likewise.
13333
13334 2013-10-10  Will Newton  <will.newton@linaro.org>
13335
13336         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13337         passed to _int_memalign does not overflow.
13338
13339 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13340
13341         * scripts/bench.pl: Add include-sources directive.
13342         * benchtests/README: Update documentation.
13343
13344 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13345
13346         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13347         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13348         instead of FP_INIT_ROUNDMODE.
13349         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13350         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13351
13352         [BZ #16034]
13353         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13354         copy class of input value.
13355         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13356         not handle exceptions.
13357         * soft-fp/negsf2.c (__negsf2): Likewise.
13358         * soft-fp/negtf2.c (__negtf2): Likewise.
13359         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13360
13361 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13362
13363         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13364         semicolon.  From Linux kernel.
13365
13366 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13367
13368         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13369
13370 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13371
13372         [BZ #156]
13373         * manual/socket.texi: Added statement about buffer
13374         for gethostbyname2_r.
13375
13376 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13377
13378         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13379         Use .p2align directive instead, throughout.
13380         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13381         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13382         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13383         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13384         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13385         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13386         * sysdeps/x86_64/strchr.S: Likewise.
13387         * sysdeps/x86_64/strrchr.S: Likewise.
13388
13389 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13390
13391         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13392
13393         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13394
13395         * sysdeps/generic/math_private.h (__mpsin1): Remove
13396         declaration.
13397         (__mpcos1): Likewise.
13398         (__mpsin): New argument __range_reduce.
13399         (__mpcos): Likewise.
13400         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13401         (slow): Use __mpsin and __mpcos.
13402         (slow1): Likewise.
13403         (slow2): Likewise.
13404         (sloww): Likewise.
13405         (sloww1): Likewise.
13406         (sloww2): Likewise.
13407         (bsloww): Likewise.
13408         (bsloww1): Likewise.
13409         (bsloww2): Likewise.
13410         (cslow2): Likewise.
13411         (csloww): Likewise.
13412         (csloww1): Likewise.
13413         (csloww2): Likewise.
13414         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13415         range_reduce.  Merge in __mpsin1.
13416         (__mpcos): Likewise.
13417         (__mpsin1): Remove.
13418         (__mpcos1): Likewise.
13419
13420 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13421
13422         * locale/loadlocale.c (_nl_intern_locale_data): Use
13423         LOCFILE_ALIGNED_P.
13424         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13425         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13426         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13427         obstack data is appropriately aligned.
13428         (obstack_int32_grow_fast): Likewise.
13429         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13430         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13431         (add_locale_uint32_array): Likewise.
13432
13433 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13434
13435         * benchtests/Makefile: Remove ARGLIST and RET variables.
13436         ($(objpfx)bench-%.c): Pass only function name to the script.
13437         * benchtests/README: Update documentation.
13438         * benchtests/acos-inputs: Add new directives.
13439         * benchtests/acosh-inputs: Likewise.
13440         * benchtests/asin-inputs: Likewise.
13441         * benchtests/asinh-inputs: Likewise.
13442         * benchtests/atan-inputs: Likewise.
13443         * benchtests/atanh-inputs: Likewise.
13444         * benchtests/cos-inputs: Likewise.
13445         * benchtests/cosh-inputs: Likewise.
13446         * benchtests/exp-inputs: Likewise.
13447         * benchtests/log-inputs: Likewise.
13448         * benchtests/pow-inputs: Likewise.
13449         * benchtests/rint-inputs: Likewise.
13450         * benchtests/sin-inputs: Likewise.
13451         * benchtests/sinh-inputs: Likewise.
13452         * benchtests/tan-inputs: Likewise.
13453         * benchtests/tanh-inputs: Likewise.
13454         * scripts/bench.pl: Add support for new directives.
13455
13456 2013-10-07  Alan Modra  <amodra@gmail.com>
13457
13458         * README: Fix careless merge.
13459
13460 2013-10-05  Alan Modra  <amodra@gmail.com>
13461
13462         * NEWS: Mention powerpc64le support and bugs fixed.
13463         * README: Both big-endian and little-endian powerpc64 supported.
13464
13465 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13466
13467         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13468         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13469         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13470         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13471
13472 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13473
13474         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13475         match prototype.
13476
13477 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13478
13479         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13480         Move -mhard-float appending from
13481         ports/sysdeps/powerpc/powerpc32/Makefile.
13482         [$(with-fp) = yes] (ASFLAGS): Likewise.
13483         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13484         * sysdeps/powerpc/nofpu: Move directory from
13485         ports/sysdeps/powerpc/nofpu.
13486         * sysdeps/powerpc/soft-fp: Move directory from
13487         ports/sysdeps/powerpc/soft-fp.
13488         * sysdeps/powerpc/powerpc32/405: Move directory from
13489         ports/sysdeps/powerpc/powerpc32/405.
13490         * sysdeps/powerpc/powerpc32/440: Move directory from
13491         ports/sysdeps/powerpc/powerpc32/440.
13492         * sysdeps/powerpc/powerpc32/464: Move directory from
13493         ports/sysdeps/powerpc/powerpc32/464.
13494         * sysdeps/powerpc/powerpc32/476: Move directory from
13495         ports/sysdeps/powerpc/powerpc32/476.
13496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13497         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13499         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13501         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13503         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13505         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13506         * README: Update for powerpc-*-linux-gnu software floating point
13507         support in libc.
13508
13509         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13510         case to powerpc/powerpc32*.
13511         * sysdeps/unix/sysv/linux/configure: Regenerated.
13512
13513         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13514         (_FPU_MASK_OM): Define as 0x04.
13515         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13516         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13517         0x00c10080.
13518         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13519         0x0000003c.
13520         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13521
13522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13523         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13524         getcontext_e500.
13525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13526         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13527         setcontext_e500.
13528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13529         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13530         and setcontext_e500.
13531
13532 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
13533
13534         * locale/iso-3166.def: Update iso-1366.def and related occurrences
13535
13536 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13537
13538         * manual/threads.texi (Default Thread Attributes): Fix typo.
13539
13540 2013-10-04  Will Newton  <will.newton@linaro.org>
13541
13542         * malloc/Makefile: Add tst-memalign.
13543         * malloc/tst-memalign.c: New file.
13544
13545         * malloc/tst-posix_memalign.c: Add comments.
13546         (do_test): Add comments and call free on all potentially
13547         allocated pointers. Add space after cast.
13548
13549         * malloc/tst-pvalloc.c: Add comments.
13550         (do_test): Add comments and call free on all potentially
13551         allocated pointers. Remove duplicate check for NULL pointer.
13552         Add space after cast.
13553
13554         * malloc/tst-valloc.c: Add comments.
13555         (do_test): Add comments and call free on all potentially
13556         allocated pointers. Remove duplicate check for NULL pointer.
13557         Add space after cast.
13558
13559 2013-10-04  Alan Modra  <amodra@gmail.com>
13560
13561         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13562         Use stdint types in rather than __attribute__((mode())).
13563         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13564
13565 2013-10-04  Alan Modra  <amodra@gmail.com>
13566
13567         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13568         Correct handling of unaligned relocs for little-endian.
13569         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13570
13571 2013-10-04  Alan Modra  <amodra@gmail.com>
13572
13573         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
13574         * configure: Regenerate.
13575         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13576         * shlib-versions: Likewise.
13577
13578 2013-10-04  Alan Modra  <amodra@gmail.com>
13579
13580         * string/tester.c (test_memrchr): Increment reported test cycle.
13581
13582 2013-10-04  Alan Modra  <amodra@gmail.com>
13583
13584         * string/test-memcpy.c (do_one_test): When reporting errors, print
13585         string address and don't overrun end of string.
13586
13587 2013-10-04  Alan Modra  <amodra@gmail.com>
13588
13589         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13590         insrdi.  Make better use of reg selection to speed exit slightly.
13591         Schedule entry path a little better.  Remove useless "are we done"
13592         checks on entry to main loop.  Handle wrapping around zero address.
13593         Correct main loop count.  Handle single left-over word from main
13594         loop inline rather than by using loop_small.  Remove extra word
13595         case in loop_small caused by wrong loop count.  Add little-endian
13596         support.
13597         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13598         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13599         cache hint.
13600         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13601         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13602         support.  Avoid rlwimi.
13603         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13604
13605 2013-10-04  Alan Modra  <amodra@gmail.com>
13606
13607         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13608         insrdi.  Formatting.
13609         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13610         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13611         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13612         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13613         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13614         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13615
13616 2013-10-04  Alan Modra  <amodra@gmail.com>
13617
13618         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13619         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13620         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13621         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13622         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13623         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13624         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13625         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13626         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13627         use of regs.  Use power7 mtocrf.  Tidy function tails.
13628
13629 2013-10-04  Alan Modra  <amodra@gmail.com>
13630
13631         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13632         Formatting.  Consistently use rXXX register defines or rN defines.
13633         Use early exit labels that avoid restoring unused non-volatile regs.
13634         Make cr field use more consistent with rWORDn compares.  Rename
13635         regs used as shift registers for unaligned loop, using rN defines
13636         for short lifetime/multiple use regs.
13637         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13638         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13639         addi 1,1,64 to pop stack frame.  Simplify return value code.
13640         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13641
13642 2013-10-04  Alan Modra  <amodra@gmail.com>
13643
13644         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13645         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13646         rather than rlwimi.
13647         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13648         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13649         little-endian support.  Correct typos.
13650         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13651         rather than rlwimi.
13652         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13653         in loop and entry code to keep "and." results.
13654         (strchr): Add little-endian support.  Comment.  Move cntlzd
13655         earlier in tail.
13656         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13657
13658 2013-10-04  Alan Modra  <amodra@gmail.com>
13659
13660         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13661         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13662         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13663         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13664
13665 2013-10-04  Alan Modra  <amodra@gmail.com>
13666
13667         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13668         (rTMP): Define as r11.
13669         (strcmp): Add little-endian support.  Optimise tail.
13670         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13671         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13672         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13673         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13674         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13675         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13676         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13677
13678 2013-10-04  Alan Modra  <amodra@gmail.com>
13679
13680         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13681         little-endian support.  Remove unnecessary "are we done" tests.
13682         Handle "s" wrapping around zero and extremely large "size".
13683         Correct main loop count.  Handle single left-over word from main
13684         loop inline rather than by using small_loop.  Correct comments.
13685         Delete "zero" tail, use "end_max" instead.
13686         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13687
13688 2013-10-04  Alan Modra  <amodra@gmail.com>
13689
13690         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13691         support.  Don't branch over align.
13692         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13693         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13694         support.  Rearrange tmp reg use to suit.  Comment.
13695         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13696
13697 2013-10-04  Alan Modra  <amodra@gmail.com>
13698
13699         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13700
13701 2013-10-04  Alan Modra  <amodra@gmail.com>
13702
13703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13704         conditional form of branch and link when obtaining pc.
13705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13706
13707 2013-10-04  Alan Modra  <amodra@gmail.com>
13708
13709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13710         HIWORD/LOWORD.
13711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13713
13714 2013-10-04  Alan Modra  <amodra@gmail.com>
13715
13716         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13717         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13718         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13719         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13720         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13721         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13722         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13723         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13724         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13725         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13726
13727 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13728             Alistair Popple <alistair@ozlabs.au.ibm.com>
13729             Alan Modra <amodra@gmail.com>
13730
13731         [BZ #15723]
13732         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13733         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13734         _dl_hwcap access for little-endian.
13735         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13736         destroy vmx regs when saving unaligned.
13737         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13738         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13739         destroy vmx regs when saving unaligned.
13740
13741 2013-10-04  Alan Modra  <amodra@gmail.com>
13742
13743         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13744         Don't use a union to pack hi/low value.
13745
13746 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13747
13748         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13749         for little-endian.
13750         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13751         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13752         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13753         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13754         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13755
13756 2013-10-04  Alan Modra  <amodra@gmail.com>
13757
13758         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13759         constants to usual value for .cst8 section, and remove redundant
13760         high address load.
13761         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13762         constant for 0x1p52.  Load little-endian words of double from
13763         correct stack offsets.
13764
13765 2013-10-04  Alan Modra  <amodra@gmail.com>
13766
13767         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13768         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13769         words of double from correct stack offsets.
13770         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13771         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13772         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13773         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13774         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13775         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13776         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13777         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13778         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13779         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13780         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13781         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13782         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13783         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13784         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13785         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13786         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13787
13788 2013-10-04  Alan Modra  <amodra@gmail.com>
13789
13790         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13791         64-bit int/double union.
13792         (_FPU_SETCW): Likewise.
13793         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13794         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13795
13796 2013-10-04  Alan Modra  <amodra@gmail.com>
13797
13798         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13799         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13800
13801 2013-10-04  Alan Modra  <amodra@gmail.com>
13802
13803         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13804         use vector int constants.
13805         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13806
13807 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13808
13809         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13810         array with long long.
13811         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13812         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13813         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13814         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13815         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13816         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13817         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13818         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13819         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13820         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13821         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13822         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13823         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13824
13825 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13826
13827         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13828         (__signbit): Likewise.  Correct for little-endian.
13829         (__signbitl): Call __signbit.
13830         (lrint): Correct for little-endian.
13831         (lrintf): Call lrint.
13832
13833 2013-10-04  Alan Modra  <amodra@gmail.com>
13834
13835         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13836         union 32-bit int array member with 64-bit int array.
13837         (t515, tm256): Double rather than long double.
13838         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13839
13840 2013-10-04  Alan Modra  <amodra@gmail.com>
13841
13842         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13843         Delete.
13844         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13845         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13846         version of math_ldbl.h.
13847
13848 2013-10-04  Alan Modra  <amodra@gmail.com>
13849
13850         [BZ #15734], [BZ #15735]
13851         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13852         all uses of ieee875 long double macros and unions.  Simplify test
13853         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13854         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13855         normalize after ldbl_extract_mantissa, and don't add hidden bit
13856         already handled.  Don't treat low word of ieee854 mantissa like
13857         low word of IBM long double and mask off bit when testing for
13858         zero.
13859         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13860         all uses of ieee875 long double macros and unions.  Simplify tests
13861         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13862         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13863         two1022, instead use their values.  Recognise that tests for large
13864         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13865         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13866         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13867         test for 0.0L and nan.  Correct negation.
13868         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13869         ieee875 long double macros and unions.  Correct output for large
13870         magnitude x.  Correct absolute value calculation.
13871         (__erfcl): Likewise.
13872         * math/libm-test.inc: Add tests for errors discovered in IBM long
13873         double versions of fmodl, remainderl, erfl and erfcl.
13874
13875 2013-10-04  Alan Modra  <amodra@gmail.com>
13876
13877         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13878         all uses of ieee854 long double macros and unions.  Simplify tests
13879         for long doubles that are fully specified by the high double.
13880         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13881         Likewise.
13882         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13883         Remove dead code too.
13884         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13885         (__ieee754_ynl): Likewise.
13886         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13887         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13888         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13889         Remove dead code too.
13890         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13891         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13892         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13893         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13894         Simplify.
13895         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13896         Simplify.
13897         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13898         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13899         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13900         Comment on variable precision.
13901         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13902         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13903         Likewise.
13904         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13905         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13906         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13907         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13908         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13909
13910 2013-10-04  Alan Modra  <amodra@gmail.com>
13911
13912         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13913         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13914         all uses of ieee854 long double macros and unions.
13915         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13916         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13917         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13918         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13919         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13920         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13921         Likewise.
13922         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13923         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13924         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13925         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13926         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13927         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13928         Simplify sign and nan test too.
13929         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13930         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13931         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13932         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13933         Likewise.
13934         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13935         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13936         Likewise.
13937         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13938         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13939         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13940         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13941         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13942         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13943
13944 2013-10-04  Alan Modra  <amodra@gmail.com>
13945
13946         * stdio-common/printf_size.c (__printf_size): Don't use
13947         union ieee854_long_double in fpnum union.
13948         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13949         signbit macro to retrieve sign from long double.
13950         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13951         retrieve sign from long double.
13952         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13953         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13954         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13955         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13956         * math/test-misc.c (main): Don't use union ieee854_long_double.
13957
13958 2013-10-04  Alan Modra  <amodra@gmail.com>
13959
13960         [BZ #15680]
13961         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13962         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13963         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13964         calculation.  Remove unnecessary test for denormal exponent.
13965         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13966         Correct handling of denormals.  Avoid undefined shift behaviour.
13967         Correct normalisation of low mantissa when low double is denormal.
13968         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13969         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13970         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13971         Correct normalisation of low mantissa.  Test for overflow of high
13972         mantissa and normalise.
13973         (ldbl_nearbyint): Use more readable constant for two52.
13974         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13975         (__mpn_construct_long_double): Fix test for overflow of high
13976         mantissa and correct normalisation.  Avoid undefined shift.
13977
13978 2013-10-04  Alan Modra  <amodra@gmail.com>
13979
13980         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13981         (union ibm_extended_long_double): Define as an array of ieee754_double.
13982         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13983         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13984         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13985         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13986         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13987         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13988         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13989         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13990         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13991         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13992         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13993
13994 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13995
13996         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13997         page size instead of calling getpagesize.
13998
13999         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
14000         (LOCFILE_ALIGN_MASK): Likewise.
14001         (LOCFILE_ALIGN_UP): Likewise.
14002         (LOCFILE_ALIGNED_P): Likewise.
14003         * locale/programs/ld-collate.c (collate_output): Use the new
14004         macros instead of __alignof__ (int32_t).
14005         * locale/weight.h (findidx): Likewise.
14006
14007 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
14008
14009         [BZ #431]
14010         * manual/string.texi: Fix strncat and wcsncat.
14011
14012 2013-10-03  Brooks Moses  <bmoses@google.com>
14013
14014         [BZ #15915]
14015         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
14016         * Makerules: ...here, and adjust associated comments.
14017
14018 2013-10-02  Will Newton  <will.newton@linaro.org>
14019
14020         * malloc/Makefile: Add tst-pvalloc.
14021         * malloc/tst-pvalloc.c: New file.
14022
14023 2013-10-02  Will Newton  <will.newton@linaro.org>
14024
14025         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
14026         improve test coverage.
14027
14028 2013-10-02  Will Newton  <will.newton@linaro.org>
14029
14030         * malloc/Makefile: Add tst-posix_memalign.
14031         * malloc/tst-posix_memalign.c: New file.
14032
14033 2013-10-01  Eric Blake  <eblake@redhat.com>
14034
14035         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
14036         Use __THROWNL rather than __THROW on static functions.
14037
14038 2013-09-30  Petr Machata  <pmachata@redhat.com>
14039
14040         * elf/elf.h (R_AARCH64_ABS16): New macro.
14041         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
14042         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
14043         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
14044         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
14045         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
14046         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
14047         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
14048         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
14049         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
14050         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
14051         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
14052         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
14053         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
14054         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
14055         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
14056         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
14057         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
14058         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
14059         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
14060         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
14061         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
14062         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
14063         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
14064         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
14065         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
14066         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
14067         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
14068         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
14069         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
14070         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
14071         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
14072         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
14073         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
14074         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
14075         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
14076         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
14077         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
14078         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
14079         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
14080         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
14081         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
14082         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
14083         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
14084         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
14085         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
14086         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
14087         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
14088         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
14089         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
14090         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
14091         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
14092         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
14093         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
14094         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
14095         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
14096         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
14097         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
14098         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
14099         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
14100         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
14101         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
14102         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
14103         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
14104         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
14105         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
14106         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
14107         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
14108         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
14109         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
14110         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
14111         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
14112         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
14113         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
14114         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
14115         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
14116         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
14117         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
14118         (R_AARCH64_TLSDESC_LDR): Likewise.
14119         (R_AARCH64_TLSDESC_ADD): Likewise.
14120         (R_AARCH64_TLSDESC_CALL): Likewise.
14121
14122 2013-09-30  Andreas Schwab  <schwab@suse.de>
14123
14124         [BZ #15048]
14125         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
14126         the nss database lookup.
14127         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14128         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14129
14130 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
14131
14132         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
14133
14134 2013-09-28  P. J. McDermott  <pj@pehjota.net>
14135
14136         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
14137         ${Bash-specific parameter/pattern/string} parameter expansion.
14138         * sysdeps/unix/make-syscalls.sh: Likewise.
14139
14140 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14141
14142         * sysdeps/sh/stackguard-macros.h: New file.
14143
14144 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
14145
14146         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
14147         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
14148         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
14149         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
14150         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14151         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
14152
14153 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14154
14155         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
14156         Fix thread ID register.
14157
14158 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
14159
14160         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
14161         [POSIX || UNIX98]: Require rather than permitting all symbols from
14162         <time.h>.
14163         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
14164         element of struct sched_param.
14165         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
14166         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
14167         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
14168         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
14169         constant.
14170
14171 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
14172
14173         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
14174         argument calculation.
14175
14176 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14177
14178         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
14179         Expect macro.
14180         [POSIX] (pthread_attr_t): Do not require type.
14181         [POSIX] (pthread_cond_t): Likewise.
14182         [POSIX] (pthread_condattr_t): Likewise.
14183         [POSIX] (pthread_key_t): Likewise.
14184         [POSIX] (pthread_mutex_t): Likewise.
14185         [POSIX] (pthread_mutexattr_t): Likewise.
14186         [POSIX] (pthread_once_t): Likewise.
14187         [POSIX] (pthread_t): Likewise.
14188         [POSIX-based standards] (pthread_atfork): Expect function.
14189
14190 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14191             Richard Sandiford  <richard@codesourcery.com>
14192
14193         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14194         (swap_endianness_p): New extern variable.
14195         (set_big_endian): New inline function.
14196         (maybe_swap_uint32): Likewise.
14197         (maybe_swap_uint32_array): Likewise.
14198         (maybe_swap_uint32_obstack): Likewise.
14199         * locale/programs/locfile.c: Include <stdbool.h>.
14200         (swap_endianness_p): New variable.
14201         (add_locale_uint32): Call maybe_swap_uint32.
14202         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14203         (write_locale_data): Call maybe_swap_uint32_array.
14204         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14205         maybe_swap_uint32.
14206         (obstack_int32_grow_fast): Likewise.
14207         (output_weightwc): Call maybe_swap_uint32_obstack.
14208         (collate_output): Likewise.
14209         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14210         (OPT_LITTLE_ENDIAN): Likewise.
14211         (options): Add --little-endian and --big-endian options.
14212         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14213         * locale/programs/locarchive.c: Include "locfile.h".
14214         (GET): New macro.
14215         (SET): Likewise.
14216         (INC): Likewise.
14217         (create_archive): Use the new macros to access fields of
14218         structures directly mapped from or written to locale archives.
14219         (oldlocrecentcmp): Likewise.
14220         (enlarge_archive): Likewise.
14221         (insert_name): Likewise.
14222         (add_alias): Likewise.
14223         (add_locale): Likewise.
14224         (delete_locales_from_archive): Likewise.
14225         (show_archive_content): Likewise.
14226         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14227         locale data.
14228
14229 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14230
14231         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14232         http://www.gnu.org/doc/freemanuals.texi.
14233         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14234
14235 2013-09-24  Will Newton  <will.newton@linaro.org>
14236
14237         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14238         macro.
14239
14240 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14241
14242         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14243         unsigned char.
14244
14245 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14246
14247         * manual/threads.texi (POSIX Threads): Fix a typo.
14248
14249 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14250
14251         [BZ #14547]
14252         * string/tst-strcoll-overflow.c: New test case.
14253         * string/Makefile (xtests): Add tst-strcoll-overflow.
14254         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14255         cache if string sizes may cause integer overflow.
14256
14257         [BZ #14547]
14258         * string/strcoll_l.c (coll_seq): New members rule, idx,
14259         save_idx and back_us.
14260         (get_next_seq_nocache): New function.
14261         (do_compare_nocache): New function.
14262         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14263         when malloc fails.
14264
14265 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14266
14267         [BZ #15754]
14268         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14269         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14270         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14271
14272         [BZ #15754]
14273         * elf/Makefile (tests): Add tst-ptrguard1.
14274         (tests-static): Add tst-ptrguard1-static.
14275         (tst-ptrguard1-ARGS): Define.
14276         (tst-ptrguard1-static-ARGS): Define.
14277         * elf/tst-ptrguard1.c: New file.
14278         * elf/tst-ptrguard1-static.c: New file.
14279         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14280         * sysdeps/i386/stackguard-macros.h: Likewise.
14281         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14282         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14283         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14284         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14285         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14286         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14287
14288 2013-09-23  Hector Marco  <hecmargi@upv.es>
14289             Ismael Ripoll  <iripoll@disca.upv.es>
14290             Carlos O'Donell  <carlos@redhat.com>
14291
14292         [BZ #15754]
14293         * sysdeps/generic/stackguard-macros.h: Define
14294         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14295         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14296         Define __pointer_chk_guard_local.
14297         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14298         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14299
14300 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14301
14302         [BZ #15859]
14303         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14304
14305 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14306
14307         * include/string.h (__ffs): Declare as hidden.
14308         * string/ffs.c (__ffs): Define as hidden.
14309         * sysdeps/i386/ffs.c (__ffs): Likewise.
14310         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14311         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14312         * sysdeps/s390/ffs.c (__ffs): Likewise.
14313         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14314
14315 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14316
14317         * NEWS: Mention malloc probes.
14318
14319         * malloc/arena.c (new_heap): New memory_heap_new probe.
14320         (grow_heap): New memory_heap_more probe.
14321         (shrink_heap): New memory_heap_less probe.
14322         (heap_trim): New memory_heap_free probe.
14323         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14324         (systrim): New memory_sbrk_less probe.
14325         * manual/probes.texi: Document them.
14326
14327         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14328         * manual/probes.texi: Document it.
14329
14330         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14331         (__libc_realloc): Add memory_realloc_retry probe.
14332         (__libc_memalign): Add memory_memalign_retry probe.
14333         (__libc_valloc): Add memory_valloc_retry probe.
14334         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14335         (__libc_calloc): Add memory_calloc_retry probe.
14336         * manual/probes.texi: Document them.
14337
14338         * malloc/arena.c (get_free_list): Add probe
14339         memory_arena_reuse_free_list.
14340         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14341         and memory_arena_reuse.
14342         (arena_get2) [!PER_THREAD]: Likewise.
14343         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14344         memory_arena_reuse_realloc.
14345         * manual/probes.texi: Document them.
14346
14347         * malloc/malloc.c (__libc_free): Add
14348         memory_mallopt_free_dyn_thresholds probe.
14349         (__libc_mallopt): Add multiple memory_mallopt probes.
14350         * manual/probes.texi: Document them.
14351
14352         * malloc/malloc.c: Include stap-probe.h.
14353         (__libc_mallopt): Add memory_mallopt probe.
14354         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14355         * manual/probes.texi: New.
14356         * manual/Makefile (chapters): Add probes.
14357         * manual/threads.texi: Set next node.
14358
14359 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14360
14361         [BZ #15963, #13985]
14362         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14363         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14364         Add `Chinese' to `nan' entry name.
14365
14366 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14367
14368         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14369         (POLYNOMIAL): Likewise.
14370         (TAYLOR_SINCOS): Likewise.
14371         (TAYLOR_SLOW): Likewise.
14372         (__sin): Use TAYLOR_SINCOS.
14373         (__cos): Likewise.
14374         (slow): Use TAYLOR_SLOW.
14375         (sloww): Likewise.
14376         (bsloww): Likewise.
14377         (csloww): Likewise.
14378
14379 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14380
14381         * stdlib/strtod_l.c: Fix buffer overrun.
14382
14383 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14384
14385         * benchtests/Makefile (bench): Add sincos.
14386         * benchtests/bench-sincos.c: New file.
14387
14388         * math/libm-test.inc (cos_test_data): New test inputs.
14389         (sin_test_data): Likewise.
14390
14391         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14392         macro.
14393         (__sin): Use it.
14394         (__cos): Likewise.
14395         (slow1): Likewise.
14396         (slow2): Likewise.
14397         (sloww1): Likewise.
14398         (sloww2): Likewise.
14399         (bsloww1): Likewise.
14400         (bsloww2): Likewise.
14401         (cslow2): Likewise.
14402         (csloww1): Likewise.
14403         (csloww2): Likewise.
14404
14405         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14406         function.
14407         (__sin): Use it.
14408         (__cos): Likewise.
14409
14410         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14411         gotos.
14412         (__cos): Likewise.
14413
14414 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14415
14416         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14417         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14418         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14419         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14420         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14421         * elf/cache.c (print_entry): Handle the new cache flags.
14422
14423 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14424             Aldy Hernandez  <aldyh@redhat.com>
14425
14426         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14427         Change condition to [_SOFT_FLOAT].
14428         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14429         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14430         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14431         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14432         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14433         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14434         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14435         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14436         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14437         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14438         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14439         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14440         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14441         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14442         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14443         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14444         declaration.
14445
14446 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14447
14448         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14449         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14450         (__longjmp): Use LOAD_GP to load saved GPRs.
14451         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14452         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14453         (__sigsetjmp): Use SAVE_GP to save GPRs.
14454
14455         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14456         Do not append -msoft-float.
14457         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14458
14459 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14460
14461         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14462
14463 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14464
14465         [BZ #15966]
14466         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14467         (_FPU_GETCW): Use initial "__" on variable and field names but not
14468         on macro parameter name.
14469         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14470         parentheses around reference to macro parameter.
14471
14472 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14473
14474         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14475         prototype.
14476         (ctype_startup): Use uint32_t in cast and sizeof for
14477         ctype->charnames.
14478
14479 2013-09-11  Jia Liu  <proljc@gmail.com>
14480
14481         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14482         __daddr_t_defined.
14483         [__FreeBSD__]: Likewise.
14484
14485 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14486
14487         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14488         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14489         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14490         (strchr): Remove __strchr_sse42 ifunc selection.
14491         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14492         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14493
14494 2013-09-11  Will Newton  <will.newton@linaro.org>
14495
14496         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14497         parameter to RES. Remove hardcoded 1000 value.
14498         * benchtests/bench-skeleton.c (main): Pass RES parameter
14499         to TIMING_INIT and multiply result by 1000.
14500
14501 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14502
14503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14504
14505 2013-09-11  Andreas Schwab  <schwab@suse.de>
14506
14507         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14508         if not defined.
14509         (O_TMPFILE) [__USE_GNU]: Define.
14510         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14511         Define.
14512
14513 2013-09-11  Will Newton  <will.newton@linaro.org>
14514
14515         [BZ #15857]
14516         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14517         does not overflow.
14518
14519 2013-09-11  Will Newton  <will.newton@linaro.org>
14520
14521         [BZ #15856]
14522         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14523         does not overflow.
14524
14525 2013-09-11  Will Newton  <will.newton@linaro.org>
14526
14527         [BZ #15855]
14528         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14529         does not overflow.
14530
14531 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14532
14533         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
14534         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14535         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14536         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14537         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14538
14539 2013-09-10  Allan McRae  <allan@archlinux.org>
14540
14541         [BZ #15748]
14542         * manual/arith.texi (Parsing of Floats): Clarify
14543         cross-reference.
14544
14545         [BZ #15849]
14546         * manual/install.texi (Running make install): Mention
14547         --enable-pt-chown.
14548         * INSTALL: Regenerated.
14549
14550 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
14551
14552         * csu/init-first.c (_init): Remove the !SHARED condition around
14553         FPU control word initialization.
14554         * elf/dl-support.c (_dl_fpu_control): New variable.
14555         (_dl_aux_init) <AT_FPUCW>: Initialize it.
14556         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
14557         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
14558         * math/test-fpucw-static.c: New file.
14559         * math/test-fpucw-ieee.c: New file.
14560         * math/test-fpucw-ieee-static.c: New file.
14561         * math/Makefile (tests): Add `test-fpucw-ieee' and
14562         `$(tests-static)'.
14563         (tests-static): New variable.
14564         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
14565         dependency to...
14566         [($(build-shared),yes)]
14567         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
14568         ... this.
14569         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
14570         New dependency.
14571
14572 2013-09-09  Allan McRae  <allan@archlinux.org>
14573
14574         [BZ #15939]
14575         * manual/string.texi (Collation Functions): Fix typo in
14576         strcoll example.
14577         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14578
14579         [BZ #15893]
14580         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14581
14582         [BZ #15892]
14583         * libio/memstream.c (open_memstream): Fix memory leak.
14584         * libio/wmemstream.c (open_wmemstream): Likewise.
14585
14586         [BZ #15895]
14587         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14588
14589 2013-09-09  Will Newton  <will.newton@linaro.org>
14590
14591         * malloc/Makefile: Add tst-realloc to tests.
14592         * malloc/tst-realloc.c: New file.
14593
14594 2013-09-09  Allan McRae  <allan@archlinux.org>
14595
14596         [BZ #15844]
14597         * COPYING: Update from GNU website to fix FSF address.
14598         * COPYING.LIB: Likewise.
14599
14600 2013-09-06  David S. Miller  <davem@davemloft.net>
14601
14602         * po/zh_TW.po: Update Chinese (traditional) translation from
14603         translation project.
14604
14605 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14606             Joseph Myers  <joseph@codesourcery.com>
14607
14608         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14609         "localeinfo.h".
14610         (obstack_chunk_alloc): New macro.
14611         (obstack_chunk_free): Likewise.
14612         (record_offset): New function.
14613         (init_locale_data): Likewise.
14614         (align_locale_data): Likewise.
14615         (add_locale_empty): Likewise.
14616         (add_locale_raw_data): Likewise.
14617         (add_locale_raw_obstack): Likewise.
14618         (add_locale_string): Likewise.
14619         (add_locale_wstring): Likewise.
14620         (add_locale_uint32): Likewise.
14621         (add_locale_uint32_array): Likewise.
14622         (add_locale_char): Likewise.
14623         (start_locale_structure): Likewise.
14624         (end_locale_structure): Likewise.
14625         (start_locale_prelude): Likewise.
14626         (end_locale_prelude): Likewise.
14627         (write_locale_data): Take locale_file structure rather than an
14628         iovec.
14629         * locale/programs/locfile.h: Include "obstack.h".
14630         (struct locale_file): Change to store locale file contents instead
14631         of header.
14632         (init_locale_data): New prototype.
14633         (align_locale_data): Likewise.
14634         (add_locale_empty): Likewise.
14635         (add_locale_raw_data): Likewise.
14636         (add_locale_raw_obstack): Likewise.
14637         (add_locale_string): Likewise.
14638         (add_locale_wstring): Likewise.
14639         (add_locale_uint32): Likewise.
14640         (add_locale_uint32_array): Likewise.
14641         (add_locale_char): Likewise.
14642         (start_locale_structure): Likewise.
14643         (end_locale_structure): Likewise.
14644         (start_locale_prelude): Likewise.
14645         (end_locale_prelude): Likewise.
14646         (write_locale_data): Update prototype.
14647         * locale/programs/3level.h (struct TABLE): Remove result field.
14648         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14649         Use new locale_file interface.
14650         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14651         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14652         * locale/programs/ld-address.c (address_output): Use new
14653         locale_file interface.
14654         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14655         NO_ADD_LOCALE.
14656         (collate_finish): Don't call collseq_table_finalize.
14657         (collate_output): Use new locale_file interface.
14658         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14659         in file.
14660         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14661         (TABLE): Move defines earlier in file.
14662         (ELEMENT): Likewise.
14663         (DEFAULT): Likewise.
14664         (wctrans_table_add): Move macro and inline function earlier in
14665         file.
14666         (struct wctype_table): Move type earlier in file.
14667         (add_locale_wctype_table): New static prototype.
14668         (struct locale_ctype_t): Use logical types instead of struct iovec
14669         pointers for members.
14670         (ctype_output): Use new locale_file interface.
14671         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14672         new locale_file interface.
14673         (allocate_arrays): Update for use of new locale_file interface.
14674         * locale/programs/ld-identification.c (identification_output): Use
14675         new locale_file interface.
14676         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14677         * locale/programs/ld-messages.c (messages_output): Likewise.
14678         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14679         * locale/programs/ld-name.c (name_output): Likewise.
14680         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14681         * locale/programs/ld-paper.c (paper_output): Likewise.
14682         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14683         * locale/programs/ld-time.c (time_output): Likewise.
14684
14685 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14686
14687         * benchtests/Makefile: Add memrchr benchmark.
14688         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14689         benchmark as memrchr.
14690         * benchtests/bench-memrchr-ifunc.c: New file.
14691         * benchtests/bench-memrchr.c: New file.
14692
14693 2013-09-06   Will Newton  <will.newton@linaro.org>
14694
14695         * benchtests/Makefile (string-bench): Add memcpy.
14696
14697 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14698             Cong Wang  <amwang@redhat.com>
14699
14700         [BZ #15850]
14701         * sysdeps/unix/sysv/linux/bits/in.h
14702         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14703         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14704         before __USE_KERNEL_IPV6_DEFS uses.
14705         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14706         IPPROTO_BEETPH.
14707         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14708         sockaddr_in6, or ipv6_mreq.
14709
14710 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14711
14712         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14713         memory access for final bytes in some large inputs.
14714         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14715
14716 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14717
14718         * string/test-memrchr.c: New file.
14719         * string/test-memrchr-ifunc.c: New file.
14720         * string/Makefile: Add new memrchr testcase.
14721
14722 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14723
14724         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14725         fanotify_init returns EPERM.
14726
14727 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14728
14729         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14730         errors.
14731         (top level): Treat second token from macro or constant entries for
14732         allowed headers as allowed.
14733         * include/complex.h: Condition internal declarations on
14734         [!_ISOMAC].
14735         * include/fenv.h: Condition include of <stdbool.h> and internal
14736         declarations on [!_ISOMAC].
14737
14738 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14739
14740         [BZ #15923]
14741         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14742
14743 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14744
14745         * configure.in (--enable-versioning): Remove configure option.
14746         (libc_cv_asm_symver_directive): Remove configure test.
14747         (libc_cv_ld_version_script_option): Likewise.
14748         (VERSIONING): Remove variable and AC_SUBST.
14749         (DO_VERSIONING): Remove AC_DEFINE.
14750         * configure: Regenerated.
14751         * config.h.in (DO_VERSIONING): Remove macro.
14752         * Makerules [$(versioning) = yes]: Change conditionals to
14753         [$(build-shared) = yes].
14754         * config.make.in (versioning): Remove variable.
14755         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14756         [$(build-shared) = yes].
14757         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14758         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14759         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14760         [$(build-shared) = yes].
14761         * extra-lib.mk [$(versioning) = yes]: Likewise.
14762         * hurd/Makefile [$(versioning) = yes]: Likewise.
14763         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14764         [SHARED].
14765         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14766         [SHARED].
14767         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14768         [SHARED && !NO_HIDDEN].
14769         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14770         [SHARED].
14771         [SHARED && DO_VERSIONING]: Likewise..
14772         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14773         [$(build-shared) = yes].
14774         * manual/install.texi (--disable-versioning): Remove
14775         documentation.
14776         * INSTALL: Regenerated.
14777         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14778         to [SHARED].
14779         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14780         [$(build-shared) = yes].
14781         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14782         * sysdeps/i386/i686/multiarch/strstr-c.c
14783         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14784         [SHARED && !NO_HIDDEN].
14785         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14786         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14787         * sysdeps/powerpc/powerpc32/dl-machine.c
14788         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14789         * sysdeps/powerpc/powerpc32/sysdep.h
14790         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14791         to [SHARED && PIC && !NO_HIDDEN].
14792         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14793         conditional to [SHARED].
14794
14795 2013-09-04   Will Newton  <will.newton@linaro.org>
14796
14797         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14798         * benchtests/bench-string.h: Include bench-timing.h instead
14799         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14800         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14801         call to HP_TIMING_DIFF_INIT.
14802         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14803         instead of hp-timing.h macros.
14804         * benchtests/bench-memchr.c: Likewise.
14805         * benchtests/bench-memcmp.c: Likewise.
14806         * benchtests/bench-memcpy.c: Likewise.
14807         * benchtests/bench-memmem.c: Likewise.
14808         * benchtests/bench-memmove.c: Likewise.
14809         * benchtests/bench-memset.c: Likewise.
14810         * benchtests/bench-rawmemchr.c: Likewise.
14811         * benchtests/bench-strcasecmp.c: Likewise.
14812         * benchtests/bench-strcasestr.c: Likewise.
14813         * benchtests/bench-strcat.c: Likewise.
14814         * benchtests/bench-strchr.c: Likewise.
14815         * benchtests/bench-strcmp.c: Likewise.
14816         * benchtests/bench-strcpy.c: Likewise.
14817         * benchtests/bench-strcpy_chk.c: Likewise.
14818         * benchtests/bench-strlen.c: Likewise.
14819         * benchtests/bench-strncasecmp.c: Likewise.
14820         * benchtests/bench-strncat.c: Likewise.
14821         * benchtests/bench-strncmp.c: Likewise.
14822         * benchtests/bench-strncpy.c: Likewise.
14823         * benchtests/bench-strnlen.c: Likewise.
14824         * benchtests/bench-strpbrk.c: Likewise.
14825         * benchtests/bench-strrchr.c: Likewise.
14826         * benchtests/bench-strspn.c: Likewise.
14827         * benchtests/bench-strstr.c: Likewise.
14828
14829 2013-09-04  Will Newton  <will.newton@linaro.org>
14830
14831         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14832
14833 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14834
14835         [BZ #15427]
14836         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14837         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14838         * math/libm-test.inc (lgamma_test_data): Add more tests.
14839         * sysdeps/i386/fpu/libm-test-ulps: Update.
14840         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14841
14842 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14843
14844         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14845         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14846         Add ifunc.
14847         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14848         Add strcmp-sse2-unaligned
14849         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14850
14851 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14852
14853         * Versions.def (libc): Add GLIBC_2.19.
14854
14855 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14856
14857         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14858         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14859
14860 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14861
14862         [BZ #14155]
14863         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14864         intermediate calculations in recurrence.
14865         (__ieee754_ynf): Likewise.
14866         * math/libm-test.inc (jn_test_data): Do not allow spurious
14867         underflow exception.  Add more tests.
14868         (yn_test_data): Add more tests.
14869         * sysdeps/i386/fpu/libm-test-ulps: Update.
14870         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14871
14872 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14873
14874         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14875
14876 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14877
14878         * csu/init-first.c: Fix then/than typos.
14879         * locale/programs/ld-collate.c: Likewise.
14880         * locale/programs/linereader.h: Likewise.
14881         * manual/charset.texi: Likewise.
14882         * manual/filesys.texi: Likewise.
14883         * manual/stdio.texi: Likewise.
14884         * manual/string.texi: Likewise.
14885         * stdlib/fmtmsg.c: Likewise.
14886         * sysdeps/i386/stpncpy.S: Likewise.
14887         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14888         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14889         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14890         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14891
14892 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14893
14894         * elf/dl-open.c: Fix typos.
14895         * iconvdata/gbbig5.c: Likewise.
14896         * iconvdata/iso-2022-jp.c: Likewise.
14897         * iconv/gconv_int.h: Likewise.
14898         * iconv/loop.c: Likewise.
14899         * nis/rpcsvc/nis.h: Likewise.
14900         * resolv/ns_name.c: Likewise.
14901         * stdio-common/vfscanf.c: Likewise.
14902         * streams/stropts.h: Likewise.
14903         * sunrpc/rpc_thread.c: Likewise.
14904         * sysdeps/i386/strpbrk.S: Likewise.
14905         * sysdeps/ieee754/k_standard.c: Likewise.
14906         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14907         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14908         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14909         * sysdeps/mach/hurd/profil.c: Likewise.
14910         * sysdeps/s390/dl-procinfo.h: Likewise.
14911         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14912         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14913         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14914         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14915         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14916
14917 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14918
14919         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14920         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14921
14922 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14923
14924         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14925         aix specific files.
14926         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14927         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14928         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14929         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14930         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14931         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14932         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14933         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14934
14935 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14936             Roland McGrath  <roland@hack.frob.com>
14937
14938         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14939         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14940
14941 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14942
14943         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14944         __executable_start symbol instead of _start.
14945
14946 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14947
14948         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14949         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14950         Move macros to...
14951         * sysdeps/gnu/ldsodefs.h: ... this new file.
14952
14953         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14954         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14955         instead of ELFOSABI_LINUX.
14956
14957         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14958         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14959         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14960         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14961         Likewise.
14962         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14963         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14964         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14965         Likewise.
14966         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14967         (ibm_extended_long_double): Add ieee_nan member.
14968         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14969         (do_test): New function.
14970
14971         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14972         TEST_TRUNC.
14973         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14974         functions, renamed from truncdfsf_test, trunctfsf_test,
14975         trunctfdf_test.
14976         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14977         functions.
14978         (do_test): Run all these.
14979
14980 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14981
14982         * argp/argp-help.c: Fix typos.
14983         * argp/argp-parse.c: Likewise.
14984         * debug/backtracesyms.c: Likewise.
14985         * elf/elf.h: Likewise.
14986         * malloc/malloc.c: Likewise.
14987         * nis/nis_print.c: Likewise.
14988         * resolv/res_comp.c: Likewise.
14989         * stdlib/stdlib.h: Likewise.
14990         * sunrpc/clnt_tcp.c: Likewise.
14991         * sunrpc/clnt_udp.c: Likewise.
14992         * sunrpc/clnt_unix.c: Likewise.
14993         * sysdeps/unix/bsd/ptsname.c: Likewise.
14994         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14995         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14997         Likewise.
14998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14999         Likewise.
15000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
15001         Likewise.
15002         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
15003
15004 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15005
15006         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
15007         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
15008
15009 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
15010
15011         [BZ #15897]
15012         * dlfcn/Makefile (tests): Add bug-dl-leaf.
15013         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
15014         ($(objpfx)bug-dl-leaf): New rule.
15015         ($(objpfx)bug-dl-leaf.so): Likewise.
15016         ($(objpfx)bug-dl-leaf.out): Likewise.
15017         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
15018         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
15019         * dlfcn/bug-dl-leaf.c: New test.
15020         * dlfcn/bug-dl-leaf-lib.c: Likewise.
15021         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
15022         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
15023         (dlclose): Likewise.
15024         (dlmopen): Likewise.
15025
15026 2013-08-27  Roland McGrath  <roland@hack.frob.com>
15027
15028         * include/netdb.h [!_ISOMAC]:
15029         Don't include <tls.h>.
15030         (h_errno, __libc_h_errno): Move declaration and macros out of
15031         [_LIBC_REENTRANT].
15032
15033         * include/resolv.h [_RESOLV_H_]:
15034         Don't include <tls.h>.
15035         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
15036         * resolv/res_libc.c: Don't include <tls.h>.
15037         (_res): Use __attribute__ ((nocommon)) in place of
15038         __attribute__ ((section (".bss"))).
15039
15040         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
15041         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
15042
15043         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
15044
15045         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
15046         only under [SIOCGIFCONF && SIOCGIFNETMASK].
15047
15048         * resolv/res_mkquery.c: Include <sys/time.h>.
15049
15050         * inet/ifreq.c: Moved to ...
15051         * sysdeps/unix/ifreq.c: ... here.
15052         * inet/ifreq.c: New file, true stub version.
15053
15054         * socket/sa_len.c: New file.
15055         * socket/Makefile (aux): Add it.
15056         * sysdeps/unix/sysv/linux/Makefile
15057         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
15058         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
15059         and #include <socket/sa_len.c>.
15060         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
15061         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
15062
15063         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
15064         * bits/socket.h: ... here.
15065
15066         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
15067         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
15068         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
15069
15070 2013-08-27  Andreas Schwab  <schwab@suse.de>
15071
15072         [BZ #15736]
15073         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
15074         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
15075         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
15076         * string/test-strcasecmp.c (test_main): Run tests in several
15077         locales.
15078         * string/test-strncasecmp.c (test_main): Likewise.
15079
15080         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
15081         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
15082         to __strcasecmp_nonascii and __strncasecmp_nonascii.
15083         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
15084         (__strncasecmp_ssse3) [PIC]: Likewise.
15085
15086 2013-08-26  Roland McGrath  <roland@hack.frob.com>
15087
15088         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
15089
15090         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
15091         instead of explicitly declaring xdecrypt.
15092         * nis/nss_nis/nis-publickey.c: Likewise.
15093
15094 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15095
15096         [BZ #15890]
15097         * nscd/aicache.c: Include res_hconf.h.
15098         (addhstaiX): Initialize res_hconf.
15099
15100 2013-08-26  Andreas Schwab  <schwab@suse.de>
15101
15102         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
15103         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
15104
15105 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15106
15107         * nscd/aicache.c (addhstaiX): Fix indentation.
15108
15109 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
15110
15111         * configure.ac: Quote $build_pt_chown test.
15112         * configure: Regenerated.
15113
15114 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
15115
15116         [BZ #15532]
15117         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
15118         * math/s_cexpf.c (__cexpf): Likewise.
15119         * math/s_cexpl.c (__cexpl): Likewise.
15120         * math/libm-test.inc (cexp_test_data): Correct expected return
15121         value for NaN + i0.  Add another test.
15122
15123 2013-08-22  David S. Miller  <davem@davemloft.net>
15124
15125         * po/ca.po: Update Catalan translation from translation project.
15126         * po/uk.po: Add Ukrainian translations from translation project.
15127
15128 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
15129
15130         [BZ #15797]
15131         * math/s_fdim.c (__fdim): Check for infinite arguments if result
15132         is infinite, not alongside NaN test.
15133         * math/s_fdimf.c (__fdimf): Likewise.
15134         * math/s_fdiml.c (__fdiml): Likewise.
15135         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
15136         errno is unchanged.
15137
15138 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
15139
15140         * argp/argp-help.c: Fix typos.
15141         * crypt/speeds.c: Likewise.
15142         * csu/check_fds.c: Likewise.
15143         * elf/dl-load.c: Likewise.
15144         * elf/dl-open.c: Likewise.
15145         * elf/reldep3.c: Likewise.
15146         * elf/reldep.c: Likewise.
15147         * elf/sprof.c: Likewise.
15148         * iconv/iconv_charmap.c: Likewise.
15149         * iconv/skeleton.c: Likewise.
15150         * iconv/strtab.c: Likewise.
15151         * io/lockf64.c: Likewise.
15152         * libio/libioP.h: Likewise.
15153         * resolv/gai_notify.c: Likewise.
15154         * resolv/ns_name.c: Likewise.
15155         * resolv/ns_samedomain.c: Likewise.
15156         * resolv/res_send.c: Likewise.
15157         * stdlib/random.c: Likewise.
15158         * sunrpc/rpc/xdr.h: Likewise.
15159         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
15160         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15161         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15162         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15163         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15164         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15165         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15166         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15167         * sysdeps/mach/hurd/check_fds.c: Likewise.
15168         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15169         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
15170         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15171         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15172         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
15173         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15174         * sysdeps/pthread/aio_notify.c: Likewise.
15175         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
15176         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
15177         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
15178         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15179         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
15180
15181 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15182
15183         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
15184         version if bit_Slow_SSE4_2 is set.
15185         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15186         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15187
15188 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15189
15190         [BZ #15867]
15191         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15192         trampoline stack frame information.
15193         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15194         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15195         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15196         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15197         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15198         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15199         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15200         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15201         sa_flags value.
15202         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15203         interrupting a syscall and set with option SA_SIGINFO.
15204
15205 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15206
15207         [BZ #15531]
15208         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15209         argument is infinite.
15210         * math/s_cprojf.c (__cprojf): Likewise.
15211         * math/s_cprojl.c (__cprojl): Likewise.
15212         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15213         * math/libm-test.inc (cproj_test_data): Add more tests.
15214
15215         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15216
15217         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15218         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15219         size.  Use __ffs to determine corresponding shift.
15220
15221 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15222             Roland McGrath  <roland@hack.frob.com>
15223
15224         * Makefile (INSTALL): Remove trailing blank lines from output of
15225         makeinfo.
15226
15227 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15228
15229         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15230         Align 32 bit compat elf_greg to 8 bytes.
15231
15232 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15233
15234         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15235
15236 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15237
15238         * string/strcoll_l.c (coll_seq): New structure.
15239         (get_next_seq_cached): New function.
15240         (get_next_seq): New function.
15241         (do_compare): New function.
15242         (STRCOLL): Use GNU style definition.  Simplify implementation
15243         by using get_next_seq, get_next_seq_cached and do_compare.
15244
15245 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15246
15247         [BZ #14699]
15248         CVE-2013-4237
15249         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15250         member.
15251         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15252         member.
15253         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15254         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15255         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15256         conditional.
15257         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15258         GETDENTS_64BIT_ALIGNED.
15259         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15260         * manual/filesys.texi (Reading/Closing Directory): Document
15261         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15262         strongly.
15263         * manual/conf.texi (Limits for Files): Add portability note to
15264         NAME_MAX, PATH_MAX.
15265         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15266
15267 2013-08-13  Andreas Schwab  <schwab@suse.de>
15268
15269         [BZ #15749]
15270         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15271         of fabs.
15272         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15273         LDBL_MAX_EXP >= 16384]: Add tests for it.
15274
15275 2013-08-12  David S. Miller  <davem@davemloft.net>
15276
15277         * version.h (RELEASE): Set to "development".
15278         (VERSION): Set to "2.18.90".
15279         * NEWS: Add 2.19 section.
15280
15281 2013-08-03  David S. Miller  <davem@davemloft.net>
15282
15283         * po/ko.po: Update Korean translation from translation project.
15284
15285 2013-08-01  David S. Miller  <davem@davemloft.net>
15286
15287         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15288         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15289         Bilka.
15290
15291 2013-07-30  David S. Miller  <davem@davemloft.net>
15292
15293         * po/fr.po: Update French translation from translation project.
15294
15295 2013-07-28  David S. Miller  <davem@davemloft.net>
15296
15297         * po/cs.po: Update Czech translation from translation project.
15298
15299         * po/sv.po: Update Swedish translation from translation project.
15300
15301 2013-07-27  David S. Miller  <davem@davemloft.net>
15302
15303         * po/eo.po: Update Esperanto translation from translation project.
15304
15305         * po/vi.po: Update Vietnamese translation from translation project.
15306
15307         * po/de.po: Update German translation from translation project.
15308
15309 2013-07-26  David S. Miller  <davem@davemloft.net>
15310
15311         * po/bg.po: Update Bulgarian translation from translation project.
15312
15313         * po/nl.po: Update Dutch translation from translation project.
15314         * po/pl.po: Update Polish translation from translation project.
15315         * po/ru.po: Update Russian translation from translation project.
15316
15317 2013-07-24  David S. Miller  <davem@davemloft.net>
15318
15319         * po/libc.pot: Update.
15320
15321 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15322
15323         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15324         variable page size.
15325         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15326         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15327         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15328
15329 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15330
15331         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15332
15333 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15334             Andreas Schwab  <schwab@suse.de>
15335             Roland McGrath  <roland@hack.frob.com>
15336             Joseph Myers  <joseph@codesourcery.com>
15337             Carlos O'Donell  <carlos@redhat.com>
15338
15339         [BZ #15755]
15340         * config.h.in: Define HAVE_PT_CHOWN.
15341         * config.make.in (build-pt-chown): New variable.
15342         * configure.in (--enable-pt_chown): New configure option.
15343         * configure: Regenerate.
15344         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15345         build-pt-chown is enabled.
15346         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15347         pt_chown to fix pty ownership.
15348         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15349         CLOSE_ALL_FDS.
15350         * manual/install.texi (Configuring and compiling): Mention
15351         --enable-pt_chown. Add @findex for grantpt.
15352         * INSTALL: Regenerate.
15353
15354 2013-07-20  David S. Miller  <davem@davemloft.net>
15355
15356         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15357         difference between 32-bit and 64-bit.
15358
15359 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15360
15361         [BZ #15711]
15362         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15363         Avoid system header dependency with -ffreestanding.
15364         ($(objpfx)bits/syscall%d): Likewise.
15365
15366 2013-07-13  David S. Miller  <davem@davemloft.net>
15367
15368         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15369         underflows from atanl/atan2l due to bug 15319.
15370         (casinh_test_data): Likewise.
15371
15372 2013-07-07  David S. Miller  <davem@davemloft.net>
15373
15374         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15375
15376 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15377
15378         * sysdeps/i386/fpu/libm-test-ulps: Update.
15379         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15380
15381 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15382
15383         * configure.in (--enable-lock-elision): Fix message text.
15384         * INSTALL: Regenerate.
15385         * configure: Regenerate.
15386
15387 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15388
15389         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15390
15391 2013-07-03  Andreas Jaeger  <aj@suse.de>
15392
15393         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15394         define.
15395         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15396         (ptrace_peeksiginfo_args): Add.
15397         (__ptrace_peeksiginfo_flags): Add.
15398         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15399         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15400         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15401
15402 2013-07-03  Allan McRae  <allan@archlinux.org>
15403
15404         * sysdeps/i386/fpu/libm-test-ulps: Update.
15405
15406 2013-07-02  David S. Miller  <davem@davemloft.net>
15407
15408         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15409
15410 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15411
15412         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15413
15414 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15415
15416         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15418
15419 2013-07-02  Andi Kleen <ak@linux.intel.com>
15420
15421         * config.h.in (ENABLE_LOCK_ELISION): Add.
15422         * configure.in (--enable-lock-elision): Add option.
15423         * manual/install.texi: Document --enable lock elision.
15424         * configure: Regenerate
15425         * INSTALL: Regenerate.
15426
15427 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15428
15429         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15430         SSE4.2 strcasecmp for libc.a.
15431         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15432
15433 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15434
15435         [BZ #13304]
15436         * soft-fp/op-common.h (_FP_FMA): New macro.
15437         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15438         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15439         (_FP_MUL_MEAT_1_imm): ... here.
15440         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15441         (_FP_MUL_MEAT_1_wide): ... here.
15442         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15443         (_FP_MUL_MEAT_1_hard): ... here.
15444         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15445         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15446         (_FP_MUL_MEAT_2_wide): ... here.
15447         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15448         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15449         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15450         (_FP_MUL_MEAT_2_gmp): ... here.
15451         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15452         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15453         (_FP_MUL_MEAT_4_wide): ... here.
15454         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15455         (_FP_MUL_MEAT_4_gmp): ... here.
15456         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15457         (_FP_WFRACBITS_DW_S): Likewise.
15458         (_FP_WFRACXBITS_DW_S): Likewise.
15459         (_FP_HIGHBIT_DW_S): Likewise.
15460         (FP_FMA_S): Likewise.
15461         (_FP_FRAC_HIGH_DW_S): Likewise.
15462         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15463         (_FP_WFRACBITS_DW_D): Likewise.
15464         (_FP_WFRACXBITS_DW_D): Likewise.
15465         (_FP_HIGHBIT_DW_D): Likewise.
15466         (FP_FMA_D): Likewise.
15467         (_FP_FRAC_HIGH_DW_D): Likewise.
15468         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15469         (_FP_WFRACBITS_DW_E): Likewise.
15470         (_FP_WFRACXBITS_DW_E): Likewise.
15471         (_FP_HIGHBIT_DW_E): Likewise.
15472         (FP_FMA_E): Likewise.
15473         (_FP_FRAC_HIGH_DW_E): Likewise.
15474         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15475         (_FP_WFRACBITS_DW_Q): Likewise.
15476         (_FP_WFRACXBITS_DW_Q): Likewise.
15477         (_FP_HIGHBIT_DW_Q): Likewise.
15478         (FP_FMA_Q): Likewise.
15479         (_FP_FRAC_HIGH_DW_Q): Likewise.
15480         * soft-fp/fmasf4.c: New file.
15481         * soft-fp/fmadf4.c: Likewise.
15482         * soft-fp/fmatf4.c: Likewise.
15483
15484 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15485
15486         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15487         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15488         Silvermont.
15489         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15490         macro.
15491         (index_Slow_SSE4_2): Likewise.
15492         (index_Prefer_PMINUB_for_stringop): Likewise.
15493         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15494         bit_Slow_SSE4_2 is set.
15495         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15496         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15497
15498 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15499
15500         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15501         rtld_global._dl_hwcap2.
15502         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15503         POWER8.
15504         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15505         POWER8 feature descriptions defined in _dl_hwcap2.
15506         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15507         string handling for POWER8 feature bits.
15508         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15509         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15510         _dl_powerpc_cap_flags.
15511         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15512         * sysdeps/powerpc/rtld-global-offsets.sym
15513         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15514         _dl_hwcap2 in the rtld_global_ro structure.
15515
15516 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15517
15518         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15519         hardware capabilities in support of AT_HWCAP2.
15520         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15521         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15522         GLRO(dl_hwcap2).
15523         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15524         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15525         explicitly the unknown a_type display mechanism is used.
15526         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15527         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15528         struct member.
15529         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15530         to macro prototype for AT_HWCAP2 support.
15531         * sysdeps/i386/dl-procinfo.h: Likewise.
15532         * sysdeps/s390/dl-procinfo.h: Likewise.
15533         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
15534         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
15535         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
15536         return -1 for unknown a_type display fallback.
15537         * sysdeps/sparc/dl-procinfo.h: Likewise.
15538         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
15539         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
15540
15541 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
15542
15543         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
15544         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
15545
15546 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
15547
15548         [BZ #12492]
15549         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
15550         mprotect making __stack_prot writable.
15551
15552 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15553             Joseph Myers  <joseph@codesourcery.com>
15554
15555         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
15556         as being properly aligned.
15557
15558 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
15559
15560         * dlfcn/modstatic5.c: New file.
15561         * dlfcn/tststatic5.c: New file.
15562         * dlfcn/Makefile (tests): Add tststatic5.
15563         (tests-static): Likewise.
15564         (modules-names): Add modstatic5.
15565         (tststatic5-ENV): New variable.
15566         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
15567
15568         [BZ #15022]
15569         * elf/dl-support.c (_dl_main_map): New variable.
15570         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
15571         (_dl_nns, _dl_load_adds): Set to 1.
15572         (_dl_initial_searchlist): Refer to _dl_main_map.
15573         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
15574         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15575         call to _dl_get_origin.
15576         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15577         around call_map.
15578         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15579         * dlfcn/modstatic3.c: New file.
15580         * dlfcn/tststatic3.c: New file.
15581         * dlfcn/tststatic4.c: New file.
15582         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15583         (tests-static): Likewise.
15584         (modules-names): Add modstatic3.
15585         (tststatic3-ENV, tststatic4-ENV): New variables.
15586         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15587         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15588
15589 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15590
15591         * configure.in (CC): Require GCC version 4.4 or later.
15592         * configure: Regenerated.
15593         * manual/install.texi (Tools for Compilation): Update GCC version
15594         requirement.
15595         * INSTALL: Regenerated.
15596
15597 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15598
15599         [BZ #15674]
15600         * string/test-memcmp.c (check2): New.
15601         (main): Call check2.
15602
15603         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15604
15605 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15606
15607         [BZ #15022]
15608         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15609         over to...
15610         (dl_open_worker) [!SHARED]: ... here.
15611
15612 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15613
15614         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15615
15616 2013-06-25  Richard Henderson  <rth@redhat.com>
15617
15618         * locale/programs/locarchive.c: Include <libc-internal.h>
15619
15620 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15621
15622         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15623         trailing whitespace removed.
15624
15625 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15626
15627         [BZ #10283]
15628         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15629         * locale/programs/locarchive.c: Include libc-mmap.h.
15630         (prepare_address_space): Take two new outputs (the mmap base and len).
15631         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15632         values.
15633         (create_archive): Declare new mmap base and len values for
15634         prepare_address_space, and store the result in ah.
15635         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15636         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15637         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15638         Declare new mmap base and len values for
15639         prepare_address_space, and store the result in new_ah.
15640         (open_archive): Declare new mmap base and len values for
15641         prepare_address_space, and store the result in ah.
15642         (close_archive): If ah->mmap_base is not NULL, use that and
15643         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15644         * sysdeps/generic/libc-mmap.h: New file.
15645
15646 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15647
15648         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15649         (ALIGN_UP): Likewise.
15650         (PTR_ALIGN_DOWN): Likewise.
15651         (PTR_ALIGN_UP): Likewise.
15652
15653 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15654
15655         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15656         entry mapped to PPC_PLATFORM_POWER8.
15657         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15658         POWER8.
15659         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15660         (_dl_string_platform): Add case for exporting platform position for
15661         POWER8.
15662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15663         search path to sysdeps/powerpc/powerpc32/power8 directory.
15664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15665         search path to sysdeps/powerpc/powerpc64/power8 directory.
15666         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15667         power7 directories.
15668         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15669         power7 directories.
15670
15671 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15672
15673         * INSTALL: Regenerate.
15674
15675         * nscd/connections.c (nscd_init): Fix comment.
15676
15677 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15678
15679         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15680
15681         [BZ #15667]
15682         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15683         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15684
15685 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15686
15687         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15688         DL_DST_REQ_STATIC.
15689         (DL_DST_REQ_STATIC): Remove macro.
15690
15691 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15692
15693         [BZ #7006]
15694         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15695         with a shift of 0 bits.
15696
15697 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15698
15699         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15700         $(tststatic-ENV).
15701
15702 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15703
15704         [BZ #15655]
15705         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15706
15707 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15708
15709         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15710         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15711         accepts -fno-tree-loop-distribute-patterns.
15712         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15713         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15714         recursive call.
15715         * string/memset.c (memset): Likewise.
15716         * string/test-memmove.c (simple_memmove): Disable loop transformation
15717         to library calls.
15718         * string/test-memset.c (simple_memset): Likewise.
15719         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15720         * benchtests/bench-memset.c (simple_memset): Likewise.
15721         * configure: Regenerated.
15722
15723 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15724
15725         * math/test-misc.c (main): Ignore fesetround failure when failures
15726         of subsequent rounding tests would be ignored.
15727
15728         [BZ #15654]
15729         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15730         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15731         * math/fegetenv.c (__fegetenv): Return 0.
15732         * math/fegetexcept.c (fegetexcept): Return 0.
15733         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15734         FE_TONEAREST.
15735         * math/feholdexcpt.c (feholdexcept): Return 0.
15736         * math/fesetenv.c (__fesetenv): Return 0.
15737         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15738         argument FE_TONEAREST.
15739         * math/feupdateenv.c (__feupdateenv): Return 0.
15740         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15741
15742 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15743
15744         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15745         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15746         ($(objpfx)rtld-%.os rules): Use them.
15747
15748 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15749
15750         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15751         fields.
15752
15753 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15754
15755         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15756         length of target pattern, then descending length of dependency pattern.
15757         * configure.in (AWK): Require gawk 3.1.2 or newer.
15758         * manual/install.texi (Tools for Compilation): Say that we do.
15759         * configure: Regenerated.
15760
15761         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15762         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15763         * scripts/sysd-rules.awk: ... this new script.
15764         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15765         than a glob-style pattern.
15766
15767 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15768
15769         * math/test-misc.c (main): Do not treat incorrectly rounded
15770         conversions as failure unless ROUNDING_TESTS passes.
15771
15772 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15773
15774         [BZ #15631]
15775         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15776         restore exception state around main square root computation, then
15777         check for inexactness explicitly.
15778
15779         * math/libm-test.inc (fma_test_data): Add another test.
15780
15781 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15782
15783         * manual/threads.texi (Non-POSIX Extensions): New document
15784         node.  Document pthread_getattr_default_np and
15785         pthread_setattr_default_np.
15786
15787         * Versions.def (libpthread): Add GLIBC_2.18.
15788         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15790         Likewise.
15791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15792         Likewise.
15793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15794         Likewise.
15795         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15796         Likewise.
15797         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15798         Likewise.
15799         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15800         Likewise.
15801         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15802         Likewise.
15803         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15804         Likewise.
15805         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15806         Likewise.
15807
15808 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15809
15810         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15811         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15812
15813 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15814             H.J. Lu  <hjl.tools@gmail.com>
15815
15816         [BZ #15627]
15817         * sysdeps/x86_64/rtld-memset.c: Remove file.
15818         * sysdeps/x86_64/rtld-memset.S: New file.
15819
15820 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15821
15822         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15823         (test_in_one_mode): Take arguments for whether the rounding mode
15824         is supported for each floating-point type.
15825         (do_test): Pass new arguments to test_in_one_mode using
15826         ROUNDING_TESTS.
15827
15828 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15829
15830         * posix/tst-waitid.c (do_test): Distinguish different instances of
15831         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15832         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15833         before entering the kernel for waitpid.
15834
15835 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15836
15837         * NEWS: Fix note on clock function precision.  Text by Roland
15838         McGrath.
15839
15840 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15841
15842         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15843         it into place only when and if the sanity check passes.
15844
15845 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15846
15847         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15848         output for whether conversion result is exact.  Take argument
15849         indicating whether type is IBM long double.
15850         (round_for_all): Change need_exact field to ibm_ld.
15851         * stdlib/tst-strtod-round.c (struct exactness): New type.
15852         (struct test): Change bool ld_ok field to struct exactness exact.
15853         (TEST): Update all definitions for change to field.
15854         (tests): Regenerate array contents.
15855         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15856         field value.  Check for IBM long double here.
15857         (do_test): Update calls to test_in_one_mode.
15858
15859 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15860
15861         [BZ #12515]
15862         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15863         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15864
15865 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15866
15867         [BZ #15605]
15868         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15869         generated by the compiler on loop optimizations.
15870         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15871         general definitions.
15872
15873 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15874
15875         * math/bug-nextafter.c: Include <math-tests.h>.
15876         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15877         the relevant type.
15878         * math/bug-nexttoward.c: Include <math-tests.h>.
15879         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15880         the relevant type.
15881         * math/test-misc.c: Include <math-tests.h>.
15882         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15883         the relevant type.
15884
15885 2013-06-12  Andreas Jaeger  <aj@suse.de>
15886
15887         * po/ia.po: Update Interlingua translation from translation
15888         project.
15889
15890 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15891
15892         * include/fenv.h: Include stdbool.h.
15893         (struct rm_ctx): New structure.
15894         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15895         Define macro.
15896         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15897         (SET_RESTORE_ROUNDF): Likewise.
15898         (SET_RESTORE_ROUNDL): Likewise.
15899         (SET_RESTORE_ROUND_NOEX): Likewise.
15900         (SET_RESTORE_ROUND_NOEXF): Likewise.
15901         (SET_RESTORE_ROUND_NOEXL): Likewise.
15902         (SET_RESTORE_ROUND_53BIT): Likewise.
15903         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15904         (libc_feresetround_noexf_ctx): Likewise.
15905         (libc_feresetround_noexl_ctx): Likewise.
15906         (libc_feholdsetround_53bit_ctx): Likewise.
15907         (libc_feresetround_53bit_ctx): Likewise.
15908         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15909         (libc_feholdexcept_setround_sse_ctx): New function.
15910         (libc_fesetenv_sse_ctx): Likewise.
15911         (libc_feupdateenv_sse_ctx): Likewise.
15912         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15913         (libc_feholdexcept_setround_387_ctx): Likewise.
15914         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15915         (libc_feholdsetround_387_prec_ctx): Likewise.
15916         (libc_feholdsetround_387_ctx): Likewise.
15917         (libc_feholdsetround_387_53bit_ctx): Likewise.
15918         (libc_feholdsetround_sse_ctx): Likewise.
15919         (libc_feresetround_sse_ctx): Likewise.
15920         (libc_feresetround_387_ctx): Likewise.
15921         (libc_feupdateenv_387_ctx): Likewise.
15922         (libc_feholdexcept_setroundf_ctx): Define macro.
15923         (libc_fesetenvf_ctx): Likewise.
15924         (libc_feupdateenvf_ctx): Likewise.
15925         (libc_feholdsetroundf_ctx): Likewise.
15926         (libc_feresetroundf_ctx): Likewise.
15927         (libc_feholdexcept_setround_ctx): Likewise.
15928         (libc_fesetenv_ctx): Likewise.
15929         (libc_feupdateenv_ctx): Likewise.
15930         (libc_feholdsetround_ctx): Likewise.
15931         (libc_feresetround_ctx): Likewise.
15932         (libc_feholdexcept_setroundl_ctx): Likewise.
15933         (libc_feupdateenvl_ctx): Likewise.
15934         (libc_feholdsetroundl_ctx): Likewise.
15935         (libc_feresetroundl_ctx): Likewise.
15936         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15937         (libc_feresetround_53bit_ctx): Likewise.
15938
15939 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15940
15941         * locale/iso-639.def: Convert to UTF-8.
15942
15943 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15944
15945         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15946         (EXCEPTION_TESTS_double): Likewise.
15947         (EXCEPTION_TESTS_long_double): Likewise.
15948         (EXCEPTION_TESTS): Likewise.
15949         * math/libm-test.inc (test_exceptions): Only test exceptions if
15950         EXCEPTION_TESTS (FLOAT).
15951
15952 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15953
15954         * benchtests/Makefile (string-bench): Add strcpy_chk and
15955         stpcpy_chk.
15956         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15957         * benchtests/bench-stpcpy_chk.c: New file.
15958         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15959         * benchtests/bench-strcpy_chk.c: New file.
15960         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15961         code.
15962         (do_test): Likewise.
15963
15964 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15965
15966         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15967         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15968         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15969         with tabs where appropriate.
15970         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15971         dl-procinfo.h.
15972         [PPC_PLATFORM_PPC440]: Likewise.
15973         [PPC_PLATFORM_PPC464]: Likewise.
15974         [PPC_PLATFORM_PPC476]: Likewise.
15975         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15976         ppc464, and ppc476 platform strings merging from ports/
15977         dl-procinfo.h.
15978
15979 2013-06-11  Andreas Schwab  <schwab@suse.de>
15980
15981         [BZ #14991]
15982         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15983         (from_ucs4_idx): Regenerate.
15984         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15985         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15986         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15987         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15988         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15989         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15990         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15991         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15992         from FROM_LOOP and TO_LOOP specific macros.
15993         (BODY): Handle combining characters.
15994         * iconvdata/BIG5HKSCS.irreversible: Update.
15995         * iconvdata/BIG5HKSCS.precomposed: New file.
15996         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15997         characters.
15998         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15999
16000 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16001
16002         * include/sys/time.h: Fix indentation and add copyright header.
16003
16004         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
16005         (do_test): Likewise.
16006         * string/test-memchr.c (do_one_test): Likewise.
16007         (do_test): Likewise.
16008         * string/test-memcmp.c (do_one_test): Likewise.
16009         (do_test): Likewise.
16010         * string/test-memcpy.c (do_one_test): Likewise.
16011         (do_test): Likewise.
16012         * string/test-memmem.c (do_one_test): Likewise.
16013         (do_test): Likewise.
16014         (do_random_tests): Likewise.
16015         * string/test-memmove.c (do_one_test): Likewise.
16016         (do_test): Likewise.
16017         * string/test-memset.c (do_one_test): Likewise.
16018         (do_test): Likewise.
16019         * string/test-rawmemchr.c (do_one_test): Likewise.
16020         (do_test): Likewise.
16021         * string/test-strcasecmp.c (do_one_test): Likewise.
16022         (do_test): Likewise.
16023         * string/test-strcasestr.c (do_one_test): Likewise.
16024         (do_test): Likewise.
16025         * string/test-strcat.c (do_one_test): Likewise.
16026         (do_test): Likewise.
16027         * string/test-strchr.c (do_one_test): Likewise.
16028         (do_test): Likewise.
16029         * string/test-strcmp.c (do_one_test): Likewise.
16030         (do_test): Likewise.
16031         * string/test-strcpy.c (do_one_test): Likewise.
16032         (do_test): Likewise.
16033         * string/test-string.h: Likewise.
16034         (test_init): Likewise.
16035         * string/test-strlen.c (do_one_test): Likewise.
16036         (do_test): Likewise.
16037         * string/test-strncasecmp.c (do_one_test): Likewise.
16038         (do_test): Likewise.
16039         * string/test-strncat.c (do_one_test): Likewise.
16040         (do_test): Likewise.
16041         * string/test-strncmp.c (do_one_test): Likewise.
16042         (do_test_limit): Likewise.
16043         (do_test): Likewise.
16044         * string/test-strncpy.c (do_one_test): Likewise.
16045         (do_test): Likewise.
16046         * string/test-strnlen.c (do_one_test): Likewise.
16047         (do_test): Likewise.
16048         * string/test-strpbrk.c (do_one_test): Likewise.
16049         (do_test): Likewise.
16050         * string/test-strrchr.c (do_one_test): Likewise.
16051         (do_test): Likewise.
16052         * string/test-strspn.c (do_one_test): Likewise.
16053         (do_test): Likewise.
16054         * string/test-strstr.c (do_one_test): Likewise.
16055         (do_test): Likewise.
16056
16057         * benchtests/Makefile (string-bench): Add string benchmarks.
16058         * benchtests/bench-bcopy-ifunc.c: New file.
16059         * benchtests/bench-bcopy.c: New file.
16060         * benchtests/bench-bzero-ifunc.c: New file.
16061         * benchtests/bench-bzero.c: New file.
16062         * benchtests/bench-memccpy-ifunc.c: New file.
16063         * benchtests/bench-memccpy.c: New file.
16064         * benchtests/bench-memchr-ifunc.c: New file.
16065         * benchtests/bench-memchr.c: New file.
16066         * benchtests/bench-memcmp-ifunc.c: New file.
16067         * benchtests/bench-memcmp.c: New file.
16068         * benchtests/bench-memmem-ifunc.c: New file.
16069         * benchtests/bench-memmem.c: New file.
16070         * benchtests/bench-memmove-ifunc.c: New file.
16071         * benchtests/bench-memmove.c: New file.
16072         * benchtests/bench-mempcpy-ifunc.c: New file.
16073         * benchtests/bench-mempcpy.c: New file.
16074         * benchtests/bench-memset-ifunc.c: New file.
16075         * benchtests/bench-memset.c: New file.
16076         * benchtests/bench-rawmemchr-ifunc.c: New file.
16077         * benchtests/bench-rawmemchr.c: New file.
16078         * benchtests/bench-stpcpy-ifunc.c: New file.
16079         * benchtests/bench-stpcpy.c: New file.
16080         * benchtests/bench-stpncpy-ifunc.c: New file.
16081         * benchtests/bench-stpncpy.c: New file.
16082         * benchtests/bench-strcasecmp-ifunc.c: New file.
16083         * benchtests/bench-strcasecmp.c: New file.
16084         * benchtests/bench-strcasestr-ifunc.c: New file.
16085         * benchtests/bench-strcasestr.c: New file.
16086         * benchtests/bench-strcat-ifunc.c: New file.
16087         * benchtests/bench-strcat.c: New file.
16088         * benchtests/bench-strchr-ifunc.c: New file.
16089         * benchtests/bench-strchr.c: New file.
16090         * benchtests/bench-strchrnul-ifunc.c: New file.
16091         * benchtests/bench-strchrnul.c: New file.
16092         * benchtests/bench-strcmp-ifunc.c: New file.
16093         * benchtests/bench-strcmp.c: New file.
16094         * benchtests/bench-strcpy-ifunc.c: New file.
16095         * benchtests/bench-strcpy.c: New file.
16096         * benchtests/bench-strcspn-ifunc.c: New file.
16097         * benchtests/bench-strcspn.c: New file.
16098         * benchtests/bench-strlen-ifunc.c: New file.
16099         * benchtests/bench-strlen.c: New file.
16100         * benchtests/bench-strncasecmp-ifunc.c: New file.
16101         * benchtests/bench-strncasecmp.c: New file.
16102         * benchtests/bench-strncat-ifunc.c: New file.
16103         * benchtests/bench-strncat.c: New file.
16104         * benchtests/bench-strncmp-ifunc.c: New file.
16105         * benchtests/bench-strncmp.c: New file.
16106         * benchtests/bench-strncpy-ifunc.c: New file.
16107         * benchtests/bench-strncpy.c: New file.
16108         * benchtests/bench-strnlen-ifunc.c: New file.
16109         * benchtests/bench-strnlen.c: New file.
16110         * benchtests/bench-strpbrk-ifunc.c: New file.
16111         * benchtests/bench-strpbrk.c: New file.
16112         * benchtests/bench-strrchr-ifunc.c: New file.
16113         * benchtests/bench-strrchr.c: New file.
16114         * benchtests/bench-strspn-ifunc.c: New file.
16115         * benchtests/bench-strspn.c: New file.
16116         * benchtests/bench-strstr-ifunc.c: New file.
16117         * benchtests/bench-strstr.c: New file.
16118
16119         * benchtests/Makefile: Disable parallel execution of targets.
16120         (string-bench): Add memcpy.
16121         (benchset): New variable to store a list of benchmark sets.
16122         (bench-func): Renamed from bench.
16123         (bench-set): New target.
16124         (bench): Depend on bench-func and bench-set.
16125         * benchtests/README: Add section on benchmark sets.
16126         * benchtests/bench-memcpy-ifunc.c: New file.
16127         * benchtests/bench-memcpy.c: New file.
16128         * benchtests/bench-string.h: New file.
16129
16130 2013-06-11  Andreas Schwab  <schwab@suse.de>
16131
16132         [BZ #15577]
16133         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
16134         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
16135         values in the triple.
16136         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
16137         terminator in the group key.
16138
16139 2013-06-11  Andreas Jaeger  <aj@suse.de>
16140
16141         * po/zh_TW.po: Update Chinese (traditional) translation from
16142         translation project.
16143
16144 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16145
16146         * include/time.h (__clock_gettime): Add libc_hidden_proto.
16147         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
16148         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
16149         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16150         (clock_getcpuclockid): Likewise.
16151         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
16152         Add weak_alias and libc_hidden_def.
16153         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
16154         * rt/clock_gettime.c (clock_gettime): Rename to
16155         __clock_gettime.  Add weak_alias and libc_hidden_def.
16156         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
16157         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
16158         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
16159         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
16160         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
16161         Likewise.
16162         * rt/clock_settime.c (clock_settime): Rename to
16163         __clock_settime.  Add weak_alias and libc_hidden_def.
16164         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
16165
16166 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
16167
16168         * mach/err_boot.sub: Remove trailing whitespace.
16169         * mach/err_ipc.sub: Likewise.
16170         * mach/err_mach.sub: Likewise.
16171
16172         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
16173         (ROUNDING_TESTS_double): Likewise.
16174         (ROUNDING_TESTS_long_double): Likewise.
16175         (ROUNDING_TESTS): Likewise.
16176         * math/libm-test.inc: Include <math-tests.h>.
16177         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
16178         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16179         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16180         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16181
16182 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16183
16184         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
16185         of assigning.
16186
16187 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
16188
16189         * sysdeps/gnu/errlist.awk: Do not generate space at end of
16190         otherwise empty TRANS lines.
16191         * sysdeps/gnu/errlist.c: Regenerated.
16192
16193         * catgets/gencat.c (error_print): Use (void) in function
16194         definition.
16195         * crypt/crypt_util.c (__init_des): Likewise.
16196         * crypt/speeds.c (Stop): Likewise.
16197         (main): Likewise.
16198         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16199         * inet/ruserpass.c (token): Likewise.
16200         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16201         * intl/localealias.c (extend_alias_table): Likewise.
16202         * intl/plural-exp.c (init_germanic_plural): Likewise.
16203         * libio/fcloseall.c (__fcloseall): Likewise.
16204         * libio/genops.c (_IO_flush_all): Likewise.
16205         (_IO_flush_all_linebuffered): Likewise.
16206         (_IO_cleanup): Likewise.
16207         (_IO_iter_begin): Likewise.
16208         (_IO_iter_end): Likewise.
16209         (_IO_list_lock): Likewise.
16210         (_IO_list_unlock): Likewise.
16211         (_IO_list_resetlock): Likewise.
16212         * libio/getchar.c (getchar): Likewise.
16213         * libio/getchar_u.c (getchar_unlocked): Likewise.
16214         * libio/getwchar.c (getwchar): Likewise.
16215         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16216         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16217         * login/getpt.c (__getpt): Likewise.
16218         * login/tst-utmp.c (main): Likewise.
16219         * malloc/hooks.c (__malloc_check_init): Likewise.
16220         * malloc/malloc.c (__malloc_stats): Likewise.
16221         * malloc/mtrace.c (tr_break): Likewise.
16222         (mtrace): Likewise.
16223         (muntrace): Likewise.
16224         * misc/fstab.c (endfsent): Likewise.
16225         * misc/getclktck.c (__getclktck): Likewise.
16226         * misc/getdtsz.c (__getdtablesize): Likewise.
16227         * misc/gethostid.c (gethostid): Likewise.
16228         * misc/getpagesize.c (__getpagesize): Likewise.
16229         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16230         (__get_nprocs): Likewise.
16231         (__get_phys_pages): Likewise.
16232         (__get_avphys_pages): Likewise.
16233         * misc/getttyent.c (getttyent): Likewise.
16234         (setttyent): Likewise.
16235         (endttyent): Likewise.
16236         * misc/getusershell.c (getusershell): Likewise.
16237         (endusershell): Likewise.
16238         (setusershell): Likewise.
16239         (initshells): Likewise.
16240         * misc/hsearch.c (__hdestroy): Likewise.
16241         * misc/sync.c (sync): Likewise.
16242         * misc/syslog.c (closelog_internal): Likewise.
16243         (closelog): Likewise.
16244         * misc/ttyslot.c (ttyslot): Likewise.
16245         * misc/vhangup.c (vhangup): Likewise.
16246         * posix/fork.c (__fork): Likewise.
16247         * posix/getegid.c (__getegid): Likewise.
16248         * posix/geteuid.c (__geteuid): Likewise.
16249         * posix/getgid.c (__getgid): Likewise.
16250         * posix/getpid.c (__getpid): Likewise.
16251         * posix/getppid.c (__getppid): Likewise.
16252         * posix/getuid.c (__getuid): Likewise.
16253         * posix/pause.c (pause): Likewise.
16254         * posix/setpgrp.c (setpgrp): Likewise.
16255         * posix/setsid.c (__setsid): Likewise.
16256         * posix/test-vfork.c (noop): Likewise.
16257         * resolv/gethnamaddr.c (_endhtent): Likewise.
16258         (_gethtent): Likewise.
16259         (ht_endhostent): Likewise.
16260         (gethostent): Likewise.
16261         (dns_service): Likewise.
16262         * stdlib/drand48.c (drand48): Likewise.
16263         * stdlib/lrand48.c (lrand48): Likewise.
16264         * stdlib/mrand48.c (mrand48): Likewise.
16265         * stdlib/rand.c (rand): Likewise.
16266         * stdlib/random.c (__random): Likewise.
16267         * stdlib/setenv.c (clearenv): Likewise.
16268         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16269         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16270         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16271         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16272         (__get_nprocs): Likewise.
16273         (__get_phys_pages): Likewise.
16274         (__get_avphys_pages): Likewise.
16275         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16276         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16277         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16278         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16279         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16280         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16281         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16282         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16283         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16284         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16285         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16286         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16287         * sysdeps/posix/clock.c (clock): Likewise.
16288         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16289         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16290         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16291         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16292         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16293         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16294         (__get_nprocs_conf): Likewise.
16295         (__get_phys_pages): Likewise.
16296         (__get_avphys_pages): Likewise.
16297         * time/clock.c (clock): Likewise.
16298         * time/tzset.c (__tzname_max): Likewise.
16299
16300 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16301
16302         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16303         (__bswap_32): Do not use "register".
16304         * crypt/crypt.c (_ufc_doit_r): Likewise.
16305         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16306         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16307         * gmon/gmon.c (__monstartup): Likewise.
16308         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16309         * hurd/hurdmalloc.c (more_memory): Likewise.
16310         (malloc): Likewise.
16311         (free): Likewise.
16312         (realloc): Likewise.
16313         (malloc_fork_prepare): Likewise.
16314         (malloc_fork_parent): Likewise.
16315         (malloc_fork_child): Likewise.
16316         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16317         (_svcauth_des): Likewise.
16318         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16319         * inet/inet_net.c (inet_network): Likewise.
16320         * inet/inet_netof.c (inet_netof): Likewise.
16321         * inet/rcmd.c (__validuser2_sa): Likewise.
16322         * io/fts.c (fts_open): Likewise.
16323         (fts_load): Likewise.
16324         (fts_close): Likewise.
16325         (fts_read): Likewise.
16326         (fts_children): Likewise.
16327         (fts_build): Likewise.
16328         (fts_stat): Likewise.
16329         (fts_sort): Likewise.
16330         (fts_alloc): Likewise.
16331         (fts_lfree): Likewise.
16332         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16333         (_IO_file_xsgetn): Likewise.
16334         (_IO_file_xsgetn_mmap): Likewise.
16335         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16336         (_IO_cookie_write): Likewise.
16337         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16338         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16339         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16340         * malloc/obstack.c (_obstack_begin): Likewise.
16341         (_obstack_begin_1): Likewise.
16342         (_obstack_newchunk): Likewise.
16343         (_obstack_allocated_p): Likewise.
16344         (obstack_free): Likewise.
16345         (_obstack_memory_used): Likewise.
16346         * misc/getttyent.c (getttynam): Likewise.
16347         (getttyent): Likewise.
16348         (skip): Likewise.
16349         (value): Likewise.
16350         * misc/getusershell.c (initshells): Likewise.
16351         * misc/syslog.c (__vsyslog_chk): Likewise.
16352         * misc/ttyslot.c (ttyslot): Likewise.
16353         * nis/nis_hash.c (__nis_hash): Likewise.
16354         * posix/fnmatch_loop.c (FCT): Likewise.
16355         * posix/getconf.c (print_all): Likewise.
16356         (main): Likewise.
16357         * posix/getopt.c (exchange): Likewise.
16358         * posix/glob.c (globfree): Likewise.
16359         (prefix_array): Likewise.
16360         (__glob_pattern_type): Likewise.
16361         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16362         (NS_GET32): Likewise.
16363         (NS_PUT16): Likewise.
16364         (NS_PUT32): Likewise.
16365         * resolv/gethnamaddr.c (getanswer): Likewise.
16366         (gethostbyname2): Likewise.
16367         (gethostbyaddr): Likewise.
16368         (_gethtent): Likewise.
16369         (_gethtbyname2): Likewise.
16370         (_gethtbyaddr): Likewise.
16371         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16372         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16373         * resolv/res_init.c (__res_vinit): Likewise.
16374         (net_mask): Likewise.
16375         * resolv/res_mkquery.c (outchar): Likewise.
16376         (PRINT): Likewise.
16377         * stdio-common/printf_fp.c (outchar): Likewise.
16378         (PRINT): Likewise.
16379         * stdio-common/printf_fphex.c (outchar): Likewise.
16380         (PRINT): Likewise.
16381         * stdio-common/printf_size.c (outchar): Likewise.
16382         (PRINT): Likewise.
16383         * stdio-common/test_rdwr.c (main): Likewise.
16384         * stdio-common/tfformat.c (matches): Likewise.
16385         * stdio-common/vfprintf.c (outchar): Likewise.
16386         (printf_unknown): Likewise.
16387         (buffered_vfprintf): Likewise.
16388         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16389         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16390         (ReadFile): Likewise.
16391         * stdlib/qsort.c (SWAP): Likewise.
16392         (_quicksort): Likewise.
16393         * stdlib/setenv.c (__add_to_environ): Likewise.
16394         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16395         * stdlib/strtol_l.c (__strtol_l): Likewise.
16396         * stdlib/tst-strtod.c (main): Likewise.
16397         * stdlib/tst-strtol.c (main): Likewise.
16398         * stdlib/tst-strtoll.c (main): Likewise.
16399         * string/bits/string2.h (__strcmp_cc): Likewise.
16400         (__strcmp_cg): Likewise.
16401         (__strcspn_c1): Likewise.
16402         (__strcspn_c2): Likewise.
16403         (__strcspn_c3): Likewise.
16404         (__strspn_c1): Likewise.
16405         (__strspn_c2): Likewise.
16406         (__strspn_c3): Likewise.
16407         (__strsep_1c): Likewise.
16408         (__strsep_2c): Likewise.
16409         (__strsep_3c): Likewise.
16410         * string/memccpy.c (__memccpy): Likewise.
16411         * string/stpcpy.c (__stpcpy): Likewise.
16412         * string/strcmp.c (strcmp): Likewise.
16413         * string/strrchr.c (strrchr): Likewise.
16414         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16415         Likewise.
16416         * sysdeps/mach/hurd/getcwd.c
16417         (_hurd_canonicalize_directory_name_internal): Likewise.
16418         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16419         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16420         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16421         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16422         Likewise, in both definitions.
16423         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16424         definitions.
16425         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16426         64] (__bswap_64): Likewise.
16427         * time/test_time.c (main): Likewise.
16428         * time/tzfile.c (__tzfile_read): Likewise.
16429         (__tzfile_compute): Likewise.
16430         * time/tzset.c (__tzset_parse_tz): Likewise.
16431         (tzset_internal): Likewise.
16432         (compute_change): Likewise.
16433         * wcsmbs/wcscat.c (__wcscat): Likewise.
16434         * wcsmbs/wcschr.c (wcschr): Likewise.
16435         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16436         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16437         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16438         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16439         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16440         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16441         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16442         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16443         * wcsmbs/wmemset.c (wmemset): Likewise.
16444
16445 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16446
16447         * scripts/config.guess: Update to version 2013-05-16.
16448         * scripts/config.sub: Update to version 2013-04-24.
16449         * scripts/install-sh: Update to version 2011-11-20.07.
16450         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16451         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16452
16453 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16454
16455         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16456         * elf/sln.c: Likewise.
16457         * hurd/hurd/ioctl.h: Likewise.
16458         * hurd/hurdmalloc.c: Likewise.
16459         * hurd/xattr.c: Likewise.
16460         * include/shlib-compat.h: Likewise.
16461         * inet/ruserpass.c: Likewise.
16462         * libio/iofgets_u.c: Likewise.
16463         * libio/iofgetws_u.c: Likewise.
16464         * locale/programs/ld-identification.c: Likewise.
16465         * locale/programs/ld-time.c: Likewise.
16466         * mach/msg-destroy.c: Likewise.
16467         * nss/nss_files/files-netgrp.c: Likewise.
16468         * resolv/res_data.c: Likewise.
16469         * soft-fp/op-1.h: Likewise.
16470         * soft-fp/op-2.h: Likewise.
16471         * soft-fp/op-4.h: Likewise.
16472         * soft-fp/op-common.h: Likewise.
16473         * stdio-common/printf_fphex.c: Likewise.
16474         * stdlib/strtod_l.c: Likewise.
16475         * sunrpc/rpc/clnt.h: Likewise.
16476         * sysdeps/generic/framestate.c: Likewise.
16477         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16478         * sysdeps/i386/bsd-setjmp.S: Likewise.
16479         * sysdeps/i386/__longjmp.S: Likewise.
16480         * sysdeps/i386/setjmp.S: Likewise.
16481         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16482         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16483         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16484         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16485         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16486         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16487         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16488         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16489         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16490         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16491         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16492         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16493         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16494         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16495         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16496         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16497         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16498         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16499         * sysdeps/ieee754/support.c: Likewise.
16500         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16501         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16502         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16503         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16504         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16505         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16506         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16507         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16508         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16509         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16510         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16511         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16512         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16513         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16514         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16515         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16516         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16518
16519 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16520
16521         * posix/transbug.c: Remove executable mode.
16522
16523 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16524
16525         * crypt/speeds.c: Remove trailing whitespace.
16526         * dlfcn/default.c: Likewise.
16527         * elf/ifuncdep2.c: Likewise.
16528         * elf/ifuncmain1.c: Likewise.
16529         * elf/ifuncmain1vis.c: Likewise.
16530         * elf/testobj.h: Likewise.
16531         * elf/tst-stackguard1.c: Likewise.
16532         * gmon/sys/gmon.h: Likewise.
16533         * hurd/hurdmsg.c: Likewise.
16534         * hurd/new-fd.c: Likewise.
16535         * hurd/ports-get.c: Likewise.
16536         * iconvdata/ibm1008_420.c: Likewise.
16537         * inet/tst-getni1.c: Likewise.
16538         * inet/tst-getni2.c: Likewise.
16539         * libio/ioungetc.c: Likewise.
16540         * libio/wfiledoalloc.c: Likewise.
16541         * manual/libm-err-tab.pl: Likewise.
16542         * math/w_dremf.c: Likewise.
16543         * misc/ftruncate.c: Likewise.
16544         * posix/bug-glob2.c: Likewise.
16545         * posix/tst-pcre.c: Likewise.
16546         * posix/wait4.c: Likewise.
16547         * resolv/README: Likewise.
16548         * resolv/res_debug.h: Likewise.
16549         * resolv/tst-inet_ntop.c: Likewise.
16550         * setjmp/bug269-setjmp.c: Likewise.
16551         * soft-fp/extended.h: Likewise.
16552         * soft-fp/op-1.h: Likewise.
16553         * soft-fp/op-2.h: Likewise.
16554         * soft-fp/op-4.h: Likewise.
16555         * soft-fp/op-8.h: Likewise.
16556         * soft-fp/testit.c: Likewise.
16557         * stdio-common/bug16.c: Likewise.
16558         * stdlib/random.c: Likewise.
16559         * sunrpc/rpcsvc/rquota.x: Likewise.
16560         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
16561         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16562         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16563         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16564         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16565         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16566         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16567         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16568         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16569         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16570         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16571         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16572         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16573         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16574         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16575         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16576         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16577         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16578         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16579         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16580         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16581         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16582         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16583         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16584         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16585         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16586         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16587         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16588         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16589         * sysdeps/ieee754/s_lib_version.c: Likewise.
16590         * sysdeps/mach/hurd/check_fds.c: Likewise.
16591         * sysdeps/mach/hurd/getsockname.c: Likewise.
16592         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16593         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16594         * sysdeps/powerpc/bits/link.h: Likewise.
16595         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16596         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16597         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16598         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16599         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16600         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16601         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16602         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16603         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16604         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16605         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16606         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16607         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16608         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16609         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16610         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16611         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16612         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16613         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16614         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16615         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16616         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16617         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16618         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16619         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16620         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16621         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16622         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16623         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16624         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16625         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16626         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16627         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16628         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16629         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16630         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16631         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16632         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16633         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16634         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16635         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16636         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16637         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16638         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16639         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16640         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16641         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16642         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16643         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16644         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16645         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16646         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16647         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16648         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16649         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16650         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16651         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16652         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16653         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16654         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16655         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16656         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16657         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16658         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16659         * sysdeps/powerpc/sysdep.h: Likewise.
16660         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16661         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16662         * sysdeps/sh/dl-trampoline.S: Likewise.
16663         * sysdeps/sh/memset.S: Likewise.
16664         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16665         * sysdeps/sh/strlen.S: Likewise.
16666         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16667         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16668         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16669         * sysdeps/sparc/sparc32/rem.S: Likewise.
16670         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16671         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16672         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16673         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16674         * sysdeps/sparc/sparc32/urem.S: Likewise.
16675         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16676         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16677         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16678         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16679         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16680         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16681         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16682         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16683         * sysdeps/unix/bsd/times.c: Likewise.
16684         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16685         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16689         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16690         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16691         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16692         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16693         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16694         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16695         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16696         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16697         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16698         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16699         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16700         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16701         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16702         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16703         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16704         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16705         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16706         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16707         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16708         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16709         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16710         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16711         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16712         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16713         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16714         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16715         * sysdeps/x86_64/strcspn.S: Likewise.
16716
16717 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16718
16719         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16720         generated file.  Regenerate properly from gen-translit.pl.
16721         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16722         locale/C-translit.h.
16723
16724 2013-06-05  Andreas Schwab  <schwab@suse.de>
16725
16726         [BZ #15100]
16727         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16728         week as 6 instead of -1.
16729         * time/tst-strptime.c (day_tests): Add test case.
16730
16731 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16732
16733         * sysdeps/generic/math_private.h
16734         (libc_feholdexcept_setround_53bit): Replace with
16735         libc_feholdsetround_53bit.
16736         (libc_feupdateenv_53bit): Replace with
16737         libc_feresetround_53bit.
16738         (SET_RESTORE_ROUND_53BIT): Adjust.
16739
16740 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16741
16742         * string/test-strchrnul.c: Add copyright header.
16743
16744         * posix/tst-getaddrinfo4.c: Increase test timeout.
16745
16746 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16747
16748         [BZ #15536]
16749         * math/libm-test.inc (MAX_EXP): Remove
16750         (MIN_EXP): Define.
16751         (ulp): Use MIN_EXP - MANT_DIG.
16752         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16753
16754 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16755
16756         * po/be.po: Revert last change.
16757         * po/zh_CN.po: Likewise.
16758         * po/header.pot: Likewise.
16759
16760 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16761
16762         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16763         link-libc-deps to empty as target-specific variable.
16764         * Makerules (link-libc-args): New variable.
16765         (libc-for-link): Likewise.
16766         (link-libc-deps): Likewise.
16767         (lib%.so): Depend on $(link-libc-deps).  Link with
16768         $(link-libc-args).
16769         (build-module): Link with $(link-libc-args).
16770         (build-module-asneeded): Likewise.
16771         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16772         list of objects.
16773         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16774         target-specific variable.
16775         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16776         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16777         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16778         libc.
16779         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16780         libc and ld.so.
16781         ($(objpfx)libpcprofile.so): Likewise.
16782         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16783         libc_nonshared.a.
16784         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16785         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16786         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16787         $(link-libc-deps).
16788         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16789         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16790         * login/Makefile ($(objpfx)libutil.so): Likewise.
16791         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16792         * math/Makefile ($(objpfx)libm.so): Likewise.
16793         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16794         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16795         variable instead of depending directly on libc.
16796         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16797         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16798         $(link-libc-deps).
16799         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16800         libc.
16801         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16802         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16803         ($(objpfx)libanl.so): Likewise.
16804         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16805         ld.so.
16806         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16807         $(link-libc-deps).
16808         * sysdeps/i386/fpu/Makefile: Remove file.
16809         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16810         ($(objpfx)libm.so): Remove dependency on ld.so.
16811
16812 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16813
16814         [BZ # 15553]
16815         * nis/yp_xdr.c (XDRMAXNAME): Define.
16816         (XDRMAXRECORD): Define.
16817         (xdr_domainname): Use XDRMAXNAME.
16818         (xdr_mapname): Likewise.
16819         (xdr_peername): Likewise.
16820         (xdr_keydat): Use XDRMAXRECORD.
16821         (xdr_valdat): Likewise.
16822
16823 2013-05-30  Jeff Law  <law@redhat.com>
16824
16825         [BZ #14256]
16826         * manual/errno.texi (ESTALE): Update to account for more than
16827         just NFS file systems.
16828         * sysdeps/gnu/errlist.c: Regenerated.
16829
16830 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16831
16832         [BZ #15465]
16833         * elf/Makefile (tests): Add tst-null-argv.
16834         (modules-names):  Add tst-null-argv-lib.
16835         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16836         (tst-null-argv-ENV): Set environment for tst-null-argv.
16837         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16838         (RTLD_PROGNAME): New macro.
16839         * elf/tst-null-argv.c: New test case.
16840         * elf/tst-null-argv-lib.c: Library for test case.
16841         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16842         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16843         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16844         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16845         * elf/dl-init.c (call_init): Likewise.
16846         (_dl_init): Likewise.
16847         * elf/dl-load.c (print_search_path): Likewise.
16848         (_dl_map_object): Likewise.
16849         * elf/dl-lookup.c (do_lookup_x): Likewise.
16850         (add_dependency): Likewise.
16851         (_dl_lookup_symbol_x): Likewise.
16852         (_dl_debug_bindings): Likewise.
16853         * elf/dl-open.c (_dl_show_scope): Likewise.
16854         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16855         * elf/dl-version.c (match_symbol): Likewise.
16856         (_dl_check_map_versions): Likewise.
16857         * elf/rtld.c (dl_main): Likewise.
16858         (print_unresolved): Use RTLD_PROGNAME.
16859         (print_missing_version): Likewise.
16860         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16861         (elf_machine_rela): Likewise.
16862         * sysdeps/powerpc/powerpc32/dl-machine.c
16863         (__process_machine_rela): Likewise.
16864         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16865         Likewise.
16866         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16867         Likewise.
16868         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16869         Likewise.
16870         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16871         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16872         Likewise.
16873         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16874         Likewise.
16875         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16876
16877 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16878
16879         * po/be.po: Add descriptive title.
16880         * po/zh_CN.po: Likewise.
16881         * po/header.pot: Likewise.
16882
16883 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16884
16885         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16886         error message.
16887         (enlarge_archive): Likewise.
16888
16889 2013-05-28  Ben North  <ben@redfrontdoor.org>
16890
16891         * manual/arith.texi (frexp): It is the magnitude of the return
16892         value which lies in [0.5, 1), not the return value itself.
16893
16894 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16895
16896         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16897
16898 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16899
16900         * stdio-common/bug26.c (main): Correct fscanf template.
16901
16902         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16903         declare _dl_skip_args.
16904
16905         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16906         Don't declare.
16907
16908         * manual/platform.texi: Add missing @end deftypefun.
16909
16910 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16911
16912         [BZ #15529]
16913         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16914         bit of mantissa of 2^16382.
16915         * math/libm-test.inc (hypot_test_data): Add more tests.
16916
16917         * math/libm-test.inc: Add drem and pow10 to list of tested
16918         functions.
16919         (pow10_test): New function.
16920         (drem_test): Likewise.
16921         (drem_test_tonearest): Likewise.
16922         (drem_test_towardzero): Likewise.
16923         (drem_test_downward): Likewise.
16924         (drem_test_upward): Likewise.
16925         (main): Call the new functions.
16926
16927         * math/libm-test.inc (finite_test_data): Remove.
16928         (finite_test): Run tests from isfinite_test_data.
16929         (gamma_test_data): Remove.
16930         (gamma_test): Run tests from lgamma_test_data.
16931         * sysdeps/i386/fpu/libm-test-ulps: Update.
16932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16933
16934 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16935
16936         * manual/platform.texi: Add PowerPC PPR function set documentation.
16937         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16938         implementation.
16939
16940 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16941
16942         * math/libm-test.inc (MAX_EXP): Define.
16943         (ULPDIFF): Define.
16944         (ulp): New function.
16945         (check_float_internal): Use ULPDIFF.
16946         (cpow_test): Disable failing test.
16947         (check_ulp): Test ulp() implemetnation.
16948         (main): Call check_ulp before starting tests.
16949
16950 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16951
16952         * math/gen-libm-test.pl (generate_testfile): Do not handle
16953         START_DATA and END_DATA.
16954         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16955         END_DATA.
16956         (acos_tonearest_test_data): Likewise.
16957         (acos_towardzero_test_data): Likewise.
16958         (acos_downward_test_data): Likewise.
16959         (acos_upward_test_data): Likewise.
16960         (acosh_test_data): Likewise.
16961         (asin_test_data): Likewise.
16962         (asin_tonearest_test_data): Likewise.
16963         (asin_towardzero_test_data): Likewise.
16964         (asin_downward_test_data): Likewise.
16965         (asin_upward_test_data): Likewise.
16966         (asinh_test_data): Likewise.
16967         (atan_test_data): Likewise.
16968         (atanh_test_data): Likewise.
16969         (atan2_test_data): Likewise.
16970         (cabs_test_data): Likewise.
16971         (cacos_test_data): Likewise.
16972         (cacosh_test_data): Likewise.
16973         (carg_test_data): Likewise.
16974         (casin_test_data): Likewise.
16975         (casinh_test_data): Likewise.
16976         (catan_test_data): Likewise.
16977         (catanh_test_data): Likewise.
16978         (cbrt_test_data): Likewise.
16979         (ccos_test_data): Likewise.
16980         (ccosh_test_data): Likewise.
16981         (ceil_test_data): Likewise.
16982         (cexp_test_data): Likewise.
16983         (cimag_test_data): Likewise.
16984         (clog_test_data): Likewise.
16985         (clog10_test_data): Likewise.
16986         (conj_test_data): Likewise.
16987         (copysign_test_data): Likewise.
16988         (cos_test_data): Likewise.
16989         (cos_tonearest_test_data): Likewise.
16990         (cos_towardzero_test_data): Likewise.
16991         (cos_downward_test_data): Likewise.
16992         (cos_upward_test_data): Likewise.
16993         (cosh_test_data): Likewise.
16994         (cosh_tonearest_test_data): Likewise.
16995         (cosh_towardzero_test_data): Likewise.
16996         (cosh_downward_test_data): Likewise.
16997         (cosh_upward_test_data): Likewise.
16998         (cpow_test_data): Likewise.
16999         (cproj_test_data): Likewise.
17000         (creal_test_data): Likewise.
17001         (csin_test_data): Likewise.
17002         (csinh_test_data): Likewise.
17003         (csqrt_test_data): Likewise.
17004         (ctan_test_data): Likewise.
17005         (ctan_tonearest_test_data): Likewise.
17006         (ctan_towardzero_test_data): Likewise.
17007         (ctan_downward_test_data): Likewise.
17008         (ctan_upward_test_data): Likewise.
17009         (ctanh_test_data): Likewise.
17010         (ctanh_tonearest_test_data): Likewise.
17011         (ctanh_towardzero_test_data): Likewise.
17012         (ctanh_downward_test_data): Likewise.
17013         (ctanh_upward_test_data): Likewise.
17014         (erf_test_data): Likewise.
17015         (erfc_test_data): Likewise.
17016         (exp_test_data): Likewise.
17017         (exp_tonearest_test_data): Likewise.
17018         (exp_towardzero_test_data): Likewise.
17019         (exp_downward_test_data): Likewise.
17020         (exp_upward_test_data): Likewise.
17021         (exp10_test_data): Likewise.
17022         (exp2_test_data): Likewise.
17023         (expm1_test_data): Likewise.
17024         (fabs_test_data): Likewise.
17025         (fdim_test_data): Likewise.
17026         (finite_test_data): Likewise.
17027         (floor_test_data): Likewise.
17028         (fma_test_data): Likewise.
17029         (fma_towardzero_test_data): Likewise.
17030         (fma_downward_test_data): Likewise.
17031         (fma_upward_test_data): Likewise.
17032         (fmax_test_data): Likewise.
17033         (fmin_test_data): Likewise.
17034         (fmod_test_data): Likewise.
17035         (fpclassify_test_data): Likewise.
17036         (frexp_test_data): Likewise.
17037         (gamma_test_data): Likewise.
17038         (hypot_test_data): Likewise.
17039         (ilogb_test_data): Likewise.
17040         (isfinite_test_data): Likewise.
17041         (isgreater_test_data): Likewise.
17042         (isgreaterequal_test_data): Likewise.
17043         (isinf_test_data): Likewise.
17044         (isless_test_data): Likewise.
17045         (islessequal_test_data): Likewise.
17046         (islessgreater_test_data): Likewise.
17047         (isnan_test_data): Likewise.
17048         (isnormal_test_data): Likewise.
17049         (issignaling_test_data): Likewise.
17050         (isunordered_test_data): Likewise.
17051         (j0_test_data): Likewise.
17052         (j1_test_data): Likewise.
17053         (jn_test_data): Likewise.
17054         (ldexp_test_data): Likewise.
17055         (lgamma_test_data): Likewise.
17056         (lrint_test_data): Likewise.
17057         (lrint_tonearest_test_data): Likewise.
17058         (lrint_towardzero_test_data): Likewise.
17059         (lrint_downward_test_data): Likewise.
17060         (lrint_upward_test_data): Likewise.
17061         (llrint_test_data): Likewise.
17062         (llrint_tonearest_test_data): Likewise.
17063         (llrint_towardzero_test_data): Likewise.
17064         (llrint_downward_test_data): Likewise.
17065         (llrint_upward_test_data): Likewise.
17066         (log_test_data): Likewise.
17067         (log10_test_data): Likewise.
17068         (log1p_test_data): Likewise.
17069         (log2_test_data): Likewise.
17070         (logb_test_data): Likewise.
17071         (logb_downward_test_data): Likewise.
17072         (lround_test_data): Likewise.
17073         (llround_test_data): Likewise.
17074         (modf_test_data): Likewise.
17075         (nearbyint_test_data): Likewise.
17076         (nextafter_test_data): Likewise.
17077         (nexttoward_test_data): Likewise.
17078         (pow_test_data): Likewise.
17079         (pow_tonearest_test_data): Likewise.
17080         (pow_towardzero_test_data): Likewise.
17081         (pow_downward_test_data): Likewise.
17082         (pow_upward_test_data): Likewise.
17083         (remainder_test_data): Likewise.
17084         (remainder_tonearest_test_data): Likewise.
17085         (remainder_towardzero_test_data): Likewise.
17086         (remainder_downward_test_data): Likewise.
17087         (remainder_upward_test_data): Likewise.
17088         (remquo_test_data): Likewise.
17089         (rint_test_data): Likewise.
17090         (rint_tonearest_test_data): Likewise.
17091         (rint_towardzero_test_data): Likewise.
17092         (rint_downward_test_data): Likewise.
17093         (rint_upward_test_data): Likewise.
17094         (round_test_data): Likewise.
17095         (scalb_test_data): Likewise.
17096         (scalbn_test_data): Likewise.
17097         (scalbln_test_data): Likewise.
17098         (signbit_test_data): Likewise.
17099         (sin_test_data): Likewise.
17100         (sin_tonearest_test_data): Likewise.
17101         (sin_towardzero_test_data): Likewise.
17102         (sin_downward_test_data): Likewise.
17103         (sin_upward_test_data): Likewise.
17104         (sincos_test_data): Likewise.
17105         (sinh_test_data): Likewise.
17106         (sinh_tonearest_test_data): Likewise.
17107         (sinh_towardzero_test_data): Likewise.
17108         (sinh_downward_test_data): Likewise.
17109         (sinh_upward_test_data): Likewise.
17110         (sqrt_test_data): Likewise.
17111         (tan_test_data): Likewise.
17112         (tan_tonearest_test_data): Likewise.
17113         (tan_towardzero_test_data): Likewise.
17114         (tan_downward_test_data): Likewise.
17115         (tan_upward_test_data): Likewise.
17116         (tanh_test_data): Likewise.
17117         (tgamma_test_data): Likewise.
17118         (trunc_test_data): Likewise.
17119         (y0_test_data): Likewise.
17120         (y1_test_data): Likewise.
17121         (yn_test_data): Likewise.
17122         (significand_test_data): Likewise.
17123
17124         * math/gen-libm-test.pl (@functions): Remove variable.
17125         (generate_testfile): Don't handle START and END lines.
17126         * math/libm-test.inc (START): New macro.
17127         (END): Likewise.
17128         (END_COMPLEX): Likewise.
17129         (acos_test): Use END macro without arguments.
17130         (acos_test_tonearest): Likewise.
17131         (acos_test_towardzero): Likewise.
17132         (acos_test_downward): Likewise.
17133         (acos_test_upward): Likewise.
17134         (acosh_test): Likewise.
17135         (asin_test): Likewise.
17136         (asin_test_tonearest): Likewise.
17137         (asin_test_towardzero): Likewise.
17138         (asin_test_downward): Likewise.
17139         (asin_test_upward): Likewise.
17140         (asinh_test): Likewise.
17141         (atan_test): Likewise.
17142         (atanh_test): Likewise.
17143         (atan2_test): Likewise.
17144         (cabs_test): Likewise.
17145         (cacos_test): Use END_COMPLEX macro without arguments.
17146         (cacosh_test): Likewise.
17147         (carg_test): Use END macro without arguments.
17148         (casin_test): Use END_COMPLEX macro without arguments.
17149         (casinh_test): Likewise.
17150         (catan_test): Likewise.
17151         (catanh_test): Likewise.
17152         (cbrt_test): Use END macro without arguments.
17153         (ccos_test): Use END_COMPLEX macro without arguments.
17154         (ccosh_test): Likewise.
17155         (ceil_test): Use END macro without arguments.
17156         (cexp_test): Use END_COMPLEX macro without arguments.
17157         (cimag_test): Use END macro without arguments.
17158         (clog_test): Use END_COMPLEX macro without arguments.
17159         (clog10_test): Likewise.
17160         (conj_test): Likewise.
17161         (copysign_test): Use END macro without arguments.
17162         (cos_test): Likewise.
17163         (cos_test_tonearest): Likewise.
17164         (cos_test_towardzero): Likewise.
17165         (cos_test_downward): Likewise.
17166         (cos_test_upward): Likewise.
17167         (cosh_test): Likewise.
17168         (cosh_test_tonearest): Likewise.
17169         (cosh_test_towardzero): Likewise.
17170         (cosh_test_downward): Likewise.
17171         (cosh_test_upward): Likewise.
17172         (cpow_test): Use END_COMPLEX macro without arguments.
17173         (cproj_test): Likewise.
17174         (creal_test): Use END macro without arguments.
17175         (csin_test): Use END_COMPLEX macro without arguments.
17176         (csinh_test): Likewise.
17177         (csqrt_test): Likewise.
17178         (ctan_test): Likewise.
17179         (ctan_test_tonearest): Likewise.
17180         (ctan_test_towardzero): Likewise.
17181         (ctan_test_downward): Likewise.
17182         (ctan_test_upward): Likewise.
17183         (ctanh_test): Likewise.
17184         (ctanh_test_tonearest): Likewise.
17185         (ctanh_test_towardzero): Likewise.
17186         (ctanh_test_downward): Likewise.
17187         (ctanh_test_upward): Likewise.
17188         (erf_test): Use END macro without arguments.
17189         (erfc_test): Likewise.
17190         (exp_test): Likewise.
17191         (exp_test_tonearest): Likewise.
17192         (exp_test_towardzero): Likewise.
17193         (exp_test_downward): Likewise.
17194         (exp_test_upward): Likewise.
17195         (exp10_test): Likewise.
17196         (exp2_test): Likewise.
17197         (expm1_test): Likewise.
17198         (fabs_test): Likewise.
17199         (fdim_test): Likewise.
17200         (finite_test): Likewise.
17201         (floor_test): Likewise.
17202         (fma_test): Likewise.
17203         (fma_test_towardzero): Likewise.
17204         (fma_test_downward): Likewise.
17205         (fma_test_upward): Likewise.
17206         (fmax_test): Likewise.
17207         (fmin_test): Likewise.
17208         (fmod_test): Likewise.
17209         (fpclassify_test): Likewise.
17210         (frexp_test): Likewise.
17211         (gamma_test): Likewise.
17212         (hypot_test): Likewise.
17213         (ilogb_test): Likewise.
17214         (isfinite_test): Likewise.
17215         (isgreater_test): Likewise.
17216         (isgreaterequal_test): Likewise.
17217         (isinf_test): Likewise.
17218         (isless_test): Likewise.
17219         (islessequal_test): Likewise.
17220         (islessgreater_test): Likewise.
17221         (isnan_test): Likewise.
17222         (isnormal_test): Likewise.
17223         (issignaling_test): Likewise.
17224         (isunordered_test): Likewise.
17225         (j0_test): Likewise.
17226         (j1_test): Likewise.
17227         (jn_test): Likewise.
17228         (ldexp_test): Likewise.
17229         (lgamma_test): Likewise.
17230         (lrint_test): Likewise.
17231         (lrint_test_tonearest): Likewise.
17232         (lrint_test_towardzero): Likewise.
17233         (lrint_test_downward): Likewise.
17234         (lrint_test_upward): Likewise.
17235         (llrint_test): Likewise.
17236         (llrint_test_tonearest): Likewise.
17237         (llrint_test_towardzero): Likewise.
17238         (llrint_test_downward): Likewise.
17239         (llrint_test_upward): Likewise.
17240         (log_test): Likewise.
17241         (log10_test): Likewise.
17242         (log1p_test): Likewise.
17243         (log2_test): Likewise.
17244         (logb_test): Likewise.
17245         (logb_test_downward): Likewise.
17246         (lround_test): Likewise.
17247         (llround_test): Likewise.
17248         (modf_test): Likewise.
17249         (nearbyint_test): Likewise.
17250         (nextafter_test): Likewise.
17251         (nexttoward_test): Likewise.
17252         (pow_test): Likewise.
17253         (pow_test_tonearest): Likewise.
17254         (pow_test_towardzero): Likewise.
17255         (pow_test_downward): Likewise.
17256         (pow_test_upward): Likewise.
17257         (remainder_test): Likewise.
17258         (remainder_test_tonearest): Likewise.
17259         (remainder_test_towardzero): Likewise.
17260         (remainder_test_downward): Likewise.
17261         (remainder_test_upward): Likewise.
17262         (remquo_test): Likewise.
17263         (rint_test): Likewise.
17264         (rint_test_tonearest): Likewise.
17265         (rint_test_towardzero): Likewise.
17266         (rint_test_downward): Likewise.
17267         (rint_test_upward): Likewise.
17268         (round_test): Likewise.
17269         (scalb_test): Likewise.
17270         (scalbn_test): Likewise.
17271         (scalbln_test): Likewise.
17272         (signbit_test): Likewise.
17273         (sin_test): Likewise.
17274         (sin_test_tonearest): Likewise.
17275         (sin_test_towardzero): Likewise.
17276         (sin_test_downward): Likewise.
17277         (sin_test_upward): Likewise.
17278         (sincos_test): Likewise.
17279         (sinh_test): Likewise.
17280         (sinh_test_tonearest): Likewise.
17281         (sinh_test_towardzero): Likewise.
17282         (sinh_test_downward): Likewise.
17283         (sinh_test_upward): Likewise.
17284         (sqrt_test): Likewise.
17285         (tan_test): Likewise.
17286         (tan_test_tonearest): Likewise.
17287         (tan_test_towardzero): Likewise.
17288         (tan_test_downward): Likewise.
17289         (tan_test_upward): Likewise.
17290         (tanh_test): Likewise.
17291         (tgamma_test): Likewise.
17292         (trunc_test): Likewise.
17293         (y0_test): Likewise.
17294         (y1_test): Likewise.
17295         (yn_test): Likewise.
17296         (significand_test): Likewise.
17297
17298 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17299
17300         [BZ #15381]
17301         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17302
17303 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17304
17305         [BZ #14894]
17306         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17307         __ppc_mdoio and __ppc_mdoom.
17308         * manual/platform.texi: Document new functions __ppc_yield,
17309         __ppc_mdoio and __ppc_mdoom.
17310
17311 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17312
17313         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17314         (main): Mention "tls" pseudo-hwcap is legacy.
17315         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17316
17317 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17318
17319         * math/gen-libm-test.pl (parse_args): Output only string of
17320         arguments as text for test name, not full call or descriptions of
17321         tests for extra outputs.
17322         (generate_testfile): Do not pass function name to parse_args.
17323         Generate this_func variable from START.
17324         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17325         field to arg_str.
17326         (struct test_ff_f_data): Likewise.
17327         (test_ff_f_data_nexttoward): Likewise.
17328         (struct test_fi_f_data): Likewise.
17329         (struct test_fl_f_data): Likewise.
17330         (struct test_if_f_data): Likewise.
17331         (struct test_fff_f_data): Likewise.
17332         (struct test_c_f_data): Likewise.
17333         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17334         (struct test_fF_f1_data): Likewise.
17335         (struct test_ffI_f1_data): Likewise.
17336         (struct test_c_c_data): Rename test_name field to arg_str.
17337         (struct test_cc_c_data): Likewise.
17338         (struct test_f_i_data): Likewise.
17339         (struct test_ff_i_data): Likewise.
17340         (struct test_f_l_data): Likewise.
17341         (struct test_f_L_data): Likewise.
17342         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17343         and extra2_name.
17344         (COMMON_TEST_SETUP): New macro.
17345         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17346         (COMMON_TEST_CLEANUP): Likewise.
17347         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17348         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17349         macros.
17350         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17351         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17352         macros.
17353         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17354         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17355         cleanup macros.
17356         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17357         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17358         macros.
17359         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17360         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17361         macros.
17362         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17363         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17364         cleanup macros.
17365         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17366         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17367         cleanup macros.
17368         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17369         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17370         cleanup macros.
17371         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17372         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17373         macros.
17374         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17375         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17376         macros.
17377         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17378         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17379         macros.
17380         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17381         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17382         cleanup macros.
17383         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17384         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17385         cleanup macros.
17386         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17387         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17388         macros.
17389         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17390         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17391         cleanup macros.
17392         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17393         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17394         macros.
17395         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17396         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17397         macros.
17398         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17399         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17400         cleanup macros.
17401         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17402
17403 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17404
17405         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17406         to _sifields.sigfault.
17407         (si_addr_lsb): Define new macro.
17408         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17409         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17410         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17411
17412 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17413
17414         [BZ #15441]
17415         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17416         returns -1.
17417         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17418         null return -1.
17419         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17420         loading the domain.
17421
17422 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17423
17424         * math/gen-libm-test.pl (parse_args): Do not include expected
17425         result in test name.
17426         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17427         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17428         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17429         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17430         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17432
17433 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17434
17435         * benchtests/Makefile: Sort function entries.
17436
17437         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17438         tanh, asinh, acosh, atanh.
17439         * benchtests/acos-inputs: New file.
17440         * benchtests/acosh-inputs: New file.
17441         * benchtests/asin-inputs: New file.
17442         * benchtests/asinh-inputs: New file.
17443         * benchtests/atanh-inputs: New file.
17444         * benchtests/cosh-inputs: New file.
17445         * benchtests/log-inputs: New file.
17446         * benchtests/sinh-inputs: New file.
17447         * benchtests/tanh-inputs: New file.
17448
17449 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17450
17451         [BZ #15339]
17452         * posix/tst-getaddrinfo4.c: New test.
17453         * posix/Makefile (tests): Add it.
17454
17455 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17456
17457         [BZ #15339]
17458         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17459         when no services were used.
17460         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17461         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17462
17463 2013-05-21  Andreas Schwab  <schwab@suse.de>
17464
17465         [BZ #15014]
17466         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17467         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17468         successful.
17469         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17470         redundant variable declarations and reallocation of buffer when
17471         parsing as IPv6 address.  Always set NSS status when called from
17472         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17473         buffer too small.  Correct computation of needed size.
17474         * nss/Makefile (tests): Add test-digits-dots.
17475         * nss/test-digits-dots.c: New test.
17476
17477 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17478
17479         * benchtests/Makefile: Remove instructions for adding
17480         benchmark tests.
17481         * benchtests/README: New file to explain how to execute and
17482         enhance the benchmark tests.
17483
17484 2013-05-21  Andreas Schwab  <schwab@suse.de>
17485
17486         [BZ #15493]
17487         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17488         * setjmp/tst-sigsetjmp.c: New test.
17489
17490 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17491
17492         * sysdeps/x86_64/memset.S (memset): New implementation.
17493         (__bzero): Likewise.
17494         (__memset_tail): New function.
17495
17496 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17497
17498         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17499         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17500         __memcpy_sse2_unaligned ifunc selection.
17501         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17502         Add memcpy-sse2-unaligned.S.
17503         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17504         Add: __memcpy_sse2_unaligned.
17505
17506 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17507
17508         [BZ #15490]
17509         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17510         math_force_eval before restoring floating-point envrionment.
17511         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17512         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17513         Likewise.
17514         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17515         <math_private.h>.
17516         (__nearbyintl): Use math_force_eval before restoring
17517         floating-point environment.
17518         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17519
17520         * math/gen-libm-test.pl (special_functions): Remove.
17521         (parse_args): Don't handle TEST_extra.  Handle functions with no
17522         return value.
17523         * math/libm-test.inc (struct test_sincos_data): Replace with
17524         struct test_fFF_11_data.
17525         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17526         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17527         (sincos_test_data): Change element type to struct
17528         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17529         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17530         RUN_TEST_LOOP_sincos.
17531         * math/README.libm-test: Don't mention special handling of
17532         individual functions.
17533         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
17534         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17535         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17536         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17537         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17538         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17539
17540         * math/gen-libm-test.pl (get_variable): Remove function.
17541         (parse_args): Don't show pointer parameters to call in test
17542         names.  Use "extra output N" in test names for extra outputs
17543         rather than naming variables.
17544
17545 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
17546
17547         [BZ #15488]
17548         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
17549         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
17550         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
17551         double tests.
17552         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
17553         disable.
17554         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
17555         check_long_double.
17556
17557         * math/gen-libm-test.pl (@tests): Remove variable.
17558         ($count): Likewise.
17559         (new_test): Remove function.
17560         (show_exceptions): New function.
17561         (special_functions): Use show_exceptions instead of new_test.
17562         (parse_args): Likewise.
17563         (generate_testfile): Pass only function name in generated call to
17564         print_max_error or print_complex_max_error.
17565         (get_ulps): Do not handle complex tests specially.
17566         (output_test): Rename to ...
17567         (get_all_ulps_for_test): ... this.  Return a string rather than
17568         printing to a file.  Require ulps to be present.
17569         (output_ulps): Generate arrays rather than #defines.
17570         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
17571         (struct ulp_data): New type.
17572         (BUILD_COMPLEX_ULP): Remove macro.
17573         (compare_ulp_data): New function.
17574         (find_ulps): Likewise.
17575         (find_test_ulps): Likewise.
17576         (find_function_ulps): Likewise.
17577         (find_complex_function_ulps): Likewise.
17578         (print_max_error): Determine allowed ulps using
17579         find_function_ulps.
17580         (print_complex_max_error): Determine allowed ulps using
17581         find_complex_function_ulps.
17582         (check_float_internal): Determine max ulps using find_test_ulps.
17583         (check_float): Do not take max_ulp parameter.  Update call to
17584         check_float_internal.
17585         (check_complex): Likewise.
17586         (check_int): Do not take max_ulp parameter.
17587         (check_long): Likewise.
17588         (check_bool): Likewise.
17589         (check_longlong): Likewise.
17590         (struct test_f_f_data): Remove max_ulp field.
17591         (struct test_ff_f_data): Likewise.
17592         (struct test_ff_f_data_nexttoward): Likewise.
17593         (struct test_fi_f_data): Likewise.
17594         (struct test_fl_f_data): Likewise.
17595         (struct test_if_f_data): Likewise.
17596         (struct test_fff_f_data): Likewise.
17597         (struct test_c_f_data): Likewise.
17598         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17599         (struct test_fF_f1_data): Likewise.
17600         (struct test_ffI_f1_data): Likewise.
17601         (struct test_c_c_data): Remove max_ulp field.
17602         (struct test_cc_c_data): Likewise.
17603         (struct test_f_i_data): Likewise.
17604         (struct test_ff_i_data): Likewise.
17605         (struct test_f_l_data): Likewise.
17606         (struct test_f_L_data): Likewise.
17607         (struct test_sincos_data): Likewise.
17608         (RUN_TEST_f_f): Do not handle ulps.
17609         (RUN_TEST_LOOP_f_f): Likewise.
17610         (RUN_TEST_2_f): Likewise.
17611         (RUN_TEST_LOOP_2_f): Likewise.
17612         (RUN_TEST_fff_f): Likewise.
17613         (RUN_TEST_LOOP_fff_f): Likewise.
17614         (RUN_TEST_c_f): Likewise.
17615         (RUN_TEST_LOOP_c_f): Likewise.
17616         (RUN_TEST_f_f1): Likewise.
17617         (RUN_TEST_LOOP_f_f1): Likewise.
17618         (RUN_TEST_fF_f1): Likewise.
17619         (RUN_TEST_LOOP_fF_f1): Likewise.
17620         (RUN_TEST_fI_f1): Likewise.
17621         (RUN_TEST_LOOP_fI_f1): Likewise.
17622         (RUN_TEST_ffI_f1): Likewise.
17623         (RUN_TEST_LOOP_ffI_f1): Likewise.
17624         (RUN_TEST_c_c): Likewise.
17625         (RUN_TEST_LOOP_c_c): Likewise.
17626         (RUN_TEST_cc_c): Likewise.
17627         (RUN_TEST_LOOP_cc_c): Likewise.
17628         (RUN_TEST_f_i): Likewise.
17629         (RUN_TEST_LOOP_f_i): Likewise.
17630         (RUN_TEST_f_i_tg): Likewise.
17631         (RUN_TEST_LOOP_f_i_tg): Likewise.
17632         (RUN_TEST_ff_i_tg): Likewise.
17633         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17634         (RUN_TEST_f_b): Likewise.
17635         (RUN_TEST_LOOP_f_b): Likewise.
17636         (RUN_TEST_f_b_tg): Likewise.
17637         (RUN_TEST_LOOP_f_b_tg): Likewise.
17638         (RUN_TEST_f_l): Likewise.
17639         (RUN_TEST_LOOP_f_l): Likewise.
17640         (RUN_TEST_f_L): Likewise.
17641         (RUN_TEST_LOOP_f_L): Likewise.
17642         (RUN_TEST_sincos): Likewise.
17643         (RUN_TEST_LOOP_sincos): Likewise.
17644
17645 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17646
17647         [BZ #15480]
17648         [BZ #15485]
17649         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17650         main case of finite arguments, set rounding mode to FE_TONEAREST
17651         and discard exceptions.
17652         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17653         exceptions.
17654         (remainder_tonearest_test_data): New variable.
17655         (remainder_test_tonearest): New function.
17656         (remainder_towardzero_test_data): New variable.
17657         (remainder_test_towardzero): New function.
17658         (remainder_downward_test_data): New variable.
17659         (remainder_test_downward): New function.
17660         (remainder_upward_test_data): New variable.
17661         (remainder_test_upward): New function.
17662         (main): Call the new test functions.
17663
17664         * math/libm-test.inc (struct test_f_f1_data): Remove field
17665         extra_init.
17666         (struct test_fF_f1_data): Likewise.
17667         (struct test_ffI_f1_data): Likewise.
17668         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17669         based on value of EXTRA_EXPECTED.
17670         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17671         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17672         EXTRA_VAR based on value of EXTRA_EXPECTED.
17673         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17674         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17675         EXTRA_VAR based on value of EXTRA_EXPECTED.
17676         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17677         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17678         EXTRA_VAR based on value of EXTRA_EXPECTED.
17679         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17680         * math/gen-libm-test.pl (parse_args): Don't output initializers
17681         for extra output values.
17682
17683         * math/libm-test.inc (check_int): Expect result to be exactly
17684         equal to expected value and do not handle ulps.
17685         (check_long): Likewise.
17686         (check_longlong): Likewise.
17687
17688         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17689         exceptions.
17690         (cimag_test_data): Likewise.
17691         (conj_test_data): Likewise.
17692         (copysign_test_data): Likewise.
17693         (cproj_test_data): Likewise.
17694         (creal_test_data): Likewise.
17695         (fabs_test_data): Likewise.
17696         (fdim_test_data): Likewise.
17697         (finite_test_data): Likewise.
17698         (floor_test_data): Likewise.
17699         (fmax_test_data): Likewise.
17700         (fmin_test_data): Likewise.
17701         (fmod_test_data): Likewise.
17702         (fpclassify_test_data): Likewise.
17703         (frexp_test_data): Likewise.
17704         (ilogb_test_data): Likewise.
17705         (isfinite_test_data): Likewise.
17706         (isgreater_test_data): Likewise.
17707         (isgreaterequal_test_data): Likewise.
17708         (isinf_test_data): Likewise.
17709         (isless_test_data): Likewise.
17710         (islessequal_test_data): Likewise.
17711         (islessgreater_test_data): Likewise.
17712         (isnan_test_data): Likewise.
17713         (isnormal_test_data): Likewise.
17714         (issignaling_test_data): Likewise.
17715         (isunordered_test_data): Likewise.
17716         (ldexp_test_data): Likewise.
17717         (lrint_test_data): Likewise.
17718         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17719         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17720         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17721         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17722         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17723         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17724         test input.
17725         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17726         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17727         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17728         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17729         that test input.
17730         (lrint_downward_test_data): Test for "inexact" exceptions.
17731         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17732         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17733         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17734         test input.
17735         (lrint_upward_test_data): Test for "inexact" exceptions.
17736         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17737         test input.
17738         (llrint_test_data): Test for "inexact" exceptions.
17739         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17740         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17741         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17742         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17743         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17744         (llrint_downward_test_data): Test for "inexact" exceptions.
17745         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17746         (llrint_upward_test_data): Test for "inexact" exceptions.
17747         (logb_test_data): Likewise.
17748         (logb_downward_test_data): Likewise.
17749         (nextafter_test_data): Likewise.
17750         (nexttoward_test_data): Likewise.
17751         (remainder_test_data): Likewise.
17752         (remquo_test_data): Likewise.
17753         (scalbn_test_data): Likewise.
17754         (scalbln_test_data): Likewise.
17755         (signbit_test_data): Likewise.
17756         (sqrt_test_data): Likewise.
17757         (significand_test_data): Likewise.
17758
17759 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17760
17761         [BZ #15424]
17762         * benchtests/bench-modf.c (struct args): Mark arg0 as
17763         volatile.
17764         * scripts/bench.pl: Mark members of struct args as volatile.
17765
17766 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17767
17768         [BZ # 15497]
17769         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17770         negative infinity on POWER6 or lower.
17771         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17772
17773 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17774
17775         [BZ #15442]
17776         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17777         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17778         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17779         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17780         (_FP_SETQNAN): New macro.
17781         (_FP_SETQNAN_SEMIRAW): Likewise.
17782         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17783         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17784         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17785         (FP_EXTEND): Use _FP_FRAC_SNANP.
17786         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17787         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17788         into account.
17789         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17790         New macro.
17791         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17792         Likewise.
17793
17794 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17795
17796         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17797         with DIVIDE_BY_ZERO_EXCEPTION.
17798         (gamma_test_data): Likewise.
17799         (lgamma_test_data): Likewise.
17800         (log_test_data): Likewise.
17801         (log10_test_data): Likewise.
17802         (log2_test_data): Likewise.
17803         (tgamma_test_data): Likewise.
17804
17805         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17806         (acos_test_tonearest): Likewise.
17807         (acos_test_towardzero): Likewise.
17808         (acos_test_downward): Likewise.
17809         (acos_test_upward): Likewise.
17810         (acosh_test): Likewise.
17811         (asin_test): Likewise.
17812         (asin_test_tonearest): Likewise.
17813         (asin_test_towardzero): Likewise.
17814         (asin_test_downward): Likewise.
17815         (asin_test_upward): Likewise.
17816         (asinh_test): Likewise.
17817         (atan_test): Likewise.
17818         (atanh_test): Likewise.
17819         (atan2_test): Likewise.
17820         (cabs_test): Likewise.
17821         (cacos_test): Likewise.
17822         (cacosh_test): Likewise.
17823         (casin_test): Likewise.
17824         (casinh_test): Likewise.
17825         (catan_test): Likewise.
17826         (catanh_test): Likewise.
17827         (cbrt_test): Likewise.
17828         (ccos_test): Likewise.
17829         (ccosh_test): Likewise.
17830         (cexp_test): Likewise.
17831         (clog_test): Likewise.
17832         (clog10_test): Likewise.
17833         (cos_test): Likewise.
17834         (cos_test_tonearest): Likewise.
17835         (cos_test_towardzero): Likewise.
17836         (cos_test_downward): Likewise.
17837         (cos_test_upward): Likewise.
17838         (cosh_test): Likewise.
17839         (cosh_test_tonearest): Likewise.
17840         (cosh_test_towardzero): Likewise.
17841         (cosh_test_downward): Likewise.
17842         (cosh_test_upward): Likewise.
17843         (cpow_test): Likewise.
17844         (csin_test): Likewise.
17845         (csinh_test): Likewise.
17846         (csqrt_test): Likewise.
17847         (ctan_test): Likewise.
17848         (ctan_test_tonearest): Likewise.
17849         (ctan_test_towardzero): Likewise.
17850         (ctan_test_downward): Likewise.
17851         (ctan_test_upward): Likewise.
17852         (ctanh_test): Likewise.
17853         (ctanh_test_tonearest): Likewise.
17854         (ctanh_test_towardzero): Likewise.
17855         (ctanh_test_downward): Likewise.
17856         (ctanh_test_upward): Likewise.
17857         (erf_test): Likewise.
17858         (erfc_test): Likewise.
17859         (exp_test): Likewise.
17860         (exp_test_tonearest): Likewise.
17861         (exp_test_towardzero): Likewise.
17862         (exp_test_downward): Likewise.
17863         (exp_test_upward): Likewise.
17864         (exp10_test): Likewise.
17865         (exp2_test): Likewise.
17866         (expm1_test): Likewise.
17867         (fmod_test): Likewise.
17868         (gamma_test): Likewise.
17869         (hypot_test): Likewise.
17870         (j0_test): Likewise.
17871         (j1_test): Likewise.
17872         (jn_test): Likewise.
17873         (lgamma_test): Likewise.
17874         (log_test): Likewise.
17875         (log10_test): Likewise.
17876         (log1p_test): Likewise.
17877         (log2_test): Likewise.
17878         (logb_test_downward): Likewise.
17879         (pow_test): Likewise.
17880         (pow_test_tonearest): Likewise.
17881         (pow_test_towardzero): Likewise.
17882         (pow_test_downward): Likewise.
17883         (pow_test_upward): Likewise.
17884         (remainder_test): Likewise.
17885         (remquo_test): Likewise.
17886         (sin_test): Likewise.
17887         (sin_test_tonearest): Likewise.
17888         (sin_test_towardzero): Likewise.
17889         (sin_test_downward): Likewise.
17890         (sin_test_upward): Likewise.
17891         (sincos_test): Likewise.
17892         (sinh_test): Likewise.
17893         (sinh_test_tonearest): Likewise.
17894         (sinh_test_towardzero): Likewise.
17895         (sinh_test_downward): Likewise.
17896         (sinh_test_upward): Likewise.
17897         (sqrt_test): Likewise.
17898         (tan_test): Likewise.
17899         (tan_test_tonearest): Likewise.
17900         (tan_test_towardzero): Likewise.
17901         (tan_test_downward): Likewise.
17902         (tan_test_upward): Likewise.
17903         (tanh_test): Likewise.
17904         (tgamma_test): Likewise.
17905         (y0_test): Likewise.
17906         (y1_test): Likewise.
17907         (yn_test): Likewise.
17908
17909         * math/gen-libm-test.pl (adjust_arg): Remove function.
17910         (special_function): Remove argument $in_func.  Only handle
17911         generating output for tables of tests, not inside functions.
17912         (parse_args): Likewise.
17913         (generate_testfile): Remove variable $in_func.  Update call to
17914         parse_args.
17915         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17916         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17917         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17918         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17919         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17920         (MAX_VALUE_INIT): Rename macro to max_value.
17921         (MIN_VALUE_INIT): Rename macro to min_value.
17922         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17923         (plus_zero): Remove variable.
17924         (minus_zero): Likewise.
17925         (plus_infty): Likewise.
17926         (minus_infty): Likewise.
17927         (qnan_value): Likewise.
17928         (max_value): Likewise.
17929         (min_value): Likewise.
17930         (min_subnorm_value): Likewise.
17931
17932 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17933
17934         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17935         uint64_t or uint32_t usage.
17936         * crypt/sha256-block.c: Likewise.
17937         * crypt/sha256-crypt.c: Likewise.
17938         * crypt/sha256.c: Likewise.
17939         * crypt/sha512-block.c: Likewise.
17940         * crypt/sha512-crypt.c: Likewise.
17941         * crypt/sha512.c: Likewise.
17942         * debug/backtrace-tst.c: Likewise.
17943         * debug/pcprofiledump.c: Likewise.
17944         * elf/cache.c: Likewise.
17945         * elf/dl-cache.c: Likewise.
17946         * elf/dl-misc.c: Likewise.
17947         * elf/dl-profile.c: Likewise.
17948         * elf/dl-support.c: Likewise.
17949         * elf/ldconfig.c: Likewise.
17950         * elf/sprof.c: Likewise.
17951         * iconv/dummy-repertoire.c: Likewise.
17952         * iconv/iconv_charmap.c: Likewise.
17953         * iconv/skeleton.c: Likewise.
17954         * iconvdata/8bit-generic.c: Likewise.
17955         * iconvdata/cp737.h: Likewise.
17956         * iconvdata/cp775.h: Likewise.
17957         * iconvdata/ibm1008.h: Likewise.
17958         * iconvdata/ibm1025.h: Likewise.
17959         * iconvdata/ibm1046.h: Likewise.
17960         * iconvdata/ibm1097.h: Likewise.
17961         * iconvdata/ibm1112.h: Likewise.
17962         * iconvdata/ibm1122.h: Likewise.
17963         * iconvdata/ibm1123.h: Likewise.
17964         * iconvdata/ibm1124.h: Likewise.
17965         * iconvdata/ibm1129.h: Likewise.
17966         * iconvdata/ibm1130.h: Likewise.
17967         * iconvdata/ibm1132.h: Likewise.
17968         * iconvdata/ibm1133.h: Likewise.
17969         * iconvdata/ibm1137.h: Likewise.
17970         * iconvdata/ibm1140.h: Likewise.
17971         * iconvdata/ibm1141.h: Likewise.
17972         * iconvdata/ibm1142.h: Likewise.
17973         * iconvdata/ibm1143.h: Likewise.
17974         * iconvdata/ibm1144.h: Likewise.
17975         * iconvdata/ibm1145.h: Likewise.
17976         * iconvdata/ibm1146.h: Likewise.
17977         * iconvdata/ibm1147.h: Likewise.
17978         * iconvdata/ibm1148.h: Likewise.
17979         * iconvdata/ibm1149.h: Likewise.
17980         * iconvdata/ibm1153.h: Likewise.
17981         * iconvdata/ibm1154.h: Likewise.
17982         * iconvdata/ibm1155.h: Likewise.
17983         * iconvdata/ibm1156.h: Likewise.
17984         * iconvdata/ibm1157.h: Likewise.
17985         * iconvdata/ibm1158.h: Likewise.
17986         * iconvdata/ibm1160.h: Likewise.
17987         * iconvdata/ibm1161.h: Likewise.
17988         * iconvdata/ibm1162.h: Likewise.
17989         * iconvdata/ibm1163.h: Likewise.
17990         * iconvdata/ibm1164.h: Likewise.
17991         * iconvdata/ibm1166.h: Likewise.
17992         * iconvdata/ibm1167.h: Likewise.
17993         * iconvdata/ibm12712.h: Likewise.
17994         * iconvdata/ibm1390.h: Likewise.
17995         * iconvdata/ibm1399.h: Likewise.
17996         * iconvdata/ibm16804.h: Likewise.
17997         * iconvdata/ibm4517.h: Likewise.
17998         * iconvdata/ibm4899.h: Likewise.
17999         * iconvdata/ibm4909.h: Likewise.
18000         * iconvdata/ibm4971.h: Likewise.
18001         * iconvdata/ibm5347.h: Likewise.
18002         * iconvdata/ibm803.h: Likewise.
18003         * iconvdata/ibm856.h: Likewise.
18004         * iconvdata/ibm901.h: Likewise.
18005         * iconvdata/ibm902.h: Likewise.
18006         * iconvdata/ibm9030.h: Likewise.
18007         * iconvdata/ibm9066.h: Likewise.
18008         * iconvdata/ibm921.h: Likewise.
18009         * iconvdata/ibm922.h: Likewise.
18010         * iconvdata/ibm9448.h: Likewise.
18011         * iconvdata/isiri-3342.h: Likewise.
18012         * iconvdata/jis0201.h: Likewise.
18013         * include/link.h: Likewise.
18014         * include/netdb.h: Likewise.
18015         * inet/check_native.c: Likewise.
18016         * inet/check_pf.c: Likewise.
18017         * inet/getipv4sourcefilter.c: Likewise.
18018         * inet/getnameinfo.c: Likewise.
18019         * inet/getsourcefilter.c: Likewise.
18020         * inet/htonl.c: Likewise.
18021         * inet/setipv4sourcefilter.c: Likewise.
18022         * inet/setsourcefilter.c: Likewise.
18023         * inet/test-inet6_opt.c: Likewise.
18024         * inet/tst-network.c: Likewise.
18025         * locale/C-collate.c: Likewise.
18026         * locale/C-ctype.c: Likewise.
18027         * locale/C-time.c: Likewise.
18028         * locale/C-translit.h: Likewise.
18029         * locale/loadarchive.c: Likewise.
18030         * locale/programs/3level.h: Likewise.
18031         * locale/programs/charmap.c: Likewise.
18032         * locale/programs/charmap.h: Likewise.
18033         * locale/programs/ld-address.c: Likewise.
18034         * locale/programs/ld-collate.c: Likewise.
18035         * locale/programs/ld-ctype.c: Likewise.
18036         * locale/programs/ld-identification.c: Likewise.
18037         * locale/programs/ld-measurement.c: Likewise.
18038         * locale/programs/ld-messages.c: Likewise.
18039         * locale/programs/ld-monetary.c: Likewise.
18040         * locale/programs/ld-name.c: Likewise.
18041         * locale/programs/ld-numeric.c: Likewise.
18042         * locale/programs/ld-paper.c: Likewise.
18043         * locale/programs/ld-telephone.c: Likewise.
18044         * locale/programs/ld-time.c: Likewise.
18045         * locale/programs/linereader.c: Likewise.
18046         * locale/programs/locale.c: Likewise.
18047         * locale/programs/locarchive.c: Likewise.
18048         * locale/programs/locfile.h: Likewise.
18049         * locale/programs/repertoire.c: Likewise.
18050         * locale/programs/simple-hash.c: Likewise.
18051         * locale/programs/simple-hash.h: Likewise.
18052         * malloc/memusage.c: Likewise.
18053         * malloc/memusagestat.c: Likewise.
18054         * nis/nis_defaults.c: Likewise.
18055         * nis/nis_hash.c: Likewise.
18056         * nis/nis_print.c: Likewise.
18057         * nis/nis_xdr.c: Likewise.
18058         * nscd/connections.c: Likewise.
18059         * nscd/hstcache.c: Likewise.
18060         * nscd/nscd_gethst_r.c: Likewise.
18061         * nscd/nscd_getserv_r.c: Likewise.
18062         * nscd/nscd_helper.c: Likewise.
18063         * nscd/servicescache.c: Likewise.
18064         * nss/makedb.c: Likewise.
18065         * nss/nss_db/db-XXX.c: Likewise.
18066         * nss/nss_db/db-initgroups.c: Likewise.
18067         * nss/nss_db/db-netgrp.c: Likewise.
18068         * nss/nss_files/files-network.c: Likewise.
18069         * nss/nss_files/files-parse.c: Likewise.
18070         * posix/bug-regex5.c: Likewise.
18071         * posix/fnmatch_loop.c: Likewise.
18072         * posix/regcomp.c: Likewise.
18073         * posix/regexec.c: Likewise.
18074         * posix/tst-rfc3484-2.c: Likewise.
18075         * posix/tst-rfc3484-3.c: Likewise.
18076         * posix/tst-rfc3484.c: Likewise.
18077         * resolv/nss_dns/dns-canon.c: Likewise.
18078         * resolv/nss_dns/dns-network.c: Likewise.
18079         * resolv/res_init.c: Likewise.
18080         * resolv/res_mkquery.c: Likewise.
18081         * resolv/tst-aton.c: Likewise.
18082         * stdlib/cxa_atexit.c: Likewise.
18083         * stdlib/cxa_finalize.c: Likewise.
18084         * stdlib/gen-fpioconst.c: Likewise.
18085         * stdlib/strtol_l.c: Likewise.
18086         * string/tst-endian.c: Likewise.
18087         * sunrpc/auth_des.c: Likewise.
18088         * sunrpc/clnt_udp.c: Likewise.
18089         * sunrpc/rtime.c: Likewise.
18090         * sunrpc/svcauth_des.c: Likewise.
18091         * sunrpc/xdr.c: Likewise.
18092         * sunrpc/xdr_intXX_t.c: Likewise.
18093         * sunrpc/xdr_rec.c: Likewise.
18094         * sysdeps/generic/ldconfig.h: Likewise.
18095         * sysdeps/generic/ldsodefs.h: Likewise.
18096         * sysdeps/generic/memusage.h: Likewise.
18097         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18098         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
18099         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
18100         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18101         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18102         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18103         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18104         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18105         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18106         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
18107         * sysdeps/posix/getaddrinfo.c: Likewise.
18108         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18109         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18110         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
18111         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18112         * sysdeps/powerpc/test-gettimebase.c: Likewise.
18113         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18114         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
18115         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
18116         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
18117         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
18118         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
18119         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
18120         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
18121         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
18122         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
18123         * sysdeps/x86_64/dl-tls.h: Likewise.
18124         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
18125         * time/alt_digit.c: Likewise.
18126         * time/era.c: Likewise.
18127         * wcsmbs/tst-c16c32-1.c: Likewise.
18128
18129 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18130
18131         * math/libm-test.inc (struct test_sincos_data): New type.
18132         (RUN_TEST_LOOP_sincos): New macro.
18133         (sincos_test_data): New variable.
18134         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
18135
18136 2013-05-16  Richard Henderson  <rth@redhat.com>
18137
18138         * math/atest-exp2.c (LIMB64): New macro.
18139         (CONSTSZ): New macro.
18140         (mp_exp1, mp_exp_m1, mp_log2): New variables.
18141         (hexdig): Move ...
18142         (print_mpn_fp): ... to function scope.
18143         (read_mpn_hex): Remove.
18144         (get_log2): Remove.
18145         (exp2_mpn): Use mp_log2.
18146         (main): Use mp_exp1.
18147
18148 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18149
18150         * math/libm-test.inc: Remove comment about not testing "inexact"
18151         exceptions.
18152         (INEXACT_EXCEPTION): New macro.
18153         (NO_INEXACT_EXCEPTION): Likewise.
18154         (INVALID_EXCEPTION_OK): Update value.
18155         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18156         (OVERFLOW_EXCEPTION_OK): Likewise.
18157         (UNDERFLOW_EXCEPTION_OK): Likewise.
18158         (IGNORE_ZERO_INF_SIGN): Likewise.
18159         (ERRNO_UNCHANGED): Likewise.
18160         (ERRNO_EDOM): Likewise.
18161         (ERRNO_ERANGE): Likewise.
18162         (test_exceptions): Handle testing "inexact" exceptions.
18163         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
18164         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
18165         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
18166         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
18167         INEXACT_EXCEPTION.
18168         (rint_towardzero_test_data): Likewise.
18169         (rint_downward_test_data): Likewise.
18170         (rint_upward_test_data): Likewise.
18171
18172         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
18173         with OVERFLOW_EXCEPTION.
18174         (exp10_test_data): Likewise.
18175         (exp2_test_data): Likewise.
18176         (expm1_test_data): Likewise.
18177         (lgamma_test_data): Likewise.
18178         (pow_test_data): Likewise.
18179         (tgamma_test_data): Likewise.
18180         (yn_test_data): Remove duplicate test of overflow.
18181
18182         * math/libm-test.inc (struct test_cc_c_data): New type.
18183         (RUN_TEST_LOOP_cc_c): New macro.
18184         (cpow_test_data): New variable.
18185         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
18186
18187         * math/libm-test.inc (struct test_f_L_data): New type.
18188         (RUN_TEST_LOOP_f_L): New macro.
18189         (llrint_test_data): New variable.
18190         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18191         (llrint_tonearest_test_data): New variable.
18192         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18193         (llrint_towardzero_test_data): New variable.
18194         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18195         (llrint_downward_test_data): New variable.
18196         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18197         (llrint_upward_test_data): New variable.
18198         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18199         (llround_test_data): New variable.
18200         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18201
18202 2013-05-13  Peter Collingbourne  <pcc@google.com>
18203
18204         * math/atest-exp2.c (get_log2): Remove const attribute.
18205
18206 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18207
18208         * math/libm-test.inc (struct test_f_l_data): New type.
18209         (RUN_TEST_LOOP_f_l): New macro.
18210         (lrint_test_data): New variable.
18211         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18212         (lrint_tonearest_test_data): New variable.
18213         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18214         (lrint_towardzero_test_data): New variable.
18215         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18216         (lrint_downward_test_data): New variable.
18217         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18218         (lrint_upward_test_data): New variable.
18219         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18220         (lround_test_data): New variable.
18221         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18222
18223 2013-05-15  Peter Collingbourne  <pcc@google.com>
18224
18225         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18226         (EXTRACT_WORDS64) Use where appropriate.
18227         (INSERT_WORDS64) Likewise.
18228
18229         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18230         constraints with x constraints.
18231         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18232
18233         * malloc/obstack.c (_obstack_compat): Add initializer.
18234
18235 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18236
18237         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18238         si_trapno and add si_addr_lsb to _sifields.sigfault.
18239         (si_trapno): Remove macro.
18240         (si_addr_lsb): Define new macro.
18241         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18242
18243 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18244
18245         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18246         instead of TEST_f_l.
18247         (llrint_test_tonearest): Likewise.
18248         (llrint_test_towardzero): Likewise.
18249         (llrint_test_downward): Likewise.
18250         (llrint_test_upward): Likewise.
18251         (llround_test): Likewise.
18252
18253         * math/libm-test.inc (struct test_f_i_data): Add comment.
18254         (RUN_TEST_LOOP_f_b): New macro.
18255         (RUN_TEST_LOOP_f_b_tg): Likewise.
18256         (finite_test_data): New variable.
18257         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18258         (isfinite_test_data): New variable.
18259         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18260         (isinf_test_data): New variable.
18261         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18262         (isnan_test_data): New variable.
18263         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18264         (isnormal_test_data): New variable.
18265         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18266         (issignaling_test_data): New variable.
18267         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18268         (signbit_test_data): New variable.
18269         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18270
18271         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18272         with INVALID_EXCEPTION.
18273         (acosh_test_data): Likewise.
18274         (asin_test_data): Likewise.
18275         (atanh_test_data): Likewise.
18276         (fmod_test_data): Likewise.
18277         (log_test_data): Likewise.
18278         (log10_test_data): Likewise.
18279         (log2_test_data): Likewise.
18280         (pow_test_data): Likewise.
18281         (sqrt_test_data): Likewise.
18282         (y0_test_data): Likewise.
18283         (y1_test_data): Likewise.
18284         (yn_test_data): Likewise.
18285
18286         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18287         function contents.
18288
18289         * math/libm-test.inc (struct test_ff_i_data): New type.
18290         (RUN_TEST_LOOP_ff_i_tg): New macro.
18291         (isgreater_test_data): New variable.
18292         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18293         (isgreaterequal_test_data): New variable.
18294         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18295         (isless_test_data): New variable.
18296         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18297         (islessequal_test_data): New variable.
18298         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18299         (islessgreater_test_data): New variable.
18300         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18301         (isunordered_test_data): New variable.
18302         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18303
18304 2013-05-14  David S. Miller  <davem@davemloft.net>
18305
18306         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18307
18308 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18309
18310         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18311
18312         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18313         extra_test to int.
18314         (struct test_f_i_data): Change type of max_ulp to int.
18315
18316         * math/libm-test.inc (test_ffI_f1_data): New type.
18317         (RUN_TEST_LOOP_ffI_f1): New macro.
18318         (remquo_test_data): New variable.
18319         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18320
18321         * setjmp/tst-setjmp-fp.c: New file.
18322         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18323         (link-libm): New variable.
18324         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18325
18326         * math/libm-test.inc (struct test_f_i_data): New type.
18327         (RUN_TEST_LOOP_f_i): New macro.
18328         (RUN_TEST_LOOP_f_i_tg): Likewise.
18329         (fpclassify_test_data): New variable.
18330         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18331         (ilogb_test_data): New variable.
18332         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18333
18334         * math/libm-test.inc (scalbln_test): Correct function name in END
18335         call.
18336
18337         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18338         (RUN_TEST_LOOP_fI_f1): New macro.
18339         (frexp_test_data): New variable.
18340         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18341
18342         * math/libm-test.inc (struct test_fF_f1_data): New type.
18343         (RUN_TEST_LOOP_fF_f1): New macro.
18344         (modf_test_data): New variable.
18345         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18346
18347         * math/libm-test.inc (struct test_f_f1_data): New type.
18348         (RUN_TEST_LOOP_f_f1): New macro.
18349         (gamma_test_data): New variable.
18350         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18351         (lgamma_test_data): New variable.
18352         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18353
18354 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18355
18356         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18357         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18358         (main): Comment "tls" pseudo-hwcap.
18359
18360 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18361
18362         * math/libm-test.inc (struct test_fl_f_data): New type.
18363         (RUN_TEST_LOOP_fl_f): New variable.
18364         (scalbln_test_data): New variable.
18365         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18366
18367         * math/libm-test.inc (struct test_fi_f_data): New type.
18368         (RUN_TEST_LOOP_fi_f): New macro.
18369         (ldexp_test_data): New variable.
18370         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18371         (scalbn_test_data): New variable.
18372         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18373
18374         * math/libm-test.inc (struct test_c_f_data): New type.
18375         (RUN_TEST_LOOP_c_f): New macro.
18376         (cabs_test_data): New variable.
18377         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18378         (carg_test_data): New variable.
18379         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18380         (cimag_test_data): New variable.
18381         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18382         (creal_test_data): New variable.
18383         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18384
18385         * math/libm-test.inc (struct test_if_f_data): New type.
18386         (RUN_TEST_LOOP_if_f): New macro.
18387         (jn_test_data): New variable.
18388         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18389         (yn_test_data): New variable.
18390         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18391
18392         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18393
18394 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18395
18396         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18397         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18398
18399 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18400
18401         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18402         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18403         (bench-deps): Add bench-timing.h.
18404         * benchtests-bench-skeleton.c: Include bench-timing.h.
18405         (main): Use TIMING_* macros instead of clock_gettime.
18406         * benchtests/bench-timing.h: New file.
18407
18408         [BZ #14582]
18409         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18410         Renamed from _LIB_VERSION.
18411         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18412
18413 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18414
18415         * math/libm-test.inc (struct test_fff_f_data): New type.
18416         (RUN_TEST_LOOP_fff_f): New macro.
18417         (fma_test_data): New variable.
18418         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18419         (fma_towardzero_test_data): New variable.
18420         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18421         (fma_downward_test_data): New variable.
18422         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18423         (fma_upward_test_data): New variable.
18424         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18425
18426         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18427         (struct test_c_c_data): New type.
18428         (RUN_TEST_LOOP_c_c): New macro.
18429         (cacos_test_data): New variable.
18430         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18431         (cacosh_test_data): New variable.
18432         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18433         (casin_test_data): New variable.
18434         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18435         (casinh_test_data): New variable.
18436         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18437         (catan_test_data): New variable.
18438         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18439         (catanh_test_data): New variable.
18440         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18441         (ccos_test_data): New variable.
18442         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18443         (ccosh_test_data): New variable.
18444         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18445         (cexp_test_data): New variable.
18446         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18447         (clog_test_data): New variable.
18448         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18449         (clog10_test_data): New variable.
18450         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18451         (conj_test_data): New variable.
18452         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18453         (cproj_test_data): New variable.
18454         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18455         (csin_test_data): New variable.
18456         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18457         (csinh_test_data): New variable.
18458         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18459         (csqrt_test_data): New variable.
18460         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18461         (ctan_test_data): New variable.
18462         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18463         (ctan_tonearest_test_data): New variable.
18464         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18465         (ctan_towardzero_test_data): New variable.
18466         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18467         (ctan_downward_test_data): New variable.
18468         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18469         (ctan_upward_test_data): New variable.
18470         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18471         (ctanh_test_data): New variable.
18472         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18473         (ctanh_tonearest_test_data): New variable.
18474         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18475         (ctanh_towardzero_test_data): New variable.
18476         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18477         (ctanh_downward_test_data): New variable.
18478         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18479         (ctanh_upward_test_data): New variable.
18480         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18481         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18482         of BUILD_COMPLEX.
18483
18484         * math/libm-test.inc (struct test_ff_f_data): New type.
18485         (struct test_ff_f_data_nexttoward): Likewise.
18486         (RUN_TEST_LOOP_2_f): New macro.
18487         (RUN_TEST_LOOP_ff_f): Likewise.
18488         (atan2_test_data): New variable.
18489         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18490         (copysign_test_data): New variable.
18491         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18492         (fdim_test_data): New variable.
18493         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18494         (fmax_test_data): New variable.
18495         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18496         (fmin_test_data): New variable.
18497         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18498         (fmod_test_data): New variable.
18499         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18500         (hypot_test_data): New variable.
18501         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18502         (nextafter_test_data): New variable.
18503         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18504         (nexttoward_test_data): New variable.
18505         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18506         (pow_test_data): New variable.
18507         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18508         (pow_tonearest_test_data): New variable.
18509         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18510         (pow_towardzero_test_data): New variable.
18511         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18512         (pow_downward_test_data): New variable.
18513         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18514         (pow_upward_test_data): New variable.
18515         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18516         (remainder_test_data): New variable.
18517         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18518         (scalb_test_data): New variable.
18519         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18520         * sysdeps/i386/fpu/libm-test-ulps: Update.
18521
18522 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18523
18524         * math/libm-test.inc (fma_test): Use max_value instead of local
18525         variable fltmax.
18526         (nextafter_test): Likewise.
18527
18528         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18529         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18530         (acos_downward_test_data): New variable.
18531         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18532         (acos_upward_test_data): New variable.
18533         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18534         (acosh_test_data): New variable.
18535         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
18536         (asin_test_data): New variable.
18537         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
18538         (asin_tonearest_test_data): New variable.
18539         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18540         (asin_towardzero_test_data): New variable.
18541         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18542         (asin_downward_test_data): New variable.
18543         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18544         (asin_upward_test_data): New variable.
18545         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18546         (asinh_test_data): New variable.
18547         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
18548         (atan_test_data): New variable.
18549         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
18550         (atanh_test_data): New variable.
18551         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
18552         (cbrt_test_data): New variable.
18553         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
18554         (ceil_test_data): New variable.
18555         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
18556         (cos_test_data): New variable.
18557         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
18558         (cos_tonearest_test_data): New variable.
18559         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18560         (cos_towardzero_test_data): New variable.
18561         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18562         (cos_downward_test_data): New variable.
18563         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18564         (cos_upward_test_data): New variable.
18565         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18566         (cosh_test_data): New variable.
18567         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
18568         (cosh_tonearest_test_data): New variable.
18569         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18570         (cosh_towardzero_test_data): New variable.
18571         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18572         (cosh_downward_test_data): New variable.
18573         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18574         (cosh_upward_test_data): New variable.
18575         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18576         (erf_test_data): New variable.
18577         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18578         (erfc_test_data): New variable.
18579         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18580         (exp_test_data): New variable.
18581         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18582         (exp_tonearest_test_data): New variable.
18583         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18584         (exp_towardzero_test_data): New variable.
18585         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18586         (exp_downward_test_data): New variable.
18587         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18588         (exp_upward_test_data): New variable.
18589         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18590         (exp10_test_data): New variable.
18591         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18592         (exp2_test_data): New variable.
18593         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18594         (expm1_test_data): New variable.
18595         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18596         (fabs_test_data): New variable.
18597         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18598         (floor_test_data): New variable.
18599         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18600         (j0_test_data): New variable.
18601         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18602         (j1_test_data): New variable.
18603         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18604         (log_test_data): New variable.
18605         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18606         (log10_test_data): New variable.
18607         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18608         (log1p_test_data): New variable.
18609         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18610         (log2_test_data): New variable.
18611         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18612         (logb_test_data): New variable.
18613         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18614         (logb_downward_test_data): New variable.
18615         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18616         (nearbyint_test_data): New variable.
18617         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18618         (rint_test_data): New variable.
18619         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18620         (rint_tonearest_test_data): New variable.
18621         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18622         (rint_towardzero_test_data): New variable.
18623         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18624         (rint_downward_test_data): New variable.
18625         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18626         (rint_upward_test_data): New variable.
18627         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18628         (round_test_data): New variable.
18629         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18630         (sin_test_data): New variable.
18631         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18632         (sin_tonearest_test_data): New variable.
18633         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18634         (sin_towardzero_test_data): New variable.
18635         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18636         (sin_downward_test_data): New variable.
18637         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18638         (sin_upward_test_data): New variable.
18639         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18640         (sinh_test_data): New variable.
18641         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18642         (sinh_tonearest_test_data): New variable.
18643         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18644         (sinh_towardzero_test_data): New variable.
18645         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18646         (sinh_downward_test_data): New variable.
18647         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18648         (sinh_upward_test_data): New variable.
18649         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18650         (sqrt_test_data): New variable.
18651         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18652         (tan_test_data): New variable.
18653         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18654         (tan_tonearest_test_data): New variable.
18655         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18656         (tan_towardzero_test_data): New variable.
18657         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18658         (tan_downward_test_data): New variable.
18659         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18660         (tan_upward_test_data): New variable.
18661         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18662         (tanh_test_data): New variable.
18663         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18664         (tgamma_test_data): New variable.
18665         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18666         (trunc_test_data): New variable.
18667         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18668         (y0_test_data): New variable.
18669         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18670         (y1_test_data): New variable.
18671         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18672         (significand_test_data): New variable.
18673         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18674
18675 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18676
18677         [BZ #12387]
18678         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18679
18680 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18681
18682         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18683
18684 2013-05-10  Andreas Jaeger  <aj@suse.de>
18685
18686         [BZ #15448]
18687         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18688         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18689
18690 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18691
18692         * math/gen-libm-test.pl (adjust_arg): New function.
18693         (special_functions): Handle generating output in both functions
18694         and arrays.
18695         (parse_args): Likewise.
18696         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18697         $in_func argument to parse_args.
18698         * math/libm-test.inc (struct test_f_f_data): New type.
18699         (IF_ROUND_INIT_): New macro.
18700         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18701         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18702         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18703         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18704         (ROUND_RESTORE_): Likewise.
18705         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18706         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18707         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18708         (ROUND_RESTORE_FE_UPWARD): Likewise.
18709         (RUN_TEST_LOOP_f_f): New macro.
18710         (acos_test_data): New variable.
18711         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18712         (acos_tonearest_test_data): New variable.
18713         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18714
18715 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18716
18717         * benchtests/bench-skeleton.c (startup): Fix coding style.
18718
18719 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18720
18721         [BZ #6809]
18722         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18723         negative infinity argument.
18724         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18725         negative infinity argument.
18726         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18727         negative infinity argument.
18728         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18729         domain errors.
18730
18731 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18732
18733         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18734         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18735         * iconv/iconv_prog.c (main): Likewise.
18736         * locale/programs/charmap-dir.c (charmap_readdir)
18737         (fopen_uncompressed): Likewise.
18738         * locale/programs/locfile.c (siblings_uncached)
18739         (write_locale_data): Use lstat64 instead of lstat.
18740         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18741         stat.
18742
18743 2013-05-10  Andreas Jaeger  <aj@suse.de>
18744
18745         [BZ #15395]
18746         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18747         localization.
18748         Include <locale.h>.
18749
18750 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18751
18752         * elf/dl-close.c (_dl_close_worker): Add comments.
18753
18754 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18755
18756         [BZ #15359]
18757         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18758         high part of pi/2.
18759         (__ieee754_rem_pio2l): Update comments.
18760
18761         [BZ #15429]
18762         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18763         high part of pi/2.
18764         (__ieee754_rem_pio2l): Update comments.
18765
18766         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18767         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18768
18769         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18770         M_PI_4l.
18771
18772         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18773         (M_PI_34_LOG10El): Likewise.
18774         (M_PI2_LOG10El): Likewise.
18775         (M_PI4_LOG10El): Likewise.
18776         (M_PI_LOG10El): Likewise.
18777
18778 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18779
18780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18781
18782 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18783
18784         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18785         (MINUS_ZERO_INIT): Likewise.
18786         (PLUS_INFTY_INIT): Likewise.
18787         (MINUS_INFTY_INIT): Likewise.
18788         (QNAN_VALUE_INIT): Likewise.
18789         (MAX_VALUE_INIT): Likewise.
18790         (MIN_VALUE_INIT): Likewise.
18791         (MIN_SUBNORM_VALUE_INIT): Likewise.
18792         (plus_zero): Initialize with PLUS_ZERO_INIT.
18793         (minus_zero): Initialize with MINUS_ZERO_INIT.
18794         (plus_infty): Initialize with PLUS_INFTY_INIT.
18795         (minus_infty): Initialize with MINUS_INFTY_INIT.
18796         (qnan_value): Initialize with QNAN_VALUE_INIT.
18797         (max_value): Initialize with MAX_VALUE_INIT.
18798         (min_value): Initialize with MIN_VALUE_INIT.
18799         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18800
18801         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18802         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18803         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18804         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18805
18806         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18807         (RUN_TEST_2_f): Likewise.
18808         (RUN_TEST_ff_f): Likewise.
18809         (RUN_TEST_fi_f): Likewise.
18810         (RUN_TEST_fl_f): Likewise.
18811         (RUN_TEST_fff_f): Likewise.
18812         (RUN_TEST_c_f): Likewise.
18813         (RUN_TEST_f_f1): Likewise.
18814         (RUN_TEST_fF_f1): Likewise.
18815         (RUN_TEST_fI_f1): Likewise.
18816         (RUN_TEST_ffI_f1): Likewise.
18817         (RUN_TEST_c_c): Likewise.
18818         (RUN_TEST_cc_c): Likewise.
18819         (RUN_TEST_f_i): Likewise.
18820         (RUN_TEST_f_i_tg): Likewise.
18821         (RUN_TEST_ff_i_tg): Likewise.
18822         (RUN_TEST_f_b): Likewise.
18823         (RUN_TEST_f_b_tg): Likewise.
18824         (RUN_TEST_f_l): Likewise.
18825         (RUN_TEST_f_L): Likewise.
18826         (RUN_TEST_sincos): Likewise.
18827         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18828         whether to show exceptions.  Do not include ");\n" in return
18829         value.
18830         (special_functions): Output call to RUN_TEST_sincos instead of
18831         check_float calls.  Update calls to new_test.
18832         (parse_args): Output call to single RUN_TEST_* macro instead of
18833         check_* calls and other assignments.  Update calls to new_test.
18834
18835         [BZ #2546]
18836         [BZ #2560]
18837         [BZ #5159]
18838         [BZ #15426]
18839         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18840         input to result for tgamma overflow.
18841         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18842         (gamma_coeff): New variable.
18843         (NCOEFF): New macro.
18844         (gamma_positive): New function.
18845         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18846         underflow here.  Use gamma_positive instead of exp (lgamma) for
18847         other arguments.
18848         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18849         (gamma_coeff): New variable.
18850         (NCOEFF): New macro.
18851         (gammaf_positive): New function.
18852         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18853         underflow here.  Use gamma_positive instead of exp (lgamma) for
18854         other arguments.
18855         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18856         (gamma_coeff): New variable.
18857         (NCOEFF): New macro.
18858         (gammal_positive): New function.
18859         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18860         underflow here.  Use gamma_positive instead of exp (lgamma) for
18861         other arguments.
18862         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18863         (gamma_coeff): New variable.
18864         (NCOEFF): New macro.
18865         (gammal_positive): New function.
18866         (__ieee754_gammal_r): Handle positive infinity, overflow and
18867         underflow here.  Handle NaN the same as positive infinity.  Remove
18868         check x < 0xffffffff for negative integers.  Use gamma_positive
18869         instead of exp (lgamma) for other arguments.
18870         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18871         (gamma_coeff): New variable.
18872         (NCOEFF): New macro.
18873         (gammal_positive): New function.
18874         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18875         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18876         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18877         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18878         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18879         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18880         * sysdeps/generic/math_private.h (__gamma_productf): New
18881         prototype.
18882         (__gamma_product): Likewise.
18883         (__gamma_productl): Likewise.
18884         * math/Makefile (libm-calls): Add gamma_product.
18885         * math/libm-test.inc (tgamma_test): Add more tests.
18886         * sysdeps/i386/fpu/libm-test-ulps: Update.
18887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18888
18889 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18890
18891         * benchtests/bench-skeleton.c (main): Preheat CPU.
18892
18893 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18894
18895         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18896
18897 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18898
18899         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18900         and _dl_skip_args_internal.
18901
18902 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18903
18904         * manual/message.texi (Message Translation): Talk about users.
18905         Message to key mapping impacts design.
18906
18907 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18908
18909         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18910
18911         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18912
18913         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18914         * sysdeps/wordsize-64/glob64.c: ... here.
18915
18916         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18917         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18918         New macros.
18919
18920         * debug/getlogin_r_chk.c: Moved to ...
18921         * login/getlogin_r_chk.c: ... here.
18922         * debug/Makefile (routines): Move getlogin_r_chk to ...
18923         * login/Makefile (routines): ... here.
18924         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18925         * login/Versions (libc: GLIBC_2.4): ... here.
18926
18927         * io/poll.c (__poll): Renamed from poll.
18928         Add libc_hidden_def.
18929         (poll): Define as weak alias.
18930
18931         * debug/ptsname_r_chk.c: Moved to ...
18932         * login/ptsname_r_chk.c: ... here.
18933         * debug/Makefile (routines): Move ptsname_r_chk to ...
18934         * login/Makefile (routines): ... here.
18935         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18936         * login/Versions (libc: GLIBC_2.4): ... here.
18937
18938         * posix/getlogin.c: Moved to ...
18939         * login/getlogin.c: ... here.
18940         * posix/getlogin_r.c: Moved to ...
18941         * login/getlogin_r.c: ... here.
18942         * posix/getlogin_r.c: Moved to ...
18943         * login/getlogin_r.c: ... here.
18944         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18945         * login/Makefile (routines): ... here.
18946         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18947         * login/Versions (libc: GLIBC_2.0): ... here.
18948
18949         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18950         (setrlimit): Define as weak alias.
18951
18952         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18953         Call __ names for open, ftruncate, and close.
18954         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18955         (truncate): Define as weak alias.
18956
18957 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18958
18959         * math/gen-libm-test.pl (parse_args): Initialize x before each
18960         test of frexp, modf and remquo.
18961
18962         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18963         test signgam value.
18964
18965 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18966
18967         [BZ #15418]
18968         [BZ #15419]
18969         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18970         internal tests.
18971         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18972
18973 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18974
18975         * elf/dl-writev.h: New file.
18976         * elf/dl-misc.c: Include it.
18977         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18978         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18979
18980 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18981
18982         * math/libm-test.inc (noXFails): Remove variable.
18983         (noXPasses): Likewise.
18984         (BUILD_COMPLEX_INT): Remove macro.
18985         (print_screen): Remove xfail argument.
18986         (print_screen_max_error): Likewise.
18987         (update_stats): Likewise.
18988         (print_max_error): Likewise.  Update calls to other affected
18989         functions.
18990         (print_complex_max_error): Likewise.
18991         (test_single_exception): Update calls to print_screen.
18992         (test_single_errno): Likewise.
18993         (check_float_internal): Remove xfail argument.  Update calls to
18994         other affected functions.
18995         (check_float): Likewise.
18996         (check_complex): Likewise.
18997         (check_int): Likewise.
18998         (check_long): Likewise.
18999         (check_bool): Likewise.
19000         (check_longlong): Likewise.
19001         (main): Don't print noXFails and noXPasses.
19002         * math/gen-libm-test.pl (top level): Don't mention expected
19003         failure handling in comment.
19004         (new_test): Don't handle expected failures.
19005         (parse_args): Don't mention expected failure handling in comment.
19006         (generate_testfile): Don't handle expected failures.
19007         (parse_ulps): Likewise.
19008         (print_ulps_file): Likewise.
19009         (get_failure): Remove function.
19010         (output_test): Don't handle expected failures.
19011         * make/README.libm-test: Don't mention expected failure handling.
19012
19013         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
19014         (minus_zero): Likewise.
19015         (plus_infty): Likewise.
19016         (minus_infty): Likewise.
19017         (qnan_value): Likewise.
19018         (max_value): Likewise.
19019         (min_value): Likewise.
19020         (min_subnorm_value): Likewise.
19021         (initialize): Do not initialize those variables dynamically.
19022
19023 2013-05-03  Roland McGrath  <roland@hack.frob.com>
19024
19025         * io/open.c (__open_2): Moved to ...
19026         * io/open_2.c: ... this new file.
19027         * io/open64.c (__open64_2): Moved to ...
19028         * io/open64_2.c: ... this new file.
19029         * io/openat.c (__openat_2): Moved to ...
19030         * io/openat_2.c: ... this new file.
19031         * io/openat64.c (__openat64_2): Moved to ...
19032         * io/openat64_2.c: ... this new file.
19033         * io/Makefile (routines): Add them.
19034         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
19035         * sysdeps/unix/sysv/linux/open_2.c: File removed.
19036         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
19037         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
19038         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
19039         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
19040         (__openat64): Add hidden_ver.
19041         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
19042         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
19043
19044         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
19045         Separately conditionalize setting of GLRO(dl_sysinfo) so
19046         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
19047         as well, but the actual setting is only under [NEED_DL_SYSINFO].
19048
19049 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19050
19051         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
19052         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
19053         definition.
19054         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
19055         * sysdeps/unix/sysv/linux/powerpc/init-first.c
19056         (_libc_vdso_platform_setup): Add __vdso_time initialization.
19057         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
19058         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
19059
19060 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
19061
19062         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
19063         test signgam value.
19064
19065         * math/libm-test.inc (hypot_test): Do not use
19066         IGNORE_ZERO_INF_SIGN.
19067
19068 2013-05-03  Andreas Jaeger  <aj@suse.de>
19069
19070         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
19071         Linux 3.9.
19072         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
19073         (PF_MAX): Adjust for VSOCK change.
19074
19075 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19076
19077         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19078
19079 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
19080
19081         [BZ #15264]
19082         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
19083         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
19084         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
19085
19086 2013-05-02  David S. Miller  <davem@davemloft.net>
19087
19088         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19089
19090 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
19091
19092         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
19093
19094 2013-05-01  Roland McGrath  <roland@hack.frob.com>
19095
19096         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
19097
19098 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
19099
19100         [BZ #14952]
19101         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
19102         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19103         Use __attribute__ ((__gnu_inline__)).
19104         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19105         Don't use __attribute__ ((__gnu_inline__)).
19106
19107 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
19108
19109         [BZ #15423]
19110         * math/s_catan.c (__catan): Handle small real or imaginary part of
19111         input specially to avoid spurious underflow.
19112         * math/s_catanf.c (__catanf): Likewise.
19113         * math/s_catanh.c (__catanh): Likewise.
19114         * math/s_catanhf.c (__catanhf): Likewise.
19115         * math/s_catanhl.c (__catanhl): Likewise.
19116         * math/s_catanl.c (__catanl): Likewise.
19117         * math/libm-test.inc (catan_test): Add more tests.
19118         (catanh_test): Likewise.
19119         * sysdeps/i386/fpu/libm-test-ulps: Update.
19120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19121
19122 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19123
19124         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19125
19126 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
19127
19128         [BZ #15416]
19129         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
19130         accurately for denominator in atan2.
19131         * math/s_catanf.c (__catanf): Likewise.
19132         * math/s_catanh.c (__catanh): Likewise.
19133         * math/s_catanhf.c (__catanhf): Likewise.
19134         * math/s_catanhl.c (__catanhl): Likewise.
19135         * math/s_catanl.c (__catanl): Likewise.
19136         * math/libm-test.inc (catan_test): Add more tests.
19137         (catanh_test): Likewise.
19138         * sysdeps/i386/fpu/libm-test-ulps: Update.
19139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19140
19141 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
19142
19143         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
19144
19145         * benchtests/Makefile (bench): Remove slow benchmarks.
19146         * benchtests/atan-inputs: Add slow benchmark inputs.
19147         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
19148         (BENCH_FUNC): Accept variant offset.
19149         (VARIANT): Define.
19150         * benchtests/bench-skeleton.c (main): Run benchmark for each
19151         variant.
19152         * benchtests/cos-inputs: Add slow benchmark inputs.
19153         * benchtests/exp-inputs: Likewise.
19154         * benchtests/pow-inputs: Likewise.
19155         * benchtests/sin-inputs: Likewise.
19156         * benchtests/slowatan-inputs: Remove.
19157         * benchtests/slowatan.c: Remove.
19158         * benchtests/slowcos-inputs: Remove.
19159         * benchtests/slowcos.c: Remove.
19160         * benchtests/slowexp-inputs: Remove.
19161         * benchtests/slowexp.c: Remove.
19162         * benchtests/slowpow-inputs: Remove.
19163         * benchtests/slowpow.c: Remove.
19164         * benchtests/slowsin-inputs: Remove.
19165         * benchtests/slowsin.c: Remove.
19166         * benchtests/slowtan-inputs: Remove.
19167         * benchtests/slowtan.c: Remove.
19168         * benchtests/tan-inputs: Add slow benchmark inputs.
19169         * scripts/bench.pl: Parse comments and directives.
19170
19171         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
19172         in CPPFLAGS.
19173         ($(objpfx)bench-%.c): Remove *-ITER.
19174         * benchtests/bench-modf.c: Remove definition of ITER.
19175         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
19176         (main): Loop for DURATION seconds instead of fixed number of
19177         iterations.
19178         * scripts/bench.pl: Don't expect iterations in parameters.
19179
19180 2013-04-29  Roland McGrath  <roland@hack.frob.com>
19181
19182         * io/fchdir.c (__fchdir): Renamed from fchdir.
19183         (fchdir): Define as weak alias.
19184
19185 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19186
19187         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
19188         (ERRNO_EDOM): Likewise.
19189         (ERRNO_ERANGE): Likewise.
19190         (noErrnoTests): New variable.
19191         (init_max_error): Set errno to 0.
19192         (test_single_errno): New function.
19193         (test_errno): Likewise.
19194         (check_float_internal): Call test_errno.  Set errno to 0.
19195         (check_complex): Refer to errno tests in comment.
19196         (check_int): Call test_errno.  Set errno to 0.
19197         (check_long): Likewise.
19198         (check_bool): Likewise.
19199         (check_longlong): Likewise.
19200         (cos_test): Use ERRNO_* flags for errno tests instead of
19201         check_int.
19202         (expm1_test): Likewise.
19203         (fmod_test): Likewise.
19204         (ilogb_test): Likewise.
19205         (lgamma_test): Likewise.
19206         (pow_test): Likewise.
19207         (remainder_test): Likewise.
19208         (sin_test): Likewise.
19209         (tan_test): Likewise.
19210         (yn_test): Likewise.
19211         (initialize): Set errno to 0.
19212         (main): Print number of errno tests.
19213         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19214
19215 2013-04-29  Andreas Jaeger  <aj@suse.de>
19216
19217         [BZ #15084]
19218         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19219         and RES_USEVC.
19220
19221         [BZ #15085]
19222         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19223         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19224         unimplemented.
19225
19226         [BZ #15380]
19227         * stdlib/random.c (__initstate): Return NULL if
19228         __initstate fails.
19229
19230         [BZ #15086]
19231         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19232         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19233         RES_SNGLKUPREOP.
19234
19235 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19236
19237         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19238
19239 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19240
19241         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19242         of individual tests.
19243         (casin_test): Likewise.
19244         (casinh_test): Likewise.
19245
19246 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19247
19248         [BZ #15409]
19249         * math/s_catan.c (__catan): Handle arguments with large real or
19250         imaginary part separately without squaring.
19251         * math/s_catanf.c (__catanf): Likewise.
19252         * math/s_catanh.c (__catanh): Likewise.
19253         * math/s_catanhf.c (__catanhf): Likewise.
19254         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19255         and redefine.
19256         (__catanhl): Handle arguments with large real or imaginary part
19257         separately without squaring.
19258         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19259         and redefine.
19260         (__catanl): Handle arguments with large real or imaginary part
19261         separately without squaring.
19262         * math/libm-test.inc (catan_test): Add more tests.
19263         (catanh_test): Likewise.
19264         * sysdeps/i386/fpu/libm-test-ulps: Update.
19265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19266
19267 2013-04-27  Andreas Jaeger  <aj@suse.de>
19268
19269         [BZ #15007]
19270         * stdlib/stdlib.h: Update guards for qecvt.
19271         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19272         <stdlib.h>.
19273
19274 2013-04-27  Allan McRae  <allan@archlinux.org>
19275
19276         * sysdeps/i386/fpu/libm-test-ulps: Update.
19277
19278 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19279
19280         [BZ #15406]
19281         * math/s_catan.c: Include <float.h>.
19282         (__catan): Ensure underflow exception occurs for underflowed
19283         result.
19284         * math/s_catanf.c: Include <float.h>.
19285         (__catanf): Ensure underflow exception occurs for underflowed
19286         result.
19287         * math/s_catanh.c: Include <float.h>.
19288         (__catanh): Ensure underflow exception occurs for underflowed
19289         result.
19290         * math/s_catanhf.c: Include <float.h>.
19291         (__catanhf): Ensure underflow exception occurs for underflowed
19292         result.
19293         * math/s_catanhl.c: Include <float.h>.
19294         (__catanhl): Ensure underflow exception occurs for underflowed
19295         result.
19296         * math/s_catanl.c: Include <float.h>.
19297         (__catanl): Ensure underflow exception occurs for underflowed
19298         result.
19299         * math/libm-test.inc (catan_test): Add more tests.
19300         (catanh_test): Likewise.
19301
19302         [BZ #15405]
19303         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19304         underflowed result.
19305         * math/s_ccoshf.c (__ccoshf): Likewise.
19306         * math/s_ccoshl.c (__ccoshl): Likewise.
19307         * math/s_csin.c (__csin): Likewise.
19308         * math/s_csinf.c (__csinf): Likewise.
19309         * math/s_csinh.c (__csinh): Likewise.
19310         * math/s_csinhf.c (__csinhf): Likewise.
19311         * math/s_csinhl.c (__csinhl): Likewise.
19312         * math/s_csinl.c (__csinl): Likewise.
19313         * math/libm-test.inc (ccos_test): Add more tests.
19314         (ccosh_test): Likewise.
19315         (csin_test): Likewise.
19316         (csinh_test): Likewise.
19317
19318 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19319
19320         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19321         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19322         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19323         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19324         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19325         powerpc/power5+/fpu folders.
19326         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19327
19328
19329 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19330
19331         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19332
19333 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19334
19335         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19336         additions to variable.
19337         [$(config-machine) = x86_64] (modules-names): Likewise.
19338         ($(objpfx)tst-audit3): Remove dependency.
19339         ($(objpfx)tst-audit3.out): Likewise.
19340         ($(objpfx)tst-audit4): Likewise.
19341         ($(objpfx)tst-audit4.out): Likewise.
19342         ($(objpfx)tst-audit5): Likewise.
19343         ($(objpfx)tst-audit5.out): Likewise.
19344         ($(objpfx)tst-audit6): Likewise.
19345         ($(objpfx)tst-audit6.out): Likewise.
19346         ($(objpfx)tst-audit7): Likewise.
19347         ($(objpfx)tst-audit7.out): Likewise.
19348         (tst-audit3-ENV): Remove variable.
19349         (tst-audit4-ENV): Likewise.
19350         (tst-audit5-ENV): Likewise.
19351         (tst-audit6-ENV): Likewise.
19352         (tst-audit7-ENV): Likewise.
19353         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19354         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19355         addition to variable.
19356         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19357         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19358         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19359         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19360         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19361         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19362         tst-audit3, tst-audit4 and tst-audit5.
19363         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19364         tst-audit6 and tst-audit7.
19365         [$(subdir) = elf] (modules-names): Add audit modules for those
19366         tests.
19367         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19368         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19369         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19370         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19371         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19372         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19373         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19374         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19375         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19376         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19377         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19378         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19379         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19380         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19381         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19382         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19383         Likewise.
19384         [$(subdir) = elf && $(config-cflags-avx) = yes]
19385         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19386         [$(subdir) = elf && $(config-cflags-avx) = yes]
19387         (CFLAGS-tst-auditmod4a.c): Likewise.
19388         [$(subdir) = elf && $(config-cflags-avx) = yes]
19389         (CFLAGS-tst-auditmod4b.c): Likewise.
19390         [$(subdir) = elf && $(config-cflags-avx) = yes]
19391         (CFLAGS-tst-auditmod6b.c): Likewise.
19392         [$(subdir) = elf && $(config-cflags-avx) = yes]
19393         (CFLAGS-tst-auditmod6c.c): Likewise.
19394         [$(subdir) = elf && $(config-cflags-avx) = yes]
19395         (CFLAGS-tst-auditmod7b.c): Likewise.
19396         * elf/tst-audit3.c: Move to ...
19397         * sysdeps/x86_64/tst-audit3.c: ... here.
19398         * elf/tst-audit4.c: Move to ...
19399         * sysdeps/x86_64/tst-audit4.c: ... here.
19400         * elf/tst-audit5.c: Move to ...
19401         * sysdeps/x86_64/tst-audit5.c: ... here.
19402         * elf/tst-audit6.c: Move to ...
19403         * sysdeps/x86_64/tst-audit6.c: ... here.
19404         * elf/tst-audit7.c: Move to ...
19405         * sysdeps/x86_64/tst-audit7.c: ... here.
19406         * elf/tst-auditmod3a.c: Move to ...
19407         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19408         * elf/tst-auditmod3b.c: Move to ...
19409         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19410         * elf/tst-auditmod4a.c: Move to ...
19411         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19412         * elf/tst-auditmod4b.c: Move to ...
19413         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19414         * elf/tst-auditmod5a.c: Move to ...
19415         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19416         * elf/tst-auditmod5b.c: Move to ...
19417         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19418         * elf/tst-auditmod6a.c: Move to ...
19419         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19420         * elf/tst-auditmod6b.c: Move to ...
19421         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19422         * elf/tst-auditmod6c.c: Move to ...
19423         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19424         * elf/tst-auditmod7a.c: Move to ...
19425         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19426         * elf/tst-auditmod7b.c: Move to ...
19427         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19428
19429 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19430
19431         [BZ #15366]
19432         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19433         define unconditionally.
19434         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19435         define unconditionally.
19436         (INT8_C, INT16_C, etc.): Likewise.
19437
19438 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19439
19440         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19441         __ehdr_start with hidden visibility.
19442
19443         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19444
19445 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19446
19447         * math/libm-test.inc (cos_test): Use accurate hex constants.
19448         (sincost_test): Likewise.
19449
19450 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19451
19452         * math/libm-test.inc (catan_test): Add more tests.
19453         (catanh_test): Likewise.
19454
19455         * math/s_catanf.c (__catanf): Use suffixed floating-point
19456         constants.
19457         * math/s_catanhf.c (__catanhf): Likewise.
19458         * math/s_catanhl.c (__catanhl): Likewise.
19459         * math/s_catanl.c (__catanl): Likewise.
19460
19461         [BZ #15394]
19462         * math/s_catan.c (__catan): Calculate imaginary part of result
19463         with log1p not log unless computing log of number close to 0.
19464         * math/s_catanf.c (__catanf): Likewise.
19465         * math/s_catanl.c (__catanl): Likewise.
19466         * math/s_catanh.c (__catanh): Calculate real part of result with
19467         log1p not log unless computing log of number close to 0.
19468         * math/s_catanhf.c (__catanhf): Likewise.
19469         * math/s_catanhl.c (__catanhl): Likewise.
19470         * math/libm-test.inc (catan_test): Add more tests.
19471         (catanh_test): Likewise.
19472         * sysdeps/i386/fpu/libm-test-ulps: Update.
19473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19474
19475 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19476
19477         * benchtests/Makefile: Mention files in which fast and slow
19478         paths of math functions are implemented.
19479
19480 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19481
19482         * sysdeps/posix/timespec_get.c: New file.
19483
19484 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19485
19486         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19487         POWER.
19488         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19489         for POWER.
19490         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19491         powerpc/power5/fpu folders.
19492         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19493         * benchtests/Makefile: Add modf testcase.
19494         * benchtests/bench-modf.c: New file: Benchmark test for mo
19495
19496 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19497
19498         [BZ #14888]
19499         * time/Makefile (tests): Add tst-strptime-whitespace.
19500         * time/strptime_l.c (get_number): Use ISSPACE.
19501         (__strptime_internal): Likewise.
19502         * time/tst-strptime-whitespace.c: New test case.
19503
19504 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19505
19506         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19507         member.
19508         (_nss_files_init): Set it here.
19509
19510 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19511
19512         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19513         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19514         unsigned.
19515
19516 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19517
19518         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19519
19520 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19521
19522         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19523         size just once.
19524
19525 2013-04-21  David S. Miller  <davem@davemloft.net>
19526
19527         * po/ru.po: Update Russion translation from translation project.
19528
19529 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19530
19531         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19532         and setfsgid.
19533
19534 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
19535
19536         * configure.in: Remove i386 configure warning. Remove i386 case.
19537         * configure: Regenerate.
19538         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
19539         Add example to error message.
19540         * sysdeps/i386/configure: Regenerate.
19541
19542 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19543
19544         * benchtests/Makefile (bench): Add cos, tan, slowcos and
19545         slowtan.
19546         * benchtests/cos-inputs: New file.
19547         * benchtests/slowcos-inputs: New file.
19548         * benchtests/slowcos.c: New file.
19549         * benchtests/slowtan-inputs: New file.
19550         * benchtests/slowtan.c: New file.
19551         * benchtests/tan-inputs: New file.
19552
19553 2013-04-16  Roland McGrath  <roland@hack.frob.com>
19554
19555         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
19556         considered kosher.
19557
19558 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
19559
19560         * benchtests/Makefile: Include cppflags-iterator.mk to add
19561         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
19562
19563         * Makefile.in (bench-clean): New target.
19564         * benchtests/Makefile (bench-clean): Likewise.
19565
19566 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
19567
19568         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
19569
19570 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19571
19572         * stdio-common/tstdiomisc.c: Fix coding-style violation.
19573
19574 2013-04-15  Andreas Schwab  <schwab@suse.de>
19575
19576         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19577         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19578         * nscd/pwdcache.c (cache_addpw): Likewise.
19579         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19580         more than recsize.
19581
19582 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19583
19584         * benchtests/Makefile (bench): Write all output to
19585         bench-out.tmp together.
19586
19587 2013-04-15  Andreas Schwab  <schwab@suse.de>
19588
19589         * nscd/nscd.c (main): Don't fork again after closing files.
19590
19591 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19592
19593         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19594
19595         * benchtests/Rules (bench-deps): Collect dependencies into a
19596         single variable.  Add Makefile to dependencies.
19597         ($(objpfx)bench-%.c): Depend on bench-deps.
19598
19599 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19600             Xavier Roche  <roche+kml2@exalead.com>
19601
19602         [BZ #15361]
19603         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19604         just that it's a file descriptor.
19605         * manual/llio.texi (Synchronizing AIO Operations): Update description
19606         for EBADF error from aio_fsync.
19607
19608 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19609
19610         * Rules (bench): Move target definition...
19611         * benchtests/Makefile: ... here.
19612
19613 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19614
19615         * math/libm-test.inc (cos_test): Fix PI/2 test.
19616         (sincos_test): Likewise.
19617         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19618         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19619
19620 2013-04-11  Andreas Schwab  <schwab@suse.de>
19621
19622         [BZ #13988]
19623         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19624         accept exponent character only when digits were seen.
19625         * stdio-common/Makefile (tests): Add bug26.
19626         * stdio-common/bug26.c: New file.
19627
19628         [BZ #14293]
19629         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19630         non-freeable.
19631
19632 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19633
19634         * Makeconfig (rtld-prefix): Define built linker prefix.
19635         * Rules (run-bench): Use it.
19636         * math/Makefile (run-regen-ulps): Likewise.
19637
19638         * Rules (bench): Remove eval.
19639
19640 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19641             Roland McGrath  <roland@hack.frob.com>
19642             Ondrej Bilka  <neleai@seznam.cz>
19643
19644         [BZ #15346]
19645         * time/getdate.c: Include ctype.h and alloca.h.
19646         (__getdate_r): Trim leading and trailing spaces of input.
19647         * time/tst-getdate.c (tests): Add tests with leading and
19648         trailing spaces.
19649
19650 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19651
19652         [BZ #14280]
19653         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19654         when computing value.
19655
19656 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19657
19658         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19659         Use testrun.sh to run libm tests.
19660
19661         [BZ #15309]
19662         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19663
19664 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19665
19666         [BZ #15264]
19667         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19668
19669 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19670
19671         * Makefile.in (regen-ulps): New target.
19672         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19673         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19674         [ifneq (no,$(PERL)] (regen-ulps): New target.
19675         [ifeq (no,$(PERL)] (regen-ulps): New target.
19676         * math/libm-test.inc (ulps_file_name): Define.
19677         (output_dir): New variable.
19678         (options): Add "output-dir" option.
19679         (parse_opt): Handle 'o' case.
19680         (main): If output_dir is non-NULL use it as a prefix
19681         otherwise use "".
19682         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19683
19684 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19685
19686         [BZ #10060, #10062]
19687         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19688         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19689         fail configure if __sync_val_compare_and_swap is not inlined.
19690         * sysdeps/i386/configure: Regenerate.
19691         * configure.in: Build for i686 when configured for i386.
19692         * configure: Regenerate.
19693         * README: Remove i386 reference.
19694
19695 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19696
19697         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19698         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19699
19700 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19701
19702         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19703         (lmsnanval): New variables.
19704         (F): Add conversion tests.
19705         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19706         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19707
19708         * stdio-common/tstdiomisc.c (F): Properly collect individual
19709         tests' results.
19710
19711         [BZ #14686, #15336]
19712         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19713         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19714         Instead, use input NaN values or generate a qNaN by arithmetic
19715         operation.  Also fix bugs to comply with the standard.
19716         * math/libm-test.inc (remainder_test): Add more tests.
19717
19718         [BZ #15335, #15342]
19719         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19720         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19721         input NaN values or generate a qNaN by arithmetic operation.
19722
19723         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19724         unreachable code.
19725
19726         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19727         definitions.
19728
19729 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19730
19731         [BZ #14478]
19732         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19733         underflowed result.
19734         * math/s_cexpf.c (__cexpf): Likewise.
19735         * math/s_cexpl.c (__cexpl): Likewise.
19736         * math/libm-test.inc (cexp_test): Add more tests.
19737
19738 2013-04-03  Andreas Schwab  <schwab@suse.de>
19739
19740         [BZ #15330]
19741         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19742         order arrays from heap if bigger than alloca cutoff.
19743
19744 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19745
19746         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19747         (SNAN_TESTS_double): Refer to GCC PR56831.
19748         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19749         GCC PR56828.
19750
19751 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19752
19753         * Rules (bench): Move bench.out after the run is complete.
19754
19755         * Rules (bench): Echo currently running benchmark.
19756
19757         * benchtests/Makefile (bench): Add atan and slowatan.
19758         * benchtests/atan-inputs: New file.
19759         * benchtests/slowatan-inputs: New file.
19760         * benchtests/slowatan.c: New file.
19761
19762         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19763         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19764         its value.
19765
19766         [BZ #15305]
19767         * sysdeps/unix/sysv/linux/kernel-features.h
19768         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19769         __ASSUME_XFS_RESTRICTED_CHOWN.
19770         * sysdeps/unix/sysv/linux/pathconf.c
19771         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19772         Save and restore errno.
19773
19774 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19775
19776         [BZ #15327]
19777         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19778         arguments using __kernel_casinh.
19779         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19780         arguments using __kernel_casinhf.
19781         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19782         arguments using __kernel_casinhl.
19783         * math/libm-test.inc (cacosh_test): Add more tests.
19784         * sysdeps/i386/fpu/libm-test-ulps: Update.
19785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19786
19787 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19788
19789         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19790         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19791
19792         * bench/Makefile (bench): Add sin and slowsin.
19793         * benchtests/sin-inputs: New file.
19794         * benchtests/slowsin-inputs: New file.
19795         * benchtests/slowsin.c: New file.
19796
19797         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19798         (bench): Add slowexp and slowpow.
19799         (exp-ITER): Increase iterations.
19800         (pow-ITER): Likewise.
19801         * benchtests/exp-inputs: Change input.
19802         * benchtests/pow-inputs: Likewise.
19803         * benchtests/slowexp-inputs: New file.
19804         * benchtests/slowexp.c: New file.
19805         * benchtests/slowpow-inputs: New file.
19806         * benchtests/slowpow.c: New file.
19807
19808 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19809
19810         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19811         instructions.
19812         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19813         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19814         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19815         * benchtests/Makefile: Add rint benchtest.
19816         * benchtests/rint-inputs: Input for rint benchtest.
19817
19818 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19819
19820         * Versions.def (libm): Add GLIBC_2.18.
19821         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19822         hidden libm prototypes.
19823         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19824         * math/Makefile (libm-calls): Add s_issignaling.
19825         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19826         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19827         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19828         declaration.
19829         * math/math.h [__USE_GNU] (issignaling): New macro.
19830         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19831         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19832         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19833         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19834         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19835         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19836         * manual/arith.texi (issignaling): New section.
19837         * manual/libm-err-tab.pl (@all_functions): Update comment.
19838         * math/gen-libm-test.pl (parse_args): Apply special handling for
19839         issignaling.
19840         * math/libm-test.inc (print_float, issignaling_test): New
19841         functions.
19842         (check_float_internal): Add issignaling checks.
19843         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19844         default definition.
19845         * sysdeps/powerpc/math-tests.h: New file.
19846         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19847         tests.
19848         * math/test-snan.c (TEST_FUNC): Likewise.
19849
19850 2013-03-30  David S. Miller  <davem@davemloft.net>
19851
19852         * po/de.po: Update from translation team.
19853
19854 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19855
19856         [BZ #10357]
19857         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19858         imaginary part less than 1.0 and real part less than 0.5
19859         specially.
19860         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19861         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19862         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19863         (cacos_test): Add more tests.
19864         (casin_test): Likewise.
19865         (casinh_test): Likewise.
19866         * sysdeps/i386/fpu/libm-test-ulps: Update.
19867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19868
19869 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19870
19871         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19872         ONE with its value.
19873
19874         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19875         (__pow_mp): Replace ONE and MONE with their values.
19876         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19877         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19878         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19879         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19880         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19881         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19882
19883         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19884
19885         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19886         (__pow_mp): Replace ZERO and MZERO with their values.
19887         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19888         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19889         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19890         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19891         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19892         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19893         (__sqr): Likewise.
19894
19895         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19896
19897         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19898
19899 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19900
19901         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19902         Declare with __attribute__ ((weak)).
19903         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19904         Call __call_tls_dtors only if it's not NULL.
19905
19906 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19907
19908         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19909         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19910         magic __ehdr_start linker symbol if it's defined.
19911         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19912         them up here if it was already done.
19913
19914         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19915         (_dl_aux_init): Use const in cast when setting it.
19916         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19917         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19918         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19919
19920         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19921         Declare them here.
19922         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19923         * csu/libc-tls.c: Nor here.
19924         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19925
19926         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19927         (__libc_message): Never call vsyslog.
19928
19929 2013-03-28  Alan Modra  <amodra@gmail.com>
19930
19931         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19932         Define as empty.
19933         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19934         Likewise.
19935
19936 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19937
19938         [BZ #15214]
19939         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19940         underflow.
19941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19942
19943 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19944
19945         [BZ #15304]
19946         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19947         Don't add gid passed as argument.
19948
19949         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19950
19951 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19952
19953         [BZ #15307]
19954         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19955         imaginary part between 1.0 and 1.5 and real part less than 0.5
19956         specially.
19957         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19958         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19959         * math/libm-test.inc (cacos_test): Add more tests.
19960         (casin_test): Likewise.
19961         (casinh_test): Likewise.
19962         * sysdeps/i386/fpu/libm-test-ulps: Update.
19963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19964
19965 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19966
19967         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19968         constants.
19969         (norm): Likewise.
19970         (denorm): Likewise.
19971         (__dbl_mp): Likewise.
19972         (add_magnitudes): Likewise.
19973         (sub_magnitudes): Likewise.
19974         (__add): Likewise.
19975         (__sub): Likewise.
19976         (__mul): Likewise.
19977         (__sqr): Likewise.
19978         (__inv): Likewise.
19979         (__dvd): Likewise.
19980
19981         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19982         commented code.
19983         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19984         (__dubcos): Likewise.
19985         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19986         (__ieee754_acos): Likewise.
19987         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19988         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19989         (__exp1): Likewise.
19990         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19991         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19992         (log1): Likewise.
19993         (my_log2): Likewise.
19994         (checkint): Likewise.
19995         * sysdeps/ieee754/dbl-64/e_remainder.c
19996         (__ieee754_remainder): Likewise.
19997         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19998         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19999         (bsloww): Likewise.
20000         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
20001
20002         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20003         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
20004         MANTISSA_STORE_T to store computations on mantissa.  Use
20005         macros for rounding and division.
20006         (denorm): Likewise.
20007         (__dbl_mp): Likewise.
20008         (add_magnitudes): Likewise.
20009         (sub_magnitudes): Likewise.
20010         (__mul): Likewise.
20011         (__sqr): Likewise.
20012         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20013         powers of two in terms of TWOPOW macro.
20014         (mp_no): Make type of mantissa as MANTISSA_T.
20015         [!RADIXI]: Define RADIXI.
20016         [!TWO52]: Define TWO52.
20017         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20018
20019 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20020
20021         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
20022         llroundl symbol when building for PPC32.
20023
20024 2013-03-24  Mark H Weaver  <mhw@netris.org>
20025
20026         * manual/arith.texi (Normalization Functions): Fix prototypes for
20027         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
20028
20029 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20030
20031         [BZ #13889]
20032         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
20033         high value to check if expl overflow.
20034         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
20035         to check for underflow and overflow.
20036         * math/libm-test.inc: Add exp test.
20037
20038 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
20039
20040         [BZ #11120]
20041         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
20042         with NOT_IN_libc.
20043
20044 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20045
20046         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
20047         symbol.
20048
20049 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
20050
20051         * math/gen-libm-test.pl (parse_args, special_functions): Properly
20052         wrap blocks consisting of several statements.
20053
20054         * sysdeps/generic/math-tests.h: New file.
20055         * sysdeps/i386/fpu/math-tests.h: Likewise.
20056         * math/test-snan.c: Include it.
20057         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
20058
20059 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
20060
20061         [BZ #15285]
20062         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
20063         (__ieee754_j0l): Do not improve calculations using cos of twice
20064         input for inputs above LDBL_MAX / 2.0L.
20065         (__ieee754_y0l): Likewise.
20066         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
20067         (__ieee754_j1l): Do not improve calculations using cos of twice
20068         input for inputs above LDBL_MAX / 2.0L.
20069         (__ieee754_y1l): Likewise.
20070         * math/libm-test.inc (j0_test): Add another test.
20071         (j1_test): Likewise.
20072         (y0_test): Likewise.
20073         (y1_test): Likewise.
20074         * sysdeps/i386/fpu/libm-test-ulps: Update.
20075
20076 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20077
20078         * Rules ($(objpfx)bench-%.c): Include code from a C source
20079         file.
20080
20081 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
20082
20083         [BZ #15287]
20084         * math/k_casinh.c (__kernel_casinh): Handle arguments with
20085         imaginary part 1.0 and real part less than 0.5 specially.
20086         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20087         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20088         * math/libm-test.inc (cacos_test): Add more tests.
20089         (casin_test): Likewise.
20090         (casinh_test): Likewise.
20091         * sysdeps/i386/fpu/libm-test-ulps: Update.
20092         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20093
20094 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20095
20096         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
20097         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
20098
20099 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
20100
20101         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
20102         * config.make.in (config-cflags-sse4): Remove variable.
20103         (config-cflags-avx): Likewise.
20104         (config-cflags-sse2avx): Likewise.
20105         (config-cflags-novzeroupper): Likewise.
20106         (config-asflags-i686): Likewise.
20107         (have-mfma4): Likewise.
20108         (have-as-vis3): Likewise.
20109         (MIG): Likewise.
20110         * configure.in (MIG): Do not AC_SUBST.
20111         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
20112         (libc_cv_cc_sse4): Do not AC_SUBST.
20113         (libc_cv_cc_avx): Likewise.
20114         (libc_cv_cc_sse2avx): Likewise.
20115         (libc_cv_cc_novzeroupper): Likewise.
20116         (libc_cv_cc_fma4): Likewise.
20117         (libc_cv_as_i686): Likewise.
20118         (libc_cv_sparc_as_vis3): Likewise.
20119         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
20120         LIBC_CONFIG_VAR.
20121         (config-asflags-i686): Likewise.
20122         (config-cflags-avx): Likewise.
20123         (config-cflags-sse2avx): Likewise.
20124         (have-mfma4): Likewise.
20125         (config-cflags-novzeroupper): Likewise.
20126         * sysdeps/mach/configure.in (MIG): Likewise.
20127         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
20128         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
20129         LIBC_CONFIG_VAR.
20130         (config-cflags-avx): Likewise.
20131         (config-cflags-sse2avx): Likewise.
20132         (have-mfma4): Likewise.
20133         (config-cflags-novzeroupper): Likewise.
20134         * configure: Regenerated.
20135         * sysdeps/i386/configure: Likewise.
20136         * sysdeps/mach/configure: Likewise.
20137         * sysdeps/sparc/configure: Likewise.
20138         * sysdeps/x86_64/configure: Likewise.
20139
20140 2013-03-20  Roland McGrath  <roland@hack.frob.com>
20141
20142         [BZ #14812]
20143         * locale/programs/localedef.c (options): Put N_ translation marker
20144         on argument names, not just descriptions.
20145
20146 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
20147
20148         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
20149
20150 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
20151
20152         [BZ #14176]
20153         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
20154
20155 2013-03-19  Roland McGrath  <roland@hack.frob.com>
20156
20157         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
20158         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
20159         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
20160         [!BEFORE_ABORT] (before_abort): New function.
20161         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
20162         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
20163         (writev_for_fatal): New function.
20164         (WRITEV_FOR_FATAL): New macro; call that.
20165         (backtrace_and_maps): New function.
20166         (BEFORE_ABORT): New macro; call that.
20167         (struct str_list): Type removed.
20168         (__libc_message, __libc_fatal): Functions removed.
20169         Include <sysdeps/posix/libc_fatal.c> instead.
20170
20171 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
20172
20173         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
20174         constants.
20175         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
20176         double constants.
20177
20178 2013-03-19  Andreas Schwab  <schwab@suse.de>
20179
20180         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
20181         * sysdeps/gnu/configure: Regenerate.
20182
20183         * configure.in: Substitute libc_cv_rtlddir.
20184         * configure: Regenerate.
20185         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
20186         * Makeconfig (rtlddir, inst_rtlddir): New variables.
20187         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
20188         * elf/Makefile (install-others, CFLAGS-interp.c)
20189         (ldso_install, common-ldd-rewrite): Likewise.
20190         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20191         $(inst_slibdir)/$(rtld-installed-name).
20192         * scripts/rellns-sh: Add -p option.
20193         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20194         for source.
20195
20196 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20197
20198         * manual/nptl.texi: Renamed to ...
20199         * manual/threads.texi: ... this.
20200         * manual/Makefile (chapters): Update.
20201
20202 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20203
20204         [BZ #14812]
20205         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20206         on argument names, not just descriptions.
20207         * malloc/memusagestat.c (options): Likewise.
20208         * nss/getent.c (options): Likewise.
20209
20210 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20211
20212         [BZ #14812]
20213         * iconv/iconv_prog.c (options): Put N_ translation marker
20214         on argument names, not just descriptions.
20215         * iconv/iconvconfig.c (options): Likewise.
20216
20217 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20218
20219         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20220         implementation which is faster on all x86_64 architectures.
20221         Tested on AMD, Intel Nehalem, SNB, IVB.
20222         * sysdeps/x86_64/strnlen.S: Likewise.
20223
20224         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20225         Remove all multiarch strlen and strnlen versions.
20226         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20227         Remove strlen and strnlen related parts.
20228
20229         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20230         Inline strlen part.
20231         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20232
20233         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20234         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20235         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20236         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20237         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20238         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20239
20240 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20241
20242         * manual/memory.texi (Malloc Tunable Parameters):
20243         Sort parameters alphabetically. Add comments for missing entries.
20244
20245 2013-03-17  David S. Miller  <davem@davemloft.net>
20246
20247         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20248
20249 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20250
20251         [BZ #15283]
20252         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20253         for arguments at most half maximum finite value.
20254         * math/libm-test.inc (j0_test): Add more tests.
20255         (j1_test): Likewise.
20256         (y0_test): Likewise.
20257         (y1_test): Likewise.
20258         * sysdeps/i386/fpu/libm-test-ulps: Update.
20259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20260
20261         [BZ #14155]
20262         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20263         1 / x and functions P and Q for arguments above 0x1p256L.
20264         (__ieee754_y0l): Likewise.
20265         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20266         (__ieee754_y1l): Likewise.
20267         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20268         (j1_test): Likewise.
20269         (y0_test): Likewise.
20270         (y1_test): Likewise.
20271
20272 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20273
20274         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20275         variable.
20276
20277 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20278
20279         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20280         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20281         zero since it's initialized to EXEC_PAGESIZE.
20282
20283         * sysdeps/unix/sysv/linux/ldsodefs.h
20284         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20285         * sysdeps/generic/ldsodefs.h: ... here.
20286
20287 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20288
20289         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20290
20291         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20292         math/test-snan.c.
20293         * math/test-snan.c: Renamed from
20294         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20295         * math/Makefile (tests): Add test-snan.
20296         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20297         test-powerpc-snan.
20298
20299         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20300         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20301         functions.
20302         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20303         __builtin_nan family of functions.
20304         * math/libm-test.inc (initialize): Initialize qnan_value with
20305         __builtin_nan family of functions.
20306         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20307         Remove variables.
20308         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20309         Remove functions.
20310         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20311         storage class.  Initialize qNaN_var and sNaN_var with
20312         __builtin_nan and __builtin_nans families of functions,
20313         respectively.
20314
20315         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20316         (sqrt_test): Remove duplicate test with qNaN input.
20317         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20318         (round_test, signbit_test, significand_test): Note missing +/-Inf
20319         as well as qNaN tests.
20320
20321         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20322         qNaN_var.  Fix a few strings, too.
20323         * math/libm-test.inc (nan_value): Rename to qnan_value.
20324         * math/gen-libm-test.pl (%beautify): Adjust to that.
20325         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20326         * math/test-misc.c (main): Likewise.
20327         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20328         to __qnan_bytes, and __qnan_union, respectively.
20329         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20330         Likewise.
20331         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20332         and lqnanval, respectively.
20333         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20334         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20335         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20336         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20337
20338         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20339         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20340         doubles.
20341
20342         * math/test-misc.c (main): Fix copy'n'pastos.
20343         * misc/tst-efgcvt.c (special): Likewise.
20344
20345         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20346         Remove declarations.
20347
20348 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20349
20350         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20351         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20352         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20353         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20354
20355 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20356
20357         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20358         macro to return vdso values correctly in IFUNC implementations.
20359         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20360         Optimization by using IFUNC.
20361
20362 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20363             Richard Henderson  <rth@redhat.com>
20364             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20365
20366         * Makefile.in (bench): New target.
20367         * NEWS: Mention the benchmark framework.
20368         * Rules (bench): Likewise.
20369         (binaries-bench): Generate binaries for functions to
20370         benchmark.
20371         * benchtests/Makefile: New makefile for benchmark tests.
20372         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20373         programs.
20374         * benchtests/exp-inputs: New input file for EXP function.
20375         * benchtests/pow-inputs: New input file for POW function.
20376         * scripts/bench.pl: New script to generate source files for
20377         benchmark programs.
20378
20379 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20380
20381         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20382         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20383         computations on mantissa.  Use macros for rounding and
20384         division.
20385         (denorm): Likewise.
20386         (__dbl_mp): Likewise.
20387         (add_magnitudes): Likewise.
20388         (sub_magnitudes): Likewise.
20389         (__mul): Likewise.
20390         (__sqr): Likewise.
20391         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20392         powers of two in terms of TWOPOW macro.
20393         (mp_no): Make type of mantissa as MANTISSA_T.
20394         [!RADIXI]: Define RADIXI.
20395         [!TWO52]: Define TWO52.
20396         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20397
20398         * manual/nptl.texi (cindex): Modify threads to pthreads.
20399
20400 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20401
20402         * sysdeps/x86_64/preconfigure: Regenerated.
20403
20404 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20405
20406         [BZ #14155]
20407         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20408         0x1p28 and above.
20409         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20410         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20411         0x1p28 and above.
20412         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20413         * math/libm-test.inc (j0_test): Do not allow one spurious
20414         underflow exception.
20415         (y1_test): Likewise.
20416
20417 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20418
20419         * manual/Makefile (chapters): Add nptl.
20420         * manual/debug.texi (Debugging Support): Add link to Threads
20421         chapter.
20422         * manual/nptl.texi: New file.
20423
20424         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20425
20426 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20427
20428         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20429         for non-NULL pointer before the memory validity test. Pointed
20430         out by Holger Brunck <holger.brunck@keymile.com>.
20431
20432 2013-03-13  Andreas Schwab  <schwab@suse.de>
20433
20434         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20435         instead of .os.
20436
20437 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20438
20439         * timezone/zic.c: Update from tzcode 2013b.
20440
20441 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20442
20443         * manual/install.texi (Configuring and compiling):
20444         Mention i686 and i586.
20445         * INSTALL: Regenerate.
20446
20447 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20448
20449         * sysdeps/init_array/elf-init.c: New file.
20450         * csu/elf-init.c
20451         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20452         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20453
20454         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20455         __gmon_start__ as global, but as static with a .preinit_array pointer.
20456         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20457         * sysdeps/init_array/crti.S: New file, empty except for comments.
20458         * sysdeps/init_array/crtn.S: Likewise.
20459
20460 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20461
20462         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20463         definining bcopy.
20464         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20465         Remove Prefer_SSE_for_memop.
20466         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20467         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20468         HAS_PREFER_SSE_FOR_MEMOP.
20469         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20470         memset-x86-64.
20471         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20472         Remove bzero, memset ifunc support.
20473         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20474         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20475         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20476         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20477
20478 2013-03-11  Andreas Schwab  <schwab@suse.de>
20479
20480         [BZ #15234]
20481         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20482         by SHLIB_COMPAT.
20483         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20484         (GLIBC_2.16): Remove pthread_atfork.
20485
20486 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20487
20488         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20489         (ptestcases.h): Likewise.
20490
20491 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20492
20493         * Makeconfig ($(common-objpfx)config.status): Depend on
20494         sysdeps/*/preconfigure{,.in} too.
20495
20496 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20497
20498         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20499         (__free_hook): Use void * instead of __malloc_ptr_t.
20500         (__malloc_hook): Likewise.
20501         (__realloc_hook): Likewise.
20502         (__memalign_hook): Likewise.
20503         (__after_morecore_hook): Likewise.
20504         * malloc/arena.c (save_malloc_hook): Likewise.
20505         (save_free_hook): Likewise.
20506         * malloc/hooks.c (malloc_hook_ini): Likewise.
20507         (realloc_hook_ini): Likewise.
20508         (memalign_hook_ini): Likewise.
20509         * malloc/malloc.c (malloc_hook_ini): Likewise.
20510         (realloc_hook_ini): Likewise.
20511         (memalign_hook_ini): Likewise.
20512         (__free_hook): Likewise.
20513         (__malloc_hook): Likewise.
20514         (__realloc_hook): Likewise.
20515         (__memalign_hook): Likewise.
20516         (__libc_malloc): Likewise.
20517         (__libc_free): Likewise.
20518         (__libc_realloc): Likewise.
20519         (__libc_memalign): Likewise.
20520         (__libc_valloc): Likewise.
20521         (__libc_pvalloc): Likewise.
20522         (__libc_calloc): Likewise.
20523         (__posix_memalign): Likewise.
20524         * malloc/morecore.c (__sbrk): Likewise.
20525         (__default_morecore): Likewise.
20526
20527         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20528
20529         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20530         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20531         __malloc_ptrdiff_t.
20532
20533         * malloc/malloc.h (__malloc_size_t): Remove macro.
20534         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
20535         __malloc_size_t.
20536         (old_memalign_hook): Likewise.
20537         (old_realloc_hook): Likewise.
20538         (struct hdr): Likewise.
20539         (flood): Likewise.
20540         (mallochook): Likewise.
20541         (memalignhook): Likewise.
20542         (reallochook): Likewise.
20543         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
20544         (tr_old_realloc_hook): Likewise.
20545         (tr_old_memalign_hook): Likewise.
20546         (tr_mallochook): Likewise.
20547         (tr_reallochook): Likewise.
20548         (tr_memalignhook): Likewise.
20549
20550 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20551
20552         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
20553         default_ldbl_pack and using as default implementation.
20554         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
20555         implementation.
20556         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
20557         redundant definition.
20558         (ldbl_insert_mantissa): Likewise.
20559         (ldbl_canonicalize): Likewise.
20560         (ldbl_nearbyint): Likewise.
20561         (ldbl_pack): Rename to ldbl_pack_ppc.
20562         (ldbl_unpack): Rename to ldbl_unpack_ppc.
20563         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
20564         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
20565
20566 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20567
20568         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
20569         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
20570         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
20571         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
20572         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
20573         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
20574         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20575         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20576
20577 2013-03-07  Andreas Jaeger  <aj@suse.de>
20578
20579         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20580         bits/mman-linux.h.
20581
20582 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20583
20584         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20585         Include mpa.h and declare __MPEXP.
20586         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20587         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20588         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20589         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20590         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20591         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20592         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20593
20594         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20595         (__slowpow): Use long double EXPL and LOGL functions to
20596         compute POW.
20597         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20598         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20599         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20600         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20601         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20602         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20603
20604         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20605         intermediate variable to calculate exponent.
20606         (__sqr): Likewise.
20607         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20608         Likewise.
20609         (__sqr): Likewise.
20610
20611         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20612         [!NO__SQR]: Define __sqr.
20613         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20614         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20615         sysdeps/ieee754/dbl-64/mpa.c.
20616         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20617
20618         [BZ #12723]
20619         * posix/Makefile (tests): Add tst-pathconf.
20620         * posix/tst-pathconf.c: New test case.
20621         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20622         _PC_PIPE_BUF.
20623         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20624
20625 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20626
20627         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20628
20629 2013-03-06  Andreas Jaeger  <aj@suse.de>
20630
20631         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20632         definition via __MAP_ANONYMOUS.
20633
20634         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20635         it's not part of Linux headers.
20636
20637         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20638         (MAP_HUGE_MASK): Define.
20639
20640         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20641         Define.
20642         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20643         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20644         Define.
20645         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20646         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20647         Define.
20648         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20649         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20650         Define.
20651         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20652
20653         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20654         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20655         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20656         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20657         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20658         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20659
20660         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20661         Handle f2fs.
20662
20663         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20664         Handle f2fs and efivarfs.
20665
20666         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20667         f2fs.
20668
20669         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20670         (EFIVARFS_MAGIC): Add.
20671         (F2FS_LINK_MAX): Add.
20672
20673 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20674
20675         * stdio-common/vfprintf.c: Replace __builtin_expect with
20676         __glibc_unlikely.
20677
20678 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20679
20680         [BZ #13550]
20681         * sysdeps/generic/bp-sym.h: Remove file.
20682         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20683         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20684         <bp-sym.h> and <bp-asm.h>.
20685         (__longjmp): Don't use BP_SYM.
20686         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20687         and <bp-asm.h>.
20688         (memcpy): Don't use BP_SYM.
20689         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20690         <bp-sym.h> and <bp-asm.h>.
20691         (memcpy): Don't use BP_SYM.
20692         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20693         <bp-asm.h>.
20694         (memcpy): Don't use BP_SYM.
20695         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20696         <bp-asm.h>.
20697         (memset): Don't use BP_SYM.
20698         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20699         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20700         (__bzero): Don't use BP_SYM.
20701         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20702         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20703         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
20704         <bp-sym.h> and <bp-asm.h>.
20705         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20706         pointers.
20707         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20708         <bp-sym.h> and <bp-asm.h>.
20709         (memcpy): Don't use BP_SYM.
20710         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
20711         <bp-sym.h> and <bp-asm.h>.
20712         (memset): Don't use BP_SYM.
20713         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20714         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20715         (__bzero): Don't use BP_SYM.
20716         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20717         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20718         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
20719         <bp-sym.h> and <bp-asm.h>.
20720         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20721         pointers.
20722         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20723         <bp-sym.h> and <bp-asm.h>.
20724         (memcpy): Don't use BP_SYM.
20725         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20726         <bp-sym.h> and <bp-asm.h>.
20727         (memset): Don't use BP_SYM.
20728         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20729         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20730         (__bzero): Don't use BP_SYM.
20731         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20732         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20733         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20734         <bp-sym.h> and <bp-asm.h>.
20735         (__memchr): Don't use BP_SYM.
20736         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20737         <bp-sym.h> and <bp-asm.h>.
20738         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20739         pointers.
20740         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20741         <bp-sym.h> and <bp-asm.h>.
20742         (memcpy): Don't use BP_SYM.
20743         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20744         <bp-sym.h> and <bp-asm.h>.
20745         (__mempcpy): Don't use BP_SYM.
20746         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20747         <bp-sym.h> and <bp-asm.h>.
20748         (__memrchr): Don't use BP_SYM.
20749         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20750         <bp-sym.h> and <bp-asm.h>.
20751         (memset): Don't use BP_SYM.
20752         (__bzero): Likewise.
20753         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20754         <bp-sym.h> and <bp-asm.h>.
20755         (__rawmemchr): Don't use BP_SYM.
20756         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20757         <bp-sym.h> and <bp-asm.h>.
20758         (__STRCMP): Don't use BP_SYM.
20759         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20760         <bp-sym.h> and <bp-asm.h>.
20761         (strchr): Don't use BP_SYM.
20762         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20763         <bp-sym.h> and <bp-asm.h>.
20764         (__strchrnul): Don't use BP_SYM.
20765         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20766         <bp-sym.h> and <bp-asm.h>.
20767         (strlen): Don't use BP_SYM.
20768         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20769         <bp-sym.h> and <bp-asm.h>.
20770         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20771         pointers.
20772         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20773         <bp-sym.h> and <bp-asm.h>.
20774         (__strnlen): Don't use BP_SYM.
20775         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20776         <bp-sym.h> and <bp-asm.h>.
20777         (__GI__setjmp): Don't use BP_SYM.
20778         (_setjmp): Likewise.
20779         (__sigsetjmp): Likewise.
20780         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20781         (L(start_addresses)): Don't use BP_SYM.
20782         (_start): Likewise.
20783         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20784         <bp-asm.h>.
20785         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20786         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20787         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20788         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20789         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20790         <bp-asm.h>.
20791         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20792         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20793         about bounded pointers.
20794         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20795         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20796         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20797         <bp-asm.h>.
20798         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20799         about bounded pointers.  Remove GKM FIXME comments.
20800         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20801         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20802         <bp-asm.h>.
20803         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20804         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20805         Remove GKM FIXME comments.
20806         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20807         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20808         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20809         <bp-asm.h>.
20810         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20811         about bounded pointers.  Remove GKM FIXME comment.
20812         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20813         and <bp-asm.h>.
20814         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20815         pointers.
20816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20817         <bp-sym.h> and <bp-asm.h>.
20818         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20820         <bp-sym.h> and <bp-asm.h>.
20821         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20822         comment.
20823
20824 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20825
20826         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20827         call free(NULL).
20828
20829 2013-03-05  David S. Miller  <davem@davemloft.net>
20830
20831         * po/es.po: Update from translation team.
20832
20833 2013-03-05  Andreas Jaeger  <aj@suse.de>
20834
20835         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20836         <bits/mman-linux.h>.
20837         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20838         is fine.
20839         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20840         <bits/mman-linux.h> to end of file.
20841         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20842         is fine.
20843         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20844         <bits/mman-linux.h> to end of file.
20845         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20846         is fine.
20847         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20848         <bits/mman-linux.h> to end of file.
20849
20850         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20851         (MCL_CURRENT, MCL_FUTURE): Define here.
20852
20853 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20854
20855         [BZ #15232]
20856         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20857         attribute_hidden.
20858         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20859
20860 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20861
20862         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20863         fourth parameter needed for rt_sigprocmask syscall.
20864         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20865         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20866         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20867         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20868         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20869         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20870
20871 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20872
20873         [BZ #13550]
20874         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20875         comment about bounded pointers.
20876         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20877         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20878
20879 2013-03-04  Andreas Jaeger  <aj@suse.de>
20880
20881         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20882         common definitions.
20883
20884         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20885         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20886         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20887         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20888         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20889         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20890
20891 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20892
20893         [BZ #15055]
20894         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20895         __ieee754_sqrl instead of __sqrl.
20896
20897 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20898
20899         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20900         * sysdeps/powerpc/fpu_control.h: ... here.
20901         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20902         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20903         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20904         * sysdeps/powerpc/bits/mathinline.h: ... here.
20905
20906 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20907
20908         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20909         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20910         to just [NEED_DL_SYSINFO_DSO].
20911         * elf/dl-support.c: Likewise.
20912         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20913         * elf/rtld.c (dl_main): Likewise.
20914         * elf/setup-vdso.h (setup_vdso): Likewise.
20915         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20916         * sysdeps/unix/sysv/linux/dl-sysdep.c
20917         (_dl_discover_osversion): Likewise.
20918
20919 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20920
20921         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20922         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20923
20924 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20925
20926         * NEWS: Mention libm performance improvements and non-x86 PI
20927         futex support.
20928
20929         * csu/libc-start.c (__pthread_initialize_minimal): Change
20930         function arguments.
20931         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20932
20933 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20934
20935         [BZ #13550]
20936         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20937         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20938         <bp-sym.h> and <bp-asm.h>.
20939         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20940         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20941         and <bp-asm.h>.
20942         (memcpy): Don't use BP_SYM.
20943         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20944         <bp-asm.h>.
20945         (__mpn_add_n): Don't use BP_SYM.
20946         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20947         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20948         and <bp-asm.h>.
20949         (__mpn_addmul_1): Don't use BP_SYM.
20950         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20951         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20952         <bp-sym.h>.
20953         (_setjmp): Don't use BP_SYM.
20954         (__novmx_setjmp): Likewise.
20955         (__GI__setjmp): Likewise.
20956         (__vmx_setjmp): Likewise.
20957         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20958         <bp-sym.h>.
20959         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20960         (__bzero): Don't use BP_SYM.
20961         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20962         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20963         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20964         <bp-sym.h> and <bp-asm.h>.
20965         (memcpy): Don't use BP_SYM.
20966         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20967         <bp-sym.h> and <bp-asm.h>.
20968         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20969         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20970         <bp-sym.h> and <bp-asm.h>.
20971         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20972         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20973         <bp-asm.h>.
20974         (__mpn_lshift): Don't use BP_SYM.
20975         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20976         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20977         <bp-asm.h>.
20978         (memset): Don't use BP_SYM.
20979         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20980         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20981         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20982         <bp-asm.h>.
20983         (__mpn_mul_1): Don't use BP_SYM.
20984         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20985         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20986         <bp-sym.h> and <bp-asm.h>.
20987         (memcmp): Don't use BP_SYM.
20988         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20989         <bp-sym.h> and <bp-asm.h>.
20990         (memcpy): Don't use BP_SYM.
20991         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20992         <bp-sym.h> and <bp-asm.h>.
20993         (memset): Don't use BP_SYM.
20994         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20995         <bp-sym.h> and <bp-asm.h>.
20996         (strncmp): Don't use BP_SYM.
20997         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20998         <bp-sym.h> and <bp-asm.h>.
20999         (memcpy): Don't use BP_SYM.
21000         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
21001         <bp-sym.h> and <bp-asm.h>.
21002         (memset): Don't use BP_SYM.
21003         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
21004         <bp-sym.h> and <bp-asm.h>.
21005         (__memchr): Don't use BP_SYM.
21006         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
21007         <bp-sym.h> and <bp-asm.h>.
21008         (memcmp): Don't use BP_SYM.
21009         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
21010         <bp-sym.h> and <bp-asm.h>.
21011         (memcpy): Don't use BP_SYM.
21012         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
21013         <bp-sym.h> and <bp-asm.h>.
21014         (__mempcpy): Don't use BP_SYM.
21015         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
21016         <bp-sym.h> and <bp-asm.h>.
21017         (__memrchr): Don't use BP_SYM.
21018         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
21019         <bp-sym.h> and <bp-asm.h>.
21020         (memset): Don't use BP_SYM.
21021         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
21022         <bp-sym.h> and <bp-asm.h>.
21023         (__rawmemchr): Don't use BP_SYM.
21024         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
21025         <bp-sym.h> and <bp-asm.h>.
21026         (__STRCMP): Don't use BP_SYM.
21027         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
21028         <bp-sym.h> and <bp-asm.h>.
21029         (strchr): Don't use BP_SYM.
21030         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
21031         <bp-sym.h> and <bp-asm.h>.
21032         (__strchrnul): Don't use BP_SYM.
21033         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
21034         <bp-sym.h> and <bp-asm.h>.
21035         (strlen): Don't use BP_SYM.
21036         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
21037         <bp-sym.h> and <bp-asm.h>.
21038         (strncmp): Don't use BP_SYM.
21039         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
21040         <bp-sym.h> and <bp-asm.h>.
21041         (__strnlen): Don't use BP_SYM.
21042         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
21043         <bp-asm.h>.
21044         (__mpn_rshift): Don't use BP_SYM.
21045         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21046         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
21047         <bp-sym.h> and <bp-asm.h>.
21048         (__sigsetjmp): Don't use BP_SYM.
21049         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
21050         (L(start_addresses)): Don't use BP_SYM.
21051         (_start): Likewise.
21052         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
21053         <bp-asm.h>.
21054         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
21055         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21056         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21057         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
21058         <bp-asm.h>.
21059         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
21060         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21061         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21062         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
21063         <bp-asm.h>.
21064         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
21065         comments.
21066         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21067         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
21068         <bp-asm.h>.
21069         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
21070         FIXME comments.
21071         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21072         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21073         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
21074         <bp-asm.h>.
21075         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
21076         comment.
21077         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
21078         and <bp-asm.h>.
21079         (strncmp): Don't use BP_SYM,
21080         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
21081         <bp-asm.h>.
21082         (__mpn_sub_n): Don't use BP_SYM.
21083         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21084         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
21085         and <bp-asm.h>.
21086         (__mpn_submul_1): Don't use BP_SYM.
21087         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
21089         <bp-sym.h> and <bp-asm.h>.
21090         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
21091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
21092         <bp-sym.h> and <bp-asm.h>.
21093         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
21094         comment.
21095
21096 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21097
21098         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
21099         Use ZK to minimize writes to Z.
21100         (sub_magnitudes): Simplify code a bit.
21101         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
21102         Use ZK to minimize writes to Z.
21103         (sub_magnitudes): Simplify code a bit.
21104
21105 2013-02-27  Roland McGrath  <roland@hack.frob.com>
21106
21107         * csu/gmon-start.c: Add special exception to license text.
21108
21109 2013-02-27  Richard Henderson  <rth@redhat.com>
21110
21111         * scripts/config.guess: Update from config.git.
21112         * scripts/config.sub: Likewise.
21113
21114 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
21115
21116         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
21117
21118         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
21119
21120         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
21121
21122         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
21123
21124         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
21125
21126 2013-02-26  Roland McGrath  <roland@hack.frob.com>
21127
21128         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
21129         [$(build-shared = yes].
21130
21131 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21132
21133         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
21134         (__mul): Reduce iterations for calculating mantissa.
21135
21136         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
21137         MPTWO.
21138         (__mpranred): Likewise.
21139
21140         [BZ #15160]
21141         * malloc/memusagestat.c (main): Draw graphs for heap and stack
21142         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
21143
21144 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21145
21146         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
21147         Define __attribute__.
21148
21149 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21150
21151         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
21152         unused.
21153         * posix/regex_internal.h (__attribute): Remove.
21154         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
21155         (re_string_context_at): Likewise.
21156         (bitset_not): Use __attribute__ and mark function as possibly
21157         unused.
21158         (bitset_merge): Likewise.
21159         (bitset_mask): Likewise.
21160         (re_string_char_size_at): Likewise.
21161         (re_string_wchar_at): Likewise.
21162         (re_string_elem_size_at): Likewise.
21163
21164 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
21165
21166         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
21167         code.
21168         (cc32): Likewise.
21169
21170         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
21171         (__acr): Likewise.
21172         (__cpy): Likewise.
21173         (norm): Likewise.
21174         (denorm): Likewise.
21175         (__dbl_mp): Likewise.
21176         (add_magnitudes): Likewise.
21177         (sub_magnitudes): Likewise.
21178         (__mul): Likewise.
21179         (__inv): Likewise.
21180
21181         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
21182         style.
21183
21184         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
21185         style.
21186
21187         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
21188         code.
21189
21190         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21191         up changes with default code.
21192         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21193         Likewise.
21194
21195 2013-02-24  Allan McRae  <allan@archlinux.org>
21196
21197         * manual/socket.texi (The Internet Namespace): Order menu items
21198         to match that in the file.
21199
21200         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21201         node listing of the info page menu.
21202
21203 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21204
21205         [BZ #13550]
21206         * sysdeps/i386/bp-asm.h: Remove file.
21207         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21208         (PARMS): Do not use macros from bp-asm.h.
21209         (S1): Likewise.
21210         (S2): Likewise.
21211         (SIZE): Likewise.
21212         (__mpn_add_n): Do not use BP_SYM
21213         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21214         "bp-asm.h".
21215         (PARMS): Do not use macros from bp-asm.h.
21216         (S1): Likewise.
21217         (SIZE): Likewise.
21218         (__mpn_addmul_1): Do not use BP_SYM
21219         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21220         "bp-asm.h".
21221         (PARMS): Do not use macros from bp-asm.h.
21222         (SIGMSK): Likewise.
21223         (_setjmp): Likewise.  Do not use BP_SYM.
21224         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21225         "bp-asm.h".
21226         (PARMS): Do not use macros from bp-asm.h.
21227         (SIGMSK): Likewise.
21228         (setjmp): Likewise.  Do not use BP_SYM.
21229         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21230         "bp-asm.h".
21231         (PARMS): Do not use macros from bp-asm.h.
21232         (__frexp): Do not use BP_SYM.
21233         (frexp): Likewise.
21234         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21235         "bp-asm.h".
21236         (PARMS): Do not use macros from bp-asm.h.
21237         (__frexpf): Do not use BP_SYM.
21238         (frexpf): Likewise.
21239         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21240         "bp-asm.h".
21241         (PARMS): Do not use macros from bp-asm.h.
21242         (__frexpl): Do not use BP_SYM.
21243         (frexpl): Likewise.
21244         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21245         "bp-asm.h".
21246         (PARMS): Do not use macros from bp-asm.h.
21247         (__remquo): Do not use BP_SYM.
21248         (remquo): Likewise.
21249         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21250         "bp-asm.h".
21251         (PARMS): Do not use macros from bp-asm.h.
21252         (__remquof): Do not use BP_SYM.
21253         (remquof): Likewise.
21254         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21255         "bp-asm.h".
21256         (PARMS): Do not use macros from bp-asm.h.
21257         (__remquol): Do not use BP_SYM.
21258         (remquol): Likewise.
21259         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21260         "bp-asm.h".
21261         (PARMS): Do not use macros from bp-asm.h.
21262         (DEST): Likewise.
21263         (SRC): Likewise.
21264         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21265         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21266         "bp-asm.h".
21267         (PARMS): Do not use macros from bp-asm.h.
21268         (strlen): Do not use BP_SYM.
21269         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21270         "bp-asm.h".
21271         (PARMS): Do not use macros from bp-asm.h.
21272         (S1): Likewise.
21273         (S2): Likewise.
21274         (SIZE): Likewise.
21275         (__mpn_add_n): Do not use BP_SYM.
21276         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21277         "bp-asm.h".
21278         (PARMS): Do not use macros from bp-asm.h.
21279         (S1): Likewise.
21280         (SIZE): Likewise.
21281         (__mpn_addmul_1): Do not use BP_SYM.
21282         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21283         weak_alias.
21284         (bzero): Likewise.
21285         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21286         "bp-asm.h".
21287         (PARMS): Do not use macros from bp-asm.h.
21288         (S): Likewise.
21289         (SIZE): Likewise.
21290         (__mpn_lshift): Do not use BP_SYM.
21291         * sysdeps/i386/i586/memcpy.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         (memcpy): Likewise.  Do not use BP_SYM.
21298         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21299         libc_hidden_def and weak_alias.
21300         (mempcpy): Do not use BP_SYM in weak_alias.
21301         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21302         "bp-asm.h".
21303         (PARMS): Do not use macros from bp-asm.h.
21304         (DEST): Likewise.
21305         (LEN): Likewise.
21306         [!BZERO_P] (CHR): Likewise.
21307         (memset): Likewise.  Do not use BP_SYM.
21308         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21309         "bp-asm.h".
21310         (PARMS): Do not use macros from bp-asm.h.
21311         (S1): Likewise.
21312         (SIZE): Likewise.
21313         (__mpn_mul_1): Do not use BP_SYM.
21314         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21315         "bp-asm.h".
21316         (PARMS): Do not use macros from bp-asm.h.
21317         (S): Likewise.
21318         (SIZE): Likewise.
21319         (__mpn_rshift): Do not use BP_SYM.
21320         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21321         "bp-asm.h".
21322         (PARMS): Do not use macros from bp-asm.h.
21323         (STR): Likewise.
21324         (CHR): Likewise.
21325         (strchr): Likewise.  Do not use BP_SYM.
21326         (index): Do not use BP_SYM in weak_alias.
21327         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21328         "bp-asm.h".
21329         (PARMS): Do not use macros from bp-asm.h.
21330         (DEST): Likewise.
21331         (SRC): Likewise.
21332         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21333         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21334         "bp-asm.h".
21335         (PARMS): Do not use macros from bp-asm.h.
21336         (strlen): Do not use BP_SYM.
21337         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21338         "bp-asm.h".
21339         (PARMS): Do not use macros from bp-asm.h.
21340         (S1): Likewise.
21341         (S2): Likewise.
21342         (SIZE): Likewise.
21343         (__mpn_sub_n): Do not use BP_SYM.
21344         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21345         "bp-asm.h".
21346         (PARMS): Do not use macros from bp-asm.h.
21347         (S1): Likewise.
21348         (SIZE): Likewise.
21349         (__mpn_submul_1): Do not use BP_SYM.
21350         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21351         "bp-asm.h".
21352         (PARMS): Do not use macros from bp-asm.h.
21353         (S1): Likewise.
21354         (S2): Likewise.
21355         (SIZE): Likewise.
21356         (__mpn_add_n): Do not use BP_SYM.
21357         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21358         weak_alias.
21359         (bzero): Likewise.
21360         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21361         "bp-asm.h".
21362         (PARMS): Do not use macros from bp-asm.h.
21363         (BLK2): Likewise.
21364         (LEN): Likewise.
21365         (memcmp): Do not use BP_SYM.
21366         (bcmp): Do not use BP_SYM in weak_alias.
21367         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
21368         "bp-asm.h".
21369         (PARMS): Do not use macros from bp-asm.h.
21370         (DEST): Likewise.
21371         (SRC): Likewise.
21372         (LEN): Likewise.
21373         (memcpy): Likewise.  Do not use BP_SYM.
21374         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
21375         "bp-asm.h".
21376         (PARMS): Do not use macros from bp-asm.h.
21377         (DEST): Likewise.
21378         (SRC): Likewise.
21379         (LEN): Likewise.
21380         (memmove): Likewise.  Do not use BP_SYM.
21381         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
21382         "bp-asm.h".
21383         (PARMS): Do not use macros from bp-asm.h.
21384         (DEST): Likewise.
21385         (SRC): Likewise.
21386         (LEN): Likewise.
21387         (__mempcpy): Likewise.  Do not use BP_SYM.
21388         (mempcpy): Do not use BP_SYM in weak_alias.
21389         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21390         "bp-asm.h".
21391         (PARMS): Do not use macros from bp-asm.h.
21392         (DEST): Likewise.
21393         (LEN): Likewise.
21394         [!BZERO_P] (CHR): Likewise.
21395         (memset): Likewise.  Do not use BP_SYM.
21396         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21397         "bp-asm.h".
21398         (PARMS): Do not use macros from bp-asm.h.
21399         (STR2): Likewise.
21400         (strcmp): Do not use BP_SYM.
21401         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21402         "bp-asm.h".
21403         (PARMS): Do not use macros from bp-asm.h.
21404         (STR): Likewise.
21405         (DELIM): Likewise.
21406         [USE_AS_STRTOK_R] (SAVE): Likewise.
21407         (FUNCTION): Likewise.  Do not use BP_SYM.
21408         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21409         aliases.
21410         (strtok_r): Likewise.
21411         (__GI___strtok_r): Likewise.
21412         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21413         (PARMS): Do not use macros from bp-asm.h.
21414         (S): Likewise.
21415         (SIZE): Likewise.
21416         (__mpn_lshift): Do not use BP_SYM.
21417         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21418         (PARMS): Do not use macros from bp-asm.h.
21419         (STR): Likewise.
21420         (CHR): Likewise.
21421         (__memchr): Do not use BP_SYM.
21422         (memchr): Do not use BP_SYM in weak_alias.
21423         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21424         (PARMS): Do not use macros from bp-asm.h.
21425         (BLK2): Likewise.
21426         (LEN): Likewise.
21427         (memcmp): Do not use BP_SYM.
21428         (bcmp): Do not use BP_SYM in weak_alias.
21429         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21430         (PARMS): Do not use macros from bp-asm.h.
21431         (S1): Likewise.
21432         (SIZE): Likewise.
21433         (__mpn_mul_1): Do not use BP_SYM.
21434         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21435         "bp-asm.h".
21436         (PARMS): Do not use macros from bp-asm.h.
21437         (STR): Likewise.
21438         (CHR): Likewise.
21439         (__rawmemchr): Do not use BP_SYM.
21440         (rawmemchr): Do not use BP_SYM in weak_alias.
21441         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21442         (PARMS): Do not use macros from bp-asm.h.
21443         (S): Likewise.
21444         (SIZE): Likewise.
21445         (__mpn_rshift): Do not use BP_SYM.
21446         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21447         (PARMS): Do not use macros from bp-asm.h.
21448         (SIGMSK): Likewise.
21449         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21450         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21451         (_start): Do not use BP_SYM.
21452         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21453         (PARMS): Do not use macros from bp-asm.h.
21454         (DEST): Likewise.
21455         (SRC): Likewise.
21456         (__stpcpy): Likewise.  Do not use BP_SYM.
21457         (stpcpy): Do not use BP_SYM in weak_alias.
21458         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21459         "bp-asm.h".
21460         (PARMS): Do not use macros from bp-asm.h.
21461         (DEST): Likewise.
21462         (SRC): Likewise.
21463         (LEN): Likewise.
21464         (__stpncpy): Likewise.  Do not use BP_SYM.
21465         (stpncpy): Do not use BP_SYM in weak_alias.
21466         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21467         (PARMS): Do not use macros from bp-asm.h.
21468         (STR): Likewise.
21469         (CHR): Likewise.
21470         (strchr): Likewise.  Do not use BP_SYM.
21471         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21472         "bp-asm.h".
21473         (PARMS): Do not use macros from bp-asm.h.
21474         (STR): Likewise.
21475         (CHR): Likewise.
21476         (__strchrnul): Likewise.  Do not use BP_SYM.
21477         (strchrnul): Do not use BP_SYM in weak_alias.
21478         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21479         "bp-asm.h".
21480         (PARMS): Do not use macros from bp-asm.h.
21481         (STOP): Likewise.
21482         (strcspn): Do not use BP_SYM.
21483         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21484         "bp-asm.h".
21485         (PARMS): Do not use macros from bp-asm.h.
21486         (STR): Likewise.
21487         (STOP): Likewise.
21488         (strpbrk): Likewise.  Do not use BP_SYM.
21489         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21490         "bp-asm.h".
21491         (PARMS): Do not use macros from bp-asm.h.
21492         (STR): Likewise.
21493         (CHR): Likewise.
21494         (strrchr): Likewise.  Do not use BP_SYM.
21495         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21496         (PARMS): Do not use macros from bp-asm.h.
21497         (SKIP): Likewise.
21498         (strspn): Do not use BP_SYM.
21499         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21500         (PARMS): Do not use macros from bp-asm.h.
21501         (STR): Likewise.
21502         (DELIM): Likewise.
21503         (SAVE): Likewise.
21504         (FUNCTION): Likewise.  Do not use BP_SYM.
21505         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21506         aliases.
21507         (strtok_r): Likewise.
21508         (__GI___strtok_r): Likewise.
21509         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21510         (PARMS): Do not use macros from bp-asm.h.
21511         (S1): Likewise.
21512         (S2): Likewise.
21513         (SIZE): Likewise.
21514         (__mpn_sub_n): Do not use BP_SYM.
21515         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21516         "bp-asm.h".
21517         (PARMS): Do not use macros from bp-asm.h.
21518         (S1): Likewise.
21519         (SIZE): Likewise.
21520         (__mpn_submul_1): Do not use BP_SYM.
21521         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21522         <bp-sym.h>.
21523         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21524         and <bp-asm.h>.
21525         (PARMS): Do not use macros from bp-asm.h.
21526         (FLAGS): Likewise.
21527         (PTID): Likewise.
21528         (TLS): Likewise.
21529         (CTID): Likewise.
21530         (__clone): Do not use BP_SYM.
21531         (clone): Do not use BP_SYM in weak_alias.
21532         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
21533         and <bp-asm.h>.
21534         (PARMS): Do not use macros from bp-asm.h.
21535         (LEN): Likewise.
21536         (__mmap64): Do not use BP_SYM.
21537         (mmap64): Do not use BP_SYM in weak_alias.
21538         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
21539         <bp-sym.h> and <bp-asm.h>.
21540         (PARMS): Do not use macros from bp-asm.h.
21541         (__posix_fadvise64_l64): Do not use BP_SYM.
21542         * sysdeps/unix/sysv/linux/i386/semtimedop.S
21543         (PARMS): Do not use macros from bp-asm.h.
21544         (NSOPS): Likewise.
21545         (semtimedop): Do not use BP_SYM.
21546         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
21547         and <bp-asm.h>.
21548
21549 2013-02-21  Allan McRae  <allan@archlinux.org>
21550
21551         * manual/message.texi (Charset conversion in gettext):
21552         Move @end statement to beginning of line.
21553
21554 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21555
21556         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
21557         static.
21558         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21559         Likewise.
21560
21561         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
21562         (denorm): Likewise.
21563         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
21564         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
21565
21566 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21567
21568         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
21569         tail-call to the resolved function if pltexit isn't needed.
21570
21571 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21572
21573         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
21574         or Y being zero as being unlikely.
21575         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21576         Likewise.
21577
21578 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21579
21580         * manual/nss.texi (System Databases and Name Service Switch):
21581         Remove frobnicate @pxref.
21582
21583 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21584
21585         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21586         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21587
21588 2013-02-20  Petr Machata  <pmachata@redhat.com>
21589
21590         * elf/elf.h (R_ARM_TARGET1): New macro.
21591         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21592         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21593         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21594         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21595         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21596         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21597         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21598         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21599         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21600         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21601         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21602         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21603         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21604         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21605         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21606         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21607         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21608         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21609         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21610         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21611         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21612         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21613         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21614         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21615         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21616         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21617         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21618         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21619         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21620         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21621         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21622         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21623         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21624         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21625         (R_ARM_THM_GOT_BREL12): Likewise.
21626         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21627         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21628         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21629         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21630         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21631         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21632         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21633         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21634         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21635
21636 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21637
21638         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21639         __attribute_used__ to __attribute__ ((unused)).
21640
21641 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21642
21643         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21644         powerpc mpa.c.
21645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21646         comment formatting.
21647         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21648
21649 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21650
21651         [BZ #13550]
21652         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21653         Remove macro.
21654         (ENTER): Remove both macro definitions.
21655         (LEAVE): Likewise.
21656         (CHECK_BOUNDS_LOW): Likewise.
21657         (CHECK_BOUNDS_HIGH): Likewise.
21658         (CHECK_BOUNDS_BOTH): Likewise.
21659         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21660         (RETURN_BOUNDED_POINTER): Likewise.
21661         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21662         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21663         (POP_ERRNO_LOCATION_RETURN): Likewise.
21664         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21665         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21666         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21667         macros.
21668         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21669         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21670         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21671         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21672         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21673         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21674         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21675         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21676         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21677         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21678         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21679         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21680         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21681         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21682         removed macros.
21683         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21684         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21685         macros.
21686         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21687         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21688         * sysdeps/i386/i586/memset.S (memset): Likewise.
21689         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21690         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21691         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21692         macros.
21693         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21694         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21695         Change uses of L(2) to L(out).
21696         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21697         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21698         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21699         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21700         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21701         removed macros.
21702         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21703         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21704         macros.
21705         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21706         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21707         (RETURN): Do not use macro LEAVE.
21708         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21709         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21710         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21711         * sysdeps/i386/i686/memset.S (memset): Likewise.
21712         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21713         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21714         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21715         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21716         Likewise.
21717         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21718         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21719         L(1_2) and L(1_3) into L(1).
21720         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21721         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21722         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21723         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21724         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21725         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21726         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21727         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21728         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21729         macros.
21730         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21731         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21732         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21733         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21734         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21735         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21736         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21737         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21738         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21739         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21740         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21741         * sysdeps/i386/strspn.S (strspn): Likewise.
21742         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21743         conditional code.
21744         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21745         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21746         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21747         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21748         L(1_3) into L(1_1).
21749         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21750         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21751         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21752         macros.
21753         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21754
21755 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21756
21757         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21758         macro.
21759
21760 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21761
21762         * math/atest-exp.c (exp_mpn): Remove ROUND.
21763         * math/atest-exp2.c (exp_mpn): Likewise.
21764         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21765
21766         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21767         * stdlib/tst-tls-atexit-lib.c: Likewise.
21768         * stdlib/tst-tls-atexit.c: Likewise.
21769
21770 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21771
21772         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21773         and __attribute_alloc_size__.
21774
21775 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21776
21777         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21778         __attribute_alloc_size__.
21779         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21780         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21781
21782 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21783
21784         * include/programs/xmalloc.h: New file.
21785         * catgets/gencat.c: Include it.
21786         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21787         * elf/pldd.c: Likewise.
21788         * iconv/iconv_charmap.c: Likewise.
21789         * iconv/iconvconfig.c: Likewise.
21790         * iconv/strtab.c: Likewise.
21791         * locale/programs/locale.c: Likewise.
21792         * locale/programs/localedef.h: Likewise.
21793         * locale/programs/simple-hash.c: Likewise.
21794         * nscd/nscd.h: Likewise.
21795         * nss/makedb.c: Likewise.
21796         * sysdeps/generic/ldconfig.h: Likewise.
21797
21798 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21799
21800         * Versions.def: Add GLIBC_2.18.
21801         * include/link.h (struct link_map): New member l_tls_dtor_count.
21802         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21803         (__call_tls_dtors): Likewise.
21804         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21805         __cxa_thread_atexit_impl.
21806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21807         Likewise.
21808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21809         Likewise.
21810         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21811         Likewise.
21812         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21813         Likewise.
21814         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21815         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21816         Likewise.
21817         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21818         Likewise.
21819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21820         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21821         Likewise.
21822         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21823         (tests): Add test case tst-tls-atexit.
21824         (modules-names): Add shared library for tst-tls-atexit.
21825         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21826         (GLIBC_PRIVATE): Add __call_tls_dtors.
21827         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21828         for libstdc++.
21829         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21830         * stdlib/tst-tls-atexit.c: New test case.
21831         * stdlib/tst-tls-atexit-lib.c: New test case.
21832
21833         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21834
21835         * elf/Versions (ld): Add _dl_find_dso_for_object.
21836         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21837         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21838         (dl_open_worker): Use _dl_find_dso_for_object.
21839         * elf/dl-sym.c (do_sym): Likewise.
21840         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21841
21842 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21843
21844         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21845         Syntactic changes only.
21846         (_dl_runtime_profile): Do a tail-call to the resolved function.
21847
21848 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21849
21850         [BZ #13550]
21851         * sysdeps/x86_64/bp-asm.h: Remove file.
21852         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21853         <bp-sym.h> and <bp-asm.h>.
21854         (__clone): Do not use BP_SYM.
21855         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21856         <bp-sym.h> and <bp-asm.h>.
21857         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21858         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21859         "bp-asm.h".
21860         (_setjmp): Do not use BP_SYM.
21861         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21862         "bp-asm.h".
21863         (setjmp): Do not use BP_SYM.
21864         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21865         libc_hidden_def.
21866         (mempcpy): Do not use BP_SYM in weak_alias.
21867         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21868         "bp-asm.h".
21869         (strchr): Do not use BP_SYM.
21870         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21871         "bp-asm.h".
21872         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21873         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21874         (_start): Do not use BP_SYM.
21875         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21876         "bp-asm.h".
21877         (strcat): Do not use BP_SYM.
21878         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21879         "bp-asm.h".
21880         (STRCMP): Do not use BP_SYM.
21881         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21882         "bp-asm.h".
21883         (STRCPY): Do not use BP_SYM.
21884         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21885         "bp-asm.h".
21886         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21887         "bp-asm.h".
21888         (FUNCTION): Do not use BP_SYM.
21889         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21890         weak_alias.
21891         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21892
21893 2013-02-17  Andreas Jaeger  <aj@suse.de>
21894
21895         * time/Versions: Sort entries.
21896         * string/Versions: Likewise.
21897         * resolv/Versions: Likewise.
21898         * posix/Versions: Likewise.
21899         * iconv/Versions: Likewise.
21900         * elf/Versions: Likewise.
21901         * wcsmbs/Versions: Likewise.
21902
21903 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21904
21905         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21906         loop termination condition.
21907
21908         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21909         variable to calculate EZ.
21910         (__sqr): Likewise.
21911
21912         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21913         the lower precision input.
21914
21915 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21916
21917         [BZ #13550]
21918         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21919         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21920         (run-via-rtld-prefix): Do not handle %-bp tests.
21921         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21922         (all-object-suffixes): Remove .ob.
21923         (bppfx): Remove variable.
21924         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21925         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21926         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21927         [$(build-bounded) = yes] (libtype.ob): Likewise.
21928         * Makerules (elide-routines.ob): Remove variable.
21929         (do-tests-clean): Do not handle *-bp.out.
21930         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21931         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21932         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21933         (tests): Do not include $(tests-bp.out).
21934         (xtests): Do not include $(xtests-bp.out).
21935         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21936         [$(build-bounded) = yes] ($(addprefix
21937         $(objpfx),$(binaries-bounded))): Remove rule.
21938         ($(objpfx)%-bp.out): Remove rule.
21939         * config.make.in (build-bounded): Remove variable.
21940         * crypt/Makefile [$(build-bounded) = yes]
21941         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21942         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21943         append to variable.
21944         [$(build-bounded) = yes] (install-lib): Likewise.
21945         [$(build-bounded) = yes] (generated): Likewise.
21946         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21947         Remove rule.
21948         * intl/Makefile [$(build-bounded) = yes]
21949         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21950         * math/Makefile [$(build-bounded) = yes]
21951         ($(tests:%=$(objpfx)%-bp): Likewise.
21952         * misc/Makefile [$(build-bounded) = yes]
21953         ($(objpfx)tst-tsearch-bp): Likewise.
21954         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21955         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21956         Remove dependency.
21957         * string/Makefile (o-objects.ob): Remove variable.
21958         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21959         (CFLAGS-.ob): Remove variable.
21960         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21961         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21962         both definitions of variable.
21963         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21964         (ASFLAGS-.ob): Remove variable.
21965
21966 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21967
21968         [BZ #13550]
21969         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21970         Remove __BOUNDED_POINTERS__ from condition.
21971         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21972         * string/bits/string2.h [!__NO_STRING_INLINES &&
21973         !__BOUNDED_POINTERS__]: Likewise.
21974         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21975         Likewise.
21976         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21977         Remove conditional code.
21978         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21979         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21980         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21981         condition.
21982
21983         [BZ #13550]
21984         * csu/libc-start.c: Do not include <bp-sym.h>.
21985         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21986         * elf/dl-open.c: Do not include <bp-sym.h>.
21987         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21988         * math/fegetenv.c: Do not include <bp-sym.h>.
21989         (fegetenv): Do not use BP_SYM in versioned symbols.
21990         * nptl/sysdeps/pthread/bits/libc-lockP.h
21991         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21992         <bp-sym.h>.
21993         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21994         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21995         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21996         (__pthread_mutex_destroy): Likewise.
21997         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21998         (__pthread_mutex_lock): Likewise.
21999         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22000         (__pthread_mutex_trylock): Likewise.
22001         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22002         (__pthread_mutex_unlock): Likewise.
22003         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22004         (__pthread_mutexattr_init): Likewise.
22005         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22006         (__pthread_mutexattr_destroy): Likewise.
22007         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22008         (__pthread_mutexattr_settype): Likewise.
22009         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22010         (__pthread_rwlock_init): Likewise.
22011         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22012         (__pthread_rwlock_destroy): Likewise.
22013         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22014         (__pthread_rwlock_rdlock): Likewise.
22015         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22016         (__pthread_rwlock_tryrdlock): Likewise.
22017         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22018         (__pthread_rwlock_wrlock): Likewise.
22019         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22020         (__pthread_rwlock_trywrlock): Likewise.
22021         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22022         (__pthread_rwlock_unlock): Likewise.
22023         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22024         (__pthread_key_create): Likewise.
22025         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22026         (__pthread_setspecific): Likewise.
22027         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22028         (__pthread_getspecific): Likewise.
22029         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
22030         Likewise.
22031         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22032         (_pthread_cleanup_push_defer): Likewise.
22033         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22034         (_pthread_cleanup_pop_restore): Likewise.
22035         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22036         (pthread_setcancelstate): Likewise.
22037         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
22038         <bp-sym.h>.
22039         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
22040         (memchr): Do not use BP_SYM in weak_alias.
22041         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
22042         (fegetenv): Do not use BP_SYM in versioned symbols.
22043         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
22044         (fesetenv): Do not use BP_SYM in versioned symbols.
22045         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
22046         (feupdateenv): Do not use BP_SYM in versioned symbols.
22047         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
22048         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
22049         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
22050         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
22051         (open64): Do not use BP_SYM in weak_alias.
22052         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
22053         (fegetenv): Do not use BP_SYM in versioned symbols.
22054         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
22055         (fesetenv): Do not use BP_SYM in versioned symbols.
22056         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
22057         (feupdateenv): Do not use BP_SYM in versioned symbols.
22058         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
22059         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
22060         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
22061         (feraiseexcept): Do not use BP_SYM in versioned symbols.
22062         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
22063         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
22064         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
22065         <bp-sym.h>.
22066         (__libc_start_main): Do not use BP_SYM.
22067
22068 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22069
22070         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
22071         redundant return line.
22072         (norm): Likewise.
22073         (denorm): Likewise.
22074         (dbl_mp): Likewise.
22075         (sub_magnitudes): Likewise.
22076         (__add): Likewise.
22077         (__sub): Likewise.
22078         (__mul): Likewise.
22079         (__inv): Likewise.
22080         (__dvd): Likewise.
22081         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
22082         (norm): Likewise.
22083         (denorm): Likewise.
22084         (dbl_mp): Likewise.
22085         (sub_magnitudes): Likewise.
22086         (__add): Likewise.
22087         (__sub): Likewise.
22088         (__mul): Likewise.
22089         (__inv): Likewise.
22090         (__dvd): Likewise.
22091
22092         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
22093         instead of __mul.
22094         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22095         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
22096         (cc32): Likewise.
22097
22098         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
22099         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
22100         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
22101         of __mul for squares.
22102         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
22103         function
22104         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
22105         Likewise.
22106         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
22107         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22108
22109 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
22110
22111         [BZ #13550]
22112         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
22113         code.
22114         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
22115         prototype or function definition.  Rename ubp_* variables and
22116         parameters.  Remove argv definitions conditional on
22117         [__BOUNDED_POINTERS__].
22118         * debug/backtrace.c (__backtrace): Do not use __unbounded.
22119         * elf/dl-runtime.c (_dl_fixup): Likewise.
22120         * include/set-hooks.h (RUN_HOOK): Likewise.
22121         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
22122         definition.
22123         * string/strcpy.c (strcpy): Do not use __unbounded.
22124         * sysdeps/generic/frame.h (struct layout): Likewise.
22125         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
22126         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
22127         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
22128         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
22129         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
22130         (__backtrace): Likewise.
22131         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
22132         use __ptrvalue.
22133         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
22134         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
22135         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22136         Likewise.
22137         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
22138         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
22139         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
22140         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22141         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
22142         Do not use __unbounded.
22143         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
22144         Rename __unboundedrlimits parameter to rlimits in prototype.
22145         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
22146         Do not use __unbounded.
22147         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
22148         not use __ptrvalue.
22149         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22150         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
22151         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22152         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
22153         __ptrvalue or __unbounded.
22154         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
22155         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
22156         use __unbounded.
22157         (__new_msgctl): Do not use __ptrvalue.
22158         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
22159         __unbounded.
22160         (__libc_msgrcv): Do not use __ptrvalue.
22161         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
22162         startup_info): Do not use __unbounded.
22163         (__libc_start_main): Likewise.  Rename ubp_* variables and
22164         parameters.  Remove argv definitions conditional on
22165         [__BOUNDED_POINTERS__].
22166         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
22167         __ptrvalue.
22168         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
22169         use __unbounded.
22170         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
22171         or __ptrvalue.
22172         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
22173         use __unbounded.
22174         (__new_shmctl): Do not use __ptrvalue.
22175         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22176         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22177         Likewise.
22178         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22179         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
22180         (__libc_sigaction): Likewise.
22181         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
22182         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
22183         Likewise.
22184         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22185
22186 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
22187
22188         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
22189
22190         * string/mempcpy.c: Implement by calling memcpy.
22191
22192 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22193
22194         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22195
22196         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22197         evaluation.
22198
22199         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22200         values in the mantissa.
22201
22202         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22203         minimize writes to Z.
22204         (sub_magnitudes): Simplify code a bit.
22205
22206 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22207
22208         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22209         from the message.  The linker prefixes all warnings with that already.
22210
22211 2013-02-12  Andreas Schwab  <schwab@suse.de>
22212
22213         [BZ #15078]
22214         * posix/regexec.c (extend_buffers): Add parameter min_len.
22215         (check_matching): Pass minimum needed length.
22216         (clean_state_log_if_needed): Likewise.
22217         (get_subexp): Likewise.
22218         * posix/Makefile (tests): Add bug-regex34.
22219         (bug-regex34-ENV): Define.
22220         * posix/bug-regex34.c: New file.
22221
22222         [BZ #11561]
22223         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22224         elements compare against the byte sequence of it, not its name.
22225         * posix/Makefile (tests): Add bug-regex35.
22226         (bug-regex35-ENV): Define.
22227         * posix/bug-regex35.c: New file.
22228
22229 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22230
22231         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22232         comment.
22233         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22234         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22235         (CHECK_EOL): Add undef.
22236
22237 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22238
22239         * bits/stdlib-bsearch.h: New file.
22240         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22241         * stdlib/stdlib.h: Likewise.
22242
22243 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22244
22245         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22246         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22247         declaration.
22248         * manual/search.texi (Array Search Function): Add missing const in
22249         lfind prototype.
22250         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22251         declaration to use rlim_t.
22252         (Basic Scheduling Functions): Remove erroneous const from
22253         sched_getparam prototype.  Remove erroneous * from
22254         sched_get_priority_max and sched_get_priority_min prototypes.
22255         (Resource Usage): Fix summary @comment on vtimes to refer to
22256         sys/vtimes.h rather than vtimes.h.
22257         Add missing *s in vtimes prototype.
22258         (Limits on Resources): Fix ulimit prototype to return long int.
22259         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22260         prototypes to use long int rather than double.
22261         (BSD Random): Fix initstate and setstate to use char *, not void *.
22262         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22263         prototype to make second argument 'struct aiocb64 *const[]'.
22264         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22265         (Status of AIO Operations): Remove erroneous const in aio_return and
22266         aio_return64 prototypes.
22267         (Synchronizing I/O): Fix sync prototype to return void.
22268         * manual/startup.texi (Suboptions): Remove an erroneous const in
22269         getsubopt prototype.
22270         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22271         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22272         use size_t rather than int.
22273         (Scanning All Users): Likewise for getpwent_r.
22274         (Setting Groups): Add missing const to setgroups prototype.
22275         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22276         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22277         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22278         'const void *' rather than 'const char *'.
22279         (Host Address Functions): Likewise for inet_ntop.
22280         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22281         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22282         ssize_t for return value.
22283         (Sending Data): Likewise for send, sendto, sendmsg.
22284         (Socket Option Functions): Add a missing const in setsockopt prototype.
22285         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22286         use wchar_t for the argument.
22287         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22288         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22289         take no arguments.
22290         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22291         double/float/long double for second argument.
22292         Fix return types of significand, significandf, significandl.
22293         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22294         argument in fchmod prototype.
22295         (File Owner): Use uid_t and gid_t in fchown prototype.
22296         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22297         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22298         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22299         use 'const struct dirent **' as argument types to CMP function pointer
22300         argument.
22301         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22302         (File Times): Fix summary magic @comment for struct utimbuf and utime
22303         to refer to utime.h, not time.h.
22304         * manual/string.texi (Argz Functions): Add missing const in
22305         argz_extract and argz_next prototypes.
22306         (Finding Tokens in a String): Likewise for basename.
22307         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22308         (Copying and Concatenation): Fix typo in wmemmove prototype.
22309         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22310         (Signal Stack): Remove erroneous const in sigstack prototype.
22311         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22312         prototype.
22313         (Simple Calendar Time): Likewise for stime.
22314         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22315         prototype.
22316         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22317         say sys/sysctl.h instead.
22318         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22319         and vsyslog prototypes.
22320
22321 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22322
22323         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22324         Remove.
22325
22326 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22327
22328         * misc/sys/mman.h: Fix typo in mremap comment.
22329
22330 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22331
22332         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22333         the '\0' terminator.
22334
22335 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22336
22337         [BZ #13550]
22338         * debug/segfault.c: Don't include <bp-checks.h>.
22339         * sysdeps/generic/bp-checks.h: Remove file.
22340         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22341         (__GETDENTS): Don't use CHECK_N.
22342         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22343         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22344         (__getgroups): Don't use CHECK_N.
22345         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22346         (setgroups): Don't use CHECK_N.
22347         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22348         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22349         (__libc_msgrcv): Don't use CHECK_N.
22350         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22351         (__libc_msgsnd): Don't use CHECK_N.
22352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22353         <bp-checks.h>.
22354         (__libc_pread): Don't use CHECK_N.
22355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22356         include <bp-checks.h>.
22357         (__libc_pread64): Don't use CHECK_N.
22358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22359         include <bp-checks.h>.
22360         (__libc_pwrite): Don't use CHECK_N.
22361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22362         include <bp-checks.h>.
22363         (__libc_pwrite64): Don't use CHECK_N.
22364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22365         <bp-checks.h>.
22366         (__libc_pread): Don't use CHECK_N.
22367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22368         include <bp-checks.h>.
22369         (__libc_pread64): Don't use CHECK_N.
22370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22371         include <bp-checks.h>.
22372         (__libc_pwrite): Don't use CHECK_N.
22373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22374         include <bp-checks.h>.
22375         (__libc_pwrite64): Don't use CHECK_N.
22376         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22377         (do_pread): Don't use CHECK_N.
22378         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22379         (do_pread64): Don't use CHECK_N.
22380         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22381         (do_pwrite): Don't use CHECK_N.
22382         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22383         (do_pwrite64): Don't use CHECK_N.
22384         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22385         (__libc_readv): Don't use CHECK_N.
22386         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22387         (semop): Don't use CHECK_N.
22388         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22389         <bp-checks.h>.
22390         (semtimedop): Don't use CHECK_N.
22391         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22392         (__libc_pread): Don't use CHECK_N.
22393         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22394         <bp-checks.h>.
22395         (__libc_pread64): Don't use CHECK_N.
22396         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22397         <bp-checks.h>.
22398         (__libc_pwrite): Don't use CHECK_N.
22399         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22400         <bp-checks.h>.
22401         (__libc_pwrite64): Don't use CHECK_N.
22402         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22403         <bp-checks.h>.
22404         (__libc_msgrcv): Don't use CHECK_N.
22405         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22406         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22407         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22408         (__libc_writev): Don't use CHECK_N.
22409
22410 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22411
22412         * string/strcpy.c: Removed unused variable.
22413
22414         * Makeconfig (+sysdep-includes): Define with := rather than =.
22415         Use an existing include/ subdir of each sysdeps dir before it.
22416
22417 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22418
22419         * nscd/connection.c (register_traced_file): Comment function.
22420         [HAVE_INOTIFY] (union __inev): Define.
22421         [HAVE_INOTIFY] (inotify_check_files): New function.
22422         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22423         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22424         clear_db_cache.
22425         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22426
22427 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22428
22429         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22430         loaded if not already and that a failure is permanent.
22431
22432 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22433
22434         [BZ #15006]
22435         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22436         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22437
22438 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22439
22440         [BZ #13550]
22441         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22442         (CHECK_1_NULL_OK): Likewise.
22443         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22444         (__fxstat): Do not use CHECK_1.
22445         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22446         <bp-checks.h>.
22447         (___fxstat64): Do not use CHECK_1.
22448         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22449         <bp-checks.h>.
22450         (__fxstatat): Do not use CHECK_1.
22451         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22452         <bp-checks.h>.
22453         (__fxstatat64): Do not use CHECK_1.
22454         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22455         <bp-checks.h>.
22456         (__fxstat): Do not use CHECK_1.
22457         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22458         <bp-checks.h>.
22459         (__fxstatat): Do not use CHECK_1.
22460         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22461         <bp-checks.h>.
22462         (__getresgid): Do not use CHECK_1.
22463         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22464         <bp-checks.h>.
22465         (__getresuid): Do not use CHECK_1.
22466         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22467         <bp-checks.h>.
22468         (__lxstat): Do not use CHECK_1.
22469         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22470         <bp-checks.h>.
22471         (__old_msgctl): Do not use CHECK_1.
22472         (__new_msgctl): Likewise.
22473         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22474         <bp-checks.h>.
22475         (__new_setrlimit): Do not use CHECK_1.
22476         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22477         <bp-checks.h>.
22478         (__old_shmctl): Do not use CHECK_1.
22479         (__new_shmctl): Likewise.
22480         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22481         <bp-checks.h>.
22482         (__xstat): Do not use CHECK_1.
22483         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22484         (__lxstat): Do not use CHECK_1.
22485         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22486         <bp-checks.h>.
22487         (___lxstat64): Do not use CHECK_1.
22488         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22489         (__old_msgctl): Do not use CHECK_1.
22490         (__new_msgctl): Likewise.
22491         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22492         <bp-checks.h>.
22493         (__gettimeofday): Do not use CHECK_1.
22494         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22495         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22496         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22497         <bp-checks.h>.
22498         (__gettimeofday): Do not use CHECK_1.
22499         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22500         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22501         (__new_shmctl): Do not use CHECK_1.
22502         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22503         <bp-checks.h>.
22504         (do_sigtimedwait): Do not use CHECK_1.
22505         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22506         <bp-checks.h>.
22507         (do_sigwaitinfo): Do not use CHECK_1.
22508         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22509         <bp-checks.h>.
22510         (msgctl): Do not use CHECK_1.
22511         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22512         <bp-checks.h>.
22513         (shmctl): Do not use CHECK_1.
22514         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22515         (ustat): Do not use CHECK_1.
22516         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22517         <bp-checks.h>.
22518         (__fxstat): Do not use CHECK_1.
22519         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22520         <bp-checks.h>.
22521         (__fxstatat): Do not use CHECK_1.
22522         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22523         <bp-checks.h>.
22524         (__lxstat): Do not use CHECK_1.
22525         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22526         <bp-checks.h>.
22527         (__xstat): Do not use CHECK_1.
22528         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22529         (__xstat): Do not use CHECK_1.
22530         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22531         (___xstat64): Do not use CHECK_1.
22532
22533         [BZ #13550]
22534         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
22535         definitions.
22536         (CHECK_BOUNDS_HIGH): Likewise.
22537         * string/strcpy.c: Do not include <bp-checks.h>.
22538         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
22539
22540 2013-02-07  Roland McGrath  <roland@hack.frob.com>
22541
22542         * nscd/nscd-client.h (__nscd_drop_map_ref):
22543         Add __attribute__ ((unused)).
22544         * nis/nss-nisplus.h (niserr2nss): Likewise.
22545
22546         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
22547         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
22548
22549         * csu/libc-tls.c (init_static_tls, init_slotinfo):
22550         Remove inline keyword.
22551         * include/rounding-mode.h (round_away): Likewise.
22552         * libio/wfileops.c (adjust_wide_data): Likewise.
22553         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
22554         (__m128i_strloadu_tolower): Likewise.
22555         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
22556         (__m128i_strloadu_tolower): Likewise.
22557         * time/mktime.c (ydhms_diff): Likewise.
22558         * locale/elem-hash.h (elem_hash): Likewise.
22559         * locale/setlocale.c (setdata): Likewise.
22560         * posix/regex_internal.h (re_string_char_size_at): Likewise.
22561         (re_string_wchar_at): Likewise.
22562         (bitset_not, bitset_merge, bitset_mask): Likewise.
22563         [!(__GNUC__ > 3)] (inline): Remove macro.
22564         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
22565         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
22566         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22567         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22568         * string/memcmp.c (memcmp_bytes): Likewise.
22569         * locale/programs/locarchive.c (compute_hashval): Likewise.
22570         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
22571         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
22572         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
22573         * nss/getent.c (print_rpc, print_protocols): Likewise.
22574         (print_passwd, print_group, print_aliases): Likewise.
22575         * nis/nss-nisplus.h (niserr2nss): Likewise.
22576         * nscd/connections.c (restart_p): Likewise.
22577         Change return type to bool.
22578
22579 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22580
22581         * Makeconfig (all-Depend-files): Add existing
22582         $(sorted-subdirs:=/Depend) files.
22583         (all-subdirs): Remove nss.
22584         * sysdeps/unix/inet/Subdirs: Add it here instead.
22585         * hesiod/Depend: New file.
22586
22587         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22588         instead of calling alloca.
22589
22590         * io/lseek.c (__lseek): Rename to __libc_lseek.
22591         Define __lseek as an alias.
22592
22593         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22594
22595 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22596
22597         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22598         else clause and remove check for non-standard endianness.
22599
22600 2013-02-04  David S. Miller  <davem@davemloft.net>
22601
22602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22603
22604 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22605
22606         [BZ #13550]
22607         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22608         (__ubp_memchr): Remove prototype.
22609         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22610         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22611         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22612         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22613         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22614         Remove alias.
22615         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22616         (__ubp_memchr): Likewise.
22617         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22618         (__ubp_memchr): Likewise.
22619         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22620         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22621         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22622         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22623         CHECK_STRING.
22624         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22625         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22626         (__getcwd): Do not use CHECK_STRING.
22627         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22628         <bp-checks.h>.
22629         (__real_chown): Do not use CHECK_STRING.
22630         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22631         <bp-checks.h>.
22632         (fchownat): Do not use CHECK_STRING.
22633         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22634         CHECK_STRING.
22635         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22636         <bp-checks.h>.
22637         (__lchown): Do not use CHECK_STRING.
22638         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22639         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22640         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22641         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22643         include <bp-checks.h>.
22644         (truncate64): Do not use CHECK_STRING.
22645         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22646         <bp-checks.h>.
22647         (__real_chown): Do not use CHECK_STRING.
22648         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22649         <bp-checks.h>.
22650         (__lchown): Do not use CHECK_STRING.
22651         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22652         <bp-checks.h>.
22653         (__chown): Do not use CHECK_STRING.
22654         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22655         <bp-checks.h>.
22656         (truncate64): Do not use CHECK_STRING.
22657         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22658         Likewise.
22659         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22660         (__xmknod): Do not use CHECK_STRING.
22661         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22662         <bp-checks.h>.
22663         (__xmknodat): Do not use CHECK_STRING.
22664         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22665         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22666
22667 2013-02-04  Andreas Schwab  <schwab@suse.de>
22668
22669         [BZ #14142]
22670         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22671         * include/netdb.h: Likewise for h_errno.
22672         * elf/tst-stackguard1.c: Include <tls.h>.
22673
22674 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22675
22676         * elf/link.h (struct link_map): Extend the l_addr comment.
22677         * include/link.h (struct link_map): Likewise.
22678
22679 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22680
22681         [BZ #13550]
22682         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22683         (BOUNDED_1): Remove macro.
22684         * debug/backtrace.c: Don't include <bp-checks.h>.
22685         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22686         (__backtrace): Likewise.
22687         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22688         <bp-checks.h>.
22689         (__backtrace): Don't use BOUNDED_1.
22690         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22691         <bp-checks.h>.
22692         (__backtrace): Don't use BOUNDED_1.
22693         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22694         (__backtrace): Don't use BOUNDED_1.
22695         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22696         (shmat): Don't use BOUNDED_N.
22697
22698 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22699
22700         [BZ #13550]
22701         * sysdeps/generic/bp-start.h: Remove file.
22702         * csu/libc-start.c: Don't include <bp-start.h>.
22703         (LIBC_START_MAIN): Set up __environ directly instead of using
22704         INIT_ARGV_and_ENVIRON.
22705         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22706         <bp-start.h>.
22707
22708         [BZ #13550]
22709         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22710         definitions.
22711         (CHECK_FCNTL): Likewise.
22712         (CHECK_N_PAGES): Likewise.
22713
22714         [BZ #13550]
22715         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22716         definitions.
22717         (CHECK_SIGSET_NULL_OK): Likewise.
22718         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22719         <bp-checks.h>.
22720         (sigpending): Don't use CHECK_SIGSET.
22721         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22722         <bp-checks.h>.
22723         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22724         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22725         <bp-checks.h>.
22726         (do_sigsuspend): Don't use CHECK_SIGSET.
22727         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22728         use CHECK_SIGSET.
22729         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22730         (do_sigwait): Don't use CHECK_SIGSET.
22731         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22732         use CHECK_SIGSET.
22733         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22734         include <bp-checks.h>.
22735         (sigpending): Don't use CHECK_SIGSET.
22736         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22737         include <bp-checks.h>.
22738         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22739         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22740         <bp-checks.h>.
22741         (sigpending): Don't use CHECK_SIGSET.
22742         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22743         <bp-checks.h>.
22744         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22745
22746         [BZ #13550]
22747         * sysdeps/generic/bp-semctl.h: Remove file.
22748         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
22749         <bp-checks.h> and <bp-semctl.h>.
22750         (__old_semctl): Don't use CHECK_SEMCTL.
22751         (__new_semctl): Likewise.
22752         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
22753         and <bp-semctl.h>.
22754         (__old_semctl): Don't use CHECK_SEMCTL.
22755         (__new_semctl): Likewise.
22756         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22757         <bp-checks.h> and <bp-semctl.h>.
22758         (__old_semctl): Don't use CHECK_SEMCTL.
22759         (__new_semctl): Likewise.
22760         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22761         <bp-checks.h> and <bp-semctl.h>.
22762         (semctl): Don't use CHECK_SEMCTL.
22763
22764         [BZ #13550]
22765         * Makerules (elide-bp-thunks): Remove variable.
22766         (elide-routines.oS): Don't use $(elide-bp-thunks).
22767         (elide-routines.os): Likewise.
22768         (elide-routines.o): Likewise.
22769         (elide-routines.op): Likewise.
22770         (elide-routines.og): Likewise.
22771         (objects): Don't use $(bp-thunks).
22772         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22773         include.
22774         (common-generated): Do not add s-proto-bp.d.
22775         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22776         (int): Likewise.
22777         (typ): Likewise.
22778         Do not generate makefile rules for bounded-pointer thunks.
22779         * sysdeps/generic/bp-thunks.h: Remove file.
22780         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22781         * sysdeps/unix/s-proto-bp.S: Likewise.
22782
22783         [BZ #15062]
22784         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22785         parts of result separately when argument is not close to line from
22786         -i to i and one part of argument is small.
22787         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22788         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22789         * math/libm-test.inc (cacos_test): Add more tests.
22790         (casin_test): Likewise.
22791         (casinh_test): Likewise.
22792         * sysdeps/i386/fpu/libm-test-ulps: Update.
22793         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22794
22795 2013-01-31  David S. Miller  <davem@davemloft.net>
22796
22797         * po/de.po: Update from translation team.
22798
22799 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22800
22801         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22802
22803 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22804
22805         * configure.in (_AC_PROG_CC_C89): New definition.
22806         * configure: Regenerate.
22807
22808         * configure.in (AC_PROG_CPP): New definition.
22809         * configure: Regenerate.
22810
22811 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22812
22813         * debug/tst-backtrace.h: New file.
22814         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22815         (ret): Remove variable.
22816         (x): Likewise.
22817         (FAIL): Remove macro.
22818         (NO_INLINE): Likewise.
22819         (fn1): Use match function instead of strstr.
22820         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22821         (ret): Remove variable.
22822         (x): Likewise.
22823         (FAIL): Remove macro.
22824         (NO_INLINE): Likewise.
22825         (fn): Use match function instead of strstr.
22826         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22827         (ret): Remove variable.
22828         (x): Likewise.
22829         (FAIL): Remove macro.
22830         (NO_INLINE): Likewise.
22831         (handle_signal): Use match function instead of strstr.
22832         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22833         (ret): Remove variable.
22834         (x): Likewise.
22835         (FAIL): Remove macro.
22836         (NO_INLINE): Likewise.
22837         (handle_signal): Use match function instead of strstr.
22838
22839 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22840
22841         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22842
22843 2013-01-23  David S. Miller  <davem@davemloft.net>
22844
22845         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22846         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22847         argument of CAS if possible.
22848         * sysdeps/sparc/sparc64/bits/atomic.h
22849         (__arch_compare_and_exchange_val_32_acq): Likewise.
22850         (__arch_compare_and_exchange_val_64_acq): Likewise.
22851
22852 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22853
22854         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22855         * sysdeps/posix/ulimit.c: ... this.
22856         Include <limits.h>.
22857         * sysdeps/unix/bsd/ulimit.c: Remove file.
22858
22859 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22860
22861         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22862         (LDFLAGS-tst-array5): Likewise.
22863
22864 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22865
22866         [BZ #15036]
22867         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22868         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22869         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22870         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22871
22872 2013-01-21  David S. Miller  <davem@davemloft.net>
22873
22874         * sysdeps/sparc/backtrace.c: New file.
22875         * sysdeps/sparc/sparc32/backtrace.h: New file.
22876         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22877         * sysdeps/sparc/sparc64/backtrace.h: New file.
22878         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22879         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22880         -funwind-tables.
22881
22882 2013-01-21  Andreas Schwab  <schwab@suse.de>
22883
22884         [BZ #15020]
22885         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22886         closed its stdout.
22887
22888 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22889
22890         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22891         "mpa2.h".
22892         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22893
22894 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22895             Mark Mitchell  <mark@codesourcery.com>
22896             Tom de Vries  <tom@codesourcery.com>
22897             Paul Pluzhnikov  <ppluzhnikov@google.com>
22898
22899         * debug/tst-backtrace2.c: New file.
22900         * debug/tst-backtrace3.c: Likewise.
22901         * debug/tst-backtrace4.c: Likewise.
22902         * debug/tst-backtrace5.c: Likewise.
22903         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22904         (CFLAGS-tst-backtrace3.c): Likewise.
22905         (CFLAGS-tst-backtrace4.c): Likewise.
22906         (CFLAGS-tst-backtrace5.c): Likewise.
22907         (LDFLAGS-tst-backtrace2): Likewise.
22908         (LDFLAGS-tst-backtrace3): Likewise.
22909         (LDFLAGS-tst-backtrace4): Likewise.
22910         (LDFLAGS-tst-backtrace5): Likewise.
22911         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22912         tst-backtrace4 and tst-backtrace5.
22913
22914 2013-01-18  Anton Blanchard  <anton@samba.org>
22915             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22916
22917         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22918         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22919         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22920         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22922         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22923         "+r" and remove output regs list as redundant.  Add explicit inline
22924         asm to specify register of return val to work around compiler codegen
22925         bug.  Remove (int) cast on return value.  Add return type parameter to
22926         use in macro so that this macro does not truncate return value for
22927         64-bit values.
22928         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22929         pass to INTERNAL_VSYSCALL_NCS.
22930         (INLINE_VSYSCALL): Add 'long int' as return type to
22931         INTERNAL_VSYSCALL_NCS macro invocation.
22932         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22933         INTERNAL_VSYSCALL_NCS macro invocation.
22934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22935
22936 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22937
22938         [BZ #14496]
22939         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22940         Fix application of SIMD FP exception mask.
22941
22942         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22943         mp_no from a power of two.
22944         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22945         __mpexp_twomm1.  Use __pow_mp.
22946
22947         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22948         multiplication.
22949
22950 2013-01-17  David S. Miller  <davem@davemloft.net>
22951
22952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22953
22954 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22955
22956         [BZ #15023]
22957         * include/complex.h: Condition contents on [!_COMPLEX_H].
22958         (__kernel_casinhf): New prototype.
22959         (__kernel_casinh): Likewise.
22960         (__kernel_casinhl): Likewise.
22961         * math/Makefile (libm_calls): Add k_casinh.
22962         * math/k_casinh.c: New file.
22963         * math/k_casinhf.c: Likewise.
22964         * math/k_casinhl.c: Likewise.
22965         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22966         finite nonzero arguments.
22967         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22968         finite nonzero arguments.
22969         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22970         finite nonzero arguments.
22971         * math/s_casinh.c: Do not include <float.h>.
22972         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22973         * math/s_casinhf.c: Do not include <float.h>.
22974         (__casinhf): Move code for finite nonzero arguments to
22975         k_casinhf.c.
22976         * math/s_casinhl.c: Do not include <float.h>.
22977         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22978         redefine.
22979         (__casinhl): Move code for finite nonzero arguments to
22980         k_casinhl.c.
22981         * math/libm-test.inc (cacos_test): Add more tests.
22982         * sysdeps/i386/fpu/libm-test-ulps: Update.
22983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22984
22985 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22986
22987         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22988         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22989         [!HAVE_MREMAP]: Remove [defined linux] case.
22990         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22991
22992 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22993
22994         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22995
22996 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22997
22998         * elf/elf.h (R_386_SIZE32): New relocation.
22999         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
23000         R_386_SIZE32.
23001         (elf_machine_rela): Likewise.
23002         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
23003         R_X86_64_SIZE64 and R_X86_64_SIZE32.
23004
23005 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
23006
23007         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
23008         (FP_FAST_FMA): Do not define.
23009         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
23010         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
23011         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
23012         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
23013         !_SOFT_FLOAT]: Likewise.
23014         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
23015         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
23016         value.
23017         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
23018         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
23019         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
23020         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
23021         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
23022         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
23023         file.
23024
23025 2013-01-16  Andreas Schwab  <schwab@suse.de>
23026
23027         [BZ #14327]
23028         * include/stdlib.h (__mktemp): Add declaration.
23029         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
23030         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
23031
23032 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23033
23034         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
23035         definitions.
23036         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23037         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
23038         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
23039         definitions here.
23040         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
23041         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
23042         definitions.
23043         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
23044         and ONE.
23045         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
23046         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
23047         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
23048         definitions.
23049         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
23050         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
23051         definitions.
23052         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23053
23054         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
23055
23056 2013-01-15  David S. Miller  <davem@davemloft.net>
23057
23058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23059         trunc{,f} to libm-sysdep_routes.
23060         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
23062         file.
23063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
23064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
23065         file.
23066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
23067         file.
23068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
23069         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
23070         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
23071         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
23072         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
23073         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
23074         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
23075         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
23076
23077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23078         nearbyint{,f} to libm-sysdep_routes.
23079         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
23081         New file.
23082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
23083         file.
23084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
23085         New file.
23086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
23087         file.
23088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
23089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
23090         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
23091         file.
23092         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
23093         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
23094         file.
23095         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
23096         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
23097         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
23098
23099         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
23100         libc_feholdexcept and libc_fesetenv.
23101
23102 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
23103
23104         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
23105
23106 2013-01-14  David S. Miller  <davem@davemloft.net>
23107
23108         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
23109         (SPARC_ASM_VIS2_IFUNC): Likewise.
23110         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
23111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
23112         use of 'siam' instruction.
23113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
23114         Likewise.
23115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
23116         Likewise.
23117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
23118         Likewise.
23119         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
23120         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
23121         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
23122         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
23123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
23124         file.
23125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
23126         file.
23127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
23128         file.
23129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
23130         file.
23131         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
23132         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
23133         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
23134         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
23135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
23136         new VIS2 routines.
23137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23140         Likewise.
23141         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23142         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23143         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23144         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
23146         routines to libm-sysdep_routines.
23147         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23148
23149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23150         fdim/fdimf to libm-sysdep_routines.
23151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
23152         file.
23153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
23154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
23155         file.
23156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
23157         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
23158         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
23159         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
23160         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
23161         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
23162         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
23163
23164 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
23165
23166         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
23167         to optimize copies.
23168
23169         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
23170         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23171         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23172
23173         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
23174         local variable MPTWO.
23175         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
23176         Likewise.
23177
23178 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23179
23180         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
23181         GLOB_NOESCAPE.
23182
23183 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23184
23185         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
23186
23187 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23188
23189         * manual/pattern.texi (glob_t): Document gl_flags.
23190         (glob64_t): Likewise.
23191
23192 2013-01-11  David S. Miller  <davem@davemloft.net>
23193
23194         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23195         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23196         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23197         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23198         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23199         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23200         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23201         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23202         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23203         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23204         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23205         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23206         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23207
23208         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23209         sparc V9 rather than using V8 code.
23210         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23211         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23212
23213         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23214         Move to...
23215         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23216         Here.
23217
23218 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23219
23220         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23221         not in the main loop.
23222         * configure: Regenerated.
23223
23224 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23225
23226         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23227         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23228         to just #else.
23229         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23230         [!__GLIBC_HAVE_LONG_LONG] case.
23231         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23232         condition to just #else.
23233         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23234         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23235         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23236         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23237         unconditional.
23238         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23239         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23240         #elif condition to just #else.
23241         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23242         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23243         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23244         #elif condition to just #else.
23245
23246 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23247
23248         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23249         (EF_MIPS_ARCH_64): Fix value.
23250         (EF_MIPS_ARCH_32R2): New.
23251         (EF_MIPS_ARCH_64R2): New.
23252
23253 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23254
23255         * Makeconfig (+link-pie-before-libc): New.
23256         (+link-pie-after-libc): Likewise.
23257         (+link-pie-tests): Likewise.
23258         (+link-pie): Rewritten.
23259         (link-before-libc): Remove $(config-LDFLAGS).
23260         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23261         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23262         (config-LDFLAGS): Renamed to ...
23263         (rtld-LDFLAGS): This.
23264         (rtld-tests-LDFLAGS): New macro.
23265         (link-libc-rpath-link): Likewise.
23266         (link-libc-tests-rpath-link): Likewise.
23267         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23268         (link-libc): Prepand $(link-libc-rpath-link).
23269         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23270         (test-program-prefix): New macro.
23271         (test-via-rtld-prefix): Likewise.
23272         (test-program-cmd): Likewise.
23273         (host-test-program-cmd): Likewise.
23274         * Makefile ($(common-objpfx)testrun.sh): Replace
23275         $(run-program-prefix) with $(test-program-prefix).
23276         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23277         $(rtld-LDFLAGS).
23278         ($(common-objpfx)shlib.lds): Likewise.
23279         (build-module-helper): Likewise.
23280         ($(common-objpfx)format.lds): Likewise.
23281         * Rules (binaries-pie-tests): New.
23282         (binaries-pie-notests): Likewise.
23283         (binaries-pie): Rewritten.
23284         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23285         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23286         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23287         (make-test-out): Replace $(host-built-program-cmd) with
23288         $(host-test-program-cmd).
23289         * config.make.in (build-hardcoded-path-in-tests): New variable.
23290         * configure.in (--enable-hardcoded-path-in-tests): New configure
23291         option.
23292         (hardcoded_path_in_tests): New AC_SUBST.
23293         * configure: Regenerated.
23294         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23295         $(built-program-cmd) with $(test-program-cmd).
23296         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23297         (test_program_cmd): This.
23298         * elf/Makefile ($(objpfx)order.out): Run test with
23299         $(test-program-prefix).
23300         ($(objpfx)order2.out): Likewise.
23301         ($(objpfx)tst-initorder.out): Likewise.
23302         ($(objpfx)tst-initorder2.out): Likewise.
23303         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23304         $(test-program-cmd).
23305         ($(objpfx)tst-array1-static.out): Likewise.
23306         ($(objpfx)tst-array2.out): Likewise.
23307         ($(objpfx)tst-array3.out): Likewise.
23308         ($(objpfx)tst-array4.out): Likewise.
23309         ($(objpfx)tst-array5.out): Likewise.
23310         ($(objpfx)tst-array5-static.out): Likewise.
23311         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23312         $(test-program-cmd).
23313         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23314         $(run-program-prefix) with $(test-program-prefix).
23315         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23316         (test_program_prefix): This.
23317         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23318         $(run-program-prefix) with $(test-program-prefix).
23319         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23320         (test_program_prefix): This.
23321         * iconvdata/tst-tables.sh: Likewise.
23322         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23323         $(run-program-prefix) with $(test-program-prefix).
23324         ($(objpfx)tst-translit.out): Likewise.
23325         ($(objpfx)tst-gettext2.out): Likewise.
23326         ($(objpfx)tst-gettext4.out): Likewise.
23327         ($(objpfx)tst-gettext6.out): Likewise.
23328         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23329         (test_program_prefix): This.
23330         * intl/tst-gettext2.sh: Likewise.
23331         * intl/tst-gettext4.sh  Likewise.
23332         * intl/tst-gettext6.sh: Likewise.
23333         * intl/tst-translit.sh: Likewise.
23334         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23335         with $(test-program-cmd).
23336         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23337         $(run-program-prefix) with $(test-program-prefix).
23338         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23339         (test_program_prefix): This.
23340         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23341         $(run-program-prefix) with $(test-program-prefix).
23342         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23343         (test_program_prefix): This.
23344         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23345         * posix/Makefile ($(objpfx)globtest.out): Replace
23346         $(run-via-rtld-prefix) and $(test-wrapper) with
23347         $(test-program-prefix) and $(test-via-rtld-prefix).
23348         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23349         $(test-program-prefix).
23350         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23351         $(host-test-program-cmd).
23352         (tst-spawn-ARGS): Likewise.
23353         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23354         $(test-program-prefix).
23355         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23356         (test_via_rtld_prefix): This.
23357         (test_wrapper): Renamed to ...
23358         (test_program_prefix): This.
23359         (run_program_prefix): Replaced by test_program_prefix.
23360         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23361         (test_program_prefix): This.
23362         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23363         with $(host-test-program-cmd).
23364         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23365         $(run-program-prefix) with $(test-program-prefix).
23366         ($(objpfx)tst-printf.out): Likewise.
23367         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23368         $(test-program-cmd).
23369         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23370         (test_program_prefix): This.
23371         * stdio-common/tst-unbputc.sh: Likewise.
23372         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23373         $(run-program-prefix) with $(test-program-prefix).
23374         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23375         (test_program_prefix): This.
23376         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23377         $(built-program-cmd) with $(test-program-cmd).
23378
23379 2013-01-11  Andreas Jaeger  <aj@suse.de>
23380
23381         [BZ #15003]
23382         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23383         value. Sync with Linux 3.7.
23384
23385 2013-01-10  David S. Miller  <davem@davemloft.net>
23386
23387         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23388         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23389         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23390
23391 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23392
23393         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23394         never set.
23395         * configure: Regenerated.
23396
23397 2013-01-10  David S. Miller  <davem@davemloft.net>
23398
23399         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23400         sparc V9 rather than using V8 code.
23401         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23402         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23403
23404 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23405
23406         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23407         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23408         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23409         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23410         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23411         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23412         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23413         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23414         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23415         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23416         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23417         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23418         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23419         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23420         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23421         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23422         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23423         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23424         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23425         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23426         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23427         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23428         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23429         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23430         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23431         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23432         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23433
23434 2013-01-10  David S. Miller  <davem@davemloft.net>
23435
23436         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23437
23438 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23439
23440         * posix/Makefile (tests-static): New variable.
23441         (tests): Add $(tests-static).
23442         (tst-exec-static-ARGS): New variable.
23443         (tst-spawn-static-ARGS): Likewise.
23444         * posix/tst-exec-static.c: New file.
23445         * posix/tst-spawn-static.c: Likewise.
23446         * posix/tst-exec.c: Support run directly.
23447         * posix/tst-spawn.c: Likewise.
23448
23449 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23450
23451         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23452         long.
23453         * math/bits/mathcalls.h (llrint): Likewise.
23454         (llround): Likewise.
23455         * stdlib/stdlib.h (struct drand48_data): Likewise.
23456         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23457         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23458         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23459         Likewise.
23460         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23461         Likewise.
23462         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23463         (elf_greg_t): Likewise.
23464         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23465         (__jmp_buf): Likewise.
23466         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23467         definitions.
23468         (llrint): Likewise, for all definitions.
23469         (llrintl): Likewise.
23470
23471         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23472         Remove [__GNUC__] condition.
23473         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23474         condition to just [__USE_ISOC99].
23475         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23476
23477 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23478
23479         [BZ #14200]
23480         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23481         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23482         defined.
23483         (_POSIX_V6_ILP32_OFF32): Likewise.
23484         (_XBS5_ILP32_OFF32): Likewise.
23485         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23486         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23487
23488 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23489
23490         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23491
23492         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23493         doubles __mpexp_twomm1.  Adjust usage.
23494         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23495         Remove.
23496
23497 2013-01-10  Andreas Schwab  <schwab@suse.de>
23498
23499         [BZ #14964]
23500         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23501         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23502
23503 2013-01-09  David S. Miller  <davem@davemloft.net>
23504
23505         [BZ #15003]
23506         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23507         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23508         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23509         (TCP_FASTOPEN): Define.
23510         (tcp_repair_opt): New structure.
23511         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23512         enum values.
23513         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23514         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23515         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23516         (tcp_cookie_transactions): New structure.
23517
23518 2013-01-09  Anton Blanchard  <anton@samba.org>
23519
23520         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23521         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23522         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23523         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23524
23525 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23526
23527         * include/features.h (__USE_ANSI): Remove.
23528
23529 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23530
23531         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23532
23533         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
23534
23535 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
23536
23537         * sysdeps/s390/fpu/libm-test-ulps: Update.
23538
23539         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23540
23541         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
23542         (__acr): Likewise.
23543         (__cpy): Likewise.
23544         (norm): Likewise.
23545         (denorm): Likewise.
23546         (__mp_dbl): Likewise.
23547         (__dbl_mp): Likewise.
23548         (add_magnitudes): Likewise.
23549         (sub_magnitudes): Likewise.
23550         (__add): Likewise.
23551         (__sub): Likewise.
23552         (__mul): Likewise.
23553         (__inv): Likewise.
23554         (__dvd): Likewise.
23555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
23556         (__acr): Likewise.
23557         (__cpy): Likewise.
23558         (norm): Likewise.
23559         (denorm): Likewise.
23560         (__mp_dbl): Likewise.
23561         (__dbl_mp): Likewise.
23562         (add_magnitudes): Likewise.
23563         (sub_magnitudes): Likewise.
23564         (__add): Likewise.
23565         (__sub): Likewise.
23566         (__mul): Likewise.
23567         (__inv): Likewise.
23568         (__dvd): Likewise.
23569         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
23570         (__acr): Likewise.
23571         (__cpy): Likewise.
23572         (norm): Likewise.
23573         (denorm): Likewise.
23574         (__mp_dbl): Likewise.
23575         (__dbl_mp): Likewise.
23576         (add_magnitudes): Likewise.
23577         (sub_magnitudes): Likewise.
23578         (__add): Likewise.
23579         (__sub): Likewise.
23580         (__mul): Likewise.
23581         (__inv): Likewise.
23582         (__dvd): Likewise.
23583
23584 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23585
23586         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23587         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23588         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23589         2 && __USE_EXTERN_INLINES]: Likewise.
23590
23591 2013-01-08  Andreas Jaeger  <aj@suse.de>
23592
23593         [BZ# 14985]
23594         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23595         Remove.
23596         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23597         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23598
23599 2013-01-07  Anton Blanchard  <anton@samba.org>
23600
23601         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23602         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23603         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23604         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23605         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23606         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23607         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23608         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23609         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23610         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23611         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23612         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23613         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23614         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23615         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23616         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23617         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23618         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23619         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23620         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23621         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23622         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23623         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23624         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23625         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23626         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23627         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23628         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23629         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23630         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23631         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23632         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23633         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23634         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23635         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23636         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23637         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23638         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23639         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23640         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23641         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23642         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23643         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23644
23645 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23646
23647         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23648         (__MALLOC_PMT): Likewise.
23649         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23650         [__GNUC__], only on [_LIBC].
23651         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23652         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23653         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23654         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23655         forward declaration.
23656         (realloc_hook_ini): Likewise.
23657         (memalign_hook_ini): Likewise.
23658         (__libc_memalign): Do not use __MALLOC_PMT in variable
23659         declaration.
23660         (__libc_valloc): Likewise.
23661         (__libc_pvalloc): Likewise.
23662         (__libc_calloc): Likewise.
23663         (__posix_memalign): Likewise.
23664
23665         [BZ #14996]
23666         * math/s_casinh.c: Include <float.h>.
23667         (__casinh): Do not do computation with squaring and square root
23668         for large arguments.
23669         * math/s_casinhf.c: Include <float.h>.
23670         (__casinhf): Do not do computation with squaring and square root
23671         for large arguments.
23672         * math/s_casinhl.c: Include <float.h>.
23673         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23674         (__casinhl): Do not do computation with squaring and square root
23675         for large arguments.
23676         * math/libm-test.inc (casin_test): Add more tests.
23677         (casinh_test): Likewise.
23678         * sysdeps/i386/fpu/libm-test-ulps: Update.
23679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23680
23681 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23682
23683         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23684         (__x86_64_raw_data_cache_size): Likewise.
23685         (__x86_64_data_cache_size_half): Likewise.
23686         (__x86_64_raw_data_cache_size_half): Likewise.
23687         (__x86_64_shared_cache_size): Likewise.
23688         (__x86_64_raw_shared_cache_size): Likewise.
23689         (__x86_64_shared_cache_size_half): Likewise.
23690         (__x86_64_raw_shared_cache_size_half): Likewise.
23691         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23692         to ...
23693         (__x86_data_cache_size): This.
23694         (__x86_64_raw_data_cache_size): Renamed to ...
23695         (__x86_raw_data_cache_size): This.
23696         (__x86_64_data_cache_size_half): Renamed to ...
23697         (__x86_data_cache_size_half): This.
23698         (__x86_64_raw_data_cache_size_half): Renamed to ...
23699         (__x86_raw_data_cache_size_half): This.
23700         (__x86_64_shared_cache_size): Renamed to ...
23701         (__x86_shared_cache_size): This.
23702         (__x86_64_raw_shared_cache_size): Renamed to ...
23703         (__x86_raw_shared_cache_size): This.
23704         (__x86_64_shared_cache_size_half): Renamed to ...
23705         (__x86_shared_cache_size_half): This.
23706         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23707         (__x86_raw_shared_cache_size_half): This.
23708         * sysdeps/x86_64/memcpy.S: Updated.
23709         * sysdeps/x86_64/memset.S: Likewise.
23710         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23711         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23712         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23713
23714 2013-01-04  David S. Miller  <davem@davemloft.net>
23715
23716         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23717
23718 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23719
23720         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23721         1 to avoid redefinition warning.
23722         (__USE_GNU): Don't define.
23723         (init_signaling_nan): Protoize.
23724
23725         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23726
23727 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23728
23729         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23730         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23731         (__cpymn): Likewise.
23732         (norm): Remove commented code.
23733         (denorm): Likewise.
23734         (__mp_dbl): Likewise.
23735         (__inv): Likewise.
23736         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23737         (__cpymn): Likewise.
23738         (norm): Remove commented code.
23739         (denorm): Likewise.
23740         (__mp_dbl): Likewise.
23741         (__inv): Likewise.
23742
23743         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23744         mp_no value for 1.0 and 2.0.
23745         (norm): Use RADIXI instead of radixi.d.
23746         (denorm): Likewise.
23747         (__mul): Use 0.0 instead of zero.d.
23748         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23749         mp_no value for 1.0 and 2.0.
23750         (norm): Use RADIXI instead of radixi.d.
23751         (denorm): Likewise.
23752         (__mul): Use 0.0 instead of zero.d.
23753
23754 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23755
23756         [BZ #14994]
23757         * math/s_casinh.c (__casinh): Reduce finite argument to first
23758         quadrant then set signs of results at the end.
23759         * math/s_casinhf.c (__casinhf): Likewise.
23760         * math/s_casinhl.c (__casinhl): Likewise.
23761         * math/libm-test.inc (casin_test): Add more tests.
23762         (casinh_test): Likewise.
23763         * sysdeps/i386/fpu/libm-test-ulps: Update.
23764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23765
23766 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23767
23768         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23769
23770         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23771
23772         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23773         declarations.
23774         (denorm): Likewise.
23775         (__mp_dbl): Likewise.
23776         (__inv): Likewise.
23777
23778         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23779         and adjust the header comment.
23780
23781         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23782         variable name from declaration.
23783
23784 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23785
23786         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23787         Initialize COMMON_CPUID_INDEX_7 element.
23788         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23789         (CPUID_RTM): Likewise.
23790         (HAS_RTM): Likewise.
23791         (COMMON_CPUID_INDEX_7): New enum.
23792
23793 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23794
23795         [BZ #14981]
23796         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23797         size is zero, record memory as freed.
23798
23799 2013-01-03  Andreas Jaeger  <aj@suse.de>
23800
23801         * po/ia.po: Add new Interlingua translation.
23802
23803 2012-01-03  Allan McRae  <allan@archlinux.org>
23804
23805         * locale/programs/localedef.c: Fix description of '--posix' flag.
23806
23807 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23808
23809         * NEWS: Update dates in second copyright notice.
23810         * README: Update copyright dates in example.
23811         * manual/libc.texinfo: Update copyright dates.
23812         * scripts/test-installation.pl: Update copyright date in --version
23813         output.
23814
23815         * hurd/ctty-input.c: Fix copyright notice formatting.
23816         * hurd/ctty-output.c: Likewise.
23817         * hurd/dtable.c: Likewise.
23818         * hurd/hurd-raise.c: Likewise.
23819         * hurd/hurdprio.c: Likewise.
23820         * hurd/msgportdemux.c: Likewise.
23821         * misc/sys/file.h: Likewise.
23822         * misc/sys/ioctl.h: Likewise.
23823         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23824         * sysdeps/mach/hurd/chdir.c: Likewise.
23825         * sysdeps/mach/hurd/fchdir.c: Likewise.
23826         * sysdeps/mach/hurd/rename.c: Likewise.
23827         * sysdeps/mach/hurd/rmdir.c: Likewise.
23828         * sysdeps/mach/hurd/seekdir.c: Likewise.
23829         * sysdeps/mach/hurd/setsid.c: Likewise.
23830         * sysdeps/posix/wait3.c: Likewise.
23831
23832         * All files with FSF copyright notices: Update copyright dates
23833         using scripts/update-copyrights.
23834         * intl/plural.c: Regenerated.
23835         * locale/programs/charmap-kw.h: Likewise.
23836         * locale/programs/locfile-kw.h: Likewise.
23837
23838 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23839
23840         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23841         four values.
23842
23843         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23844         calculation loop and add branch prediction.
23845
23846         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23847         check access beyond bounds of m1np.
23848
23849         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23850         MPTWO.
23851         (__inv): Remove local variable MPTWO to use the global
23852         constant.
23853         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23854         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23855         variable MPTWO.
23856         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23857         MP3HALFS static const.
23858
23859 2013-01-01  David S. Miller  <davem@davemloft.net>
23860
23861         * po/ca.po: Update from translation team.
23862
23863 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23864
23865         * scripts/update-copyrights: New file.
23866         * Makeconfig: Reformat copyright notice.
23867         * ctype/ctype.h: Likewise.
23868         * debug/swprintf_chk.c: Likewise.
23869         * elf/dl-cache.c: Likewise.
23870         * elf/dl-debug.c: Likewise.
23871         * elf/dl-object.c: Likewise.
23872         * grp/initgroups.c: Likewise.
23873         * hurd/Makefile: Likewise.
23874         * hurd/hurd/signal.h: Likewise.
23875         * hurd/hurdfault.c: Likewise.
23876         * hurd/hurdioctl.c: Likewise.
23877         * hurd/hurdlookup.c: Likewise.
23878         * hurd/intr-msg.c: Likewise.
23879         * iconv/gconv_open.c: Likewise.
23880         * libio/swprintf.c: Likewise.
23881         * locale/lc-ctype.c: Likewise.
23882         * locale/nl_langinfo.c: Likewise.
23883         * mach/Machrules: Likewise.
23884         * mach/Makefile: Likewise.
23885         * malloc/obstack.h: Likewise.
23886         * manual/Makefile: Likewise.
23887         * manual/tsort.awk: Likewise.
23888         * misc/bits/stab.def: Likewise.
23889         * nis/nis_print_group_entry.c: Likewise.
23890         * nis/nis_table.c: Likewise.
23891         * nis/nss_compat/compat-pwd.c: Likewise.
23892         * nis/nss_compat/compat-spwd.c: Likewise.
23893         * po/Makefile: Likewise.
23894         * posix/fnmatch.c: Likewise.
23895         * posix/regex.h: Likewise.
23896         * resolv/Makefile: Likewise.
23897         * resolv/nss_dns/dns-network.c: Likewise.
23898         * resolv/res_hconf.c: Likewise.
23899         * scripts/gen-sorted.awk: Likewise.
23900         * soft-fp/soft-fp.h: Likewise.
23901         * stdio-common/printf.h: Likewise.
23902         * stdlib/monetary.h: Likewise.
23903         * stdlib/random.c: Likewise.
23904         * stdlib/random_r.c: Likewise.
23905         * sysdeps/generic/Makefile: Likewise.
23906         * sysdeps/gnu/Makefile: Likewise.
23907         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23908         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23909         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23910         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23911         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23912         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23913         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23914         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23915         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23916         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23917         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23918         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23919         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23920         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23921         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23922         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23923         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23924         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23925         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23926         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23927         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23928         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23929         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23930         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23931         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23932         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23933         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23934         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23935         * sysdeps/mach/hurd/errnos.awk: Likewise.
23936         * sysdeps/mach/hurd/fork.c: Likewise.
23937         * sysdeps/mach/hurd/getcwd.c: Likewise.
23938         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23939         * sysdeps/mach/hurd/mmap.c: Likewise.
23940         * sysdeps/mach/hurd/utimes.c: Likewise.
23941         * sysdeps/mach/hurd/xmknod.c: Likewise.
23942         * sysdeps/posix/profil.c: Likewise.
23943         * sysdeps/posix/readdir_r.c: Likewise.
23944         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23945         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23946         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23947         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23948         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23949         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23950         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23951         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23952         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23953         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23954         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23955         * sysdeps/pthread/lio_listio.c: Likewise.
23956         * sysdeps/sparc/dl-procinfo.h: Likewise.
23957         * sysdeps/unix/i386/sysdep.S: Likewise.
23958         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23959         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23960         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23961         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23963         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23964         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23965         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23966         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23967         * sysdeps/wordsize-32/divdi3.c: Likewise.
23968         * time/sys/time.h: Likewise.
23969         * wcsmbs/Makefile: Likewise.
23970
23971 2013-01-01  David S. Miller  <davem@davemloft.net>
23972
23973         * po/fr.po: Update from translation team.
23974
23975         * catgets/gencat.c: Update copyright year.
23976         * csu/version.c: Likewise.
23977         * debug/catchsegv.sh: Likewise.
23978         * debug/pcprofiledump.c: Likewise.
23979         * debug/xtrace.sh: Likewise.
23980         * elf/ldconfig.c: Likewise.
23981         * elf/ldd.bash.in: Likewise.
23982         * elf/pldd.c: Likewise.
23983         * elf/sotruss.ksh: Likewise.
23984         * elf/sprof.c: Likewise.
23985         * iconv/iconv_prog.c: Likewise.
23986         * iconv/iconvconfig.c: Likewise.
23987         * locale/programs/locale.c: Likewise.
23988         * locale/programs/localedef.c: Likewise.
23989         * login/programs/pt_chown.c: Likewise.
23990         * malloc/memusage.sh: Likewise.
23991         * malloc/memusagestat.c: Likewise.
23992         * malloc/mtrace.pl: Likewise.
23993         * nscd/nscd.c: Likewise.
23994         * nss/getent.c: Likewise.
23995         * nss/makedb.c: Likewise.
23996         * posix/getconf.c: Likewise.
23997
23998 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23999
24000         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
24001         numbers.
24002
24003 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
24004
24005         * math/bits/mathcalls.h (modf): Use __nonnull.
24006
24007 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
24008
24009         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
24010         (split): Use macro CN instead of the bare value.
24011         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
24012         could be used.
24013         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
24014         instead of the bare value.
24015         (power1): Likewise.
24016
24017 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24018
24019         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
24020         __ATAN_TWOM.
24021         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24022
24023         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
24024         their values.
24025         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
24026         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
24027         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
24028         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
24029
24030 2012-12-28  Andreas Jaeger  <aj@suse.de>
24031
24032         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
24033         values are from Linux 3.7.
24034
24035         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
24036         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
24037
24038 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24039
24040         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
24041         TRUE case.
24042
24043         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
24044         (norm): Likewise.
24045         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
24046         variables with preprocessor constants.
24047         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24048         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
24049         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
24050
24051 2012-12-27  Bruno Haible  <bruno@clisp.org>
24052
24053         [BZ #14317]
24054         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
24055         only if needed.
24056
24057 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24058
24059         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
24060         and use variable directly.
24061         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
24062
24063         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
24064         MPONE.
24065         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
24066         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
24067         variable MPONE.
24068         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
24069         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24070         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
24071         include directive.  Remove local variable MPONE.
24072         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
24073         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
24074         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
24075
24076 2012-12-25  David S. Miller  <davem@davemloft.net>
24077
24078         * version.h (RELEASE): Set to "development".
24079         (VERSION): Set to "2.17.90".
24080         * NEWS: Add 2.18 section.
24081
24082 2012-12-21  David S. Miller  <davem@davemloft.net>
24083
24084         * po/hr.po: Update from translation team.
24085
24086 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24087
24088         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
24089
24090 2012-12-19  Steve Ellcey  <sellcey@mips.com>
24091
24092         * NEWS:  Mention new memcpy for MIPS.
24093
24094 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24095
24096         * manual/contrib.texi (Contributors): Spelling correction.
24097
24098 2012-12-15  David S. Miller  <davem@davemloft.net>
24099
24100         * po/ru.po: Update from translation team.
24101
24102 2012-12-13  David S. Miller  <davem@davemloft.net>
24103
24104         * NEWS: Mention IFUNC testsuite enhancements.
24105
24106         * po/pl.po: Update from translation team.
24107         * po/bg.po: Likewise.
24108
24109         * manual/contrib.texi (Contributors): Update entries for Hongjiu
24110         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
24111
24112 2012-12-11  David S. Miller  <davem@davemloft.net>
24113
24114         * po/sv.po: Update from translation team.
24115
24116         * po/vi.po: Update from translation team.
24117
24118         * po/cs.po: Update from translation team.
24119
24120         * po/de.po: Update from translation team.
24121         * po/eo.po: Likewise.
24122         * po/nl.po: Likewise.
24123
24124 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
24125
24126         [BZ #14246]
24127         * manual/argp.texi (Argp Helper Functions): Move node to follow
24128         Argp Parsing State.
24129
24130         [BZ #14872]
24131         * manual/conf.texi (Limits on File System Capacity): Mention if
24132         terminating null is included in the max size.
24133
24134 2012-12-10  Andreas Jaeger  <aj@suse.de>
24135
24136         * po/cs.po: Update from translation team.
24137
24138 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
24139
24140         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
24141         void pointer and cast to uintptr_t.
24142         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
24143         path.
24144         * sysdeps/s390/s390-64/memcpy.S: Likewise.
24145         * sysdeps/s390/s390-64/memset.S: Likewise.
24146
24147 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
24148
24149         [BZ #14833]
24150         * menual/message.texi (Message Translation): Fix typos.
24151         (Helper programs for gettext): Likewise.
24152
24153 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
24154
24155         [BZ #14898]
24156         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
24157         Change to -1.
24158
24159 2012-12-07  David S. Miller  <davem@davemloft.net>
24160
24161         * po/libc.pot: Update.
24162
24163 2012-12-07  Richard Henderson  <rth@redhat.com>
24164
24165         [BZ #10114]
24166         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
24167         normal/normal case to before the switch.
24168         (_FP_DIV): Likewise.
24169
24170 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
24171             Mike Frysinger  <vapier@gentoo.org>
24172
24173         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
24174         check for __NR_fadvise64_64.
24175
24176 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
24177
24178         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
24179         0, not just to plain "0" as a statement.
24180         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
24181         with cw.
24182
24183 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
24184
24185         * NEWS: Use sourceware.org in Bugzilla URL.
24186
24187 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
24188
24189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24190         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24191
24192         * stdio-common/tst-put-error.c (do_test): Add newline to the
24193         padded test to ensure flush.
24194
24195 2012-12-05  Jeff Law  <law@redhat.com>
24196
24197         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24198
24199 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24200
24201         * README: Don't refer to ports add-on as distributed separately.
24202         Mention AArch64 in list of systems supported in the ports add-on.
24203
24204         * LICENSES: Add more non-FSF copyright and license notices.
24205
24206         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24207         ((unused)).
24208
24209         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24210
24211         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24212         10000 as width of padded output.
24213
24214 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24215
24216         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24217
24218         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24219         variable LX with __attribute__ ((unused)).
24220         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24221         Likewise.
24222         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24223         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24224         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24225         with __attribute__ ((unused)).
24226
24227 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24228
24229         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24230
24231 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24232
24233         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24234         (CFLAGS-nldbl-acos.c): New variable.
24235         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24236         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24237         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24238         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24239         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24240         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24241         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24242         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24243         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24244         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24245         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24246         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24247         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24248         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24249         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24250         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24251         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24252         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24253         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24254         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24255         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24256         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24257         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24258         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24259         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24260         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24261         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24262         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24263         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24264         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24265         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24266         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24267         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24268         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24269         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24270         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24271         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24272         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24273         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24274         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24275         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24276         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24277         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24278         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24279         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24280         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24281         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24282         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24283         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24284         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24285         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24286         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24287         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24288         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24289         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24290         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24291         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24292         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24293         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24294         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24295         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24296         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24297         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24298         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24299         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24300         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24301         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24302         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24303         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24304         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24305         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24306         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24307         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24308         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24309         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24310         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24311         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24312         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24313         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24314         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24315         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24316         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24317         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24318         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24319         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24320         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24321         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24322         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24323         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24324         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24325         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24326         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24327         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24328         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24329         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24330         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24331         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24332
24333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24334         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24335
24336         [BZ #14914]
24337         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24338         whole low double instead of just low 47 bits when splitting values
24339         into two parts.
24340
24341 2012-12-03  Allan McRae  <allan@archlinux.org>
24342
24343         * manual/stdio.texi (Predefined Printf Handlers): Remove
24344         @hsep and @vsep usage.
24345
24346 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24347
24348         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24349         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24350
24351 2012-12-03  Jeff Law  <law@redhat.com>
24352
24353         * time/sys/time.h (settimeofday): Do not mark TV argument
24354         as __nonnull.
24355
24356 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24357
24358         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24359         when currently writing and seek to current position when not.
24360         * libio/Makefile (tests): Remove bug-fclose1.
24361         * libio/bug-fclose1.c: Delete.
24362
24363 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24364
24365         * manual/arith.texi (feenableexcept): Fix typo.
24366         (fedisableexcept): Likewise.
24367
24368 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24369
24370         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24371         second, differently-typed declaration, rather than a cast.
24372
24373 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24374
24375         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24376         * include/rpc/svc.h: ... here.
24377
24378 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24379
24380         [BZ #13013]
24381         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24382         depending n and resplen2 to catch cases where answer
24383         equals answerp2.
24384
24385 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24386
24387         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24388         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24389
24390 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24391
24392         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24393
24394 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24395
24396         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24397
24398 2012-11-28  Jeff Law  <law@redhat.com>
24399
24400         [BZ #13761]
24401         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24402         dataset_temporary.  Track alloca usage into alloca_used.
24403         If dataset is large allocate and release it via malloc/free.
24404
24405 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24406
24407         [BZ #14197]
24408         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24409
24410 2012-11-28  David S. Miller  <davem@davemloft.net>
24411
24412         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24413
24414 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24415
24416         [BZ #14803]
24417         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24418         of pi/2 rounded to nearest to 64 bits.
24419         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24420         nearest to 64 bits.
24421         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24422         bits.
24423
24424 2012-11-28  Jeff Law <law@redhat.com>
24425             Martin Osvald <mosvald@redhat.com>
24426
24427         [BZ #14889]
24428         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24429         * sunrpc/svc.c: Include time.h.
24430         (__svc_accept_failed): New function.
24431         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24432         any reason other than EINTR, call __svc_accept_failed.
24433         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24434         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24435
24436 2012-11-28  Andreas Schwab  <schwab@suse.de>
24437
24438         * scripts/abilist.awk: Also handle indirect functions in .opd
24439         section.
24440
24441 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24442
24443         [BZ #13881]
24444         * sysdeps/x86/fpu/powl_helper.c: New file.
24445         * sysdeps/x86/fpu/Makefile: Likewise.
24446         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24447         (p3): New object.
24448         (__ieee754_powl): Use __powl_helper for finite arguments except
24449         integer exponents below 8.
24450         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24451         (p3): New object.
24452         (__ieee754_powl): Use __powl_helper for finite arguments except
24453         integer exponents below 8.
24454         * math/libm-test.inc (pow_test): Add more tests and enable some
24455         previously disabled tests.
24456         * sysdeps/i386/fpu/libm-test-ulps: Update.
24457         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24458
24459 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24460             Carlos O'Donell  <carlos_odonell@mentor.com>
24461
24462         * nss/makedb.c (is_prime): Assert that input is odd and greater
24463         than 4.  Note that fact in a comment too.
24464         (next_prime): Add 4 to input.
24465
24466 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24467
24468         [BZ #11741]
24469         * libio/Makefile (tests): Add test case tst-fwrite-error.
24470         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24471         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24472         * libio/tst-fwrite-error.c: New test case.
24473
24474 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24475
24476         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24477         before casting to void *.
24478         * include/libc-internal.h (__pointer_type): New macro.
24479         (__integer_if_pointer_type_sub): Likewise.
24480         (__integer_if_pointer_type): Likewise.
24481         (cast_to_integer): Likewise.
24482         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24483         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24484         before casting to atomic64_t.
24485         (atomic_exchange_acq): Likewise.
24486         (__arch_exchange_and_add_body): Likewise.
24487         (__arch_add_body): Likewise.
24488         (atomic_add_negative): Likewise.
24489         (atomic_add_zero): Likewise.
24490
24491 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24492
24493         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24494         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24495         (add_fdes): Likewise.
24496         (linear_search_fdes): Likewise.
24497         (binary_search_unencoded_fdes): Likewise.
24498
24499 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24500
24501         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24502
24503 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24504
24505         * configure.in: Autodetect C++ header directories.
24506         * configure: Regenerated.
24507
24508 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24509
24510         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24511
24512 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24513
24514         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24515
24516 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24517
24518         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24519         LDBL_MANT_DIG == 106]: Disable some tests.
24520         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24521         Likewise.
24522         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24523         Likewise.
24524
24525         [BZ #14871]
24526         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24527         input for small inputs.  Return +/- pi/2 for large inputs.
24528         * math/libm-test.inc (atan_test): Add more tests.
24529
24530         * sysdeps/generic/unwind-dw2-fde-glibc.c
24531         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24532         __attribute__ ((unused)).
24533
24534         [BZ #14645]
24535         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
24536         x * y if x and y are nonzero and z is zero.
24537
24538         [BZ #14811]
24539         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
24540         nonzero exponents with absolute value below 0x1p-117 to +/-
24541         0x1p-117.
24542
24543         [BZ #14869]
24544         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
24545         up arguments below 2**-450, not just those below 2**-500.
24546         * math/libm-test.inc (hypot_test): Add another test.
24547
24548         [BZ #14868]
24549         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24550         Return a+b for ratio over 2**120, not 2**60.
24551         * math/libm-test.inc (hypot_test): Add another test.
24552
24553         * math/libm-test.inc (clog_test): Use
24554         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
24555         (clog10_test): Likewise.
24556
24557         [BZ #6778]
24558         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
24559
24560 2012-11-22  Andreas Schwab  <schwab@suse.de>
24561
24562         * sysdeps/i386/fpu/libm-test-ulps: Update.
24563
24564 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
24565
24566         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
24567         printf output with newline.
24568
24569 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
24570
24571         [BZ #14865]
24572         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
24573         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
24574         -z nodlopen, -z initfirst and -z execstack support.
24575         * configure: Regenerated.
24576
24577         * elf/elf.h (DF_1_NODIRECT): New macro.
24578         (DF_1_IGNMULDEF): Likewise.
24579         (DF_1_NOKSYMS): Likewise.
24580         (DF_1_NOHDR): Likewise.
24581         (DF_1_EDITED): Likewise.
24582         (DF_1_NORELOC): Likewise.
24583         (DF_1_SYMINTPOSE): Likewise.
24584         (DF_1_GLOBAUDIT): Likewise.
24585         (DF_1_SINGLETON): Likewise.
24586         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24587         DT_1_SUPPORTED_MASK bits.
24588         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24589
24590 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24591
24592         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24593
24594 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24595
24596         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24597         macro.
24598
24599         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24600         (sendmmsg): Move declarations...
24601         * socket/sys/socket.h: ... here.
24602         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24603         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24604         include it from...
24605         * socket/recvmmsg.c: ... this new file.
24606         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24607         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24608         definition of __sendmmsg hidden.
24609         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24610         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24611         Move ENOSYS stub into and include it from...
24612         * socket/sendmmsg.c: ... this new file.
24613         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24614         (sysdep_routines): Move recvmmsg and sendmmsg...
24615         * socket/Makefile (routines): ... here.
24616         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24617         (GLIBC_PRIVATE): Add __sendmmsg.
24618         * include/sys/socket.h (__sendmmsg): Add declarations.
24619         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24620         sendmmsg.
24621
24622 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24623
24624         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24625         variable I1 with __attribute__ ((unused)).
24626         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24627
24628 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24629
24630         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24631         DUMMY variables with __attribute__ ((unused)).
24632
24633         * bits/byteswap.h: Include <bits/types.h>.
24634         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24635
24636 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24637
24638         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24639         string_t.  Do not manually set errno.
24640         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24641         length with __strnlen.  Make sure to both set errno and return it on
24642         failure.
24643
24644 2012-11-19  David S. Miller  <davem@davemloft.net>
24645
24646         With help from Joseph Myers.
24647         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24648         very large arguments properly.
24649         * math/libm-test.inc (atan_test): New tests.
24650         (atan2_test): New tests.
24651         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24652         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24653
24654 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24655
24656         [BZ #14856]
24657         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24658         Define to 3.
24659
24660         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24661         [POSIX] (EADDRNOTAVAIL): Likewise.
24662         [POSIX] (EAFNOSUPPORT): Likewise.
24663         [POSIX] (EALREADY): Likewise.
24664         [POSIX] (ECONNABORTED): Likewise.
24665         [POSIX] (ECONNREFUSED): Likewise.
24666         [POSIX] (ECONNRESET): Likewise.
24667         [POSIX] (EDESTADDRREQ): Likewise.
24668         [POSIX] (EDQUOT): Likewise.
24669         [POSIX] (EHOSTUNREACH): Likewise.
24670         [POSIX] (EIDRM): Likewise.
24671         [POSIX] (EISCONN): Likewise.
24672         [POSIX] (ELOOP): Likewise.
24673         [POSIX] (EMULTIHOP): Likewise.
24674         [POSIX] (ENETDOWN): Likewise.
24675         [POSIX] (ENETUNREACH): Likewise.
24676         [POSIX] (ENOBUFS): Likewise.
24677         [POSIX] (ENODATA): Likewise.
24678         [POSIX] (ENOLINK): Likewise.
24679         [POSIX] (ENOMSG): Likewise.
24680         [POSIX] (ENOPROTOOPT): Likewise.
24681         [POSIX] (ENOSR): Likewise.
24682         [POSIX] (ENOSTR): Likewise.
24683         [POSIX] (ENOTCONN): Likewise.
24684         [POSIX] (ENOTSOCK): Likewise.
24685         [POSIX] (EOPNOTSUPP): Likewise.
24686         [POSIX] (EOVERFLOW): Likewise.
24687         [POSIX] (EPROTO): Likewise.
24688         [POSIX] (EPROTONOSUPPORT): Likewise.
24689         [POSIX] (EPROTOTYPE): Likewise.
24690         [POSIX] (ESTALE): Likewise.
24691         [POSIX] (ETIME): Likewise.
24692         [POSIX] (ETXTBSY): Likewise.
24693         [POSIX] (EWOULDBLOCK): Likewise.
24694         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24695         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24696         [POSIX] (SEEK_CUR): Likewise.
24697         [POSIX] (SEEK_END): Likewise.
24698         [POSIX || UNIX98] (mode_t): Do not require.
24699         [POSIX] (off_t): Likewise.
24700         [POSIX] (pid_t): Likewise.
24701         [POSIX] (sys/stat.h): Do not allow header.
24702         [POSIX] (unistd.h): Likewise.
24703         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24704         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24705         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24706         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24707         require.
24708         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24709         sigevent): Specify elements.
24710         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24711         entry.
24712         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24713         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24714
24715         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24716         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24717         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24718         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24719         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24720         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24721         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24722         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24723         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24724         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24725         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24726         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24727         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24728         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24729         Likewise.
24730         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24731         Likewise.
24732         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24733         Likewise.
24734         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24735         Likewise.
24736         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24737         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24738         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24739         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24740         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24741         Specify lower bound on value.
24742         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24743         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24744         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24745         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24746         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24747         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24748         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24749         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24750         value.
24751         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24752         as optional.
24753         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24754         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24755         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24756         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24757         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24758         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24759         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24760         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24761         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24762         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24763         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24764         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24765         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24766         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24767         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24768         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24769         entry.
24770         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24771         optional.
24772         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24773         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24774         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24775         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24776         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24777         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24778         Likewise.
24779         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24780         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24781         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24782         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24783         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24784         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24785         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24786         as optional.
24787         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24788         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24789         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24790         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24791         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24792         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24793         specify as optional.
24794         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24795         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24796         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24797         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24798         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24799         [XPG3] (NL_LANGMAX): Likewise.
24800         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24801         [POSIX || XPG3] (NL_NMAX): Likewise.
24802         [POSIX || XPG3] (NL_SETMAX): Likewise.
24803         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24804         [XPG3] (NZERO): Likewise.
24805         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24806         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24807         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24808         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24809         (REG_ERANGE): Expect.
24810         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24811         optional-constant.
24812         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24813         Use (void) in prototype.
24814         [POSIX] (*_t): Allow.
24815         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24816         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24817         (WRDE_BADVAL): Expect.
24818
24819         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24820         expect.
24821         [XPG3 || XPG4] (O_RSYNC): Likewise.
24822         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24823         Likewise.
24824         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24825         [XPG3 || XPG4] (sigqueue): Likewise.
24826         [XPG3 || XPG4] (sigtimedwait): Likewise.
24827         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24828         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24829         [XPG3 || XPG4] (vsnprintf): Likewise.
24830         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24831         Likewise.
24832         [XPG3 || XPG4] (blksize_t): Likewise.
24833         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24834         Likewise.
24835         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24836         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24837         [XPG3 || XPG4] (struct itimerspec): Likewise.
24838         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24839         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24840         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24841         [XPG3 || XPG4] (clockid_t): Likewise.
24842         [XPG3 || XPG4] (timer_t): Likewise.
24843         [XPG3 || XPG4] (clock_getres): Likewise.
24844         [XPG3 || XPG4] (clock_gettime): Likewise.
24845         [XPG3 || XPG4] (clock_settime): Likewise.
24846         [XPG3 || XPG4] (nanosleep): Likewise.
24847         [XPG3 || XPG4] (timer_create): Likewise.
24848         [XPG3 || XPG4] (timer_delete): Likewise.
24849         [XPG3 || XPG4] (timer_gettime): Likewise.
24850         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24851         [XPG3 || XPG4] (timer_settime): Likewise.
24852         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24853         [XPG3 || XPG4] (getlogin_r): Likewise.
24854         [XPG3 || XPG4] (pread): Likewise.
24855         [XPG3 || XPG4] (pthread_atfork): Likewise.
24856         [XPG3 || XPG4] (pwrite): Likewise.
24857
24858         [BZ #14835]
24859         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24860         <bits/siginfo.h>.
24861
24862 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24863
24864         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24865         finalizing MALLSTREAM.
24866
24867         * sysdeps/mach/hurd/syncfs.c: New file.
24868
24869 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24870
24871         [BZ #14719]
24872         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24873         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24874         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24875         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24876         (_nss_dns_gethostbyname4_r): Likewise.
24877         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24878         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24879
24880 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24881
24882         [BZ #13763]
24883         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24884
24885 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24886
24887         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24888         * elf/cache.c (print_entry): Print ",AArch64" for
24889         FLAG_AARCH64_LIB64
24890
24891         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24892         * elf/cache.c (print_entry): Print ",hard-float" for
24893         FLAG_ARM_LIBHF.
24894
24895 2012-11-18  David S. Miller  <davem@davemloft.net>
24896
24897         With help from Joseph Myers.
24898         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24899         cutoff to 2**-13.
24900         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24901         cutoff to 2**-25.
24902         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24903         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24904         small.
24905         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24906         * math/libm-test.inc (y0_test): New tests.
24907         (y1_test): New tests.
24908         * sysdeps/i386/fpu/libm-test-ulps: Update.
24909         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24910         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24911
24912 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24913
24914         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24915         64-bit targets.
24916         * configure: Regenerated.
24917
24918 2012-11-17  David S. Miller  <davem@davemloft.net>
24919
24920         [BZ #14811]
24921         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24922         nonzero exponents with absolute value below 0x1p-128 to +/-
24923         0x1p-128.
24924
24925 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24926
24927         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24928
24929         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24930
24931         * posix/getconf-speclist.c: New file.
24932         * posix/posix-envs.def: Likewise.
24933         * posix/confstr.c (START_ENV_GROUP): New macro.
24934         (END_ENV_GROUP): Likewise.
24935         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24936         (KNOWN_PRESENT_ENV_STRING): Likewise.
24937         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24938         (UNKNOWN_ENVIRONMENT): Likewise.
24939         (confstr): Include posix-envs.def instead of handling
24940         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24941         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24942         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24943         (END_ENV_GROUP): Likewise.
24944         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24945         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24946         (UNKNOWN_ENVIRONMENT): Likewise.
24947         (__sysconf): Include posix-envs.def instead of handling associated
24948         cases directly here.
24949         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24950         preprocessing getconf-speclist.c rather than running getconf or
24951         generating empty file.
24952
24953 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24954
24955         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24956
24957 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24958
24959         [BZ #14672]
24960         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24961
24962 2012-11-16  David S. Miller  <davem@davemloft.net>
24963
24964         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24965         smaller than LDBL_EPSILON/2.0L, just return xm1.
24966
24967 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24968
24969         * elf/tst-array1.c (init): Set constructor priority to 1000.
24970         (fini): Set destructor priority to 1000.
24971         * elf/tst-array2dep.c: Likewise.
24972
24973 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24974
24975         [BZ #11741]
24976         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24977         (_IO_new_file_xsputn): Also return EOF if none of the input
24978         data was written when overflow failed.
24979         * libio/iopadn.c (_IO_padn): Likewise.
24980         * libio/iowpadn.c (_IO_wpadn): Likewise.
24981         * stdio-common/tst-put-error.c: Add copyright notice.
24982         (do_test): Add case for printing padded string.
24983         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24984         _IO_padn returned error.
24985         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24986         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24987         return EOF.
24988
24989 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24990
24991         * libio/libioP.h: Add comment note that the references to C++
24992         bits are now obsolete.
24993
24994 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24995
24996         * math/libm-test.inc (check_complex): Use asprintf.
24997
24998 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24999
25000         * debug/pcprofiledump.c (print_version): Update copyright year.
25001         * malloc/memusagestat.c (print_version): Likewise.
25002
25003 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
25004
25005         [BZ #14831]
25006         * elf/Makefile (tests): Add tst-audit8.
25007         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
25008         ($(objpfx)tst-audit8.out): New target.
25009         (tst-audit8-ENV): New variable.
25010         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
25011         audit if l_reloc_result is NULL.
25012         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
25013         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
25014         * elf/tst-audit8.c: New file.
25015
25016 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25017
25018         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
25019         * misc/Makefile (CFLAGS-select.c): Define.
25020         * posix/Makefile (CFLAGS-pause.c): Define.
25021
25022 2012-11-13  David S. Miller  <davem@davemloft.net>
25023
25024         * crypt/Makefile: Move test targets after toplevel Rules
25025         inclusion.  Grab any necessary sysdep routines when linking.
25026         * crypt/md5.c (md5_process_block): Remove define, we will always
25027         name it __md5_process_block.
25028         (md5_finish_ctx): Update md5_process_block call.
25029         (md5_stream): Likewise.
25030         (md5_process_bytes): Likewise.
25031         (md5_process_block): Rename to __md5_process_block and move to ...
25032         * crypt/md5-block.c: ... here.
25033         * crypt/sha256.c (sha256_process_block): Move to ...
25034         * crypt/sha256-block.c: ... here.
25035         * crypt/sha512.c (sha512_process_block): Move to ...
25036         * crypt/sha512-block.c: ... here.
25037         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
25038         path.
25039         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
25040         * sysdeps/sparc/sparc64/multiarch/Makefile
25041         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
25042         crypt subdir.
25043         (localedef-aux): Add md5 crypto assembler when in locale subdir.
25044         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
25045         multiarch changes.
25046         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
25047         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
25048         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
25049         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
25050         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
25051         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
25052         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
25053         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
25054         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
25055         file.
25056         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
25057         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
25058         file.
25059         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
25060
25061 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
25062
25063         * timezone/tzselect.ksh: Update from tzcode git revision
25064         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
25065         * timezone/zdump.c: Likewise.
25066         * timezone/zic.c: Likewise.
25067         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
25068         in TZVERSION setting, not $(PKGVERSION).
25069         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
25070         REPORT_BUGS_TO settings.
25071
25072         [BZ #14838]
25073         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
25074         macro.
25075
25076 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25077
25078         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
25079         detection to immediately after _FP_ROUND().
25080         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
25081         bits are 0.
25082
25083 2012-11-11  David S. Miller  <davem@davemloft.net>
25084
25085         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
25086         inttypes.h
25087         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
25088         __close rather than their public counterparts.
25089
25090 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
25091
25092         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
25093         file.
25094         [UNIX98] (sem_timedwait): Do not expect.
25095         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
25096         [XPG4 || UNIX98] (sockatmark): Do not expect.
25097         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
25098         (clock_getcpuclockid): Do not expect.
25099         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
25100         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
25101         Do not expect.
25102         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
25103         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
25104         [UNIX98] (vwscanf): Likewise.
25105         [UNIX98] (vswscanf): Likewise.
25106
25107 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
25108
25109         * timezone/version.h: Remove file.
25110         * timezone/README: Do not refer to version.h.
25111         * timezone/Makefile ($(objpfx)zic.o): New dependency on
25112         $(objpfx)version.h.
25113         ($(objpfx)zdump.o): Likewise.
25114         ($(objpfx)version.h): New target.
25115
25116         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
25117         2012i.
25118         * timezone/README: Don't mention modification to tzselect.ksh.
25119         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
25120         work on unmodified tzselect.ksh.  Substitute version numbers in
25121         tzselect.ksh.
25122
25123         * Makefile (format-me): Remove.
25124         (INSTALL): Adjust indentation.  Use commands directly instead of
25125         using $(format-me).
25126
25127         * aclocal.m4 (ACX_PKGVERSION): New macro.
25128         (ACX_BUGURL): Likewise.
25129         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
25130         (PKGVERSION): New AC_DEFINE_UNQUOTED.
25131         (REPORT_BUGS_TO): Likewise.
25132         * configure: Regenerated.
25133         * config.h.in (PKGVERSION): New macro.
25134         (REPORT_BUGS_TO): Likewise.
25135         * config.make.in (PKGVERSION): New variable.
25136         (PKGVERSION_TEXI): Likewise.
25137         (REPORT_BUGS_TO): Likewise.
25138         (REPORT_BUGS_TEXI): Likewise.
25139         * Makefile (format-me): Use -I$(common-objpfx)manual.
25140         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
25141         ($(common-objpfx)manual/%): New target.
25142         (manual/%): Remove target.
25143         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
25144         (print_version): Use PKGVERSION.
25145         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
25146         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
25147         and REPORT_BUGS_TO.
25148         ($(objpfx)xtrace): Likewise.
25149         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
25150         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
25151         (print_version): Use PKGVERSION.
25152         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
25153         (do_version): Use PKGVERSION.
25154         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
25155         REPORT_BUGS_TO.
25156         (common-ldd-rewrite): Likewise.
25157         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
25158         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
25159         (print_version): Use PKGVERSION.
25160         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
25161         * elf/pldd.c (argp_program_bug_address): Remove variable.
25162         (more_help): New function.
25163         (argp): Use more_help.
25164         (print_version): Use PKGVERSION.
25165         * elf/sln.c (main): Use PKGVERSION.
25166         (usage): Use REPORT_BUGS_TO.
25167         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
25168         (top level): Use PKGVERSION.
25169         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
25170         (print_version): Use PKGVERSION.
25171         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
25172         (print_version): Use PKGVERSION.
25173         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
25174         (print_version): Use PKGVERSION.
25175         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
25176         (print_version): Use PKGVERSION.
25177         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
25178         (print_version): Use PKGVERSION.
25179         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
25180         (print_version): Use PKGVERSION.
25181         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
25182         and BUGURL.
25183         ($(objpfx)memusage): Likewise.
25184         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
25185         (do_version): Use PKGVERSION.
25186         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
25187         (print_version): Use PKGVERSION.
25188         * malloc/mtrace.pl ($PACKAGE): Remove variable.
25189         ($PKGVERSION): New variable.
25190         ($REPORT_BUGS_TO): Likewise.
25191         (usage): Use $REPORT_BUGS_TO.
25192         (top level): Use $PKGVERSION.
25193         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25194         ($(objpfx)pkgvers.texi): New rule.
25195         ($(objpfx)stamp-pkgvers): Likewise.
25196         * manual/install.texi: Include pkgvers.texi.
25197         (--with-pkgversion): Document new configure option.
25198         (--with-bugurl): Likewise.
25199         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25200         than necessarily for this particular distribution.  Use
25201         REPORT_BUGS_TO for where to report bugs.
25202         * INSTALL: Regenerated.
25203         * manual/libc.texinfo: Include pkgvers.texi.
25204         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25205         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25206         (print_version): Use PKGVERSION.
25207         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25208         (print_version): Use PKGVERSION.
25209         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25210         (print_version): Use PKGVERSION.
25211         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25212         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25213         macro.
25214         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25215         (print_version): Use PKGVERSION.
25216         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25217         (print_version): Use PKGVERSION.
25218         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25219         and PKGVERSION.
25220
25221         * timezone/checktab.awk: Update from tzcode 2012i.
25222         * timezone/ialloc.c: Likewise.
25223         * timezone/private.h: Likewise.
25224         * timezone/scheck.c: Likewise.
25225         * timezone/tzfile.h: Likewise.
25226         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25227         (TZVERSION): Hardcode tzcode version number.
25228         * timezone/zdump.c: Update from tzcode 2012i.
25229         * timezone/zic.c: Likewise.
25230         * timezone/version.h: New file.
25231         * timezone/README: Describe version.h.  Update upstream location.
25232
25233         [BZ #14824]
25234         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25235         (mktemp): Enable declaration.
25236         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25237         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25238         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25239         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25240         Likewise.
25241         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25242         Likewise.
25243         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25244         Likewise.
25245         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25246         Likewise.
25247         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25248         Likewise.
25249         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25250         Likewise.
25251
25252         [BZ #14821]
25253         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25254         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25255         for copies of such integer values.
25256         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25257         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25258
25259 2012-11-09  Andreas Jaeger  <aj@suse.de>
25260
25261         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25262         definitions and declarations that are provided by
25263         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25264
25265 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25266
25267         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25268         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25269         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25270         definition.
25271
25272 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25273
25274         * elf/elf.h: Update comment before AArch64 relocations.
25275
25276 2012-11-07  David S. Miller  <davem@davemloft.net>
25277
25278         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25279         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25280         (__start_context): Declare.
25281         (__makecontext_ret): Delete.
25282         (__makecontext): Hook up __start_context instead of
25283         __makecontext_ret.
25284         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25285         (sysdep_routines): Add __start_context when in stdlib.
25286
25287 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25288
25289         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25290         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25291         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25292         hardcoded "nm".
25293         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25294         (READELF): New variable.  Use it instead of hardcoded "readelf".
25295
25296 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25297
25298         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25299         * sysdeps/x86/Makefile: Here.
25300         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25301         * sysdeps/x86/tst-xmmymm.sh: This.
25302
25303 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25304
25305         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25306         expectations.
25307         [UNIX98] (pthread_barrier_t): Do not expect.
25308         [UNIX98] (pthread_barrierattr_t): Likewise.
25309         [UNIX98] (pthread_spinlock_t): Likewise.
25310         [UNIX98] (pthread_barrier_destroy): Likewise.
25311         [UNIX98] (pthread_barrier_init): Likewise.
25312         [UNIX98] (pthread_barrier_wait): Likewise.
25313         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25314         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25315         [UNIX98] (pthread_barrierattr_init): Likewise.
25316         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25317         [UNIX98] (pthread_getcpuclockid): Likewise.
25318         [UNIX98] (pthread_mutex_timedlock): Likewise.
25319         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25320         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25321         [UNIX98] (pthread_sigmask): Likewise.
25322         [UNIX98] (pthread_spin_destroy): Likewise.
25323         [UNIX98] (pthread_spin_init): Likewise.
25324         [UNIX98] (pthread_spin_lock): Likewise.
25325         [UNIX98] (pthread_spin_trylock): Likewise.
25326         [UNIX98] (pthread_spin_unlock): Likewise.
25327         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25328         Do not expect.
25329         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25330         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25331         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25332         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25333         [XPG3 || XPG4] (pthread_key_t): Likewise.
25334         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25335         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25336         [XPG3 || XPG4] (pthread_once_t): Likewise.
25337         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25338         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25339         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25340         [XPG3 || XPG4] (pthread_t): Likewise.
25341
25342         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25343         not expect.
25344         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25345
25346         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25347         Change function return type to int.
25348
25349         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25350         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25351         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25352         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25353         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25354         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25355         [!POSIX] (posix_madvise): Likewise.
25356         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25357         && !UNIX98].
25358         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25359         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25360         (mode_t): Likewise.
25361         (posix_mem_offset): Likewise.
25362         (posix_typed_mem_get_info): Likewise.
25363         (posix_typed_mem_open): Likewise.
25364
25365         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25366         Change condition to [XOPEN2K8].
25367
25368         * conform/conformtest.pl: Preprocess allow-header data with -x c
25369         instead of from stdin.
25370         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25371         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25372         [C99-based standards] (cerfc): Likewise.
25373         [C99-based standards] (cexp2): Likewise.
25374         [C99-based standards] (cexpm1): Likewise.
25375         [C99-based standards] (clog10): Likewise.
25376         [C99-based standards] (clog1p): Likewise.
25377         [C99-based standards] (clog2): Likewise.
25378         [C99-based standards] (clgamma): Likewise.
25379         [C99-based standards] (ctgamma): Likewise.
25380         [C99-based standards] (cerff): Likewise.
25381         [C99-based standards] (cerfcf): Likewise.
25382         [C99-based standards] (cexp2f): Likewise.
25383         [C99-based standards] (cexpm1f): Likewise.
25384         [C99-based standards] (clog10f): Likewise.
25385         [C99-based standards] (clog1pf): Likewise.
25386         [C99-based standards] (clog2f): Likewise.
25387         [C99-based standards] (clgammaf): Likewise.
25388         [C99-based standards] (ctgammaf): Likewise.
25389         [C99-based standards] (cerfl): Likewise.
25390         [C99-based standards] (cerfcl): Likewise.
25391         [C99-based standards] (cexp2l): Likewise.
25392         [C99-based standards] (cexpm1l): Likewise.
25393         [C99-based standards] (clog10l): Likewise.
25394         [C99-based standards] (clog1pl): Likewise.
25395         [C99-based standards] (clog2l): Likewise.
25396         [C99-based standards] (clgammal): Likewise.
25397         [C99-based standards] (ctgammal): Likewise.
25398         * conform/data/inttypes.h-data [C99-based standards]: Include
25399         stdint.h-data.  Remove all expectations for stdint.h contents.
25400         [C99-based standards] (PRI*): Do not allow.
25401         [C99-based standards] (SCN*): Likewise.
25402         [C99-based standards] (*_t): Likewise.
25403         [C99-based-standards] (PRId8): Expect macro.
25404         [C99-based-standards] (PRIi8): Likewise.
25405         [C99-based-standards] (PRIo8): Likewise.
25406         [C99-based-standards] (PRIu8): Likewise.
25407         [C99-based-standards] (PRIx8): Likewise.
25408         [C99-based-standards] (PRIX8): Likewise.
25409         [C99-based-standards] (SCNd8): Likewise.
25410         [C99-based-standards] (SCNi8): Likewise.
25411         [C99-based-standards] (SCNo8): Likewise.
25412         [C99-based-standards] (SCNu8): Likewise.
25413         [C99-based-standards] (SCNx8): Likewise.
25414         [C99-based-standards] (PRIdLEAST8): Likewise.
25415         [C99-based-standards] (PRIiLEAST8): Likewise.
25416         [C99-based-standards] (PRIoLEAST8): Likewise.
25417         [C99-based-standards] (PRIuLEAST8): Likewise.
25418         [C99-based-standards] (PRIxLEAST8): Likewise.
25419         [C99-based-standards] (PRIXLEAST8): Likewise.
25420         [C99-based-standards] (SCNdLEAST8): Likewise.
25421         [C99-based-standards] (SCNiLEAST8): Likewise.
25422         [C99-based-standards] (SCNoLEAST8): Likewise.
25423         [C99-based-standards] (SCNuLEAST8): Likewise.
25424         [C99-based-standards] (SCNxLEAST8): Likewise.
25425         [C99-based-standards] (PRIdFAST8): Likewise.
25426         [C99-based-standards] (PRIiFAST8): Likewise.
25427         [C99-based-standards] (PRIoFAST8): Likewise.
25428         [C99-based-standards] (PRIuFAST8): Likewise.
25429         [C99-based-standards] (PRIxFAST8): Likewise.
25430         [C99-based-standards] (PRIXFAST8): Likewise.
25431         [C99-based-standards] (SCNdFAST8): Likewise.
25432         [C99-based-standards] (SCNiFAST8): Likewise.
25433         [C99-based-standards] (SCNoFAST8): Likewise.
25434         [C99-based-standards] (SCNuFAST8): Likewise.
25435         [C99-based-standards] (SCNxFAST8): Likewise.
25436         [C99-based-standards] (PRId16): Likewise.
25437         [C99-based-standards] (PRIi16): Likewise.
25438         [C99-based-standards] (PRIo16): Likewise.
25439         [C99-based-standards] (PRIu16): Likewise.
25440         [C99-based-standards] (PRIx16): Likewise.
25441         [C99-based-standards] (PRIX16): Likewise.
25442         [C99-based-standards] (SCNd16): Likewise.
25443         [C99-based-standards] (SCNi16): Likewise.
25444         [C99-based-standards] (SCNo16): Likewise.
25445         [C99-based-standards] (SCNu16): Likewise.
25446         [C99-based-standards] (SCNx16): Likewise.
25447         [C99-based-standards] (PRIdLEAST16): Likewise.
25448         [C99-based-standards] (PRIiLEAST16): Likewise.
25449         [C99-based-standards] (PRIoLEAST16): Likewise.
25450         [C99-based-standards] (PRIuLEAST16): Likewise.
25451         [C99-based-standards] (PRIxLEAST16): Likewise.
25452         [C99-based-standards] (PRIXLEAST16): Likewise.
25453         [C99-based-standards] (SCNdLEAST16): Likewise.
25454         [C99-based-standards] (SCNiLEAST16): Likewise.
25455         [C99-based-standards] (SCNoLEAST16): Likewise.
25456         [C99-based-standards] (SCNuLEAST16): Likewise.
25457         [C99-based-standards] (SCNxLEAST16): Likewise.
25458         [C99-based-standards] (PRIdFAST16): Likewise.
25459         [C99-based-standards] (PRIiFAST16): Likewise.
25460         [C99-based-standards] (PRIoFAST16): Likewise.
25461         [C99-based-standards] (PRIuFAST16): Likewise.
25462         [C99-based-standards] (PRIxFAST16): Likewise.
25463         [C99-based-standards] (PRIXFAST16): Likewise.
25464         [C99-based-standards] (SCNdFAST16): Likewise.
25465         [C99-based-standards] (SCNiFAST16): Likewise.
25466         [C99-based-standards] (SCNoFAST16): Likewise.
25467         [C99-based-standards] (SCNuFAST16): Likewise.
25468         [C99-based-standards] (SCNxFAST16): Likewise.
25469         [C99-based-standards] (PRId32): Likewise.
25470         [C99-based-standards] (PRIi32): Likewise.
25471         [C99-based-standards] (PRIo32): Likewise.
25472         [C99-based-standards] (PRIu32): Likewise.
25473         [C99-based-standards] (PRIx32): Likewise.
25474         [C99-based-standards] (PRIX32): Likewise.
25475         [C99-based-standards] (SCNd32): Likewise.
25476         [C99-based-standards] (SCNi32): Likewise.
25477         [C99-based-standards] (SCNo32): Likewise.
25478         [C99-based-standards] (SCNu32): Likewise.
25479         [C99-based-standards] (SCNx32): Likewise.
25480         [C99-based-standards] (PRIdLEAST32): Likewise.
25481         [C99-based-standards] (PRIiLEAST32): Likewise.
25482         [C99-based-standards] (PRIoLEAST32): Likewise.
25483         [C99-based-standards] (PRIuLEAST32): Likewise.
25484         [C99-based-standards] (PRIxLEAST32): Likewise.
25485         [C99-based-standards] (PRIXLEAST32): Likewise.
25486         [C99-based-standards] (SCNdLEAST32): Likewise.
25487         [C99-based-standards] (SCNiLEAST32): Likewise.
25488         [C99-based-standards] (SCNoLEAST32): Likewise.
25489         [C99-based-standards] (SCNuLEAST32): Likewise.
25490         [C99-based-standards] (SCNxLEAST32): Likewise.
25491         [C99-based-standards] (PRIdFAST32): Likewise.
25492         [C99-based-standards] (PRIiFAST32): Likewise.
25493         [C99-based-standards] (PRIoFAST32): Likewise.
25494         [C99-based-standards] (PRIuFAST32): Likewise.
25495         [C99-based-standards] (PRIxFAST32): Likewise.
25496         [C99-based-standards] (PRIXFAST32): Likewise.
25497         [C99-based-standards] (SCNdFAST32): Likewise.
25498         [C99-based-standards] (SCNiFAST32): Likewise.
25499         [C99-based-standards] (SCNoFAST32): Likewise.
25500         [C99-based-standards] (SCNuFAST32): Likewise.
25501         [C99-based-standards] (SCNxFAST32): Likewise.
25502         [C99-based-standards] (PRId64): Likewise.
25503         [C99-based-standards] (PRIi64): Likewise.
25504         [C99-based-standards] (PRIo64): Likewise.
25505         [C99-based-standards] (PRIu64): Likewise.
25506         [C99-based-standards] (PRIx64): Likewise.
25507         [C99-based-standards] (PRIX64): Likewise.
25508         [C99-based-standards] (SCNd64): Likewise.
25509         [C99-based-standards] (SCNi64): Likewise.
25510         [C99-based-standards] (SCNo64): Likewise.
25511         [C99-based-standards] (SCNu64): Likewise.
25512         [C99-based-standards] (SCNx64): Likewise.
25513         [C99-based-standards] (PRIdLEAST64): Likewise.
25514         [C99-based-standards] (PRIiLEAST64): Likewise.
25515         [C99-based-standards] (PRIoLEAST64): Likewise.
25516         [C99-based-standards] (PRIuLEAST64): Likewise.
25517         [C99-based-standards] (PRIxLEAST64): Likewise.
25518         [C99-based-standards] (PRIXLEAST64): Likewise.
25519         [C99-based-standards] (SCNdLEAST64): Likewise.
25520         [C99-based-standards] (SCNiLEAST64): Likewise.
25521         [C99-based-standards] (SCNoLEAST64): Likewise.
25522         [C99-based-standards] (SCNuLEAST64): Likewise.
25523         [C99-based-standards] (SCNxLEAST64): Likewise.
25524         [C99-based-standards] (PRIdFAST64): Likewise.
25525         [C99-based-standards] (PRIiFAST64): Likewise.
25526         [C99-based-standards] (PRIoFAST64): Likewise.
25527         [C99-based-standards] (PRIuFAST64): Likewise.
25528         [C99-based-standards] (PRIxFAST64): Likewise.
25529         [C99-based-standards] (PRIXFAST64): Likewise.
25530         [C99-based-standards] (SCNdFAST64): Likewise.
25531         [C99-based-standards] (SCNiFAST64): Likewise.
25532         [C99-based-standards] (SCNoFAST64): Likewise.
25533         [C99-based-standards] (SCNuFAST64): Likewise.
25534         [C99-based-standards] (SCNxFAST64): Likewise.
25535         [C99-based-standards] (PRIdMAX): Likewise.
25536         [C99-based-standards] (PRIiMAX): Likewise.
25537         [C99-based-standards] (PRIoMAX): Likewise.
25538         [C99-based-standards] (PRIuMAX): Likewise.
25539         [C99-based-standards] (PRIxMAX): Likewise.
25540         [C99-based-standards] (PRIXMAX): Likewise.
25541         [C99-based-standards] (SCNdMAX): Likewise.
25542         [C99-based-standards] (SCNiMAX): Likewise.
25543         [C99-based-standards] (SCNoMAX): Likewise.
25544         [C99-based-standards] (SCNuMAX): Likewise.
25545         [C99-based-standards] (SCNxMAX): Likewise.
25546         [C99-based-standards] (PRIdPTR): Likewise.
25547         [C99-based-standards] (PRIiPTR): Likewise.
25548         [C99-based-standards] (PRIoPTR): Likewise.
25549         [C99-based-standards] (PRIuPTR): Likewise.
25550         [C99-based-standards] (PRIxPTR): Likewise.
25551         [C99-based-standards] (PRIXPTR): Likewise.
25552         [C99-based-standards] (SCNdPTR): Likewise.
25553         [C99-based-standards] (SCNiPTR): Likewise.
25554         [C99-based-standards] (SCNoPTR): Likewise.
25555         [C99-based-standards] (SCNuPTR): Likewise.
25556         [C99-based-standards] (SCNxPTR): Likewise.
25557         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
25558         allow.
25559         * conform/data/stdint.h-data: Update comments to clarify
25560         requirements.
25561         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
25562         type.
25563         [C99-based standards] (INT8_MAX): Likewise.
25564         [C99-based standards] (INT16_MIN): Likewise.
25565         [C99-based standards] (INT16_MAX): Likewise.
25566         [C99-based standards] (INT32_MIN): Likewise.
25567         [C99-based standards] (INT32_MAX): Likewise.
25568         [C99-based standards] (INT64_MIN): Likewise.
25569         [C99-based standards] (INT64_MAX): Likewise.
25570         [C99-based standards] (UINT8_MAX): Likewise.
25571         [C99-based standards] (UINT16_MAX): Likewise.
25572         [C99-based standards] (UINT32_MAX): Likewise.
25573         [C99-based standards] (UINT64_MAX): Likewise.
25574         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25575         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25576         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25577         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25578         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25579         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25580         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25581         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25582         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25583         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25584         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25585         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25586         [C99-based standards] (INT_FAST8_MIN): Likewise.
25587         [C99-based standards] (INT_FAST8_MAX): Likewise.
25588         [C99-based standards] (INT_FAST16_MIN): Likewise.
25589         [C99-based standards] (INT_FAST16_MAX): Likewise.
25590         [C99-based standards] (INT_FAST32_MIN): Likewise.
25591         [C99-based standards] (INT_FAST32_MAX): Likewise.
25592         [C99-based standards] (INT_FAST64_MIN): Likewise.
25593         [C99-based standards] (INT_FAST64_MAX): Likewise.
25594         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25595         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25596         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25597         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25598         [C99-based standards] (INTPTR_MIN): Likewise.
25599         [C99-based standards] (INTPTR_MAX): Likewise.
25600         [C99-based standards] (UINTPTR_MAX): Likewise.
25601         [C99-based standards] (INTMAX_MIN): Likewise.
25602         [C99-based standards] (INTMAX_MAX): Likewise.
25603         [C99-based standards] (UINTMAX_MAX): Likewise.
25604         [C99-based standards] (PTRDIFF_MIN): Likewise.
25605         [C99-based standards] (PTRDIFF_MAX): Likewise.
25606         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25607         [C99-based standards] (SIZE_MAX): Likewise.
25608         [C99-based standards] (WCHAR_MAX): Likewise.
25609         [C99-based standards] (WINT_MAX): Likewise.
25610         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25611         constraint on value.
25612         [C99-based standards] (WCHAR_MIN): Likewise.
25613         [C99-based standards] (WINT_MIN): Likewise.
25614         [C99-based standards] (*_t): Allow.
25615         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25616         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25617         Include math.h-data and complex.h-data.  Remove all expectations
25618         of math.h and complex.h contents.
25619         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25620         at end of line.
25621         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25622         (struct tm): Expect tag.
25623         [C99-based-standards] (wcstof): Expect function.
25624         [C99-based-standards] (wcstold): Likewise.
25625         [C99-based-standards] (wcstoll): Likewise.
25626         [C99-based-standards] (wcstoull): Likewise.
25627         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25628         macro-int-constant.  Specify type.
25629         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25630         constraint on value.
25631         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25632         Specify type.
25633         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25634         Specify value.
25635         [ISO C standards]: Do not allow headers.
25636         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25637         wcs[abcdefghijklmnopqrstuvwxyz]*.
25638         [ISO C standards] (*_t): Do not allow.
25639         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25640         Expect function.
25641         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25642         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25643         Specify type.
25644         [ISO C standards]: Do not allow headers.
25645         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25646         is[abcdefghijklmnopqrstuvwxyz]*.
25647         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25648         to[abcdefghijklmnopqrstuvwxyz]*.
25649         [ISO C standards] (*_t): Do not allow.
25650         * conform/data/stdalign.h-data: New file.
25651         * conform/data/stdbool.h-data: Likewise.
25652         * conform/data/stdnoreturn.h-data: Likewise.
25653
25654 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25655
25656         [BZ #14815]
25657         * manual/filesys.texi (Directory Entries): Typo fix.
25658         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25659
25660 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25661
25662         * elf/elf.h (EM_AARCH64): New macro.
25663         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25664         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25665         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25666         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25667         (R_AARCH64_TLSDESC): Likewise.
25668         (NT_ARM_TLS): Likewise.
25669         (NT_ARM_HW_BREAK): Likewise.
25670         (NT_ARM_HW_WATCH): Likewise.
25671
25672 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25673
25674         [BZ #14811]
25675         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25676         (__ieee754_powl): Saturate nonzero exponents with absolute value
25677         below 0x1p-79 to +/- 0x1p-79.
25678         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25679         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25680         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25681         nonzero exponents with absolute value below 0x1p-32 to +/-
25682         0x1p-32.
25683         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25684         (__ieee754_powl): Saturate nonzero exponents with absolute value
25685         below 0x1p-79 to +/- 0x1p-79.
25686         * math/libm-test.inc (pow_test): Add more tests.
25687
25688 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25689
25690         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25691         _dl_s390_cap_flags with kernel. Increase string length.
25692         (_dl_s390_platforms): Add z196 and zEC12.
25693
25694 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25695
25696         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25697         Change XOPEN21K to XOPEN2K.
25698
25699 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25700
25701         * string/memmove.c: Use memcpy when possible.
25702
25703 2012-11-06  Andreas Jaeger  <aj@suse.de>
25704
25705         * po/eo.po: Update from translation team.
25706
25707 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25708
25709         [BZ #14793]
25710         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25711         exponent and small x and y exponents, scale x or y up.  Increase
25712         by 2 the exponent used in scaling up.
25713         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25714         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25715         * math/libm-test.inc (fma_test): Add more tests.
25716         (fma_test_towardzero): Likewise.
25717         (fma_test_downward): Likewise.
25718         (fma_test_upward): Likewise.
25719
25720 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25721
25722         [BZ #14805]
25723         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25724         fenv_t *.
25725
25726         [BZ #14801]
25727         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25728         namespace for names of struct fields.
25729         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25730         fenv_t fields.
25731         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25732         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25733
25734 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25735
25736         [BZ #3665]
25737         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25738
25739 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25740
25741         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25742         PTR_DEMANGLE.
25743
25744         [BZ #5246]
25745         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25746         PTR_DEMANGLE.
25747
25748 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25749
25750         [BZ #14797]
25751         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25752         definitely overflow as x * y not x * y + z.
25753         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25754         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25755         * math/libm-test.inc (fma_test): Add more tests.
25756         (fma_test_towardzero): Likewise.
25757         (fma_test_downward): Likewise.
25758         (fma_test_upward): Likewise.
25759
25760 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25761
25762         [BZ #157]
25763
25764         * include/stub-tag.h: Remove file.
25765         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25766         '#include' of it.
25767         * manual/maint.texi (Porting): Don't reference it.
25768         * Makerules ($(objpfx)stubs): Likewise.
25769         * dirent/closedir.c: Don't include <stub-tag.h>.
25770         * dirent/dirfd.c: Likewise.
25771         * dirent/fdopendir.c: Likewise.
25772         * dirent/getdents.c: Likewise.
25773         * dirent/getdents64.c: Likewise.
25774         * dirent/opendir.c: Likewise.
25775         * dirent/readdir.c: Likewise.
25776         * dirent/readdir64.c: Likewise.
25777         * dirent/readdir64_r.c: Likewise.
25778         * dirent/readdir_r.c: Likewise.
25779         * dirent/rewinddir.c: Likewise.
25780         * dirent/seekdir.c: Likewise.
25781         * dirent/telldir.c: Likewise.
25782         * gmon/profil.c: Likewise.
25783         * grp/setgroups.c: Likewise.
25784         * inet/if_index.c: Likewise.
25785         * io/access.c: Likewise.
25786         * io/chdir.c: Likewise.
25787         * io/chmod.c: Likewise.
25788         * io/chown.c: Likewise.
25789         * io/close.c: Likewise.
25790         * io/dup.c: Likewise.
25791         * io/dup2.c: Likewise.
25792         * io/dup3.c: Likewise.
25793         * io/euidaccess.c: Likewise.
25794         * io/faccessat.c: Likewise.
25795         * io/fchdir.c: Likewise.
25796         * io/fchmod.c: Likewise.
25797         * io/fchmodat.c: Likewise.
25798         * io/fchown.c: Likewise.
25799         * io/fchownat.c: Likewise.
25800         * io/fcntl.c: Likewise.
25801         * io/flock.c: Likewise.
25802         * io/fstatfs.c: Likewise.
25803         * io/fstatfs64.c: Likewise.
25804         * io/fstatvfs.c: Likewise.
25805         * io/fstatvfs64.c: Likewise.
25806         * io/futimens.c: Likewise.
25807         * io/fxstat.c: Likewise.
25808         * io/fxstat64.c: Likewise.
25809         * io/fxstatat.c: Likewise.
25810         * io/fxstatat64.c: Likewise.
25811         * io/getcwd.c: Likewise.
25812         * io/isatty.c: Likewise.
25813         * io/lchmod.c: Likewise.
25814         * io/lchown.c: Likewise.
25815         * io/link.c: Likewise.
25816         * io/linkat.c: Likewise.
25817         * io/lseek.c: Likewise.
25818         * io/lseek64.c: Likewise.
25819         * io/lxstat64.c: Likewise.
25820         * io/mkdir.c: Likewise.
25821         * io/mkdirat.c: Likewise.
25822         * io/mkfifo.c: Likewise.
25823         * io/mkfifoat.c: Likewise.
25824         * io/open.c: Likewise.
25825         * io/open64.c: Likewise.
25826         * io/openat.c: Likewise.
25827         * io/openat64.c: Likewise.
25828         * io/pipe.c: Likewise.
25829         * io/pipe2.c: Likewise.
25830         * io/poll.c: Likewise.
25831         * io/posix_fadvise.c: Likewise.
25832         * io/posix_fadvise64.c: Likewise.
25833         * io/posix_fallocate.c: Likewise.
25834         * io/posix_fallocate64.c: Likewise.
25835         * io/read.c: Likewise.
25836         * io/readlink.c: Likewise.
25837         * io/readlinkat.c: Likewise.
25838         * io/rmdir.c: Likewise.
25839         * io/sendfile.c: Likewise.
25840         * io/sendfile64.c: Likewise.
25841         * io/statfs.c: Likewise.
25842         * io/statfs64.c: Likewise.
25843         * io/statvfs.c: Likewise.
25844         * io/statvfs64.c: Likewise.
25845         * io/symlink.c: Likewise.
25846         * io/symlinkat.c: Likewise.
25847         * io/ttyname.c: Likewise.
25848         * io/ttyname_r.c: Likewise.
25849         * io/umask.c: Likewise.
25850         * io/unlink.c: Likewise.
25851         * io/unlinkat.c: Likewise.
25852         * io/utime.c: Likewise.
25853         * io/utimensat.c: Likewise.
25854         * io/write.c: Likewise.
25855         * io/xmknod.c: Likewise.
25856         * io/xmknodat.c: Likewise.
25857         * io/xstat.c: Likewise.
25858         * io/xstat64.c: Likewise.
25859         * login/getpt.c: Likewise.
25860         * login/grantpt.c: Likewise.
25861         * login/unlockpt.c: Likewise.
25862         * math/e_acoshl.c: Likewise.
25863         * math/e_acosl.c: Likewise.
25864         * math/e_asinl.c: Likewise.
25865         * math/e_atan2l.c: Likewise.
25866         * math/e_atanhl.c: Likewise.
25867         * math/e_coshl.c: Likewise.
25868         * math/e_expl.c: Likewise.
25869         * math/e_fmodl.c: Likewise.
25870         * math/e_gammal_r.c: Likewise.
25871         * math/e_hypotl.c: Likewise.
25872         * math/e_j0l.c: Likewise.
25873         * math/e_j1l.c: Likewise.
25874         * math/e_jnl.c: Likewise.
25875         * math/e_lgammal_r.c: Likewise.
25876         * math/e_log10l.c: Likewise.
25877         * math/e_log2l.c: Likewise.
25878         * math/e_logl.c: Likewise.
25879         * math/e_powl.c: Likewise.
25880         * math/e_rem_pio2l.c: Likewise.
25881         * math/e_sinhl.c: Likewise.
25882         * math/e_sqrtl.c: Likewise.
25883         * math/fclrexcpt.c: Likewise.
25884         * math/fedisblxcpt.c: Likewise.
25885         * math/feenablxcpt.c: Likewise.
25886         * math/fegetenv.c: Likewise.
25887         * math/fegetexcept.c: Likewise.
25888         * math/fegetround.c: Likewise.
25889         * math/feholdexcpt.c: Likewise.
25890         * math/fesetenv.c: Likewise.
25891         * math/fesetround.c: Likewise.
25892         * math/feupdateenv.c: Likewise.
25893         * math/fgetexcptflg.c: Likewise.
25894         * math/fraiseexcpt.c: Likewise.
25895         * math/fsetexcptflg.c: Likewise.
25896         * math/ftestexcept.c: Likewise.
25897         * math/k_cosl.c: Likewise.
25898         * math/k_rem_pio2l.c: Likewise.
25899         * math/k_sinl.c: Likewise.
25900         * math/k_tanl.c: Likewise.
25901         * math/s_asinhl.c: Likewise.
25902         * math/s_atanl.c: Likewise.
25903         * math/s_cbrtl.c: Likewise.
25904         * math/s_erfl.c: Likewise.
25905         * math/s_expm1l.c: Likewise.
25906         * math/s_log1pl.c: Likewise.
25907         * math/s_tanhl.c: Likewise.
25908         * misc/acct.c: Likewise.
25909         * misc/brk.c: Likewise.
25910         * misc/chflags.c: Likewise.
25911         * misc/chroot.c: Likewise.
25912         * misc/fchflags.c: Likewise.
25913         * misc/fgetxattr.c: Likewise.
25914         * misc/flistxattr.c: Likewise.
25915         * misc/fremovexattr.c: Likewise.
25916         * misc/fsetxattr.c: Likewise.
25917         * misc/fsync.c: Likewise.
25918         * misc/ftruncate.c: Likewise.
25919         * misc/futimes.c: Likewise.
25920         * misc/futimesat.c: Likewise.
25921         * misc/getdomain.c: Likewise.
25922         * misc/getdtsz.c: Likewise.
25923         * misc/gethostid.c: Likewise.
25924         * misc/gethostname.c: Likewise.
25925         * misc/getloadavg.c: Likewise.
25926         * misc/getpagesize.c: Likewise.
25927         * misc/getsysstats.c: Likewise.
25928         * misc/getxattr.c: Likewise.
25929         * misc/gtty.c: Likewise.
25930         * misc/ioctl.c: Likewise.
25931         * misc/lgetxattr.c: Likewise.
25932         * misc/listxattr.c: Likewise.
25933         * misc/llistxattr.c: Likewise.
25934         * misc/lremovexattr.c: Likewise.
25935         * misc/lsetxattr.c: Likewise.
25936         * misc/lutimes.c: Likewise.
25937         * misc/madvise.c: Likewise.
25938         * misc/mincore.c: Likewise.
25939         * misc/mlock.c: Likewise.
25940         * misc/mlockall.c: Likewise.
25941         * misc/mmap.c: Likewise.
25942         * misc/mprotect.c: Likewise.
25943         * misc/msync.c: Likewise.
25944         * misc/munlock.c: Likewise.
25945         * misc/munlockall.c: Likewise.
25946         * misc/munmap.c: Likewise.
25947         * misc/preadv.c: Likewise.
25948         * misc/preadv64.c: Likewise.
25949         * misc/ptrace.c: Likewise.
25950         * misc/pwritev.c: Likewise.
25951         * misc/pwritev64.c: Likewise.
25952         * misc/readv.c: Likewise.
25953         * misc/reboot.c: Likewise.
25954         * misc/remap_file_pages.c: Likewise.
25955         * misc/removexattr.c: Likewise.
25956         * misc/revoke.c: Likewise.
25957         * misc/select.c: Likewise.
25958         * misc/setdomain.c: Likewise.
25959         * misc/setegid.c: Likewise.
25960         * misc/seteuid.c: Likewise.
25961         * misc/sethostid.c: Likewise.
25962         * misc/sethostname.c: Likewise.
25963         * misc/setregid.c: Likewise.
25964         * misc/setreuid.c: Likewise.
25965         * misc/setxattr.c: Likewise.
25966         * misc/sstk.c: Likewise.
25967         * misc/stty.c: Likewise.
25968         * misc/swapoff.c: Likewise.
25969         * misc/swapon.c: Likewise.
25970         * misc/sync.c: Likewise.
25971         * misc/syncfs.c: Likewise.
25972         * misc/syscall.c: Likewise.
25973         * misc/truncate.c: Likewise.
25974         * misc/ualarm.c: Likewise.
25975         * misc/usleep.c: Likewise.
25976         * misc/ustat.c: Likewise.
25977         * misc/utimes.c: Likewise.
25978         * misc/vhangup.c: Likewise.
25979         * misc/writev.c: Likewise.
25980         * posix/_exit.c: Likewise.
25981         * posix/alarm.c: Likewise.
25982         * posix/execve.c: Likewise.
25983         * posix/fexecve.c: Likewise.
25984         * posix/fork.c: Likewise.
25985         * posix/fpathconf.c: Likewise.
25986         * posix/getaddrinfo.c: Likewise.
25987         * posix/getegid.c: Likewise.
25988         * posix/geteuid.c: Likewise.
25989         * posix/getgid.c: Likewise.
25990         * posix/getgroups.c: Likewise.
25991         * posix/getlogin.c: Likewise.
25992         * posix/getlogin_r.c: Likewise.
25993         * posix/getpgid.c: Likewise.
25994         * posix/getpid.c: Likewise.
25995         * posix/getppid.c: Likewise.
25996         * posix/getresgid.c: Likewise.
25997         * posix/getresuid.c: Likewise.
25998         * posix/getsid.c: Likewise.
25999         * posix/getuid.c: Likewise.
26000         * posix/glob64.c: Likewise.
26001         * posix/nanosleep.c: Likewise.
26002         * posix/pathconf.c: Likewise.
26003         * posix/pause.c: Likewise.
26004         * posix/posix_madvise.c: Likewise.
26005         * posix/pread.c: Likewise.
26006         * posix/pread64.c: Likewise.
26007         * posix/pwrite.c: Likewise.
26008         * posix/pwrite64.c: Likewise.
26009         * posix/sched_getaffinity.c: Likewise.
26010         * posix/sched_getp.c: Likewise.
26011         * posix/sched_gets.c: Likewise.
26012         * posix/sched_primax.c: Likewise.
26013         * posix/sched_primin.c: Likewise.
26014         * posix/sched_rr_gi.c: Likewise.
26015         * posix/sched_setaffinity.c: Likewise.
26016         * posix/sched_setp.c: Likewise.
26017         * posix/sched_sets.c: Likewise.
26018         * posix/sched_yield.c: Likewise.
26019         * posix/setgid.c: Likewise.
26020         * posix/setlogin.c: Likewise.
26021         * posix/setpgid.c: Likewise.
26022         * posix/setresgid.c: Likewise.
26023         * posix/setresuid.c: Likewise.
26024         * posix/setsid.c: Likewise.
26025         * posix/setuid.c: Likewise.
26026         * posix/sleep.c: Likewise.
26027         * posix/spawni.c: Likewise.
26028         * posix/sysconf.c: Likewise.
26029         * posix/times.c: Likewise.
26030         * posix/wait.c: Likewise.
26031         * posix/wait3.c: Likewise.
26032         * posix/wait4.c: Likewise.
26033         * posix/waitpid.c: Likewise.
26034         * resolv/gai_sigqueue.c: Likewise.
26035         * resource/getpriority.c: Likewise.
26036         * resource/getrlimit.c: Likewise.
26037         * resource/getrusage.c: Likewise.
26038         * resource/nice.c: Likewise.
26039         * resource/setpriority.c: Likewise.
26040         * resource/setrlimit.c: Likewise.
26041         * resource/ulimit.c: Likewise.
26042         * rt/aio_cancel.c: Likewise.
26043         * rt/aio_fsync.c: Likewise.
26044         * rt/aio_read.c: Likewise.
26045         * rt/aio_sigqueue.c: Likewise.
26046         * rt/aio_suspend.c: Likewise.
26047         * rt/aio_write.c: Likewise.
26048         * rt/clock_getres.c: Likewise.
26049         * rt/clock_gettime.c: Likewise.
26050         * rt/clock_nanosleep.c: Likewise.
26051         * rt/clock_settime.c: Likewise.
26052         * rt/lio_listio.c: Likewise.
26053         * rt/mq_close.c: Likewise.
26054         * rt/mq_getattr.c: Likewise.
26055         * rt/mq_notify.c: Likewise.
26056         * rt/mq_open.c: Likewise.
26057         * rt/mq_receive.c: Likewise.
26058         * rt/mq_send.c: Likewise.
26059         * rt/mq_setattr.c: Likewise.
26060         * rt/mq_timedreceive.c: Likewise.
26061         * rt/mq_timedsend.c: Likewise.
26062         * rt/mq_unlink.c: Likewise.
26063         * rt/shm_open.c: Likewise.
26064         * rt/shm_unlink.c: Likewise.
26065         * rt/timer_create.c: Likewise.
26066         * rt/timer_delete.c: Likewise.
26067         * rt/timer_getoverr.c: Likewise.
26068         * rt/timer_gettime.c: Likewise.
26069         * rt/timer_settime.c: Likewise.
26070         * setjmp/__longjmp.c: Likewise.
26071         * setjmp/setjmp.c: Likewise.
26072         * signal/kill.c: Likewise.
26073         * signal/killpg.c: Likewise.
26074         * signal/raise.c: Likewise.
26075         * signal/sigaction.c: Likewise.
26076         * signal/sigaltstack.c: Likewise.
26077         * signal/sigblock.c: Likewise.
26078         * signal/sigignore.c: Likewise.
26079         * signal/sigintr.c: Likewise.
26080         * signal/signal.c: Likewise.
26081         * signal/sigpause.c: Likewise.
26082         * signal/sigpending.c: Likewise.
26083         * signal/sigqueue.c: Likewise.
26084         * signal/sigreturn.c: Likewise.
26085         * signal/sigset.c: Likewise.
26086         * signal/sigsetmask.c: Likewise.
26087         * signal/sigstack.c: Likewise.
26088         * signal/sigsuspend.c: Likewise.
26089         * signal/sigtimedwait.c: Likewise.
26090         * signal/sigvec.c: Likewise.
26091         * signal/sigwait.c: Likewise.
26092         * signal/sigwaitinfo.c: Likewise.
26093         * signal/sysv_signal.c: Likewise.
26094         * socket/accept.c: Likewise.
26095         * socket/accept4.c: Likewise.
26096         * socket/bind.c: Likewise.
26097         * socket/connect.c: Likewise.
26098         * socket/getpeername.c: Likewise.
26099         * socket/getsockname.c: Likewise.
26100         * socket/getsockopt.c: Likewise.
26101         * socket/isfdtype.c: Likewise.
26102         * socket/listen.c: Likewise.
26103         * socket/recv.c: Likewise.
26104         * socket/recvfrom.c: Likewise.
26105         * socket/recvmsg.c: Likewise.
26106         * socket/send.c: Likewise.
26107         * socket/sendmsg.c: Likewise.
26108         * socket/sendto.c: Likewise.
26109         * socket/setsockopt.c: Likewise.
26110         * socket/shutdown.c: Likewise.
26111         * socket/sockatmark.c: Likewise.
26112         * socket/socket.c: Likewise.
26113         * socket/socketpair.c: Likewise.
26114         * stdio-common/ctermid.c: Likewise.
26115         * stdio-common/cuserid.c: Likewise.
26116         * stdio-common/remove.c: Likewise.
26117         * stdio-common/rename.c: Likewise.
26118         * stdio-common/renameat.c: Likewise.
26119         * stdio-common/tempname.c: Likewise.
26120         * stdlib/getcontext.c: Likewise.
26121         * stdlib/makecontext.c: Likewise.
26122         * stdlib/setcontext.c: Likewise.
26123         * stdlib/swapcontext.c: Likewise.
26124         * stdlib/system.c: Likewise.
26125         * streams/fattach.c: Likewise.
26126         * streams/fdetach.c: Likewise.
26127         * streams/getmsg.c: Likewise.
26128         * streams/getpmsg.c: Likewise.
26129         * streams/putmsg.c: Likewise.
26130         * streams/putpmsg.c: Likewise.
26131         * sysdeps/unix/bsd/getpt.c: Likewise.
26132         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
26133         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
26134         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
26135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26136         Likewise.
26137         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
26138         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26139         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
26140         * sysvipc/msgctl.c: Likewise.
26141         * sysvipc/msgget.c: Likewise.
26142         * sysvipc/msgrcv.c: Likewise.
26143         * sysvipc/msgsnd.c: Likewise.
26144         * sysvipc/semctl.c: Likewise.
26145         * sysvipc/semget.c: Likewise.
26146         * sysvipc/semop.c: Likewise.
26147         * sysvipc/semtimedop.c: Likewise.
26148         * sysvipc/shmat.c: Likewise.
26149         * sysvipc/shmctl.c: Likewise.
26150         * sysvipc/shmdt.c: Likewise.
26151         * sysvipc/shmget.c: Likewise.
26152         * termios/tcdrain.c: Likewise.
26153         * termios/tcflow.c: Likewise.
26154         * termios/tcflush.c: Likewise.
26155         * termios/tcgetattr.c: Likewise.
26156         * termios/tcgetpgrp.c: Likewise.
26157         * termios/tcsendbrk.c: Likewise.
26158         * termios/tcsetattr.c: Likewise.
26159         * termios/tcsetpgrp.c: Likewise.
26160         * time/adjtime.c: Likewise.
26161         * time/clock.c: Likewise.
26162         * time/getitimer.c: Likewise.
26163         * time/gettimeofday.c: Likewise.
26164         * time/setitimer.c: Likewise.
26165         * time/settimeofday.c: Likewise.
26166         * time/stime.c: Likewise.
26167         * time/time.c: Likewise.
26168
26169 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
26170
26171         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
26172         /usr/old/bin.
26173
26174         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
26175         instead of spaces.
26176         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
26177
26178 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
26179
26180         [BZ #14796]
26181         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
26182         FE_TONEAREST before applying Dekker multiplication and Knuth
26183         addition.  Clear inexact exceptions and check for exact zero
26184         results afterwards.
26185         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26186         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26187         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26188         * math/libm-test.inc (fma_test): Add more tests.
26189         (fma_test_towardzero): Likewise.
26190         (fma_test_downward): Likewise.
26191         (fma_test_upward): Likewise.
26192         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26193         function.
26194         (libc_fesetround): New macro.
26195         (libc_fesetroundf): Likewise.
26196         (libc_fesetroundl): Likewise.
26197         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26198         function.
26199         (libc_fesetround_387): Likewise.
26200         (libc_fesetroundf): New macro.
26201         (libc_fesetround): Likewise.
26202         (libc_fesetroundl): Likewise.
26203         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26204         function.
26205         (libc_fesetroundf): New macro.
26206         (libc_fesetround): Likewise.
26207         (libc_fesetroundl): Likewise.
26208         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26209         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26210         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26211         libm_hidden_ver.
26212         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26213         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26214         libm_hidden_def.
26215         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26216         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26217         libm_hidden_ver.
26218         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26219         libm_hidden_def.
26220
26221         [BZ #3439]
26222         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26223         integer constant usable in #if and use that to give value to enum
26224         constant.
26225         (FE_DIVBYZERO): Likewise.
26226         (FE_UNDERFLOW): Likewise.
26227         (FE_OVERFLOW): Likewise.
26228         (FE_INVALID): Likewise.
26229         (FE_INVALID_SNAN): Likewise.
26230         (FE_INVALID_ISI): Likewise.
26231         (FE_INVALID_IDI): Likewise.
26232         (FE_INVALID_ZDZ): Likewise.
26233         (FE_INVALID_IMZ): Likewise.
26234         (FE_INVALID_COMPARE): Likewise.
26235         (FE_INVALID_SOFTWARE): Likewise.
26236         (FE_INVALID_SQRT): Likewise.
26237         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26238         (FE_TONEAREST): Likewise.
26239         (FE_TOWARDZERO): Likewise.
26240         (FE_UPWARD): Likewise.
26241         (FE_DOWNWARD): Likewise.
26242         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26243         (FE_DIVBYZERO): Likewise.
26244         (FE_OVERFLOW): Likewise.
26245         (FE_UNDERFLOW): Likewise.
26246         (FE_INEXACT): Likewise.
26247         (FE_TONEAREST): Likewise.
26248         (FE_DOWNWARD): Likewise.
26249         (FE_UPWARD): Likewise.
26250         (FE_TOWARDZERO): Likewise.
26251         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26252         (FE_UNDERFLOW): Likewise.
26253         (FE_OVERFLOW): Likewise.
26254         (FE_DIVBYZERO): Likewise.
26255         (FE_INVALID): Likewise.
26256         (FE_TONEAREST): Likewise.
26257         (FE_TOWARDZERO): Likewise.
26258         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26259         (FE_OVERFLOW): Likewise.
26260         (FE_UNDERFLOW): Likewise.
26261         (FE_DIVBYZERO): Likewise.
26262         (FE_INEXACT): Likewise.
26263         (FE_TONEAREST): Likewise.
26264         (FE_TOWARDZERO): Likewise.
26265         (FE_UPWARD): Likewise.
26266         (FE_DOWNWARD): Likewise.
26267         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26268         (FE_DIVBYZERO): Likewise.
26269         (FE_OVERFLOW): Likewise.
26270         (FE_UNDERFLOW): Likewise.
26271         (FE_INEXACT): Likewise.
26272         (FE_TONEAREST): Likewise.
26273         (FE_DOWNWARD): Likewise.
26274         (FE_UPWARD): Likewise.
26275         (FE_TOWARDZERO): Likewise.
26276
26277 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26278
26279         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26280
26281 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26282
26283         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26284         commands.  Quote $PWD.
26285         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26286         -x" by "export".
26287         (remove_newlines): Remove.
26288
26289 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26290
26291         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26292         * stdlib/stdlib.h (atof): Moved to ...
26293         * include/bits/stdlib-float.h: Here.  New file.
26294         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26295         * stdlib/bits/stdlib-float.h: New file.
26296         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26297         -mno-sse -mno-mmx.
26298         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26299         <xmmintrin.h>.
26300
26301 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26302
26303         * conform/conformtest.pl (@headers): Add fenv.h.
26304         * conform/data/fenv.h-data: New file.
26305         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26306         include of <math/fenv.h>.
26307
26308         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26309         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26310         && !UNIX98].  Enables tests for XOPEN2K8.
26311         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26312         POSIX2008]: Likewise.
26313
26314         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26315         (struct rusage): Do not expect type or its members.
26316
26317         [BZ #3439]
26318         * math/math.h (FP_NAN): Define macro to integer constant usable in
26319         #if and use that to give value to enum constant.
26320         (FP_INFINITE): Likewise.
26321         (FP_ZERO): Likewise.
26322         (FP_SUBNORMAL): Likewise.
26323         (FP_NORMAL): Likewise.
26324
26325 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26326
26327         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26328         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26329         arguments.
26330
26331 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26332
26333         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26334         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26335         autoconf-time if not.
26336         * configure.in: Remove AC_PREREQ.
26337
26338 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26339
26340         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26341         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26342         of the internal implementation.
26343
26344 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26345
26346         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26347         except include of <misc/sys/syslog.h>.
26348
26349 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26350
26351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26352         function returns with a NULL context exit with zero.
26353
26354 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26355
26356         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26357
26358 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26359
26360         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26361         (run_program_cmd): This.
26362         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26363         (tst_langinfo): New variable.  Use it.
26364
26365 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26366
26367         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26368         floating point opcodes.
26369
26370 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26371
26372         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26373         variable.
26374
26375         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26376
26377         * sysdeps/mach/hurd/powerpc: Remove directory.
26378         * sysdeps/mach/powerpc: Likewise.
26379
26380 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26381
26382         * scripts/check-local-headers.sh: Ignore c++ headers.
26383
26384 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26385
26386         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26387         __libc_cleanup_region_start argument.
26388
26389 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26390
26391         [BZ #14784]
26392         [BZ #14785]
26393         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26394         x * y using scaling, not as x * y + z.
26395         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26396         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26397         * math/libm-test.inc (fma_test): Add more tests.
26398         (fma_test_towardzero): Likewise.
26399         (fma_test_downward): Likewise.
26400         (fma_test_upward): Likewise.
26401
26402 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26403
26404         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26405
26406 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26407
26408         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26409         New variable.
26410
26411 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26412
26413         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26414
26415 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26416
26417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26418         Fix sort order.
26419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26420         Likewise.
26421
26422 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26423
26424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26425         Fix the order of the list for glibc 2.17.
26426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26427         Likewise.
26428
26429 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26430
26431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26432
26433 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26434
26435         [BZ #14610]
26436         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26437         for low part of x being zero before using __atanl (y).
26438         * math/libm-test.inc (atan2_test): Add another test.
26439
26440         * manual/install.texi (Configuring and compiling): Document
26441         general use of test-wrapper and test-wrapper-env.
26442         * INSTALL: Regenerated.
26443
26444         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26445         (__fma): Do not extract and scale down low bits on after-rounding
26446         systems when result rounded to normal precision would have normal
26447         exponent.
26448         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26449         (__fmal): Do not extract and scale down low bits on after-rounding
26450         systems when result rounded to normal precision would have normal
26451         exponent.
26452         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26453         (__fmal): Do not extract and scale down low bits on after-rounding
26454         systems when result rounded to normal precision would have normal
26455         exponent.
26456         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26457         macro.
26458         (fma_test): Add more tests.
26459         (fma_test_towardzero): Likewise.
26460         (fma_test_downward): Likewise.
26461         (fma_test_upward): Likewise.
26462
26463 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26464
26465         * sysdeps/i386/tininess.h: Renamed to ...
26466         * sysdeps/x86/tininess.h: This.
26467         * sysdeps/x86_64/tininess.h: Removed.
26468
26469 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26470
26471         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26472         input.  Use $(build-program-cmd).
26473         ($(objpfx)tst-array1-static.out): Likewise.
26474         ($(objpfx)tst-array2.out): Likewise.
26475         ($(objpfx)tst-array3.out): Likewise.
26476         ($(objpfx)tst-array4.out): Likewise.
26477         ($(objpfx)tst-array5.out): Likewise.
26478         ($(objpfx)tst-array5-static.out): Likewise.
26479
26480 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26481
26482         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26483         if defined.
26484
26485         * nss/nsswitch.h (nss_interface_function): Provide new
26486         macro for use with NSS functions.
26487         * grp/initgroups.c: Use new macro.
26488         * nss/getXXbyYY.c: Likewise.
26489         * nss/getXXbyYY_r.c: Likewise.
26490         * nss/getXXent.c: Likewise.
26491         * nss/getXXent_r.c: Likewise.
26492         * sysdeps/posix/getaddrinfo.c: Likewise.
26493
26494 2012-10-30  Andreas Jaeger  <aj@suse.de>
26495
26496         * po/ru.po: Update Russion translation from translation project.
26497
26498 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26499
26500         [BZ #14152]
26501         [BZ #14783]
26502         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26503         result and shift together with sticky bit instead of replicating
26504         round-to-nearest rounding.
26505         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26506         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26507         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26508         missing underflow exceptions.
26509         (fma_test_towardzero): Add more tests.
26510         (fma_test_downward): Likewise.
26511         (fma_test_upward): Likewise.
26512
26513         [BZ #14047]
26514         * sysdeps/generic/tininess.h: New file.
26515         * sysdeps/i386/tininess.h: Likewise.
26516         * sysdeps/sh/tininess.h: Likewise.
26517         * sysdeps/x86_64/tininess.h: Likewise.
26518         * stdlib/tst-strtod-underflow.c: Likewise.
26519         * stdlib/tst-tininess.c: Likewise.
26520         * stdlib/strtod_l.c: Include <tininess.h>.
26521         (round_and_return): Do not set errno for exact underflow cases.
26522         Force an underflow exception when setting errno for underflow.
26523         Determine underflow based on rounding to normal precision if
26524         TININESS_AFTER_ROUNDING.
26525         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26526         ERANGE for exact underflow cases.
26527         * stdlib/Makefile (tests): Add tst-tininess and
26528         tst-strtod-underflow.
26529         ($(objpfx)tst-tininess): Use $(link-libm).
26530         ($(objpfx)tst-strtod-underflow): Likewise.
26531
26532 2012-10-30  Andreas Jaeger  <aj@suse.de>
26533
26534         [BZ#14767]
26535         * elf/Makefile (tests): Remove conditional for have-initfini-array
26536         since this is now always required and the variable does not exist
26537         anymore.
26538         (tests-static): Likewise.
26539         (modules-names): Likewise.
26540
26541         * po/eo.po: Add Esperanto translation from translation project.
26542
26543         * elf/tst-array1.c (fini_array): Make writeable so that it can be
26544         merged with constructor/destructor.
26545         (init_array): Likewise.
26546         * elf/tst-array2dep.c (fini_array): Likewise.
26547         (init_array): Likewise.
26548
26549 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
26550
26551         * manual/message.texi: Delete @cartouche tags.
26552
26553 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
26554
26555         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
26556         EOPNOTSUPP.
26557         * sysdeps/mach/hurd/fsync.c: Likewise.
26558
26559         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
26560         [_POSIX_REALTIME_SIGNALS]: Change condition to
26561         [_POSIX_REALTIME_SIGNALS > 0].
26562
26563 2012-10-27  Andreas Jaeger  <aj@suse.de>
26564
26565         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
26566         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
26567         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
26568         [__WORDSIZE != 64]: Likewise.
26569
26570 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
26571
26572         *  iconvdata/tst-table.sh: Remove ${SHELL}.
26573         *  iconvdata/tst-tables.sh: Likewise.
26574
26575 2012-10-25  David S. Miller  <davem@davemloft.net>
26576
26577         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26578         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26579         of strtoull.
26580
26581         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26582         ifunc-impl-list.c
26583         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26584         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26585         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26586         file.
26587
26588 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26589
26590         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26591         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26592         __getdirentries.
26593
26594 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26595             Jim Blandy  <jimb@codesourcery.com>
26596
26597         * scripts/cross-test-ssh.sh: New file.
26598         * manual/install.texi (Configuring and compiling): Document use of
26599         cross-test-ssh.sh.
26600         * INSTALL: Regenerated.
26601
26602 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26603
26604         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26605         EOPNOTSUPP.
26606
26607 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26608
26609         * Makeconfig (run-program-prefix): Fix comment.
26610
26611 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26612             Jim Blandy  <jimb@codesourcery.com>
26613
26614         * Makeconfig (test-wrapper): New variable,
26615         (test-wrapper-env): Likewise.
26616         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26617         (run-built-tests): Define to yes.
26618         (run-program-prefix): Use $(test-wrapper).
26619         (built-program-cmd): Likewise.
26620         * Rules (make-test-out): Use $(test-wrapper-env) and
26621         $(host-built-program-cmd).
26622         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26623         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26624         tst-pathopt.sh.
26625         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26626         $(test-wrapper-env) to tst-rtld-load-self.sh.
26627         ($(objpfx)order2.out): Use $(test-wrapper).
26628         ($(objpfx)tst-initorder.out): Likewise.
26629         ($(objpfx)tst-initorder2.out): Likewise.
26630         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26631         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26632         (test_wrapper_env): New variable.  Use it to run ld.so.
26633         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26634         Use it to run ld.so.
26635         (test_wrapper_env): Likewise.
26636         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26637         $(test-wrapper) to run-iconv-test.sh.
26638         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26639         (ICONV): Use $test_wrapper.
26640         * posix/Makefile ($(objpfx)globtest.out): Pass
26641         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26642         globtest.sh, not $(run-program-prefix).
26643         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26644         (test_wrapper): Likewise.
26645         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26646         set together with run_via_rtld_prefix.
26647         (run_program_prefix): Define in terms of test_wrapper and
26648         run_via_rtld_prefix.
26649
26650 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26651
26652         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26653         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26654         Targets removed.
26655
26656         [BZ #14743]
26657         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26658         Declare __clock_getres, __clock_gettime, __clock_settime,
26659         __clock_nanosleep, and __clock_getcpuclockid.
26660         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26661         Remove librt_hidden_def (clock_gettime).
26662         * sysdeps/unix/clock_gettime.c: Likewise.
26663         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26664         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26665         * rt/clock_getres.c: Define __clock_getres as an alias.
26666         * sysdeps/posix/clock_getres.c: Likewise.
26667         * rt/clock_settime.c: Define __clock_settime as an alias.
26668         * sysdeps/unix/clock_settime.c: Likewise.
26669         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26670         * sysdeps/unix/clock_nanosleep.c: Likewise.
26671         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26672         * rt/clock-compat.c: New file.
26673         * rt/Makefile (librt-routines): Add clock-compat and move
26674         $(clock-routines) to ...
26675         (routines): ... here, new variable.
26676         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26677         Don't add get_clockfreq here.
26678         * rt/Versions (libc: GLIBC_2.17): New version set.
26679         Add clock_* symbols here.
26680         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26681         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26682         (GLIBC_2.17): Add clock_* symbols.
26683         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26684         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26685         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26687         Likewise.
26688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26689         Likewise.
26690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26691         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26692         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26694         * NEWS: Mention the move.
26695
26696         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26697         Use __open, __read, __close rather than their public counterparts.
26698         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26699         (__get_clockfreq_via_cpuinfo): Likewise.
26700         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26701         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26702
26703         * config.h.in (HAVE_IFUNC): New #undef.
26704         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26705         was successful.
26706         * configure: Regenerated.
26707
26708 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26709
26710         * configure.in: Move READELF check to start of file.
26711         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26712         libc_cv_asm_gnu_indirect_function in the process.
26713         * configure: Regenerated.
26714
26715 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26716
26717         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26718         send the output to /dev/null.
26719         (libc_cv_cc_with_libunwind): Likewise.
26720         (libc_cv_as_noexecstack): Likewise.
26721         * configure: Regenerate.
26722
26723 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26724
26725         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26726
26727         * posix/globtest.sh (TMPDIR): Do not set.
26728         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26729         (testout): Likewise.
26730
26731 2012-10-24  Andreas Jaeger  <aj@suse.de>
26732
26733         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26734         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26735         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26736         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26737         posix_fadvise64, posix_fallocate64.
26738
26739         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26740         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26741         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26742         Likewise.
26743         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26744         Likewise.
26745         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26746
26747         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26748         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26749         <bits/fcntl-linux.h>.
26750         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26751
26752         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26753         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26754         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26755         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26756         [__WORDSIZE != 64]: Likewise.
26757
26758 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26759
26760         * Makeconfig (run-built-tests): New variable.
26761         * Rules [$(cross-compiling) = yes]: Change condition to
26762         [$(run-built-tests) = no].
26763         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26764         to [$(run-built-tests) = yes].
26765         * elf/Makefile [$(cross-compiling) = no]: Likewise
26766         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26767         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26768         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26769         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26770         * io/Makefile [$(cross-compiling) = no]: Likewise.
26771         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26772         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26773         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26774         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26775         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26776         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26777         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26778         * string/Makefile [$(cross-compiling) = no]: Likewise.
26779
26780         * posix/Makefile ($(objpfx)globtest.out): Pass
26781         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26782         $(rtld-installed-name).
26783         * posix/globtest.sh (elf_objpfx): Remove variable.
26784         (rtld_installed_name): Likewise.
26785         (library_path): Likewise.
26786         (run_program_prefix): New variable.  Use for running globtest
26787         binary.
26788
26789 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26790             Joseph Myers  <joseph@codesourcery.com>
26791
26792         * Makeconfig (host-built-program-cmd): New variable.
26793         * elf/Makefile (tst-stackguard1-ARGS): Use
26794         $(host-built-program-cmd).
26795         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26796         (tst-spawn-ARGS): Likewise.
26797         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26798
26799 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26800             Jim Blandy  <jimb@codesourcery.com>
26801
26802         * Makeconfig (run-via-rtld-prefix): New variable.
26803         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26804         (built-program-cmd): Likewise.
26805
26806 2012-10-22  Andreas Jaeger  <aj@suse.de>
26807
26808         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26809         __O_RSYNC if it exists, otherwise to O_SYNC.
26810
26811 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26812             Joseph Myers  <joseph@codesourcery.com>
26813
26814         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26815         /dev/null.
26816         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26817         from /dev/null
26818         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26819         /dev/null.
26820
26821 2012-10-22  Andreas Jaeger  <aj@suse.de>
26822
26823         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26824         Define always.
26825         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26826
26827         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26828         bits/fcntl-linux.h.
26829
26830         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26831         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26832
26833         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26834         to __O_LARGEFILE.
26835         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26836         to __O_LARGEFILE.
26837
26838 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26839             Joseph Myers  <joseph@codesourcery.com>
26840
26841         * config.make.in (NM): New variable.
26842
26843 2012-10-21  Andreas Jaeger  <aj@suse.de>
26844
26845         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26846         definitions and declarations that are provided by
26847         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26848
26849 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26850
26851         [BZ #14683]
26852         * elf/Makefile (tests-static): Add tst-leaks1-static.
26853         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26854         ($(objpfx)tst-leaks1-static): New rule.
26855         ($(objpfx)tst-leaks1-static-mem): Likewise.
26856         (tst-leaks1-static-ENV): New macro.
26857         * elf/dl-open.c (dl_open_worker): Check the main application
26858         only if SHARED is defined.
26859         * elf/tst-leaks1-static.c: New file.
26860
26861 2012-10-20  Andreas Jaeger  <aj@suse.de>
26862
26863         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26864         generic values for Linux.
26865         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26866         and declarations that are provided by <bits/fcntl-linux.h> and
26867         include <bits/fcntl-linux.h>.
26868         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26869         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26870
26871 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26872
26873         * io/fcntl.h: Move include of <bits/types.h> to the top and
26874         include it unconditionally.
26875
26876 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26877
26878         * wcsmbs/Makefile (tests-ifunc): New variable.
26879         (tests): Add $(tests-ifunc).
26880         * wcsmbs/test-wcschr-ifunc.c: New file.
26881         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26882         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26883         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26884         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26885         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26886
26887         * string/Makefile (tests-ifunc): New variable.
26888         (tests): Add $(tests-ifunc).
26889         * string/test-memccpy.c (TEST_NAME): New macro.
26890         * string/test-memchr.c (TEST_NAME): Likewise.
26891         * string/test-memcmp.c (TEST_NAME): Likewise.
26892         * string/test-memcpy.c (TEST_NAME): Likewise.
26893         * string/test-memmem.c (TEST_NAME): Likewise.
26894         * string/test-memmove.c (TEST_NAME): Likewise.
26895         * string/test-memset.c (TEST_NAME): Likewise.
26896         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26897         * string/test-stpcpy.c (TEST_NAME): Likewise.
26898         * string/test-stpncpy.c (TEST_NAME): Likewise.
26899         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26900         * string/test-strcasestr.c (TEST_NAME): Likewise.
26901         * string/test-strcat.c (TEST_NAME): Likewise.
26902         * string/test-strchr.c (TEST_NAME): Likewise.
26903         * string/test-strcmp.c(TEST_NAME): Likewise.
26904         * string/test-strcpy.c (TEST_NAME): Likewise.
26905         * string/test-strcspn.c (TEST_NAME): Likewise.
26906         * string/test-strlen.c (TEST_NAME): Likewise.
26907         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26908         * string/test-strncmp.c (TEST_NAME): Likewise.
26909         * string/test-strncpy.c (TEST_NAME): Likewise.
26910         * string/test-strnlen.c (TEST_NAME): Likewise.
26911         * string/test-strpbrk.c (TEST_NAME): Likewise.
26912         * string/test-strrchr.c (TEST_NAME): Likewise.
26913         * string/test-strspn.c (TEST_NAME): Likewise.
26914         * string/test-strstr.c (TEST_NAME): Likewise.
26915         * string/test-bcopy-ifunc.c: New file.
26916         * string/test-bzero-ifunc.c: Likewise.
26917         * string/test-memccpy-ifunc.c: Likewise.
26918         * string/test-memchr-ifunc.c: Likewise.
26919         * string/test-memcmp-ifunc.c: Likewise.
26920         * string/test-memcpy-ifunc.c: Likewise.
26921         * string/test-memmem-ifunc.c: Likewise.
26922         * string/test-memmove-ifunc.c: Likewise.
26923         * string/test-mempcpy-ifunc.c: Likewise.
26924         * string/test-memset-ifunc.c: Likewise.
26925         * string/test-rawmemchr-ifunc.c: Likewise.
26926         * string/test-stpcpy-ifunc.c: Likewise.
26927         * string/test-stpncpy-ifunc.c: Likewise.
26928         * string/test-strcasecmp-ifunc.c: Likewise.
26929         * string/test-strcasestr-ifunc.c: Likewise.
26930         * string/test-strcat-ifunc.c: Likewise.
26931         * string/test-strchr-ifunc.c: Likewise.
26932         * string/test-strchrnul-ifunc.c: Likewise.
26933         * string/test-strcmp-ifunc.c: Likewise.
26934         * string/test-strcpy-ifunc.c: Likewise.
26935         * string/test-strcspn-ifunc.c: Likewise.
26936         * string/test-strlen-ifunc.c: Likewise.
26937         * string/test-strncasecmp-ifunc.c: Likewise.
26938         * string/test-strncat-ifunc.c: Likewise.
26939         * string/test-strncmp-ifunc.c: Likewise.
26940         * string/test-strncpy-ifunc.c: Likewise.
26941         * string/test-strnlen-ifunc.c: Likewise.
26942         * string/test-strpbrk-ifunc.c: Likewise.
26943         * string/test-strrchr-ifunc.c: Likewise.
26944         * string/test-strspn-ifunc.c: Likewise.
26945         * string/test-strstr-ifunc.c: Likewise.
26946
26947         * debug/Makefile (tests-ifunc): New variable.
26948         (tests): Add $(tests-ifunc).
26949         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26950         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26951         * debug/test-stpcpy_chk-ifunc.c: New file.
26952         * debug/test-strcpy_chk-ifunc.c: Likewise.
26953
26954 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26955
26956         [BZ #13601]
26957         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26958         header is not read in.
26959
26960 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26961
26962         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26963         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26964         directly.  Pass built executable to script as
26965         $(built-program-cmd).
26966         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26967         $testprogram without using LD_LIBRARY_PATH and $ldso.
26968
26969         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26970         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26971         $(rtld-installed-name).
26972         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26973         (rtld_installed_name): Likewise.
26974         (library_path): Likewise.
26975         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26976         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26977         $(run-program-prefix) to tst-tables.sh.
26978         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26979         it to run tst-table-from and tst-table-to.
26980         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26981         Pass it to tst-table.sh.
26982         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26983         $(run-program-prefix) to tst-gettext.sh.
26984         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26985         tst-translit.sh.
26986         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26987         tst-gettext2.sh.
26988         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26989         to run tst-gettext.
26990         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26991         to run tst-gettext2.
26992         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26993         to run tst-translit.
26994         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26995         $(run-program-prefix) to tst-mtrace.sh.
26996         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26997         to run tst-mtrace.
26998         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26999         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
27000         $(rtld-installed-name).
27001         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
27002         (rtld_installed_name): Likewise.
27003         (run_program_prefix): New variable.  Use it to run wordexp-test.
27004
27005         * Makeconfig (ARCH): Remove all definitions.
27006         (machine): Likewise.
27007         [ARCH]: Remove conditional code.
27008         [!objdir]: Give error.
27009         [!objdir] (objpfx): Remove.
27010         [!objdir] (common-objpfx): Likewise.
27011         [!objdir] (common-objdir): Likewise.
27012         * configure.in (config_makefile): Remove.  Hardcode Makefile in
27013         AC_CONFIG_FILES call.
27014         * configure: Regenerated.
27015
27016         [BZ #13888]
27017         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
27018         or TMPDIR.
27019         (testout): Likewise.
27020
27021         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
27022         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
27023         $(rtld-installed-name).
27024         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
27025         (rtld_installed_name): Likwise.
27026         (runit): Remove function.
27027         (run_getconf): New variable,  Use it for running getconf binary.
27028
27029 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
27030
27031         [BZ #14716]
27032         * string/test-memmem.c (check_result): New function.
27033         (do_one_test): Use it.
27034         (check1): New function.
27035         (test_main): Use it.
27036
27037 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
27038
27039         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
27040
27041 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
27042
27043         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
27044         (_G_LSEEK64): Likewise.
27045         (_G_MMAP64): Likewise.
27046         (_G_FSTAT64): Likewise.
27047         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
27048         (_G_LSEEK64): Likewise.
27049         (_G_MMAP64): Likewise.
27050         (_G_FSTAT64): Likewise.
27051         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
27052         unconditional.  Call __mmap64 directly.
27053         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
27054         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
27055         __lseek64 directly.
27056         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
27057         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
27058         __mmap64 directly.
27059         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
27060         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
27061         __lseek64 directly.
27062         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
27063         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
27064         __lseek64 directly.
27065         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
27066         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
27067         __lseek64 directly.
27068         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
27069         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
27070         __fxstat64 directly.
27071         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
27072         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
27073         unconditional.
27074         (freopen64) [!_G_OPEN64]: Remove conditional code.
27075         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
27076         unconditional.
27077         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
27078         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
27079         unconditional.
27080         (ftello64) [!_G_LSEEK64]: Remove conditional code.
27081         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
27082         unconditional.
27083         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
27084         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
27085         unconditional.
27086         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
27087         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
27088         unconditional.
27089         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27090         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
27091         unconditional.
27092         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
27093         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
27094         unconditional.
27095         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27096
27097 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
27098
27099         [BZ #12140]
27100         * manual/memory.texi (Malloc Tunable Parameters): Add note
27101         about free list pointers overwriting some perturb bytes.
27102         Wording suggested by Roland McGrath.
27103
27104 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
27105
27106         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
27107         (lgamma_test): Likewise.
27108         (tgamma_test): Likewise.
27109
27110 2012-10-16  Florian Weimer  <fweimer@redhat.com>
27111
27112         [BZ #14700]
27113         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
27114         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
27115
27116 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
27117
27118         * NEWS: Mention BZ #14716.
27119         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
27120         when removing AVAILABLE1_USES_J macro.
27121
27122 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
27123
27124         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
27125         (__bswap_64): __uint64_t for unsigned 64-bit int.
27126
27127 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
27128
27129         * include/string.h (memmem): Declare libc hidden alias.
27130         * string/memmem.c (memmem): Define libc hidden alias.
27131         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
27132         __read, __close instead of open, read, close.
27133
27134 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
27135
27136         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
27137         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
27138         global and hidden.
27139         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
27140         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
27141         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
27142         Likewise.
27143         (__rawmemchr_sse2): Likewise.
27144         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
27145         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
27146         (__strchr_sse2): Likewise.
27147         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
27148         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
27149         (__strcasecmp_sse2): Likewise.
27150         (__strncasecmp_sse2): Likewise.
27151         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
27152         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
27153         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
27154         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
27155         (__strrchr_sse2): Likewise.
27156         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
27157         ifunc-impl-list.c.
27158         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27159         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27160         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27161         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27162         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27163         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27164         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27165         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27166         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
27167         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
27168         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
27169         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
27170         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
27171         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27172         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27173         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27174         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27175         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27176         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
27177         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
27178         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
27179         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
27180         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
27181         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
27182         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
27183         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
27184         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27185         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27186         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27187         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27188
27189         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
27190         global and hidden.
27191         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27192         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27193         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27194         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27195         Likewise.
27196         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27197         Likewise.
27198         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27199         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27200         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27201         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27202         ifunc-impl-list.c.
27203         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27204         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27205         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27206         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27207         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27208         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27209         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27210         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27211         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27212         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27213         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27214         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27215         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27216         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27217         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27218         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27219         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27220         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27221         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27222         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27223         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27224         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27225         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27226         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27227         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27228         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27229         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27230         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27231         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27232         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27233         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27234         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27235         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27236         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27237         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27238         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27239         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27240         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27241         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27242         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27243         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27244
27245         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27246         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27247         * include/ifunc-impl-list.h: New file.
27248         * misc/ifunc-impl-list.c: Likewise.
27249         * misc/Makefile (routines): Add ifunc-impl-list.
27250         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27251         * string/test-string.h: Include <ifunc-impl-list.h>.
27252         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27253         TEST_NAME]: New variables.
27254         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27255         are defined.
27256         (test_init): Call __libc_ifunc_impl_list to initialize
27257         func_list if TEST_IFUNC and TEST_NAME are defined.
27258
27259         * string/Makefile (strop-tests): Add bcopy and bzero.
27260         * string/test-bcopy.c: New file.
27261         * string/test-bzero.c: Likewise.
27262         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27263         defined.
27264         * string/test-memset.c: Support bzero test if TEST_BZERO is
27265         defined.
27266         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27267         __libc_memmove.
27268         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27269         __libc_memset.
27270         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27271         of memset.
27272
27273 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27274
27275         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27276         * configure: Regenerated.
27277
27278         * Makeconfig (+link-static-before-libc): Don't include
27279         $(link-static-libc).
27280
27281         * libio/libio.h (_IO_pos_t): Remove.
27282
27283 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27284
27285         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27286         McGrath.
27287
27288 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27289
27290         * crypt/crypt-entry.c: Include fips-private.h.
27291         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27292         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27293         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27294         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27295
27296 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27297
27298         * crypt/crypt-private.h: Include stdbool.h.
27299         (_ufc_setup_salt_r): Return bool.
27300         * crypt/crypt-entry.c: Include errno.h.
27301         (__crypt_r): Return NULL with EINVAL for bad salt.
27302         * crypt/crypt_util.c (bad_for_salt): New.
27303         (_ufc_setup_salt_r): Check that salt is long enough and within
27304         the specified alphabet.
27305         * crypt/badsalttest.c: New file.
27306         * crypt/Makefile (tests): Add it.
27307         ($(objpfx)badsalttest): New.
27308
27309 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27310
27311         * NEWS: Add entry for BZ #14602.
27312
27313 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27314
27315         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27316         type-generic.
27317         * math/libm-test.inc: Update comment listing what functions and
27318         macros are tested.
27319         (isgreater_test): New function.
27320         (isgreaterequal_test): Likewise.
27321         (isless_test): Likewise.
27322         (islessequal_test): Likewise.
27323         (islessgreater_test): Likewise.
27324         (isunordered_test): Likewise.
27325         (main): Call the new functions.
27326
27327 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27328
27329         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27330         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27331         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27332         * sysdeps/i386/configure: Regenerated.
27333         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27334         * sysdeps/mach/configure: Regenerated.
27335         * sysdeps/mach/hurd/configure: Regenerated.
27336         * sysdeps/powerpc/configure: Regenerated.
27337         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27338         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27339         * sysdeps/s390/s390-32/configure: Regenerated.
27340         * sysdeps/s390/s390-64/configure: Regenerated.
27341         * sysdeps/sh/configure: Regenerated.
27342         * sysdeps/sparc/configure: Regenerated.
27343         * sysdeps/unix/sysv/linux/configure: Regenerated.
27344         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27345         * sysdeps/x86_64/configure: Regenerated.
27346
27347         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27348         defined.  Don't check if MAP is NULL.
27349
27350 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27351
27352         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27353         (_G_stat64): Likewise.
27354         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27355         (_G_stat64): Likewise.
27356         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27357         instead of struct _G_stat64.
27358         * libio/fileops.c (mmap_remap_check): Likewise.
27359         (decide_maybe_mmap): Likewise.
27360         (_IO_new_file_seekoff): Likewise.
27361         (_IO_file_stat): Likewise.
27362         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27363         _G_off64_t.
27364         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27365         instead of struct _G_stat64.
27366         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27367
27368 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27369
27370         [BZ #14602]
27371         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27372         Replace with ...
27373         (CHECK_EOL): New macro.
27374         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27375         CHECK_EOL.
27376         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27377         Replace with CHECK_EOL.
27378         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27379         Replace with CHECK_EOL.
27380
27381 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27382
27383         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27384         type-generic.
27385         * math/libm-test.inc: Update comment listing what functions and
27386         macros are tested.
27387         (finite_test): New function.
27388         (isinf_test): Likewise.
27389         (isnan_test): Likewise.
27390         (fpclassify_test): Test subnormal input.
27391         (isfinite_test): Likewise.
27392         (isnormal_test): Likewise.
27393         (main): Call the new functions.
27394
27395 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27396
27397         [BZ #14660]
27398         * Makerules (%.dynsym): Force C locale when running
27399         $(OBJDUMP) --dynamic-syms.
27400
27401 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27402
27403         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27404         <stdint.h>.
27405
27406 2012-10-06  David S. Miller  <davem@davemloft.net>
27407
27408         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27409         upper 32-bits of the length value in %o2 since we use branch-on-register
27410         tests which consider the entire 64-bit register.
27411
27412 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27413
27414         * string/test-strstr.c (check2): Add a test for page boundary.
27415
27416 2012-10-05  David S. Miller  <davem@davemloft.net>
27417
27418         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27419         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27420         file.
27421         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27422         sysdep_routines.
27423         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27424         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27425         and bzero when HWCAP_SPARC_CRYPTO is present.
27426
27427 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27428
27429         [BZ #14602]
27430         * string/test-strstr.c (check2): New function.
27431         (test_main): Call check2.
27432
27433         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27434         and bug-strchr1.
27435         * string/bug-strcasestr1.c (do_test): Moved to ...
27436         * string/test-strcasestr.c (check1): Here.  New function.
27437         (do_one_test): Break out result checking code into ...
27438         (check_result): This.  New function.
27439         (do_one_test): Call check_result.
27440         (test_main): Call check1.
27441         * string/bug-strchr1.c (do_test): Moved to ...
27442         * string/test-strchr.c (check1): Here.  New function.
27443         (do_one_test): Break out result checking code into ...
27444         (check_result): This.  New function.
27445         (do_one_test): Call check_result.
27446         (test_main): Call check1.
27447         * string/bug-strstr1.c (main): Moved to ...
27448         * string/test-strstr.c (check1): Here.  New function.
27449         (do_one_test): Break out result checking code into ...
27450         (check_result): This.  New function.
27451         (do_one_test): Call check_result.
27452         (test_main): Call check1.
27453         * string/bug-strcasestr1.c: Removed.
27454         * string/bug-strchr1.c: Likewise.
27455         * string/bug-strstr1.c: Likewise.
27456
27457         * elf/Makefile (dl-routines): Add hwcaps.
27458         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27459         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27460         (_dl_important_hwcaps): Moved to ...
27461         * elf/dl-hwcaps.c: Here.  New file.
27462         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27463
27464         [BZ #14557]
27465         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27466         if IS_IN_rtld isn't defined.
27467
27468         * elf/dl-support.c (_dl_sysinfo_map): New.
27469         Include "get-dynamic-info.h" and "setup-vdso.h".
27470         (_dl_non_dynamic_init): Call setup_vdso.
27471         * elf/dynamic-link.h: Don't include <assert.h>.
27472         (elf_get_dynamic_info): Moved to ...
27473         * elf/get-dynamic-info.h: Here.  New file.
27474         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27475         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27476         * elf/setup-vdso.h: Here.  New file.
27477         * elf/rtld.c: Include "setup-vdso.h".
27478         (dl_main): Call setup_vdso.
27479
27480 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27481
27482         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27483         creal in comment listing functions tested.  List finite, isinf,
27484         isnan, isless, islessequal, isgreater, isgreaterequal,
27485         islessgreater, isunordered, lgamma_r and pow10 as functions and
27486         macros not tested.  Mention which functions not tested are aliases
27487         for other functions.  Fix typo.  Note that signs of NaNs are not
27488         tested.
27489
27490         * scripts/config.guess: Update from config.git.
27491         * scripts/config.sub: Likewise.
27492
27493 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27494
27495         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27496         * misc/madvise.c (madvise): Renamed to __madvise.
27497         Make madvise a weak alias.
27498         * include/sys/mman.h: Declare __madvise.
27499         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27500         * sysdeps/unix/syscalls.list
27501         (madvise): Make __madvise the strong name, and madvise a weak alias.
27502         * sysdeps/unix/sysv/linux/syscalls.list
27503         (madvise, mmap): Remove redundant entries.
27504         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27505         * malloc/malloc.c (mtrim): Likewise.
27506         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27507
27508 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27509
27510         * sysdeps/mach/hurd/dl-cache.c: File removed.
27511         * config.h.in (USE_LDCONFIG): New #undef.
27512         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27513         * configure: Regenerated.
27514         * elf/Makefile (dl-routines): Add dl-cache only under
27515         [$(use-ldconfig) = yes].
27516         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27517         cache on [USE_LDCONFIG].
27518         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27519         [USE_LDCONFIG].
27520         * elf/rtld.c (dl_main): Likewise.
27521
27522 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27523
27524         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27525         _SC_LEVEL4_CACHE_LINESIZE.
27526
27527 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27528
27529         * sysdeps/unix/bsd/confstr.h: File removed.
27530
27531 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27532
27533         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
27534         sys/sdt-config.h.
27535
27536 2012-10-02  Roland McGrath  <roland@hack.frob.com>
27537
27538         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
27539         Make 'mapoff' field ElfW(Off) rather than off_t.
27540
27541 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
27542
27543         * nscd/Makefile: Remove nscd-cflags and all its users.
27544         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
27545         (CFLAGS-nonlib): Add compiler flags for nscd modules.
27546
27547         [BZ #10631]
27548         * malloc.c (malloc_printerr): Clarify error message.
27549
27550 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
27551
27552         [BZ #14648]
27553         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27554         Set bit_FMA_Usable if FMA is supported.
27555         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
27556         macro.
27557         (bit_FMA4_Usable): Updated.
27558         (index_FMA_Usable): New macro.
27559         (CPUID_FMA): Likewise
27560         (HAS_FMA): Defined with bit_FMA_Usable.
27561
27562 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27563
27564         * bits/types.h (__swblk_t): Type removed.
27565         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
27566         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
27567         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27568         (__SWBLK_T_TYPE): Likewise.
27569         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27570         (__SWBLK_T_TYPE): Likewise.
27571         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27572         (__SWBLK_T_TYPE): Likewise.
27573         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27574         (__SWBLK_T_TYPE): Likewise.
27575
27576 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27577             Honza Horak <hhorak@redhat.com>
27578
27579         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27580         (xdr_mapname): Use YPMAXMAP as maxsize.
27581         (xdr_peername): Use YPMAXPEER as maxsize.
27582         (xdr_keydat): Use YPAXRECORD as maxsize.
27583         (xdr_valdat): Use YPMAXRECORD as maxsize.
27584
27585 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27586
27587         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27588
27589         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27590         * csu/init-first.c: ... here.
27591         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27592         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27593         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27594         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27595         * sysdeps/i386/init-first.c: File removed.
27596         * sysdeps/sh/init-first.c: File removed.
27597
27598 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27599
27600         [BZ #14645]
27601         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27602         if x * y might underflow to zero and z is zero.
27603         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27604         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27605         * math/libm-test.inc (min_subnorm_value): New variable.
27606         (fma_test): Add more tests.
27607         (fma_test_towardzero): Likewise.
27608         (fma_test_downward): Likewise
27609         (fma_test_upward): Likewise.
27610         (initialize): Set min_subnorm_value.
27611
27612 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27613
27614         [BZ #14638]
27615         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27616         0 + 0.
27617         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27618         mode for addition resulting in exact zero.
27619         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27620         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27621         exact 0 + 0.
27622         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27623         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27624         * math/libm-test.inc (fma_test): Add more tests.
27625         (fma_test_towardzero): New function.
27626         (fma_test_downward): Likewise.
27627         (fma_test_upward): Likewise.
27628         (main): Call the new functions.
27629
27630 2012-09-28  David S. Miller  <davem@davemloft.net>
27631
27632         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27633
27634 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27635
27636         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27637         instead of SIGALRM.
27638
27639         * sysdeps/gnu/_G_config.h: Moved to ...
27640         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27641         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27642         * sysdeps/generic/_G_config.h: ... here.
27643
27644         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27645
27646         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27647
27648         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27649         Conditionalize target on [libnss_test1.so-version].
27650
27651         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27652
27653         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27654         (elfobjdir): Move out of conditionals.
27655
27656         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27657         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27658         (__nss_lookup_function): Conditionalize label remove_from_tree on
27659         [!DO_STATIC_NSS || SHARED], matching its only use.
27660
27661 2012-09-28  David S. Miller  <davem@davemloft.net>
27662
27663         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27664         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27665         file.
27666         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27667         sysdep_routines.
27668         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27669         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27670         when HWCAP_SPARC_CRYPTO is present.
27671
27672 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27673
27674         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27675
27676 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27677
27678         [BZ #6530]
27679         * stdio-common/vfprintf.c (process_string_arg): Revert
27680         2000-07-22 change.
27681
27682 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27683
27684         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27685         for testcase.
27686         * stdio-common/tst-sprintf.c: Include <locale.h>
27687         (main): Test sprintf's handling of incomplete multibyte
27688         characters.
27689
27690 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27691
27692         * elf/dl-runtime.c (VERSYMIDX): Removed.
27693         * elf/dl-version.c (VERSYMIDX): Likewise.
27694         * elf/do-rel.h (VERSYMIDX): Likewise.
27695         (VALIDX): Likewise.
27696         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27697         * elf/rtld.c (VALIDX): Likewise.
27698         (ADDRIDX): Likewise.
27699         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27700         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27701         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27702         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27703         (VALIDX): Likewise.
27704         (ADDRIDX): Likewise.
27705
27706 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27707
27708         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27709
27710 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27711
27712         [BZ #11438]
27713         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27714         to global scope.
27715         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27716         addresses are in the same scope as 192.0.2/24.
27717         * posix/gai.conf: Document new scope table defaults.
27718
27719 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27720
27721         [BZ #5298]
27722         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27723         for ftell.  Compute offsets from write pointers instead.
27724         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27725
27726 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27727
27728         [BZ #14543]
27729         * libio/Makefile (tests): New test case tst-fseek.
27730         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27731         combination works in wide mode.
27732         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27733         state when the external buffer state changes.
27734
27735 2012-09-27  David S. Miller  <davem@davemloft.net>
27736
27737         [BZ #14376]
27738         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27739         pass reloc->r_addend in as the 'high' argument to
27740         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27741
27742         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27743
27744 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27745
27746         * rt/tst-aio2.c: Include <pthread.h>.
27747         * rt/tst-aio3.c: Likewise.
27748
27749 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27750
27751         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27752
27753 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27754
27755         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27756         contents on [SHARED].
27757
27758 2012-09-26  Marek Polacek  <polacek@redhat.com>
27759
27760         [BZ #14530]
27761         [BZ #13741]
27762         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27763         for C++ and GCC <4.3 as well as for non GCC compilers.
27764
27765 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27766
27767         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27768
27769 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27770
27771         * Makefile.in (all, install): Declare with .PHONY.
27772         Reported by Michael Hope <michael.hope@linaro.org>.
27773
27774 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27775
27776         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27777         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27778         system header.
27779         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27780         Likewise.
27781         (sydep_routines): Add the new and the internal functions.
27782         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27783         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27785         (GLIBC_2.17): Add the new function.
27786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27787         (GLIBC_2.17): Likewise.
27788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27789         (GLIBC_2.17): Likewise.
27790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27791         (GLIBC_2.17): Likewise.
27792         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27793
27794 2012-09-25  Alan Modra  <amodra@gmail.com>
27795
27796         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27797         Add release barrier before setting once_control to say
27798         initialisation is done.  Add hints on lwarx.  Use macro in
27799         place of isync.
27800         (clear_once_control): Add release barrier.
27801
27802 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27803
27804         [BZ #13629]
27805         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27806         specially.
27807         * math/s_clog10.c (__clog10): Likewise.
27808         * math/s_clog10f.c (__clog10f): Likewise.
27809         * math/s_clog10l.c (__clog10l): Likewise.
27810         * math/s_clogf.c (__clogf): Likewise.
27811         * math/s_clogl.c (__clogl): Likewise.
27812         * math/Makefile (libm-calls): Add x2y2m1.
27813         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27814         (__x2y2m1): Likewise.
27815         (__x2y2m1l): Likewise.
27816         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27817         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27818         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27819         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27820         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27821         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27822         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27823         * sysdeps/i386/fpu/libm-test-ulps: Update.
27824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27825
27826         [BZ #14621]
27827         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27828         int as type of variable DEPTH.
27829         (glob): Use size_t instead of int as type of variables NEWCOUNT
27830         and OLD_PATHC.
27831
27832 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27833
27834         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27835         Add s_sincosf-sse2.
27836         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27837         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27838         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27839         macros for using routine as __sincosf_ia32.
27840         Use macro for function declaration and weak_alias.
27841         * sysdeps/i386/fpu/libm-test-ulps: Update.
27842
27843         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27844         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27845
27846         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27847         subnormal argument.
27848         * math/s_cexpf.c (__cexpf): Likewise.
27849         * math/s_csinf.c (__csinf): Likewise.
27850         * math/s_csinhf.c (__csinhf): Likewise.
27851         * math/s_ctanf.c (__ctanf): Likewise.
27852         * math/s_ctanhf.c (__ctanhf): Likewise.
27853         * math/s_ccosh.c (__ccoshf): Likewise.
27854         * math/s_cexp.c (__cexpl): Likewise.
27855         * math/s_csin.c (__csin): Likewise.
27856         * math/s_csinh.c (__csinh): Likewise.
27857         * math/s_ctan.c (__ctan): Likewise.
27858         * math/s_ctanh.c (ctanh): Likewise.
27859         * math/s_ccoshl.c (__ccoshl): Likewise.
27860         * math/s_cexpl.c (__cexpl): Likewise.
27861         * math/s_csinl.c (__csinl): Likewise.
27862         * math/s_csinhl.c (__csinhl): Likewise.
27863         * math/s_ctanl.c (__ctanl): Likewise.
27864         * math/s_ctanhl.c (__ctanhl): Likewise.
27865
27866 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27867
27868         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27869         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27870         (_IO_off_t): Define to __off_t, not _G_off_t.
27871         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27872         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27873         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27874         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27875         type of __dummy and __dummy2 fields.
27876         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27877         (_G_ssize_t): Likewise.
27878         (_G_off_t): Likewise.
27879         (_G_pid_t): Likewise.
27880         (_G_uid_t): Likewise.
27881         (_G_wchar_t): Likewise.
27882         (_G_wint_t): Likewise.
27883         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27884         (_G_ssize_t): Likewise.
27885         (_G_off_t): Likewise.
27886         (_G_pid_t): Likewise.
27887         (_G_uid_t): Likewise.
27888         (_G_wchar_t): Likewise.
27889         (_G_wint_t): Likewise.
27890         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27891         (_G_ssize_t): Likewise.
27892         (_G_off_t): Likewise.
27893         (_G_pid_t): Likewise.
27894         (_G_uid_t): Likewise.
27895         (_G_wchar_t): Likewise.
27896         (_G_wint_t): Likewise.
27897
27898 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27899
27900         * malloc/arena.c: Include malloc-sysdep.h.
27901         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27902         is sufficient to shrink the heap or an unmap is needed.
27903         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27904         new function check_may_shrink_heap.
27905         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27906         new function check_may_shrink_heap.
27907
27908 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27909
27910         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27911         comments.
27912
27913 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27914
27915         * catgets/test-gencat.sh: Add "set -e".
27916         * elf/tst-pathopt.sh: Likewise.
27917         * grp/tst_fgetgrent.sh: Likewise.
27918         * iconvdata/run-iconv-test.sh: Likewise.
27919         * intl/tst-gettext.sh: Likewise.
27920         * intl/tst-gettext2.sh: Likewise.
27921         * intl/tst-gettext4.sh: Likewise.
27922         * intl/tst-gettext6.sh: Likewise.
27923         * intl/tst-translit.sh: Likewise.
27924         * io/ftwtest-sh: Likewise.
27925         * libio/test-freopen.sh: Likewise.
27926         * malloc/tst-mtrace.sh: Likewise.
27927         * posix/globtest.sh: Likewise.
27928         * posix/tst-getconf.sh: Likewise.
27929         * posix/wordexp-tst.sh: Likewise.
27930         * stdio-common/tst-printf.sh: Likewise.
27931         * stdio-common/tst-unbputc.sh: Likewise.
27932         * stdlib/tst-fmtmsg.sh: Likewise.
27933         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27934         * catgets/Makefile: Do not specify -e option when running
27935         testsuite shell scripts.
27936         * elf/Makefile: Likewise.
27937         * grp/Makefile: Likewise.
27938         * iconvdata/Makefile: Likewise.
27939         * intl/Makefile: Likewise.
27940         * io/Makefile: Likewise.
27941         * libio/Makefile: Likewise.
27942         * malloc/Makefile: Likewise.
27943         * posix/Makefile: Likewise.
27944         * stdio-common/Makefile: Likewise.
27945         * stdlib/Makefile: Likewise.
27946         * sysdeps/x86_64/Makefile: Likewise.
27947
27948         * io/ftwtest-sh: Add copyright header.
27949         * posix/globtest.sh: Likewise.
27950         * posix/tst-getconf.sh: Likewise.
27951         * posix/wordexp-tst.sh: Likewise.
27952         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27953
27954 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27955
27956         [BZ #13679]
27957         * Makeconfig (+link): Defined as $(+link-static) if
27958         $(build-shared) isn't yes.
27959         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27960         isn't yes.
27961         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27962
27963         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27964
27965         [BZ #14562]
27966         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27967         new chunk size with MALLOC_ALIGN_MASK.
27968
27969 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27970
27971         [BZ #5044]
27972         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27973         <rounding-mode.h>.
27974         (__printf_fphex): Determine rounding using get_rounding_mode and
27975         round_away.
27976         * stdio-common/tst-printf-round.c (struct hex_test): New
27977         structure.
27978         (hex_tests): New variable.
27979         (test_hex_in_one_mode): New function.
27980         (do_test): Also run tests for hex float output.
27981
27982 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27983
27984         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27985         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27986         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27987         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27988         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27989         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27990         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27991         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27992
27993 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27994
27995         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27996         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27997         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27998         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27999
28000 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
28001
28002         [BZ #14579]
28003         * elf/rtld.c (dl_main): Limit the check for self loading to normal
28004         mode only.
28005         * elf/tst-rtld-load-self.sh: New test.
28006         * elf/Makefile: Run it.
28007
28008 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
28009
28010         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
28011         (tst-writev-ENV): Remove.
28012         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
28013
28014 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
28015
28016         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
28017
28018 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
28019
28020         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
28021         unconditional.
28022         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
28023         Likewise.
28024         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
28025         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
28026         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
28027         Likewise.
28028
28029 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
28030
28031         [BZ #14587]
28032         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
28033         * config.make.in (have-cpp-asm-debuginfo): Removed.
28034         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
28035         * configure: Regenerated.
28036
28037 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
28038
28039         [BZ #5044]
28040         * stdio-common/printf_fp.c: Include <stdbool.h> and
28041         <rounding-mode.h>.
28042         (___printf_fp): Determine rounding using get_rounding_mode and
28043         round_away.
28044         * stdio-common/tst-printf-round.c: New file.
28045         * stdio-common/Makefile (tests): Add tst-printf-round.
28046         (link-libm): New variable.
28047         ($(objpfx)tst-printf-round): Depend in $(link-libm).
28048
28049 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
28050
28051         [BZ #14576]
28052         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
28053         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
28054         Likewise.
28055         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
28056         Likewise.
28057
28058 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
28059
28060         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
28061         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28062         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28063         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28064
28065 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
28066
28067         [BZ #14518]
28068         * include/rounding-mode.h: New file.
28069         * sysdeps/generic/get-rounding-mode.h: Likewise.
28070         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
28071         * stdlib/strtod_l.c: Include <rounding-mode.h>.
28072         (MAX_VALUE): New macro.
28073         (MIN_VALUE): Likewise.
28074         (overflow_value): New function.
28075         (underflow_value): Likewise.
28076         (round_and_return): Use overflow_value and underflow_value to
28077         determine return values in overflow and underflow cases.  Use
28078         round_away to determine rounding depending on rounding mode.
28079         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
28080         determine return values in overflow and underflow cases.
28081         * stdlib/tst-strtod-round.c: Include <fenv.h>.
28082         (struct test_results): New structure.
28083         (struct test): Use struct test_results to store expected results
28084         for all rounding modes.
28085         (TEST): Include expected results for all rounding modes.
28086         (test_in_one_mode): New function.
28087         (do_test): Use test_in_one_mode to compute and check results.
28088         Check results for all rounding modes.
28089         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
28090         $(link-libm).
28091
28092 2012-12-09  Allan McRae  <allan@archlinux.org>
28093
28094         * sysdeps/i386/fpu/libm-test-ulps: Update
28095
28096 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
28097
28098         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
28099         (_G_int32_t): Likewise.
28100         (_G_uint16_t): Likewise.
28101         (_G_uint32_t): Likewise.
28102         (_G_HAVE_BOOL): Likewise.
28103         (_G_HAVE_ATEXIT): Likewise.
28104         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28105         (_G_HAVE_IO_FILE_OPEN): Likewise.
28106         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
28107         (_G_int32_t): Likewise.
28108         (_G_uint16_t): Likewise.
28109         (_G_uint32_t): Likewise.
28110         (_G_HAVE_BOOL): Likewise.
28111         (_G_HAVE_ATEXIT): Likewise.
28112         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28113         (_G_HAVE_IO_FILE_OPEN): Likewise.
28114         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
28115         (_G_int32_t): Likewise.
28116         (_G_uint16_t): Likewise.
28117         (_G_uint32_t): Likewise.
28118         (_G_HAVE_BOOL): Likewise.
28119         (_G_HAVE_ATEXIT): Likewise.
28120         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28121         (_G_HAVE_IO_FILE_OPEN): Likewise.
28122
28123 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
28124
28125         * csu/libc-tls.c: Update copyright years.
28126
28127 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
28128
28129         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
28130         [!_G_USING_THUNKS]: Remove conditional code.
28131         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
28132         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
28133
28134         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
28135         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
28136         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28137         (_G_VTABLE_LABEL_PREFIX): Likewise.
28138         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28139         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28140         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28141         (_G_VTABLE_LABEL_PREFIX): Likewise.
28142         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28143         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28144         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28145         (_G_VTABLE_LABEL_PREFIX): Likewise.
28146         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28147
28148 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
28149
28150         * libio/Makefile: Include ../Makeconfig before tests.
28151         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
28152         only if $(build-shared) is yes.
28153
28154         * iconv/gconv_db.c: Update copyright years.
28155
28156 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28157
28158         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
28159         unwind info if defined PIC. Fix special cases description.
28160         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
28161
28162         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
28163         DP_HI_MASK entry.
28164         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
28165
28166 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
28167
28168         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
28169
28170         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
28171         is NULL.
28172
28173         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
28174         (LDLIBS-tst-chk4): This.
28175         (LDFLAGS-tst-chk5): Renamed to ...
28176         (LDLIBS-tst-chk5): This.
28177         (LDFLAGS-tst-chk6): Renamed to ...
28178         (LDLIBS-tst-chk6): This.
28179         (LDFLAGS-tst-lfschk4): Renamed to ...
28180         (LDLIBS-tst-lfschk4): This.
28181         (LDFLAGS-tst-lfschk5): Renamed to ...
28182         (LDLIBS-tst-lfschk5): This.
28183         (LDFLAGS-tst-lfschk6): Renamed to ...
28184         (LDLIBS-tst-lfschk6): This.
28185
28186         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
28187         on $(common-objpfx)soversions.mk.
28188
28189 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
28190
28191         [BZ #10014]
28192         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28193         example host name.
28194
28195 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28196
28197         * malloc/arena.c (arena_get_retry): New function that gets
28198         another arena for the caller to try its request on.
28199         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28200         current arena cannot fulfill the request.
28201         (__libc_memalign): Likewise.
28202         (__libc_memalign): Likewise.
28203         (__libc_pvalloc): Likewise.
28204         (__libc_calloc): Likewise.
28205
28206 2012-09-05  John Tobey  <john.tobey@gmail.com>
28207
28208         [BZ #13542]
28209         * manual/arith.texi (Operations on Complex): Fix description
28210         of carg branch cut.
28211
28212 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28213
28214         [BZ #10014]
28215         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28216         host name.
28217
28218         [BZ #10038]
28219         * manual/memory.texi (Memory): Make order of menu items match
28220         order of sections.
28221
28222 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28223
28224         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28225         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28226         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28227
28228 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28229
28230         * csu/libc-tls.c (static_dtv): Renamed to ...
28231         (_dl_static_dtv): This.  Make it global.
28232         (_dl_initial_dtv): Removed.
28233         (__libc_setup_tls): Updated.
28234         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28235         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28236         DL_INITIAL_DTV.
28237
28238 2012-09-06  Petr Machata  <pmachata@redhat.com>
28239
28240         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28241         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28242         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28243         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28244
28245 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28246
28247         [BZ #14545]
28248         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28249         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28250         freeing dtv[-1].
28251
28252 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28253
28254         [BZ #14544]
28255         * Makeconfig (link-static-before-libc): Replace $(+prector)
28256         with $(+prectorT).
28257         (link-static-after-libc): Replace $(+postctor) with
28258         $(+postctorT).
28259         (link-bounded): Replace $(+prector)/$(+postctor) with
28260         $(+prectorT)/$(+postctorT).
28261         (+prectorT): New macro.
28262         (+postctorT): Likewise.
28263
28264 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28265
28266         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28267         (round_str): Handle values above the maximum for IBM long double
28268         as inexact.
28269         * stdlib/tst-strtod-round.c (tests): Regenerated.
28270
28271 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28272
28273         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28274         assembler flag.
28275         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28276         zarch_nohighgprs around the zarch optimized routines.
28277         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28278         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28279         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28280         for zarch.
28281
28282 2012-09-05  David S. Miller  <davem@davemloft.net>
28283
28284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28285
28286         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28287         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28288         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28289         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28290         entries.
28291
28292 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28293
28294         * malloc/arena.c: Fold copyright years.
28295         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28296
28297 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28298
28299         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28300
28301 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28302
28303         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28304
28305 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28306
28307         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28308         change internal state upon failure.
28309
28310 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28311
28312         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28313         * malloc/memusage.c (mmap): Likewise.
28314         (mmap64, mremap): Likewise.  Adjust name in comment.
28315
28316 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28317
28318         * libio/fileops.c: Fix typos in comments.
28319         * libio/oldfileops.c: Likewise.
28320         * libio/wfileops.c: Likewise.
28321
28322 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28323
28324         [BZ #1349]
28325         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28326         (tst-malloc-usable-ENV): Set environment for test case.
28327         * malloc/hooks.c (malloc_check_get_size): New function to get
28328         requested size.
28329         * malloc/malloc.c (musable): Use malloc_check_get_size.
28330         * malloc/tst-malloc-usable.c: New test case.
28331
28332 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28333
28334         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28335
28336 2012-09-05  Allan McRae  <allan@archlinux.org>
28337
28338         [BZ #13966]
28339         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28340         determine header location.
28341         * configure: Regenerated.
28342
28343 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28344
28345         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28346         float format.
28347         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28348         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28349         format.
28350         (test): Regenerate.
28351
28352 2012-09-04  David S. Miller  <davem@davemloft.net>
28353
28354         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28355         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28356         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28357
28358 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28359
28360         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28361         failures.
28362
28363         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28364
28365 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28366
28367         [BZ #9914]
28368         * libio/iogetdelim.c: Include <limits.h>.
28369         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28370         + len + 1 would overflow.
28371
28372 2012-09-03  Andreas Jaeger  <aj@suse.de>
28373
28374         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28375         * sysdeps/i386/fpu/libm-test-ulps: Update.
28376
28377 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28378
28379         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28380         Add s_sinf-sse2, s_conf-sse2.
28381
28382         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28383         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28384         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28385         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28386
28387         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28388         for using routine as __sinf_ia32.
28389         Use macro for function declaration and weak_alias.
28390         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28391         for using routine as __cosf_ia32.
28392         Use macro for function declaration and weak_alias.
28393
28394         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28395         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28396
28397         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28398         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28399         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28400
28401         * math/libm-test.inc (cos_test): Add more test cases.
28402         (sin_test): Likewise.
28403         (sincos_test): Likewise.
28404
28405 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28406
28407         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28408         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28409         hidden.
28410         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28411
28412 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28413
28414         [BZ #14538]
28415         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28416         first element of the GOT.
28417         (elf_machine_load_address): Return the difference between
28418         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28419
28420 2012-09-01  Allan McRae  <allan@archlinux.org>
28421
28422         [BZ #13412]
28423         * configure.in (AWK): Require gawk version 3.0 or later.
28424         * configure: Regenerated.
28425
28426 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28427
28428         * sysdeps/unix/sysv/linux/kernel-features.h
28429         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28430         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28431         [__NR_clock_getres]: Make code unconditional.
28432         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28433         (clock_getcpuclockid): Remove code left unreachable by removal of
28434         conditionals.
28435         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28436         code unconditional.
28437         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28438         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28439         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28440         Make code unconditional.
28441         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28442         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28443         * sysdeps/unix/sysv/linux/clock_settime.c
28444         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28445         conditional code.
28446         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28447         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28448
28449 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28450
28451         [BZ #14476]
28452         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28453         scripts/test-installation.pl.
28454
28455         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28456         and $ld_so_version if it is set.
28457
28458 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28459
28460         [BZ #14516]
28461         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28462         failure if reading from procfs failed.
28463         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28464
28465 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28466
28467         * sysdeps/unix/sysv/linux/kernel-features.h
28468         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28469         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28470         Remove conditional code.
28471         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28472         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28473         Remove conditional code.
28474         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28475         * sysdeps/unix/sysv/linux/i386/fxstat.c
28476         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28477         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28478         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28479         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28480         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28481         * sysdeps/unix/sysv/linux/i386/lxstat.c
28482         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28483         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28484         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28485         Remove conditional code.
28486         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28487         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28488         Remove conditional code.
28489         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28490         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28491         <kernel-features.h>.
28492         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28493         Remove.
28494         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28495         Remove conditional code.
28496         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28497         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28498         Remove conditional.
28499
28500 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28501
28502         [BZ #5400]
28503         * NEWS: Add fixed bug number.
28504
28505 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28506
28507         [BZ #14519]
28508         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28509         underflowing exponent in case of negative sign.
28510         * stdlib/tst-strtod-round-data: Add more tests.
28511         * stdlib/tst-strtod-round.c (tests): Regenerated.
28512
28513         [BZ #3479]
28514         * stdlib/strtod_l.c (NDIG): Remove.
28515         (HEXNDIG): Likewise.
28516         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28517         smallest representable value.
28518         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28519         lie within an exact representation of 1/2 ulp of the result.
28520         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28521         unconditionally.
28522         (TENS_P9_IDX): Define unconditionally.
28523         (TENS_P9_SIZE): Likewise.
28524         (TENS_P10_IDX): Likewise.
28525         (TENS_P10_SIZE): Likewise.
28526         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28527         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28528         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28529         entries for 10^2^13 and 10^2^14.
28530         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28531         (TENS_P13_IDX): Define.
28532         (TENS_P13_SIZE): Likewise.
28533         (TENS_P14_IDX): Likewise.
28534         (TENS_P14_SIZE): Likewise.
28535         (_fpioconst_pow10): Change array size to
28536         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
28537         unconditional.
28538         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
28539         1024]: Add entries for 10^2^13 and 10^2^14.
28540         [LAST_POW10 > _LAST_POW10]: Remove #error.
28541         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
28542         (_fpioconst_pow10): Change array size to
28543         FPIOCONST_POW10_ARRAY_SIZE.
28544         * stdlib/gen-fpioconst.c: New file.
28545         * stdlib/gen-tst-strtod-round.c: Likewise.
28546         * stdlib/tst-strtod-round-data: Likewise.
28547         * stdlib/tst-strtod-round.c: Likewise.
28548         * stdlib/Makefile (tests): Add tst-strtod-round.
28549
28550         [BZ #14459]
28551         * stdlib/strtod_l.c: Include <stdint.h>.
28552         (NDEBUG): Do not define.
28553         (round_and_return): Change EXPONENT parameter to type intmax_t.
28554         Rearrange calculations to avoid internal overflow possibilities.
28555         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
28556         Rearrange calculations to avoid internal overflow possibilities.
28557         Assert that number fits inside MPNSIZE limbs.
28558         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
28559         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
28560         calculations and add assertions to avoid internal overflow
28561         possibilities.  Add casts to avoid signed/unsigned operations.
28562         * stdlib/tst-strtod-overflow.c: New file.
28563         * stdlib/Makefile (tests): Add tst-strtod-overflow.
28564
28565 2012-08-25  Marek Polacek  <polacek@redhat.com>
28566
28567         * time/time.h: Fix some typos in comments.
28568
28569 2012-08-23  Roland McGrath  <roland@hack.frob.com>
28570
28571         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
28572         * posix/tst-rfc3484-2.c: Likewise.
28573         * posix/tst-rfc3484-3.c: Likewise.
28574
28575 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28576
28577         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28578         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28579
28580 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28581
28582         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28583         #include of fxstatat64.c.
28584
28585 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28586
28587         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28588         * shadow/getspent_r.c: Likewise.
28589         * shadow/getspnam.c: Likewise.
28590         * shadow/getspnam_r.c: Likewise.
28591         * gshadow/getsgent.c: Likewise.
28592         * gshadow/getsgent_r.c: Likewise.
28593         * gshadow/getsgnam.c: Likewise.
28594         * gshadow/getsgnam_r.c: Likewise.
28595         * inet/getnetbyad.c: Likewise.
28596         * inet/getnetbyad_r.c: Likewise.
28597         * inet/getnetbynm.c: Likewise.
28598         * inet/getnetbynm_r.c: Likewise.
28599         * inet/getnetent.c: Likewise.
28600         * inet/getnetent_r.c: Likewise.
28601         * inet/getproto.c: Likewise.
28602         * inet/getproto_r.c: Likewise.
28603         * inet/getprtent.c: Likewise.
28604         * inet/getprtent_r.c: Likewise.
28605         * inet/getprtname.c: Likewise.
28606         * inet/getprtname_r.c: Likewise.
28607         * inet/getrpcbyname.c: Likewise.
28608         * inet/getrpcbyname_r.c: Likewise.
28609         * inet/getrpcbynumber.c: Likewise.
28610         * inet/getrpcbynumber_r.c: Likewise.
28611         * inet/getrpcent.c: Likewise.
28612         * inet/getrpcent_r.c: Likewise.
28613         * inet/getaliasent.c: Likewise.
28614         * inet/getaliasent_r.c: Likewise.
28615         * inet/getaliasname.c: Likewise.
28616         * inet/getaliasname_r.c: Likewise.
28617         * nscd/getgrgid_r.c: Likewise.
28618         * nscd/getgrnam_r.c: Likewise.
28619         * nscd/gethstbyad_r.c: Likewise.
28620         * nscd/gethstbynm3_r.c: Likewise.
28621         * nscd/getpwnam_r.c: Likewise.
28622         * nscd/getpwuid_r.c: Likewise.
28623         * nscd/getsrvbynm_r.c: Likewise.
28624         * nscd/getsrvbypt_r.c: Likewise.
28625         * nscd/gai.c: Likewise.
28626
28627         * configure.in (build_nscd): New substituted variable, set
28628         by --disable-build-nscd and defaults to $use_nscd.
28629         * configure: Regenerated.
28630         * config.make.in (build-nscd): New substituted variable.
28631         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28632         Change conditional to require [$(build-nscd) = yes] as well.
28633         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28634
28635         [BZ# 13696]
28636         * configure.in (use_nscd): New substituted variable, set by
28637         --disable-nscd.  If enabled, define USE_NSCD.
28638         * configure: Regenerated.
28639         * config.h.in: Add USE_NSCD.
28640         * config.make.in (use-nscd): New substituted variable.
28641         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28642         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28643         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28644         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28645         (CFLAGS-getgrnam_r.c): Likewise.
28646         (CFLAGS-initgroups.c): Likewise.
28647         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28648         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28649         Variables removed.
28650         * inet/getnetgrent_r.c
28651         (nscd_setnetgrent): New function, broken out of ...
28652         (setnetgrent): ... here.  Call it.
28653         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28654         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28655         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28656         * nscd/Makefile (routines, aux): Move definitions after include of
28657         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28658         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28659         Conditionalize on [USE_NSCD].
28660         (is_nscd, nscd_init_cb): Likewise.
28661         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28662         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28663         * nss/nss_db/db-init.c: Likewise.
28664         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28665         [USE_NSCD].
28666         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28667         (make_request): Use it.
28668         (cache_valid_p): New function.
28669         (__check_pf): Use it.
28670         * NEWS: Add item for --disable-nscd.
28671
28672 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28673
28674         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28675         to support sed >= 4.2.1-20-ga9bf076.
28676         * configure: Regenerated.
28677
28678 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28679
28680         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28681         Conditionalize whole body on [IREL].
28682
28683 2012-08-22  Jeff Law <law@redhat.com>
28684
28685         [BZ #14505]
28686         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28687         if the family is PF_UNSPEC.
28688
28689 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28690
28691         * Makerules (lib-version): Rename from V.
28692         (install-lib-nosubdir): Change V to lib-version.
28693
28694 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28695
28696         [BZ #14252]
28697         * powerpc32/power6/wcschr.c: New file.
28698         * powerpc32/power6/wcscpy.c: New file.
28699         * powerpc32/power6/wcsrchr.c: New file.
28700         * powerpc64/power6/wcschr.c: New file.
28701         * powerpc64/power6/wcscpy.c: New file.
28702         * powerpc64/power6/wcsrchr.c: New file.
28703
28704 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28705
28706         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28707         (two_way_short_needle): Use it.
28708         * string/strstr.c (AVAILABLE1_USES_J): Define.
28709         * string/strcasestr.c: Likewise.
28710
28711         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28712         array references.
28713         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28714
28715         [BZ #11607]
28716         * NEWS: Add an entry.
28717         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28718         define their defaults.
28719         (two_way_short_needle): Detect end-of-string on-the-fly.
28720         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28721         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28722         * string/bug-strcasestr1.c: New test.
28723         * string/Makefile: Run it.
28724
28725 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28726
28727         [BZ #11607]
28728         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28729         the first character.
28730
28731 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28732
28733         * csu/elf-init.c (__libc_csu_irel): Function removed.
28734         * csu/libc-start.c (apply_irel): New function.
28735         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28736
28737 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28738
28739         * sysdeps/unix/sysv/linux/kernel-features.h
28740         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28741         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28742         <kernel-features.h>.
28743         [__NR_fadvise64_64]: Make code unconditional.
28744         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28745         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28746         !__NR_fadvise64_64)]: Likewise.
28747         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28748         !__NR_fadvise64_64))]: Likewise.
28749         [__NR_fadvise64]: Make code unconditional.
28750         [!__NR_fadvise64]: Remove conditional code.
28751         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28752         <kernel-features.h>.
28753         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28754         unconditional.
28755         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28756         conditional code.
28757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28758         not include <kernel-features.h>.
28759         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28760         unconditional.
28761         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28762         conditional code.
28763         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28764         include <kernel-features.h>.
28765         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28766         unconditional.
28767         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28768         conditional code.
28769
28770 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28771
28772         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28773         slight instruction rearrangements per scrollpipe analysis.
28774         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28775
28776 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28777
28778         * manual/syslog.texi (syslog; vsyslog, closelog):
28779         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28780         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28781
28782         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28783         DSOCAPS to match condition on defining it.
28784
28785 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28786
28787         * sysdeps/unix/sysv/linux/kernel-features.h
28788         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28790         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28791         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28793         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28794         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28796         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28797         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28798
28799         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28800         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28801
28802         * sysdeps/unix/sysv/linux/kernel-features.h
28803         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28804         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28805         unconditional.
28806         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28807         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28808         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28809         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28810         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28811         Make code unconditional.
28812         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28813         (__mmap64) [!__NR_mmap2]: Likewise.
28814         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28815         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28816         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28817         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28818         [__NR_mmap2]: Make code unconditional.
28819         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28820         (__mmap64) [!__NR_mmap2]: Likewise.
28821
28822 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28823
28824         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28825
28826 2012-08-18  Andreas Jaeger  <aj@suse.de>
28827
28828         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28829
28830 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28831
28832         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28833         * include/unistd.h (__have_sock_cloexec): Likewise.
28834         (__have_pipe2): Likewise.
28835         (__have_dup3): Likewise.
28836
28837 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28838
28839         [BZ #9685]
28840         * include/unistd.h (__have_pipe2): Change define into an extern int.
28841         (__have_dup3): Likewise.
28842         * socket/have_sock_cloexec.c: Include fcntl.h.
28843         (__have_pipe2): New variable.
28844         (__have_dup3): Likewise.
28845
28846 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28847
28848         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28849
28850 2012-08-17  Marek Polacek  <polacek@redhat.com>
28851
28852         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28853         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28854
28855 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28856
28857         * configure.in: Add AC_SUBST for sysheaders.
28858         * configure: Regenerated.
28859         * config.make.in (sysheaders): New substituted variable.
28860
28861         * sysdeps/unix/mkfifo.c: Moved ...
28862         * sysdeps/posix/mkfifo.c: ... here.
28863         * sysdeps/unix/mkfifoat.c: Moved ...
28864         * sysdeps/posix/mkfifoat.c: ... here.
28865
28866         * sysdeps/unix/utime.c: Moved ...
28867         * sysdeps/posix/utime.c: ... here.
28868
28869         * sysdeps/unix/time.c: Moved ...
28870         * sysdeps/posix/time.c: ... here.
28871         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28872         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28873
28874         * sysdeps/unix/nice.c: Moved ...
28875         * sysdeps/posix/nice.c: ... here.
28876
28877         * sysdeps/unix/alarm.c: Moved ...
28878         * sysdeps/posix/alarm.c: ... here.
28879
28880         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28881
28882 2012-08-17  Jeff Law <law@redhat.com>
28883
28884         * intl/Makefile (codeset_mo): New variable.
28885         ($(codeset_mo)): New target.
28886         (tst-codeset.out): Depend on that.  Remove explicit rule.
28887         (tst-gettext3.out, tst-gettext5.out): Likewise.
28888         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28889         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28890         * intl/tst-codeset.sh: Remove.
28891         * intl/tst-gettext3.sh: Likewise.
28892         * intl/tst-gettext5.sh: Likewise.
28893
28894 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28895
28896         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28897         * sysdeps/unix/syscalls.list: ... here.
28898
28899         * sysdeps/posix/getaddrinfo.c
28900         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28901         (gaiconf_init, gaiconf_reload): Use them.
28902         [!_STATBUF_ST_NSEC]
28903         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28904         Define using time_t rather than struct timespec.
28905
28906         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28907         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28908         Macros removed.
28909         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28910         [!NO_THREADS].
28911         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28912         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28913         Likewise.
28914
28915         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28916         __libc_cleanup_push argument.
28917
28918         * bits/param.h: New file.
28919         * misc/sys/param.h: New file.
28920         * include/sys/param.h: New file.
28921         * misc/Makefile (headers): Add bits/param.h.
28922         * sysdeps/generic/sys/param.h: File removed.
28923         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28924         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28925         * sysdeps/mach/hurd/bits/param.h: New file.
28926         * sysdeps/mach/hurd/sys/param.h: File removed.
28927
28928         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28929         last change.
28930
28931         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28932         [_IO_MTSAFE_IO].
28933         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28934         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28935         New macros.
28936
28937         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28938         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28939         rather than -D_IO_MTSAFE_IO conditionally.
28940         * stdio-common/Makefile (CPPFLAGS): Likewise.
28941         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28942         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28943         Use $(libio-mtsafe).
28944         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28945         of -D_IO_MTSAFE_IO.
28946         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28947         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28948         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28949         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28950         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28951         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28952         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28953         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28954         (CFLAGS-fread_u_chk.c): Likewise.
28955         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28956         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28957         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28958         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28959         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28960         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28961         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28962         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28963         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28964
28965         * libio/Makefile: Test [$(libc-reentrant) = yes]
28966         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28967
28968         * Makeconfig
28969         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28970         * sysdeps/pthread/configure: File removed.
28971         * sysdeps/pthread/Makeconfig: New file.
28972         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28973         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28974
28975 2012-08-16  Gary Benson  <gbenson@redhat.com>
28976
28977         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28978         unmapping the first object in a namespace.
28979
28980 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28981
28982         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28983         (__internal_setnetgrent): ... this.  Add internal_function to
28984         definition.  Add libc_hidden_def.
28985         (setnetgrent): Update caller.
28986         (internal_endnetgrent): Renamed to ...
28987         (__internal_endnetgrent): ... this.  Add internal_function to
28988         definition.  Add libc_hidden_def.
28989         (endnetgrent): Update caller.
28990         (internal_getnetgrent_r): Renamed to ...
28991         (__internal_getnetgrent_r): ... this.  Add internal_function to
28992         definition.  Add libc_hidden_def.
28993         (__getnetgrent_r): Update caller.
28994         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28995
28996 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28997
28998         * stdlib/longlong.h: Update from GCC.
28999
29000 2012-08-16  Roland McGrath  <roland@hack.frob.com>
29001
29002         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
29003         on _QL, which is set by umul_ppmm but never used.
29004         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
29005         variables, which are set by GMP macros but never used.
29006         * stdio-common/_itowa.c (_itowa): Likewise.
29007         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
29008         * stdlib/mod_1.c (mpn_mod_1): Likewise.
29009
29010 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
29011
29012         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
29013         struct La_sh_regs is not constant.
29014         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
29015         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
29016         and struct La_sparc64_regs are not constant.
29017
29018 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
29019
29020         * sysdeps/unix/sysv/linux/kernel-features.h
29021         (__ASSUME_POSIX_TIMERS): Remove.
29022         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
29023         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29024         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
29025         Make code unconditional.
29026         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29027         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
29028         Make code unconditional.
29029         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29030         * sysdeps/unix/sysv/linux/clock_nanosleep.c
29031         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
29032         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29033         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
29034         Make code unconditional.
29035         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29036         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
29037         (__libc_missing_posix_timers): Remove.
29038
29039 2012-08-15  Roland McGrath  <roland@hack.frob.com>
29040
29041         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
29042         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
29043
29044         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
29045
29046         * elf/dl-sym.c: Include <stdlib.h>.
29047
29048         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
29049         constants, which avoids warnings in 32-bit builds.
29050
29051         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
29052         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
29053
29054         * misc/lseek.c: File moved to ...
29055         * io/lseek.c: ... here.
29056
29057         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
29058
29059         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
29060         shifting LEN more than 31 bits at once.
29061
29062 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29063
29064         [BZ #14195]
29065         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
29066         segmentation fault for a case of two empty input strings.
29067         * string/test-strncasecmp.c (check1): Renamed to...
29068         (bz12205): ...this.
29069         (bz14195): Add new testcase for two empty input strings and N > 0.
29070         (test_main): Call new testcase, adapt for renamed function.
29071
29072 2012-08-15  Andreas Jaeger  <aj@suse.de>
29073
29074         [BZ #14090]
29075         * crypt/md5test2.c: New test, based on test supplied by Serge
29076         Belyshev <belyshev@depni.sinp.msu.ru>.
29077         * crypt/Makefile (xtests): Add md5test-giant..
29078         * crypt/Makefile ($(objpfx)md5test-giant): Add.
29079
29080 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29081
29082         [BZ #14090]
29083         * crypt/md5.c (md5_process_block): Don't assume the buffer
29084         length is less than 2**32.
29085         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
29086         length is less than 2**64.
29087
29088 2012-08-15  Roland McGrath  <roland@hack.frob.com>
29089
29090         * string/str-two-way.h: Include <sys/param.h>.
29091         (MAX): Macro removed.
29092
29093         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
29094         Move #define and #undef of memmove to just before and after
29095         including <string.h>.
29096
29097         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
29098         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
29099         and after including <string.h>.  Move declarations of
29100         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
29101         to before #include "string/memmove.c".
29102
29103         * include/dirent.h: Declare __getdirentries.
29104
29105         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
29106         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
29107
29108 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
29109
29110         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
29111         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
29112         * sysdeps/i386/configure: Regenerated.
29113         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
29114         STABS_CURRENT_FILE, and STABS_FUN.
29115         (END): Remove call to STABS_FUN_END.
29116         (STABS_CURRENT_FILE1): Delete.
29117         (STABS_CURRENT_FILE): Likewise.
29118         (STABS_FUN): Likewise.
29119         (STABS_FUN_END): Likewise.
29120         (STABS_FUN2): Likewise.
29121         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
29122         * sysdeps/x86_64/configure: Regenerated.
29123
29124 2012-08-14  Roland McGrath  <roland@hack.frob.com>
29125
29126         * elf/dl-open.c: Include <atomic.h>.
29127         * elf/dl-lookup.c: Likewise.
29128
29129 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
29130
29131         * sysdeps/unix/sysv/linux/kernel-features.h
29132         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
29133         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
29134         unconditionally.
29135         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
29136         unconditionally.
29137         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
29138         condition on __ASSUME_CLONE_THREAD_FLAGS.
29139
29140 2012-08-14  Andreas Jaeger  <aj@suse.de>
29141
29142         * sysdeps/i386/fpu/libm-test-ulps: Update.
29143
29144 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
29145
29146         * include/atomic.h (atomic_exchange_and_add): Split into ...
29147         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
29148         New atomic macros.
29149
29150 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
29151
29152         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29153
29154 2012-08-13  Jeff Law <law@redhat.com>
29155
29156         * manual/stdio.texi (snprintf): Clarify handling of the trailing
29157         null byte in the output string.
29158
29159 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
29160
29161         * sysdeps/unix/sysv/linux/kernel-features.h
29162         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
29163         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
29164         (__ASSUME_ARG_MAX_STACK_BASED): Define.
29165         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
29166         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
29167         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
29168         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
29169
29170 2012-08-09  Jeff Law <law@redhat.com>
29171
29172         [BZ #13939]
29173         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
29174         When avoid_arena is set, don't retry in the that arena.  Pick the
29175         next one, whatever it might be.
29176         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
29177         (arena_lock): Pass in new parameter to arena_get2.
29178         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
29179         arena_get2.
29180         (__libc_malloc): Unify retrying after main arena failure with
29181         __libc_memalign version.
29182         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
29183
29184 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
29185
29186         [BZ #14166]
29187         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
29188         to __redirect_strstr.
29189         (__strstr_sse42): Use typeof __redirect_strstr.
29190         (__strstr_ia32): Likewise.
29191         (__libc_strstr): New prototype.
29192         (strstr): Renamed to ...
29193         (__libc_strstr): This.
29194         (strstr): New strong alias of __libc_strstr.
29195         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29196         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29197         __redirect_time.
29198         Include <time.h>.
29199         (__libc_time): New prototype.
29200         (time_ifunc): Replace time with __libc_time.
29201         (time): New strong alias and hidden definition of __libc_time.
29202         (__GI_time): Remove strong alias.
29203         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29204         Include <stddef.h>.
29205         (memmove): Redefined to __redirect_memmove.
29206         (__memmove_sse2): Use typeof __redirect_memmove.
29207         (__memmove_ssse3): Likewise.
29208         (__memmove_ssse3_back): Likewise.
29209         (__libc_memmove): New prototype.
29210         (memmove): Renamed to ...
29211         (__libc_memmove): This.
29212         (memmove): New strong alias of __libc_memmove.
29213
29214 2012-08-08  Mark Salter  <msalter@redhat.com>
29215
29216         * elf/elf.h
29217         (R_MN10300_TLS_GD): Define.
29218         (R_MN10300_TLS_LD): Likewise.
29219         (R_MN10300_TLS_LDO): Likewise.
29220         (R_MN10300_TLS_GOTIE): Likewise.
29221         (R_MN10300_TLS_IE): Likewise.
29222         (R_MN10300_TLS_LE): Likewise.
29223         (R_MN10300_TLS_DTPMOD): Likewise.
29224         (R_MN10300_TLS_DTPOFF): Likewise.
29225         (R_MN10300_TLS_TPOFF): Likewise.
29226         (R_MN10300_SYM_DIFF): Likewise.
29227         (R_MN10300_ALIGN): Likewise.
29228         (R_MN10300_NUM): Update.
29229
29230 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29231
29232         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29233         Remove.
29234
29235 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29236
29237         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29238
29239         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29240         sysdeps/unix -> sysdeps/posix move.
29241         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29242
29243 2012-08-07      Allan McRae     <allan@archlinux.org>
29244
29245         [BZ #14303]
29246         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29247         (SUNOS_CPP): Likewise.
29248         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29249         not found.
29250         (open_input): Call CPP using execvp.
29251
29252 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29253
29254         * sysdeps/unix/sysv/linux/kernel-features.h
29255         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29256         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29257         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29258         (__ASSUME_WAITID_SYSCALL): Likewise.
29259         * sysdeps/unix/sysv/linux/dl-execstack.c
29260         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29261         code unconditional.
29262         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29263         conditional code.
29264         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29265         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29266         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29267         code.
29268         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29269         unconditional.
29270         [__ASSUME_WAITID_SYSCALL]: Likewise.
29271         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29272
29273 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29274
29275         * sysdeps/unix/closedir.c: Renamed to ...
29276         * sysdeps/posix/closedir.c: ... here.
29277         * sysdeps/unix/dirfd.c: Renamed to ...
29278         * sysdeps/posix/dirfd.c: ... here.
29279         * sysdeps/unix/dirstream.h: Renamed to ...
29280         * sysdeps/posix/dirstream.h: ... here.
29281         * sysdeps/unix/fdopendir.c: Renamed to ...
29282         * sysdeps/posix/fdopendir.c: ... here.
29283         * sysdeps/unix/opendir.c: Renamed to ...
29284         * sysdeps/posix/opendir.c: ... here.
29285         * sysdeps/unix/readdir.c: Renamed to ...
29286         * sysdeps/posix/readdir.c: ... here.
29287         * sysdeps/unix/readdir_r.c: Renamed to ...
29288         * sysdeps/posix/readdir_r.c: ... here.
29289         * sysdeps/unix/rewinddir.c: Renamed to ...
29290         * sysdeps/posix/rewinddir.c: ... here.
29291         * sysdeps/unix/seekdir.c: Renamed to ...
29292         * sysdeps/posix/seekdir.c: ... here.
29293         * sysdeps/unix/telldir.c: Renamed to ...
29294         * sysdeps/posix/telldir.c: ... here.
29295         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29296         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29297         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29298         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29299
29300         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29301         * bits/fcntl.h: ... here.
29302
29303         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29304         not 0.
29305         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29306         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29307         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29308         (struct flock): Move l_start, l_len to the beginning.
29309         Use __pid_t for l_pid.
29310         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29311         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29312         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29313         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29314         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29315         [__USE_LARGEFILE64] (struct flock64): New type.
29316         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29317
29318         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29319         * bits/dirent.h: ... here.
29320
29321         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29322         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29323
29324 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29325
29326         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29327         Change from 2.6.0 to 2.6.16.
29328         * sysdeps/unix/sysv/linux/configure: Regenerated.
29329         * sysdeps/unix/sysv/linux/kernel-features.h
29330         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29331         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29332         version.
29333         (__ASSUME_UTIMES): Likewise.
29334         (__ASSUME_CLONE_STOPPED): Remove.
29335         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29336         architectures, not kernel version.
29337         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29338         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29339         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29340         (__ASSUME_WAITID_SYSCALL): Likewise.
29341         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29342         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29343         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29344         refer to older versions.
29345
29346 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29347
29348         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29349         Define alphasort64 as an alias.
29350         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29351         Define versionsort64 as an alias.
29352         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29353         Define scandir64 as an alias.
29354         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29355         Define scandirat64 as an alias.
29356         * dirent/alphasort64.c (alphasort64):
29357         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29358         * dirent/versionsort64.c: Likewise.
29359         * dirent/scandir64.c: Likewise.
29360         * dirent/scandirat64.c: Likewise.
29361         * sysdeps/wordsize-64/alphasort.c: File removed.
29362         * sysdeps/wordsize-64/alphasort64.c: File removed.
29363         * sysdeps/wordsize-64/scandir.c: File removed.
29364         * sysdeps/wordsize-64/scandir64.c: File removed.
29365         * sysdeps/wordsize-64/scandirat.c: File removed.
29366         * sysdeps/wordsize-64/scandirat64.c: File removed.
29367         * sysdeps/wordsize-64/versionsort.c: File removed.
29368         * sysdeps/wordsize-64/versionsort64.c: File removed.
29369         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29370         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29371         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29372         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29373         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29374         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29375         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29376         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29377
29378         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29379         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29380         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29381         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29382         [defined __arch64__ || defined __sparcv9]
29383         (__INO_T_MATCHES_INO64_T): New macro.
29384         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29385         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29386         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29387         * sysdeps/unix/sysv/linux/bits/dirent.h
29388         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29389         (_DIRENT_MATCHES_DIRENT64): New macro.
29390
29391         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29392         Define lockf64 as an alias.
29393         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29394         Define fseeko64 as an alias.
29395         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29396         Define ftello64 as an alias.
29397         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29398         Define _IO_fgetpos64 and fgetpos64 as aliases.
29399         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29400         Define _IO_fsetpos64 and fsetpos64 as aliases.
29401         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29402         Conditionalize body on this.
29403         * libio/fseeko64.c: Likewise.
29404         * libio/ftello64.c: Likewise.
29405         * libio/iofgetpos64.c: Likewise.
29406         * libio/iofsetpos64.c: Likewise.
29407         * sysdeps/wordsize-64/lockf.c: File removed.
29408         * sysdeps/wordsize-64/lockf64.c: File removed.
29409         * sysdeps/wordsize-64/fseeko.c: File removed.
29410         * sysdeps/wordsize-64/fseeko64.c: File removed.
29411         * sysdeps/wordsize-64/ftello.c: File removed.
29412         * sysdeps/wordsize-64/ftello64.c: File removed.
29413         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29414         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29415         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29416         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29417         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29418         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29419         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29420         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29421         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29422         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29423         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29424         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29425         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29426         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29427
29428         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29429         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29430         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29431         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29432         [defined __arch64__ || defined __sparcv9]
29433         (__OFF_T_MATCHES_OFF64_T): New macro.
29434         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29435         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29436         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29437         (__OFF_T_MATCHES_OFF64_T): New macro.
29438
29439 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29440
29441         * stdlib/secure-getenv.c (__secure_getenv): Replace
29442         GLIBC_2_16 with GLIBC_2_17.
29443
29444 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29445
29446         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29447         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29448
29449 2012-08-03  David S. Miller  <davem@davemloft.net>
29450
29451         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29452
29453 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29454
29455         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29456         Remove.
29457         (__ASSUME_CORRECT_SI_PID): Likewise.
29458         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29459         (__ASSUME_TMPFS_NAME): Likewise.
29460         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29461         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29462         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29463         (HAVE_AUX_SECURE): Make definition unconditional.
29464         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29465         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29466
29467 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29468
29469         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29470         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29471         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29472         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29473         __eloop_threshold instead of SYMLOOP_MAX.
29474
29475         * sysdeps/generic/eloop-threshold.h: New file.
29476         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29477         of MAXSYMLINKS.
29478         * elf/chroot_canon.c (chroot_canon): Likewise.
29479
29480 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29481
29482         [BZ #13717]
29483         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29484         Change to 2.6.0 everywhere.
29485         * sysdeps/unix/sysv/linux/configure: Regenerated.
29486         * sysdeps/unix/sysv/linux/kernel-features.h
29487         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29488         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29489         kernel versions.
29490         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29491         (__ASSUME_FUTEX_REQUEUE): Remove.
29492         (__ASSUME_STATFS64): Define unconditionally.
29493         (__ASSUME_AT_SECURE): Likewise.
29494         (__ASSUME_CORRECT_SI_PID): Likewise.
29495         (__ASSUME_TGKILL): Define without depending on kernel version for
29496         i386.
29497         (__ASSUME_UTIMES): Likewise.
29498         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29499         kernel version.
29500         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29501         (__ASSUME_TMPFS_NAME): Likewise.
29502         * README: Update reference to Linux kernel versions.
29503
29504 2012-08-02  Marek Polacek  <polacek@redhat.com>
29505
29506         [BZ# 14150]
29507         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29508         libc_cv_asm_type_prefix with %.
29509         * configure: Regenerated.
29510         * include/libc-symbols.h: Remove comment about
29511         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29512         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29513         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29514         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29515         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29516         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29517         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29518         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29519         * elf/tst-unique2mod1.c: Likewise.
29520         * elf/tst-unique1mod2.c: Likewise.
29521         * elf/tst-unique1mod1.c: Likewise.
29522         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29523         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29524         Replace ASM_TYPE_DIRECTIVE with .type.
29525         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29526         * sysdeps/i386/sysdep.h: Likewise.
29527         * sysdeps/x86_64/sysdep.h: Likewise.
29528         * sysdeps/sh/sysdep.h: Likewise.
29529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29530         Do not define ASM_TYPE_DIRECTIVE.
29531         * sysdeps/powerpc/sysdep.h: Likewise.
29532         * sysdeps/powerpc/powerpc32/sysdep.h:
29533         Replace ASM_TYPE_DIRECTIVE with .type.
29534         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29535         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29536         * sysdeps/i386/fpu/e_powf.S: Likewise.
29537         * sysdeps/i386/fpu/e_expl.S: Likewise.
29538         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29539         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29540         * sysdeps/i386/fpu/e_pow.S: Likewise.
29541         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29542         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29543         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29544         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29545         * sysdeps/i386/fpu/e_log2.S: Likewise.
29546         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29547         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29548         * sysdeps/i386/fpu/e_powl.S: Likewise.
29549         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29550         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29551         * sysdeps/i386/fpu/e_logl.S: Likewise.
29552         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29553         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29554         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29555         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29556         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29557         * sysdeps/i386/fpu/e_log.S: Likewise.
29558         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29559         * sysdeps/i386/fpu/e_logf.S: Likewise.
29560         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29561         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29562         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29563         * sysdeps/i386/fpu/e_log10.S: Likewise.
29564         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29565         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29566         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29567         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29568         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29569         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29570         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29571         * sysdeps/i386/i686/strtok.S: Likewise.
29572         * sysdeps/i386/i386-mcount.S: Likewise.
29573         * sysdeps/i386/strtok.S: Likewise.
29574         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29575         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29576         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29577         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29578         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29579         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29580         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29581         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29582         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29583         * sysdeps/x86_64/_mcount.S: Likewise.
29584         * sysdeps/x86_64/strtok.S: Likewise.
29585         * sysdeps/sh/_mcount.S: Likewise.
29586
29587 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29588
29589         * libio/iofopen.c: Include <fcntl.h>.
29590         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29591         (_IO_fopen64, fopen64): Define as aliases.
29592         * libio/iofopen64.c: Include <fcntl.h>.
29593         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29594         Conditionalize body on this.
29595         * sysdeps/wordsize-64/iofopen.c: File removed.
29596         * sysdeps/wordsize-64/iofopen64.c: File removed.
29597
29598 2012-08-01  Marek Polacek  <polacek@redhat.com>
29599
29600         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29601         Use dlfcn directly instead of a variable.
29602         (binfmt-subdir): Do not define.
29603         (dlfcn): Likewise.
29604
29605 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29606
29607         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29608         Remove all definitions.
29609         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29610         <kernel-features.h>.
29611         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29612         (miss_F_GETOWN_EX): Remove all definitions.
29613         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29614         macro definition.
29615         [!__ASSUME_FCNTL64]: Remove conditional code.
29616         [__ASSUME_FCNTL64]: Make code unconditional.
29617         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29618         <kernel-features.h>.
29619         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29620         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29621         (lockf64) [__NR_fcntl64]: Make code unconditional.
29622         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29623
29624         * sysdeps/unix/sysv/linux/kernel-features.h
29625         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29626         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29627         Make code unconditional.
29628         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29629         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29631         [__NR_vfork]: Make code unconditional.
29632         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29633         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29635         [__NR_vfork]: Make code unconditional.
29636         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29637         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29638
29639 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29640
29641         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29642         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29643
29644         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29645         Define mkstemp64 as an alias.
29646         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29647         Define mkstemps64 as an alias.
29648         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29649         Define mkostemp64 as an alias.
29650         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29651         Define mkostemps64 as an alias.
29652         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29653         Conditionalize body on this.
29654         * misc/mkostemp64.c: Likewise.
29655         * misc/mkostemps64.c: Likewise.
29656         * misc/mkstemps64.c: Likewise.
29657         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29658         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29659         * sysdeps/wordsize-64/mkostemp.c: File removed.
29660         * sysdeps/wordsize-64/mkstemp.c: File removed.
29661         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29662         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29663         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29664         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29665
29666         [BZ #14138]
29667         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29668         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29669         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29670         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29671
29672         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29673         compat_symbol macros from <shlib-compat.h> rather than the underlying
29674         default_symbol_version and symbol_version macros, so that DEFAULT
29675         lines in shlib-versions are respected.
29676         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29677
29678 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29679
29680         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29681         Declare with warn_unused_result.
29682         (setgid, setregid, setegid, setresgid): Likewise.
29683         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29684         Likewise.
29685         * WUR-REPORT: Remove set*id functions.
29686
29687 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29688
29689         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29690
29691 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29692
29693         [BZ #10191]
29694         * include/sys/socket.h (__libc_accept, __libc_accept4):
29695         Add attribute_hidden.
29696         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29697
29698         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29699         use of PTR_MANGLE.
29700         * inet/getnetgrent_r.c (setup): Likewise.
29701
29702         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29703
29704 2012-07-31  David S. Miller  <davem@davemloft.net>
29705
29706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29707
29708 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29709
29710         [BZ #13629]
29711         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29712         value between 1.0 and 2.0 and smaller part has absolute value less
29713         than 1.0.
29714         * math/s_clog10.c (__clog10): Likewise.
29715         * math/s_clog10f.c (__clog10f): Likewise.
29716         * math/s_clog10l.c (__clog10l): Likewise.
29717         * math/s_clogf.c (__clogf): Likewise.
29718         * math/s_clogl.c (__clogl): Likewise.
29719         * math/libm-test.inc (clog_test): Add more tests.
29720         (clog10_test): Likewise.
29721         * sysdeps/i386/fpu/libm-test-ulps: Update.
29722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29723
29724 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29725
29726         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29727         Exit with zero in case no suitable GID is found, and write a
29728         message to standard error.
29729
29730 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29731
29732         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29733         rather than to 1.
29734         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29735         (MAXPATHLEN): Removed.
29736         (NOGROUP, NODEV): New macros.
29737         (setbit, clrbit, isset, isclr): New macros.
29738         (howmany, roundup, powerof2): New macros.
29739         (DEV_BSIZE): New macro.
29740
29741         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29742         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29743
29744         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29745         definition on [!__NO_LONG_DOUBLE_MATH].
29746
29747         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29748         PTR_MANGLE and PTR_DEMANGLE.
29749
29750         * socket/accept4.c (accept4): Rename to __libc_accept4.
29751         Define accept4 as a weak alias.
29752
29753         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29754         on [_DIRENT_HAVE_D_TYPE].
29755         * io/ftw.c (ftw_dir): Likewise.
29756
29757         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29758
29759         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29760
29761         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29762         Use the BSD numbers rather than the arbitrary ones we had.
29763         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29764         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29765         (SIGXCPU, SIGXFSZ): New macros.
29766         (_NSIG): Now 32.
29767
29768         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29769         initializer on [_LIBC_REENTRANT].
29770
29771         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29772         definitions inside [_POSIX_MAPPED_FILES].
29773
29774         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29775
29776         * dirent/opendir.c: Include <fcntl.h>.
29777
29778         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29779         (__libc_getspecific): Likewise.
29780         (__libc_key_create): Likewise.
29781
29782         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29783         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29784         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29785         (tmpfile64): Define as alias.
29786         * sysdeps/wordsize-64/tmpfile.c: File removed.
29787         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29788         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29789         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29790
29791         * stdio-common/vfscanf.c: Include <stdbool.h>.
29792         * nss/makedb.c: Likewise.
29793         * stdio-common/_i18n_number.h: Likewise.
29794         * argp/argp-help.c: Likewise.
29795         * posix/wordexp.c: Likewise.
29796         * sysdeps/posix/spawni.c: Likewise.
29797         * nss/nss_files/files-initgroups.c: Likewise.
29798         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29799         * nss/nss_files/files-initgroups.c: Likewise.
29800         * nss/nss_db/db-netgrp.c: Likewise.
29801         * nss/nss_db/db-initgroups.c: Likewise.
29802         * io/fchmodat.c: Include <sys/stat.h>.
29803
29804         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29805         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29806
29807         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29808         [HAVE_MMAP].
29809
29810         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29811         Add multiple inclusion protection.
29812
29813 2012-07-27  David S. Miller  <davem@davemloft.net>
29814
29815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29816
29817 2012-07-27  Gary Benson  <gbenson@redhat.com>
29818
29819         [BZ #14298]
29820         * elf/rtld.c: Include <stap-probe.h>.
29821         (dl_main): Added static probes "init_start" and "init_complete".
29822         * elf/dl-load.c: Include <stap-probe.h>.
29823         (lose): Take new parameter "nsid".
29824         Added static probe "map_failed".
29825         (_dl_map_object_from_fd): Pass namespace id to lose.
29826         Added static probe "map_start".
29827         (open_verify): Pass namespace id to lose.
29828         * elf/dl-open.c: Include <stap-probe.h>.
29829         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29830         and "reloc_complete".
29831         * elf/dl-close.c: Include <stap-probe.h>.
29832         (_dl_close_worker): Added static probes "unmap_start" and
29833         "unmap_complete".
29834         * elf/rtld-debugger-interface.txt: New file documenting the above.
29835
29836 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29837
29838         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29839         rather than a string variable.
29840         * sunrpc/rpc_main.c (h_output): Likewise.
29841         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29842
29843 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29844
29845         * inet/check_native.c: New file.
29846
29847 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29848
29849         [BZ #13629]
29850         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29851         if larger part has absolute value 1.0.
29852         * math/s_clog10.c (__clog10): Likewise.
29853         * math/s_clog10f.c (__clog10f): Likewise.
29854         * math/s_clog10l.c (__clog10l): Likewise.
29855         * math/s_clogf.c (__clogf): Likewise.
29856         * math/s_clogl.c (__clogl): Likewise.
29857         * math/libm-test.inc (clog_test): Add more tests.
29858         (clog10_test): Likewise.
29859         * sysdeps/i386/fpu/libm-test-ulps: Update.
29860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29861
29862         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29863         (pltexit): Likewise.
29864         (La_regs): Likewise.
29865         (La_retval): Likewise.
29866         (int_retval): Likewise.
29867         Update #error for removed macros to refer only to definitions in
29868         tst-audit.h.
29869         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29870         macro.
29871         (pltexit): Likewise.
29872         (La_regs): Likewise.
29873         (La_retval): Likewise.
29874         (int_retval): Likewise.
29875         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29876         macro.
29877         (pltexit): Likewise.
29878         (La_regs): Likewise.
29879         (La_retval): Likewise.
29880         (int_retval): Likewise.
29881         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29882         macro.
29883         (pltexit): Likewise.
29884         (La_regs): Likewise.
29885         (La_retval): Likewise.
29886         (int_retval): Likewise.
29887         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29888         macro.
29889         (pltexit): Likewise.
29890         (La_regs): Likewise.
29891         (La_retval): Likewise.
29892         (int_retval): Likewise.
29893         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29894         macro.
29895         (pltexit): Likewise.
29896         (La_regs): Likewise.
29897         (La_retval): Likewise.
29898         (int_retval): Likewise.
29899         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29900         macro.
29901         (pltexit): Likewise.
29902         (La_regs): Likewise.
29903         (La_retval): Likewise.
29904         (int_retval): Likewise.
29905         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29906         macro definitions in tst-audit.h.
29907         * sysdeps/i386/tst-audit.h: New file.
29908         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29909         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29910         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29911         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29912         * sysdeps/sh/tst-audit.h: Likewise.
29913         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29914         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29915         * sysdeps/x86_64/tst-audit.h: Likewise.
29916
29917 2012-07-26  Andreas Jaeger  <aj@suse.de>
29918
29919         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29920         ptrace.
29921
29922         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29923         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29924         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29925         PTRACE_O_MASK.
29926         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29927         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29928         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29929
29930         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29931         value.
29932
29933         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29934         _sigsys.
29935         (si_call_addr, si_syscall, si_arch): Define new macro.
29936         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29937         _sigsys.
29938         (si_call_addr, si_syscall, si_arch): Define new marcro.
29939         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29940         _sigsys.
29941         (si_call_addr, si_syscall, si_arch): Define new macro.
29942         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29943         _sigsys.
29944         (si_call_addr, si_syscall, si_arch): Define new macro.
29945
29946 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29947
29948         [BZ #13717]
29949         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29950         Change to 2.4.21 where previously 2.4.1.
29951         * sysdeps/unix/sysv/linux/configure: Regenerated.
29952         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29953         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29954         Linux kernel version.
29955         (__ASSUME_STD_AUXV): Remove.
29956         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29957         kernel version.
29958         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29959         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29960         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29961         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29962         (__ASSUME_NETLINK_SUPPORT): Likewise.
29963         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29964         (__no_netlink_support): Remove conditional definition.
29965         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29966         Remove.
29967         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29968         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29969         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29970         (if_nameindex_ioctl): Remove.
29971         (if_nameindex_netlink): Do not handle __no_netlink_support.
29972         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29973         code.
29974         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29975         Remove conditional code.
29976         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29977         code.
29978         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29979         unconditional.
29980         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29981         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29982         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29983         Remove.
29984         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29985         [!__ASSUME_STD_AUXV]: Remove conditional code.
29986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29987         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29988         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29990         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29991         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29992         code.
29993         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29995         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29996         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29997         conditional code.
29998         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
30000         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
30001         code.
30002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
30003         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
30004         conditional code.
30005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
30006         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30007         code unconditional.
30008         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30009         conditional code.
30010         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30011         unconditional.
30012         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30013         conditional code.
30014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
30015         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30016         unconditional.
30017         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30018         conditional code.
30019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
30020         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30021         code unconditional.
30022         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30023         conditional code.
30024         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30025         unconditional.
30026         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30027         conditional code.
30028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
30029         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30030         code unconditional.
30031         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30032         conditional code.
30033         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30034         unconditional.
30035         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30036         conditional code.
30037
30038 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
30039
30040         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
30041         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
30042         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
30043         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
30044         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
30045         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
30046         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
30047         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
30048         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
30049         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
30050         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
30051         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
30052         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
30053         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
30054         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
30055         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
30056         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
30057         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
30058         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
30059         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
30060         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
30061         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
30062         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30063
30064 2012-07-25  Florian Weimer  <fweimer@redhat.com>
30065
30066         * Versions.def: Add GLIBC_2.17.
30067         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
30068         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
30069         Introduce __libc_secure_getenv.
30070         * stdlib/Versions (2.17): Add secure_getenv
30071         (GLIBC_PRIVATE): Add __libc_secure_getenv.
30072         * stdlib/secure-getenv.c: Rename __secure_getenv to
30073         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
30074         symbol __secure_getenv for GLIBC_2.0.
30075         * stdlib/tst-secure-getenv.c: New.
30076         * stdlib/Makefile (tests): Add testcase.
30077         * manual/startup.texi (Environment Access): Document
30078         secure_getenv.
30079         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
30080         __libc_secure_getenv.
30081         * inet/ruserpass.c (ruserpass): Likewise.
30082         * malloc/mtrace.c (mtrace): Likewise.
30083         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
30084         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
30085         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
30086         * sysdeps/posix/tempname.c: Likewise.  Evaluate
30087         HAVE_SECURE_GETENV.
30088         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
30089         __secure_getenv to __libc_secure_getenv.
30090         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
30091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30092         Likewise.
30093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30094         Likewise.
30095         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
30096         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
30097         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
30098         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
30099         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
30100         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
30101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
30102
30103 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
30104
30105         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
30106         (struct La_i86_retval): Likewise.
30107         (struct La_x86_64_regs): Likewise.
30108         (struct La_x86_64_retval): Likewise.
30109         (struct La_x32_regs): Likewise.
30110         (struct La_x32_retval): Likewise.
30111         (struct La_ppc32_regs): Likewise.
30112         (struct La_ppc32_retval): Likewise.
30113         (struct La_ppc64_regs): Likewise.
30114         (struct La_ppc64_retval): Likewise.
30115         (struct La_sh_regs): Likewise.
30116         (struct La_sh_retval): Likewise.
30117         (struct La_s390_32_regs): Likewise.
30118         (struct La_s390_32_retval): Likewise.
30119         (struct La_s390_64_regs): Likewise.
30120         (struct La_s390_64_retval): Likewise.
30121         (struct La_sparc32_regs): Likewise.
30122         (struct La_sparc32_retval): Likewise.
30123         (struct La_sparc64_regs): Likewise.
30124         (struct La_sparc64_retval): Likewise.
30125         (struct audit_ifaces): Remove architecture-specific pltenter and
30126         pltexit members.
30127         * sysdeps/i386/ldsodefs.h: New file.
30128         * sysdeps/powerpc/ldsodefs.h: Likewise.
30129         * sysdeps/s390/ldsodefs.h: Likewise.
30130         * sysdeps/sh/ldsodefs.h: Likewise.
30131         * sysdeps/sparc/ldsodefs.h: Likewise.
30132         * sysdeps/x86_64/ldsodefs.h: Likewise.
30133
30134 2012-07-25  Marek Polacek  <polacek@redhat.com>
30135
30136         [BZ #6808]
30137         * math/libm-test.inc (yn_test): Add another test.
30138         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
30139         to ERANGE when the result is +-Inf.
30140         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
30141         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
30142         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
30143         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
30144
30145 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
30146
30147         * conform/data/time.h-data (NULL): Use macro-constant.  Require
30148         equal to 0.
30149         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
30150         clock_t.
30151         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
30152
30153 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
30154
30155         * configure.in <sysdeps resolving>: Correct printing
30156         Implies_before.
30157         * configure: Regenerate.
30158
30159 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
30160
30161         * math/w_ilogb.c: Include <limits.h>.
30162         * math/w_ilogbl.c: Likewise.
30163
30164 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30165
30166         * manual/lang.texi (__va_copy): Document primarily as ISO C99
30167         va_copy.  Document allowing for unavailable va_copy only as
30168         pre-C99 compatibility.
30169         * manual/string.texi (Copying and Concatenation): Use va_copy
30170         instead of __va_copy in concat example.
30171
30172 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
30173
30174         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
30175         (__sendto): Use create_address_port.  Initialize APORT and deallocate
30176         it if not null.
30177
30178         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
30179         with O_NOLINK passed to __file_name_lookup.
30180
30181         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
30182         with O_NOLINK passed to __file_name_lookup.
30183
30184         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
30185         negative N or less than NGIDS.
30186
30187         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
30188         type to string_t.  Set ERANGE as errno and return it if NAME is not big
30189         enough.  Use memcpy instead of strncpy.
30190
30191 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30192
30193         * elf/Makefile (check-data): Remove.
30194         (localplt.data): New vpath directive.
30195         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30196         instead of $(check-data).
30197         * scripts/data/localplt-generic.data: Move to ...
30198         * sysdeps/generic/localplt.data: ... here.
30199         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30200         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30201         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30203         ... here.
30204         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30206         ... here.
30207         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30208         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30209         ... here.
30210         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30211         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30212         ... here.
30213         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30214         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30215         ... here.
30216         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30218         ... here.
30219
30220 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30221
30222         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30223         PPC32 and PPC64 files.
30224         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30225         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30226
30227 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30228
30229         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30230         __makecontext_ret to ...
30231         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30232         ... here and call exit if uc_link is NULL.  New file.
30233         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30234         __makecontext_ret.S.
30235         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30236         __makecontext_ret to ...
30237         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30238         ... here and call exit if uc_link is NULL.  New file.
30239         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30240         __makecontext_ret.S.
30241
30242 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30243
30244         * elf/elf.h (R_390_IRELATIVE): New definition.
30245         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30246         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30247         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30248         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30249         (elf_machine_lazy_rel): Likewise.
30250         * sysdeps/s390/dl-irel.h: New file.
30251         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30252         * sysdeps/s390/s390-64/memset.S: New asm code.
30253         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30254         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30255         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30256         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30257         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30258         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30259         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30260         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30261         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30262         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30263         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30264         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30265         * sysdeps/s390/s390-32/memset.S: New asm code.
30266         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30267
30268 2012-07-17  Marek Polacek  <polacek@redhat.com>
30269
30270         [BZ #14349]
30271         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30272         * sysdeps/s390/s390-64/configure.in: Likewise.
30273         * sysdeps/sparc/configure.in: Likewise.
30274         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30275         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30276         * sysdeps/i386/configure.in: Likewise.
30277         * sysdeps/x86_64/configure.in: Likewise.
30278         * sysdeps/sh/configure.in: Likewise.
30279         * sysdeps/s390/s390-32/configure: Regenerated.
30280         * sysdeps/s390/s390-64/configure: Likewise.
30281         * sysdeps/x86_64/configure: Likewise.
30282         * sysdeps/sh/configure: Likewise.
30283         * sysdeps/powerpc/powerpc64/configure: Likewise.
30284         * sysdeps/powerpc/powerpc32/configure: Likewise.
30285         * sysdeps/sparc/configure: Likwise.
30286         * sysdeps/i386/configure: Likewise.
30287
30288         * elf/dl-open.c: Comment fixes.
30289
30290 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30291
30292         * Makefile [CXX] (check-data): Remove.
30293         [CXX] (c++-types.data): New vpath directive.
30294         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30295         vpath.  Do not allow for C++ type data being missing.
30296         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30297         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30298         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30299         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30300         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30301         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30302         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30304         ... here.
30305         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30307         ... here.
30308         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30310         ... here.
30311         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30313         ... here.
30314         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30315         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30316         ... here.
30317         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30318         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30319         ... here.
30320         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30321         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30322         ... here.
30323         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30324         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30325
30326         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30327         definitions to architecture-specific files.
30328         (TLS_IE): Likewise.
30329         (TLS_LD): Likewise.
30330         (TLS_GD): Likewise.
30331         * sysdeps/i386/tls-macros.h: New file.
30332         * sysdeps/powerpc/tls-macros.h: Likewise.
30333         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30334         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30335         * sysdeps/sh/tls-macros.h: Likewise.
30336         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30337         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30338         * sysdeps/x86_64/tls-macros.h: Likewise.
30339
30340 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30341
30342         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30343         zero value for regular exit case.
30344
30345         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30346         (__start_context): Preserve zero value for regular exit case.
30347
30348 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30349             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30350
30351         * manual/setjmp.texi (setcontext): Clarify normal process
30352         termination when uc_link is the null pointer.
30353         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30354         exit call.
30355
30356 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30357
30358         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30359         preprocessor.  Test for each exception mask separately.
30360
30361 2012-07-16  Andreas Jaeger  <aj@suse.de>
30362
30363         * po/ru.po: Update from translation team.
30364
30365 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30366
30367         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30368         equal to 0.
30369         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30370         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30371         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30372         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30373         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30374
30375 2012-07-13  Andreas Jaeger  <aj@suse.de>
30376
30377         * po/fr.po: Update from translation team.
30378
30379 2012-07-12  Marek Polacek  <polacek@redhat.com>
30380
30381         [BZ #14173]
30382         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30383         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30384         loop condition.
30385
30386 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30387
30388         [BZ #13717]
30389         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30390         Change to 2.4.1 where previously 2.4.0.
30391         * sysdeps/unix/sysv/linux/configure: Regenerated.
30392         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30393         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30394         version.
30395         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30396         (__ASSUME_AT_CLKTCK): Remove.
30397         (__ASSUME_AT_PAGESIZE): Likewise.
30398         (__ASSUME_AT_XID): Likewise.
30399         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30400         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30401         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30402         unconditionally.
30403         (HAVE_AUX_PAGESIZE): Likewise.
30404         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30405         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30406         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30407
30408 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30409
30410         [BZ #14307]
30411         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30412         the temporary buffer used to invoke __gethostbyname2_r,
30413         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30414         host_data / struct gaih_addrtuple.
30415         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30416         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30417         header file nss/nsswitch.h.
30418         * nss/nsswitch.h (global scope): Add definition of implementation
30419         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30420         resolv/nss_dns/dns-host.c).
30421
30422 2012-07-11  Andreas Jaeger  <aj@suse.de>
30423
30424         * po/fr.po: Update from translation team.
30425
30426         * po/sv.po: Update from translation team
30427         * po/fr.po: Another update from translation team.
30428
30429 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30430
30431         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30432         for subnormals or multiply small sinh result by itself.
30433         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30434         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30435
30436 2012-07-11  David S. Miller  <davem@davemloft.net>
30437
30438         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30439
30440 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30441
30442         [BZ #14347]
30443         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30444         (INTERNAL_MARK): Shift it here.
30445
30446 2012-07-10  Marek Polacek  <polacek@redhat.com>
30447
30448         [BZ #14151]
30449         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30450         libc_cv_asm_global_directive with .globl.
30451         * configure: Regenerated.
30452         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30453         with .globl.
30454         * sysdeps/i386/configure: Regenerated.
30455         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30456         with .globl.
30457         * sysdeps/x86_64/configure: Regenerated.
30458         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30459         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30460         * elf/tst-unique2mod2.c: Likewise.
30461         * elf/tst-unique2mod1.c: Likewise.
30462         * elf/tst-unique1mod2.c: Likewise.
30463         * elf/tst-unique1mod1.c: Likewise.
30464         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30465         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30466         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30467         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30468         * sysdeps/mach/sysdep.h: Likewise.
30469         * sysdeps/i386/sysdep.h: Likewise.
30470         * sysdeps/i386/i386-mcount.S: Likewise.
30471         * sysdeps/x86_64/_mcount.S: Likewise.
30472         * sysdeps/x86_64/sysdep.h: Likewise.
30473         * sysdeps/sh/_mcount.S: Likewise.
30474         * sysdeps/sh/sysdep.h: Likewise.
30475         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30476         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30477         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30478         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30479         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30480         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30481         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30482         * locale/localeinfo.h: Likewise.
30483         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30484         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30485
30486 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30487
30488         [BZ #14336]
30489         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30490         system".
30491         * manual/message.texi (The Uniforum approach): Likewise.
30492         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30493         (glibc iconv Implementation): Likewise.
30494
30495 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30496
30497         [BZ #14337]
30498         * math/s_clog.c (__clog): Avoid scaling a value down where that
30499         could result in underflow.
30500         * math/s_clog10.c (__clog10): Likewise.
30501         * math/s_clog10f.c (__clog10f): Likewise.
30502         * math/s_clog10l.c (__clog10l): Likewise.
30503         * math/s_clogf.c (__clogf): Likewise.
30504         * math/s_clogl.c (__clogl): Likewise.
30505         * math/libm-test.inc (clog_test): Add more tests.
30506         (clog10_test): Likewise.
30507         * sysdeps/i386/fpu/libm-test-ulps: Update.
30508         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30509
30510 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30511
30512         [BZ #14283]
30513         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30514         by 7 not 8 to examine high bit of fractional part.
30515
30516         [BZ #14042]
30517         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30518         for call to __mcount_internal.
30519         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30520         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30521         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30522
30523 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30524
30525         [BZ #14154]
30526         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30527         approximation for values within 0x1p-13f of an odd multiple of
30528         pi/4.
30529         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30530         exception.  Add more tests.
30531         * sysdeps/i386/fpu/libm-test-ulps: Update.
30532
30533         [BZ #6778]
30534         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
30535         inputs and return -1 for them.  Do not check for +Inf in case not
30536         reachable for +Inf.
30537         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
30538         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30539         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30540         and return -1 for them.  Do not check for +Inf in case not
30541         reachable for +Inf.
30542         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
30543         define.
30544         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30545         and return -1 for them.  Do not check for +Inf in case not
30546         reachable for +Inf.
30547         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
30548         spurious underflow.
30549         * sysdeps/i386/fpu/libm-test-ulps: Update.
30550         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30551
30552 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
30553
30554         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
30555
30556 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
30557
30558         [BZ #14157]
30559         [BZ #14331]
30560         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
30561         could result in spurious underflow.  Scale down values above
30562         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
30563         * math/s_csqrtf.c (__csqrtf): Likewise.
30564         * math/s_csqrtl.c (__csqrtl): Likewise.
30565         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
30566         spurious underflow.
30567         * sysdeps/i386/fpu/libm-test-ulps: Update.
30568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30569
30570 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
30571
30572         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
30573         xopen-msg.sed.
30574         * catgets/xopen-msg.awk: New file.
30575         * catgets/xopen-msg.sed: Removed.
30576
30577         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30578         po2text.sed.
30579         * intl/po2test.awk: New file.
30580         * intl/po2test.sed: Removed.
30581
30582 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30583
30584         [BZ #14328]
30585         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30586         or multiply small sinh result by itself.
30587         * math/s_ctanf.c (__ctanf): Likewise.
30588         * math/s_ctanh.c (__ctanh): Likewise.
30589         * math/s_ctanhf.c (__ctanhf): Likewise.
30590         * math/s_ctanhl.c (__ctanhl): Likewise.
30591         * math/s_ctanl.c (__ctanl): Likewise.
30592         * math/libm-test.inc (ctan_test_tonearest): New function.
30593         (ctan_test_towardzero): Likewise.
30594         (ctan_test_downward): Likewise.
30595         (ctan_test_upward): Likewise.
30596         (ctanh_test_tonearest): Likewise.
30597         (ctanh_test_towardzero): Likewise.
30598         (ctanh_test_downward): Likewise.
30599         (ctanh_test_upward): Likewise.
30600         (main): Call these new functions.
30601         * sysdeps/i386/fpu/libm-test-ulps: Update.
30602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30603
30604 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30605
30606         * .gitignore: Delete /ports entry.
30607
30608 2012-07-03  Andreas Jaeger  <aj@suse.de>
30609
30610         * po/bg.po: Update from translation team.
30611         * po/cs.po: Likewise.
30612         * po/de.po: Likewise.
30613         * po/hr.po: Likewise.
30614         * po/nl.pl: Likewise.
30615         * po/pl.po: Likewise.
30616         * po/vi.po: Likewise.
30617
30618 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30619
30620         * Makeconfig [!+link] (+link-before-libc): New variable.
30621         [!+link] (+link-after-libc): Likewise.
30622         [!+link] (+link-tests): Likewise.
30623         [!+link] (+link): Define in terms of $(+link-before-libc) and
30624         $(+link-after-libc).
30625         [!+link-static] (+link-static-before-libc): New variable.
30626         [!+link-static] (+link-static-after-libc): Likewise.
30627         [!+link-static] (+link-static-tests): Likewise.
30628         [!+link-static] (+link-static): Define in terms of
30629         $(+link-static-before-libc) and $(+link-static-after-libc).
30630         [build-shared] (link-libc-before-gnulib): New variable.
30631         [build-shared] (link-libc-tests): Likewise.
30632         [build-shared] (link-libc): Define in terms of
30633         $(link-libc-before-gnulib).
30634         [!build-shared] (link-libc-tests): New variable.
30635         (link-libc-static-tests): New variable.
30636         [!gnulib] (gnulib-arch): New variable.
30637         [!gnulib] (gnulib-tests): Likewise.
30638         [!gnulib] (static-gnulib-arch): Likewise.
30639         [!gnulib] (static-gnulib-tests): Likewise.
30640         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30641         Define with "=" instead of ":=".
30642         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30643         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30644         * Rules (binaries-all-notests): New variable.
30645         (binaries-all-tests): Likewise.
30646         (binaries-static-notests): Likewise.
30647         (binaries-static-tests): Likewise.
30648         (binaries-all): Define using $(binaries-all-notests) and
30649         $(binaries-all-tests).
30650         (binaries-static): Define using $(binaries-static-notests) and
30651         $(binaries-static-tests).
30652         (binaries-shared-tests): New variable.
30653         (binaries-shared-notests): Likewise.
30654         (binaries-shared): Remove variable.
30655         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30656         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30657         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30658         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30659         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30660         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30661         * elf/Makefile (sln-modules): New variable.
30662         (extra-objs): Add $(sln-modules:=.o).
30663         (ldconfig-modules): Add static-stubs.
30664         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30665         * elf/static-stubs.c: New file.
30666
30667         [BZ #14283]
30668         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30669         by 7 not 8 to examine high bit of fractional part.  Use volatile
30670         variables when splitting into final array of floats if
30671         __FLT_EVAL_METHOD__ != 0.
30672         * math/libm-test.inc (cos_test): Add another test.
30673         (sin_test): Likewise.
30674         * sysdeps/i386/fpu/libm-test-ulps: Update.
30675
30676         [BZ #14273]
30677         * math/libm-test.inc (cosh_test): Add more tests.
30678
30679         * version.h (RELEASE): Set to "development".
30680         (VERSION): Set to "2.16.90".
30681
30682 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30683
30684         * NEWS: Update copyright. Remove last-updated date.
30685         Mention math library bug fixes and timezone data changes.
30686         * README: Mention GNU/Hurd, x32, and HPPA support status.
30687
30688 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30689
30690         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30691
30692 2012-06-27  Andreas Jaeger  <aj@suse.de>
30693
30694         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30695
30696 2012-06-25  Andreas Jaeger  <aj@suse.de>
30697
30698         * sysdeps/s390/fpu/libm-test-ulps: Update.
30699
30700 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30701             Thomas Schwinge  <thomas@codesourcery.com>
30702
30703         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30704         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30705         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30706         fanotify_mark.
30707
30708 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30709
30710         * sysdeps/mach/start.c: Remove file.
30711         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30712         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30713         * sysdeps/sh/init-first.c: Likewise.
30714
30715         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30716         registers for frame unwinding purposes, add CFI directives.
30717         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30718         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30719         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30720         Likewise.
30721
30722         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30723         __fortify_fail returning.
30724         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30725
30726         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30727         sysdeps/sh/____longjmp_chk.S.
30728         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30729         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30730         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30731         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30732
30733         * sysdeps/sh/abort-instr.h: New file.
30734         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30735         process in case exit returns.
30736
30737         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30738         initialize the GOT register before use.
30739
30740         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30741         calculation of ARGC > 4.
30742
30743         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30744         meaningful names to some local labels.
30745
30746 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30747             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30748
30749         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30750         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30751         (__arch_compare_and_exchange_val_16_acq): Likewise.
30752         (__arch_compare_and_exchange_val_32_acq): Likewise.
30753         (atomic_exchange_and_add): Fix gUSA sequence.
30754         (atomic_add): Likewise.
30755         (atomic_add_negative): Likewise.
30756         (atomic_add_zero): Likewise.
30757         (atomic_bit_test_set): Likewise.
30758
30759 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30760
30761         [BZ #13579]
30762         * include/link.h (struct link_map): Add l_free_initfini.
30763         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30764         l_initfini.
30765         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30766         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30767         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30768         set.
30769
30770 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30771
30772         * configure.in: Use AC_LANG_SOURCE.
30773         * configure: Regenerate.
30774
30775 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30776
30777         * configure.in (libc_cv_localstatedir): New substituted variable.
30778         * configure: Regenerated.
30779         * config.make.in (localstatedir): New variable, substituted from
30780         libc_cv_localstatedir.
30781         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30782         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30783         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30784         * sysdeps/gnu/configure: Regenerated.
30785
30786 2012-06-21  Jeff Law  <law@redhat.com>
30787
30788         [BZ #14277]
30789         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30790         free.  Simplify list management for _LIBC case.
30791
30792 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30793
30794         [BZ #14273]
30795         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30796         Clear sign bit of 64-bit integer value before comparing against
30797         overflow value.
30798
30799         * sysdeps/mach/configure: Regenerated.
30800
30801 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30802
30803         [BZ #14278]
30804         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30805
30806 2012-06-21  Jeff Law  <law@redhat.com>
30807
30808         [BZ #13882]
30809         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30810         uint16_t for elements in the "seen" array to avoid char overflows.
30811         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30812         * elf/dl-open.c (dl_open_worker): Likewise.
30813
30814 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30815
30816         * scripts/list-sources.sh: Scan PORTS for translations.
30817         * po/libc.pot: Regenerated.
30818
30819 2012-06-21  Andreas Jaeger  <aj@suse.de>
30820
30821         [BZ #12194]
30822         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30823         warning.
30824         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30825         * bits/byteswap-16.h (__bswap_16): Likewise.
30826         * bits/byteswap.h (__bswap_constant_16): Likewise.
30827
30828 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30829
30830         [BZ #14117]
30831         * sysdeps/i386/fpu_control.h: Removed.
30832         * sysdeps/x86_64/fpu_control.h: Moved to ...
30833         * sysdeps/x86/fpu_control.h: Here.
30834
30835         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30836         (_FPU_SETCW): Likewise.
30837
30838 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30839
30840         [BZ #14117]
30841         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30842         * sysdeps/x86/fpu/bits/mathinline.h: This.
30843         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30844
30845         [BZ #14050]
30846         [BZ #14117]
30847         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30848         functions if __x86_64__ is defined.
30849
30850 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30851
30852         * string/endian.h: Add !__ASSEMBLER__ condition for including
30853         conversion interfaces.
30854
30855 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30856
30857         [BZ #14241]
30858         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30859         of ABS(x) in calculating zero to negative powers other than odd
30860         integers.
30861         * math/libm-test.inc (pow_test): Add more tests.
30862
30863 2012-06-15  Andreas Jaeger  <aj@suse.de>
30864
30865         * manual/contrib.texi (Contributors): Update entry of Liubov
30866         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30867         Machado Filho.
30868
30869 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30870
30871         * string/string.h: Add __wur to GNU version of strerror_r.
30872
30873 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30874
30875         [BZ #14229]
30876         * string/Makefile (tests): Add tst-strtok_r.
30877         * string/tst-strtok_r.c: New file.
30878         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30879         RAX_LP/RDX_LP on SAVE_PTR.
30880
30881 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30882
30883         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30884
30885 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30886
30887         * libm_test.inc (csqrt_test): Allow more spurious underflow
30888         exceptions.
30889         (j0_test): Likewise.
30890         (j1_test): Likewise.
30891         (y0_test): Likewise.
30892         (y1_test): Likewise.
30893
30894 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30895
30896         * po/Makefile (libc.pot): Use UTF-8 charset.
30897
30898 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30899
30900         [BZ #14210]
30901         Suppress sign-conversion warning from FD_SET.
30902         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30903         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30904         not unsigned long int.
30905         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30906
30907 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30908
30909         [BZ #14050]
30910         [BZ #14117]
30911         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30912         __extern_always_inline instead of __extern_inline.
30913         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30914         (__signbit): Likewise.
30915         (__signbitl): Support C++ namespace.
30916         (lrintf): New inline function.
30917         (lrint): Likewise.
30918         (llrintf): Likewise.
30919         (llrint): Likewise.
30920         (fmaxf): Likewise.
30921         (fmax): Likewise.
30922         (fminf): Likewise.
30923         (fmin): Likewise.
30924         (rint): Likewise.
30925         (rintf): Likewise.
30926         (ceil): Likewise.
30927         (ceilf): Likewise.
30928         (floor): Likewise.
30929         (floorf): Likewise.
30930         (nearbyint): Likewise.
30931         (nearbyintf): Likewise.
30932
30933 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30934
30935         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30936         non-default versions.
30937
30938 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30939
30940         [BZ #14218]
30941         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30942
30943 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30944
30945         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30946         (FE_UPWARD, FE_DOWNWARD): Don't define.
30947         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30948         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30949
30950         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30951         reading it.
30952         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30953         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30954
30955 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30956
30957         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30958         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30959         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30960         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30961
30962 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30963
30964         [BZ #14117]
30965         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30966         * sysdeps/i386/fpu/Implies: New file.
30967         * sysdeps/x86_64/fpu/Implies: Likewise.
30968         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30969         * sysdeps/x86/fpu/bits/fenv.h: This.
30970
30971         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30972         __SSE_MATH__.
30973
30974 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30975
30976         [BZ #14134]
30977         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30978         character 0xffff that matches the last element of the
30979         conversion table.
30980
30981 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30982
30983         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30984         fmodl commit.
30985
30986 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30987
30988         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30989         values higher than 25.6283.
30990
30991 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30992
30993         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30994         subnormal exponent extraction and add some __builtin_expect.
30995         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30996         Fix for subnormal mantissa calculation.
30997
30998 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30999
31000         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
31001         cpu2 is -1 and errno is not ENOSYS.
31002
31003 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
31004
31005         [BZ #14117]
31006         * sysdeps/i386/i486/bits/string.h: Renamed to ...
31007         * sysdeps/x86/bits/string.h: This.
31008         * sysdeps/x86_64/bits/string.h: Removed.
31009
31010         * sysdeps/i386/i486/bits/string.h: Define inline functions only
31011         if not compiling for x86-64, but compiling for >= i486.
31012
31013         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
31014         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
31015
31016         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
31017         New macro from Linux kernel 3.4.0.
31018         (FP_XSTATE_MAGIC2): Likewise.
31019         (FP_XSTATE_MAGIC2_SIZE): Likewise.
31020         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
31021         (struct _fpx_sw_bytes): New struct.
31022         (struct _xsave_hdr): Likewise.
31023         (struct _ymmh_state): Likewise.
31024         (struct _xstate): Likewise.
31025
31026         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
31027         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
31028         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
31029         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
31030         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
31031         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
31032
31033         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
31034         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
31035         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
31036         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
31037         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
31038         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
31039
31040 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31041
31042         [BZ #13743]
31043         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
31044         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
31045         (sysdep_headers): Include sys/platform/ppc.h.
31046         * sysdeps/powerpc/test-gettimebase.c: Test for
31047         __ppc_get_timebase() to catch future ISA opcode/insn changes.
31048         * manual/Makefile (appendices): Include platform.texi.
31049         * manual/contrib.texi (Contributors): Update @node pointers.
31050         * manual/maint.texi (Maintenance): Likewise.
31051         (Platform): New node.
31052         * manual/platform.texi: New file.  Document the new features.
31053
31054 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
31055             Jakub Jelinek  <jakub@redhat.com>
31056
31057         [BZ #14188]
31058         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
31059         where __builtin_expect is unavailable.
31060
31061 2012-06-03  David S. Miller  <davem@davemloft.net>
31062
31063         * stdlib/longlong.h: Updated from GCC.
31064
31065 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
31066
31067         [BZ #14042]
31068         * sysdeps/powerpc/powerpc32/mcount.c: New file.
31069         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
31070         __mcount_internal.
31071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
31072         (GLIBC_2.16): Likewise.
31073
31074 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31075
31076         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
31077
31078 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
31079
31080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
31081         (default-abi): New variable.
31082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
31083         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
31084         variable.
31085         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
31086         Likewise.
31087         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
31088         Likewise.
31089         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
31090         Likewise.
31091
31092         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
31093         definition.  Document in comment.
31094
31095 2012-06-01  David S. Miller  <davem@davemloft.net>
31096
31097         * stdlib/longlong.h: Updated from GCC.
31098
31099 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31100
31101         [BZ #14117]
31102         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
31103         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
31104         sys/debugreg.h sys/io.h here.
31105         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
31106         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
31107         sys/io.h.
31108         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
31109         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
31110         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
31111         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
31112         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
31113         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
31114
31115         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
31116         Define only if __x86_64__ is defined.
31117
31118 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
31119
31120         [BZ #14048]
31121         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
31122         Use int64_t for variable i.
31123         * math/libm-test.inc (fmod_test): Add more tests.
31124
31125         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
31126         z computation is not scheduled after fetestexcept.
31127         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
31128         Use math_force_eval instead of asm to ensure calculation scheduled
31129         before exception test.
31130         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
31131         Ensure a1 + u.d computation is not scheduled after fetestexcept.
31132
31133 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
31134
31135         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
31136         computation is not scheduled after fetestexcept.
31137
31138 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31139
31140         [BZ #14117]
31141         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
31142         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
31143
31144 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31145
31146         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
31147         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
31148
31149 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31150
31151         [BZ #14117]
31152         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
31153         <bits/wordsize.h>.
31154         (__WCHAR_MIN): Support __WORDSIZE == 64.
31155         (__WCHAR_MAX): Likewise.
31156
31157         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
31158         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
31159
31160         [BZ #14183]
31161         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
31162         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
31163
31164         [BZ #14117]
31165         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
31166         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
31167
31168         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
31169         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
31170
31171         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
31172         Defined to 1 if __x86_64__ isn't defined.
31173         (_STAT_VER_LINUX_OLD): New.
31174         (st_atime): Remove duplicate.
31175         (st_mtime): Likewise.
31176         (st_ctime): Likewise.
31177
31178 2012-05-31  David S. Miller  <davem@davemloft.net>
31179
31180         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
31181         entries.
31182
31183 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
31184
31185         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
31186         gen-libm-test.pl.
31187
31188         [BZ #14132]
31189         * elf/dl-reloc.c: Include <_itoa.h>.
31190         (_dl_reloc_bad_type): Remove use of INTUSE.
31191         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31192         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31193         * stdio-common/psiginfo.c (psiginfo): Likewise.
31194         * stdio-common/psignal.c (psignal): Likewise.
31195         * string/strsignal.c (strsignal): Likewise.
31196         * include/signal.h (_sys_siglist): Declare hidden proto.
31197         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31198         INTVARDEF with libc_hidden_data_def.
31199         * stdio-common/itoa-udigits.c: Likewise.
31200         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31201         (_itoa_lower_digits_internal): Remove declaration.
31202         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31203         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31204         (_sys_sigabbrev_internal): Remove aliases.
31205         (_sys_siglist): Define hidden alias.
31206
31207 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31208
31209         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31210         bits/sysctl.h.
31211
31212 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31213
31214         [BZ #14117]
31215         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31216         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31217
31218         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31219         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31220         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31221         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31222         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31223         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31224
31225         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31226         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31227         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31228
31229         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31230         with __addr.
31231         (insw): Likewise.
31232         (insl): Likewise.
31233         (outsb): Likewise.
31234         (outsw): Likewise.
31235         (outsl): Likewise.
31236
31237         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31238         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31239         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31240
31241         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31242         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31243         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31244         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31245         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31246         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31247
31248         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31249         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31250
31251         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31252         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31253
31254         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31255         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31256         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31257
31258         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31259         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31260         to ...
31261         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31262
31263         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31264         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31265         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31266
31267         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31268         for x86-64.
31269         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31270
31271 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31272
31273         * math/math.h (M_El): Use two more decimal places.
31274         (M_LOG2El): Likewise.
31275         (M_LOG10El): Likewise.
31276         (M_LN2l): Likewise.
31277         (M_LN10l): Likewise.
31278         (M_PIl): Likewise.
31279         (M_PI_2l): Likewise.
31280         (M_PI_4l): Likewise.
31281         (M_1_PIl): Likewise.
31282         (M_2_PIl): Likewise.
31283         (M_2_SQRTPIl): Likewise.
31284         (M_SQRT2l): Likewise.
31285         (M_SQRT1_2l): Likewise.
31286
31287 2012-05-31  David S. Miller  <davem@davemloft.net>
31288
31289         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31290         values between float registers.
31291         * sysdeps/sparc/sparc64/memset.S: Likewise.
31292         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31293
31294 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31295
31296         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31297         -D_FORTIFY_SOURCE=1.
31298         (CPPFLAGS-tst-longjmp_chk.c): Define.
31299         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31300         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31301         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31302         CFLAGS-tst-wchar-h.c.
31303
31304 2012-05-31  Marek Polacek  <polacek@redhat.com>
31305
31306         [BZ #14132]
31307         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31308         __endmntent_internal): Remove declaration.
31309         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31310         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31311         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31312
31313 2012-05-30  David S. Miller  <davem@davemloft.net>
31314
31315         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31316         (___Q_simulate_exceptions): Use real FP ops rather than writing
31317         into the %fsr.
31318         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31319         Likewise.
31320
31321 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31322
31323         [BZ #14117]
31324         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31325         * sysdeps/x86/bits/xtitypes.h: This.
31326
31327         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31328         * sysdeps/x86/bits/wordsize.h: This.
31329
31330         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31331         * sysdeps/x86/bits/huge_vall.h: This.
31332
31333         * sysdeps/i386/bits/select.h: Removed.
31334         * sysdeps/x86_64/bits/select.h: Renamed to ...
31335         * sysdeps/x86/bits/select.h: This.
31336
31337         * sysdeps/i386/bits/setjmp.h: Removed.
31338         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31339         * sysdeps/x86/bits/setjmp.h: This.
31340
31341         * sysdeps/i386/bits/mathdef.h: Removed.
31342         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31343         * sysdeps/x86/bits/mathdef.h: This.
31344
31345 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31346
31347         [BZ #14132]
31348         * include/sys/socket.h (__connect_internal)
31349         (__libc_sa_len_internal): Remove declaration.
31350         (__connect, __libc_sa_len): Declare hidden_proto.
31351         (SA_LEN): Remove use of INTUSE.
31352         * socket/connect.c: Add libc_hidden_def.
31353         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31354         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31355         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31356         alias.
31357         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31358         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31359         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31360         of adding _internal alias.
31361
31362 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31363
31364         [BZ #14117]
31365         * sysdeps/i386/bits/link.h: Removed.
31366         * sysdeps/i386/bits/linkmap.h: Likewise.
31367         * sysdeps/x86_64/bits/link.h: Renamed to ...
31368         * sysdeps/x86/bits/link.h: This.
31369         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31370         * sysdeps/x86/bits/linkmap.h: This.
31371
31372         * sysdeps/i386/bits/endian.h: Removed.
31373         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31374         * sysdeps/x86/bits/endian.h: This.
31375
31376         * sysdeps/i386/bits/byteswap.h: Removed.
31377         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31378         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31379         * sysdeps/x86/bits/byteswap.h: This.
31380         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31381         * sysdeps/x86/bits/byteswap-16.h: This.
31382         * sysdeps/i386/Implies: Add x86.
31383         * sysdeps/x86_64/Implies: Likewise.
31384
31385 2012-05-30  David S. Miller  <davem@davemloft.net>
31386
31387         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31388         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31389         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31390         (FP_TRAPPING_EXCEPTIONS): Define.
31391         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31392         (FP_TRAPPING_EXCEPTIONS): Define.
31393         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31394         subnormals only when inexact has been signalled or underflow
31395         exceptions are enabled.
31396         (_FP_PACK_CANONICAL): Likewise.
31397
31398 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31399
31400         [BZ #14183]
31401         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31402         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31403
31404 2012-05-30  Richard Henderson  <rth@twiddle.net>
31405
31406         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31407         with #ifndef NOT_IN_libc.
31408
31409         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31410         marked to avoid plt entry.
31411
31412 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31413
31414         [BZ #14112]
31415         * Makeconfig (default-abi): New macro.
31416         (abi-includes): Likewise.
31417         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31418         $(abi-$(default-abi)-lib-soname) for soname if defined.
31419         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31420         abi-variants.
31421         * Makefile (installed-stubs): Likewise.
31422         * include/stubs-biarch.h: Removed.
31423         * scripts/lib-names.awk: Only handle one library at a time.
31424         * scripts/soversions.awk: Remove WORDSIZE support.
31425         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31426         entries.
31427         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31428         Removed.
31429         (syscall-list-default-condition): Likewise.
31430         (syscall-list-default-condition): Likewise.
31431         (syscall-list-includes): Likewise.
31432         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31433         syscall-list-* with abi-*.  Handle undefined abi-variants.
31434         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31435         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31436         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31437         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31438         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31439         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31440         Removed.
31441         (syscall-list-32-options): Likewise.
31442         (syscall-list-32-condition): Likewise.
31443         (syscall-list-64-options): Likewise.
31444         (syscall-list-64-condition): Likewise.
31445         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31446         macro.
31447         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31448         Renamed to ...
31449         (abi-*): This.
31450         (abi-64-ld-soname): New macro.
31451         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31452         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31453         Renamed to ...
31454         (abi-*): This.
31455         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31456         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31457
31458 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31459
31460         * sysdeps/unix/sysv/linux/kernel-features.h
31461         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31462         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31463         include <kernel-features.h>.
31464         [!__NR_ftruncate64]: Remove conditional code.
31465         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31466         [__NR_ftruncate64]: Make code unconditional.
31467         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31468         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31469         include <kernel-features.h>.
31470         [!__NR_ftruncate64]: Remove conditional code.
31471         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31472         [__NR_ftruncate64]: Make code unconditional.
31473         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31475         include <kernel-features.h>.
31476         [!__NR_ftruncate64]: Remove conditional code.
31477         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31478         [__NR_ftruncate64]: Make code unconditional.
31479         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31481         include <kernel-features.h>.
31482         [!__NR_ftruncate64]: Remove conditional code.
31483         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31484         [__NR_ftruncate64]: Make code unconditional.
31485         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31486
31487         * configure.in (libc_cv_fpie): Weaken to a compile test using
31488         LIBC_TRY_CC_OPTION.
31489         * configure: Regenerated.
31490
31491 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31492
31493         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31494         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31495         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31496         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31497         Refreshed.
31498         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31499         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31500         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31501         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31502         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31503         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31504         Refreshed.
31505
31506 2012-05-27  David S. Miller  <davem@davemloft.net>
31507
31508         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31509         (___Q_zero): New.
31510         (__Q_simulate_exceptions): Return void.  Change to simulate
31511         exceptions by writing into the %fsr.
31512         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31513         (__Qp_handle_exceptions): Likewise.
31514         (numbers): Delete.
31515         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31516         __Qp_handle_exceptions.
31517         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31518         __Qp_handle_exceptions.
31519         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31520         as unused and give dummy FP_RND_NEAREST initializer.
31521         (FP_INHIBIT_RESULTS): Define.
31522         (___Q_simulate_exceptions): Update declaration.
31523         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31524         formatting.
31525         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31526         as unused and give dummy FP_RND_NEAREST initializer.
31527         (__Qp_handle_exceptions): Update declaration.
31528         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31529         formatting.
31530
31531 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31532
31533         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
31534         the temporary FPU control word.
31535         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
31536         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
31537         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
31538         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31539         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
31540         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
31541         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
31542         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31543         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
31544         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
31545         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31546
31547 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31548
31549         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
31550         fields.
31551
31552 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
31553
31554         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
31555         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
31556         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
31557         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
31558         Likewise.
31559         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
31560         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
31561         Likewise.
31562
31563 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
31564
31565         * po/h.po: Update from translation team.
31566
31567 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
31568
31569         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
31570
31571         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
31572         handling of denormals.
31573         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31574         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31575         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31576         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31577         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31578         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31579         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31580         Likewise.
31581
31582 2012-05-26  Marek Polacek  <polacek@redhat.com>
31583
31584         [BZ #14152]
31585         * math/libm-test.inc (fma_test): Don't always expect underflow
31586         exception.
31587
31588 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31589
31590         [BZ #12416]
31591         * elf/tst-execstack.c: Include stackinfo.h.
31592         (do_test): Adjust test case to ensure that pthread_getattr_np
31593         behaviour remains the same after marking stack executable.
31594
31595 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31596
31597         * sysdeps/unix/sysv/linux/kernel-features.h
31598         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31599         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31600         kernel-features.h.
31601         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31602         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31603         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31604         kernel-features.h.
31605         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31606         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31607
31608 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31609
31610         * configure.in: Define the default includes to being none.
31611         * configure: Regenerated.
31612
31613 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31614
31615         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31616         * sysdeps/x86_64/setjmp.S: Likewise.
31617         * sysdeps/i386/bsd-setjmp.S: Likewise.
31618         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31619         * sysdeps/i386/setjmp.S: Likewise.
31620         * sysdeps/i386/__longjmp.S: Likewise.
31621         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31622         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31623
31624         * include/stap-probe.h: New file.
31625         * configure.in: Handle --enable-systemtap.
31626         * configure: Regenerated.
31627         * config.h.in (USE_STAP_PROBE): New #undef.
31628         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31629         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31630         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31631
31632 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31633
31634         [BZ #13717]
31635         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31636         to 2.4.0 where earlier.
31637         * sysdeps/unix/sysv/linux/configure: Regenerated.
31638         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
31639         <kernel-features.h>.
31640         [__ASSUME_32BITUIDS]: Make code unconditional.
31641         [!__ASSUME_32BITUIDS]: Remove conditional code.
31642         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
31643         <kernel-features.h>.
31644         [__ASSUME_32BITUIDS]: Make code unconditional.
31645         [!__ASSUME_32BITUIDS]: Remove conditional code.
31646         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
31647         [__ASSUME_32BITUIDS]: Make code unconditional.
31648         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31649         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
31650         <kernel-features.h>.
31651         [__ASSUME_32BITUIDS]: Make code unconditional.
31652         [!__ASSUME_32BITUIDS]: Remove conditional code.
31653         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
31654         <kernel-features.h>.
31655         [__ASSUME_32BITUIDS]: Make code unconditional.
31656         [!__ASSUME_32BITUIDS]: Remove conditional code.
31657         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
31658         <kernel-features.h>.
31659         [__ASSUME_32BITUIDS]: Make code unconditional.
31660         [!__ASSUME_32BITUIDS]: Remove conditional code.
31661         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
31662         <kernel-features.h>.
31663         [__ASSUME_32BITUIDS]: Make code unconditional.
31664         [!__ASSUME_32BITUIDS]: Remove conditional code.
31665         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
31666         <kernel-features.h>.
31667         [__ASSUME_32BITUIDS]: Make code unconditional.
31668         [!__ASSUME_32BITUIDS]: Remove conditional code.
31669         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
31670         <kernel-features.h>.
31671         [__ASSUME_32BITUIDS]: Make code unconditional.
31672         [!__ASSUME_32BITUIDS]: Remove conditional code.
31673         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
31674         <kernel-features.h>.
31675         [__ASSUME_32BITUIDS]: Make code unconditional.
31676         [!__ASSUME_32BITUIDS]: Remove conditional code.
31677         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
31678         <kernel-features.h>.
31679         [__ASSUME_32BITUIDS]: Make code unconditional.
31680         [!__ASSUME_32BITUIDS]: Remove conditional code.
31681         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
31682         <kernel-features.h>.
31683         [__ASSUME_32BITUIDS]: Make code unconditional.
31684         [!__ASSUME_32BITUIDS]: Remove conditional code.
31685         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
31686         <kernel-features.h>.
31687         [__ASSUME_32BITUIDS]: Make code unconditional.
31688         [!__ASSUME_32BITUIDS]: Remove conditional code.
31689         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
31690         <kernel-features.h>.
31691         [__NR_setresgid] (__setresgid): Do not declare.
31692         [__ASSUME_32BITUIDS]: Make code unconditional.
31693         [!__ASSUME_32BITUIDS]: Remove conditional code.
31694         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31695         <kernel-features.h>.
31696         [__NR_setresuid] (__setresuid): Do not declare.
31697         [__ASSUME_32BITUIDS]: Make code unconditional.
31698         [!__ASSUME_32BITUIDS]: Remove conditional code.
31699         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
31700         <kernel-features.h>.
31701         [__ASSUME_32BITUIDS]: Make code unconditional.
31702         [!__ASSUME_32BITUIDS]: Remove conditional code.
31703         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
31704         <kernel-features.h>.
31705         [__ASSUME_32BITUIDS]: Make code unconditional.
31706         [!__ASSUME_32BITUIDS]: Remove conditional code.
31707         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
31708         <kernel-features.h>.
31709         [__ASSUME_32BITUIDS]: Make code unconditional.
31710         [!__ASSUME_32BITUIDS]: Remove conditional code.
31711         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
31712         <kernel-features.h>.
31713         [__ASSUME_32BITUIDS]: Make code unconditional.
31714         [!__ASSUME_32BITUIDS]: Remove conditional code.
31715         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
31716         <kernel-features.h>.
31717         [__ASSUME_32BITUIDS]: Make code unconditional.
31718         [!__ASSUME_32BITUIDS]: Remove conditional code.
31719         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
31720         <kernel-features.h>.
31721         [__ASSUME_32BITUIDS]: Make code unconditional.
31722         [!__ASSUME_32BITUIDS]: Remove conditional code.
31723         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
31724         <kernel-features.h>.
31725         [__ASSUME_32BITUIDS]: Make code unconditional.
31726         [!__ASSUME_32BITUIDS]: Remove conditional code.
31727         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
31728         <kernel-features.h>.
31729         [__ASSUME_32BITUIDS]: Make code unconditional.
31730         [!__ASSUME_32BITUIDS]: Remove conditional code.
31731         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
31732         <kernel-features.h>.
31733         [__ASSUME_32BITUIDS]: Make code unconditional.
31734         [!__ASSUME_32BITUIDS]: Remove conditional code.
31735         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
31736         <kernel-features.h>.
31737         [__ASSUME_32BITUIDS]: Make code unconditional.
31738         [!__ASSUME_32BITUIDS]: Remove conditional code.
31739         * sysdeps/unix/sysv/linux/kernel-features.h
31740         (__ASSUME_SETRESUID_SYSCALL): Remove.
31741         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31742         (__ASSUME_32BITUIDS): Likewise.
31743         (__ASSUME_LDT_WORKS): Likewise.
31744         (__ASSUME_O_DIRECTORY): Likewise.
31745         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31746         architecture but not kernel version.
31747         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31748         (__ASSUME_MMAP2_SYSCALL): Likewise.
31749         (__ASSUME_STAT64_SYSCALL): Likewise.
31750         (__ASSUME_IPC64): Likewise.
31751         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31752         <kernel-features.h>.
31753         [__ASSUME_32BITUIDS]: Make code unconditional.
31754         [!__ASSUME_32BITUIDS]: Remove conditional code.
31755         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31756         <kernel-features.h>.
31757         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31758         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31759         132096]: Remove conditional code.
31760         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31761         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31762         <kernel-features.h>.
31763         [__ASSUME_32BITUIDS]: Make code unconditional.
31764         [!__ASSUME_32BITUIDS]: Remove conditional code.
31765         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31766         <kernel-features.h>.
31767         [__ASSUME_32BITUIDS]: Make code unconditional.
31768         [!__ASSUME_32BITUIDS]: Remove conditional code.
31769         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31770         <kernel-features.h>.
31771         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31772         unconditional.
31773         (__setresgid): Do not declare.
31774         [__ASSUME_32BITUIDS]: Make code unconditional.
31775         [!__ASSUME_32BITUIDS]: Remove conditional code.
31776         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31777         <kernel-features.h>.
31778         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31779         unconditional.
31780         (__setresuid): Do not declare.
31781         [__ASSUME_32BITUIDS]: Make code unconditional.
31782         [!__ASSUME_32BITUIDS]: Remove conditional code.
31783         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31784         <kernel-features.h>.
31785         [__ASSUME_32BITUIDS]: Make code unconditional.
31786         [!__ASSUME_32BITUIDS]: Remove conditional code.
31787         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31788         <kernel-features.h>.
31789         [__ASSUME_32BITUIDS]: Make code unconditional.
31790         [!__ASSUME_32BITUIDS]: Remove conditional code.
31791
31792 2012-05-25  Richard Henderson  <rth@twiddle.net>
31793
31794         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31795         dl_hwcap to ifunc resolver.
31796         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31797         elf_ifunc_invoke.
31798         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31799         dl_hwcap to ifunc resolver.
31800         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31801
31802 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31803
31804         [BZ #14153]
31805         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31806         for |x| <= 2**-26, not 2**-57.
31807         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31808         exception.
31809
31810 2012-05-24  Jeff Law  <law@redhat.com>
31811
31812         * stdio-common/Makefile (tests): Add bug25.
31813         * stdio-common/bug25.c: New test.
31814
31815 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31816
31817         [BZ #13576]
31818         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31819         multiple of MALLOC_ALIGNMENT in size.
31820         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31821
31822 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31823
31824         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31825         Require >= 256.
31826         (FILENAME_MAX): Use macro-int-constant.
31827         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31828         (_IOFBF): Use macro-int-constant.
31829         (_IOLBF): Likewise.
31830         (_IONBF): Likewise.
31831         (SEEK_CUR): Likewise.
31832         (SEEK_END): Likewise.
31833         (SEEK_SET): Likewise.
31834         (TMP_MAX): Likewise.
31835         (EOF): Use macro-int-constant.  Require < 0.
31836         (NULL): Use macro-constant.  Require == 0.
31837         (stdin): Require type to be FILE *.
31838         (stdout): Likewise.
31839         (stderr): Likewise.
31840         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31841         macro-int-constant.
31842         (EXIT_SUCCESS): Likewise.
31843         (NULL): Use macro-constant.  Require == 0.
31844         (RAND_MAX): Use macro-int-constant.
31845         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31846         [C99-based standards] (strtof): Require function.
31847         [C99-based standards] (strtold): Likewise.
31848         [C99-based standards] (strtoll): Likewise.
31849         [C99-based standards] (strtoull): Likewise.
31850         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31851         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31852         [ISO || ISO99 || ISO11] (math.h): Likewise.
31853         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31854         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31855         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31856
31857 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31858
31859         [BZ #14132]
31860         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31861         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31862         * intl/dgettext.c (DCGETTEXT): Likewise.
31863         * intl/gettext.c (DCGETTEXT): Likewise.
31864         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31865         * posix/regex_internal.h (gettext): Likewise.
31866         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31867         Remove declaration.
31868         * include/argz.h (__argz_count_internal)
31869         (__argz_stringify_internal): Remove declaration.
31870         (__argz_count, __argz_stringify): Declare hidden proto.
31871         * intl/dcgettext.c: Remove use of INTDEF.
31872         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31873         * string/argz-stringify.c: Likewise.
31874         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31875         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31876         Declare hidden proto.
31877         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31878         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31879         Declare hidden proto.
31880         * include/stdio.h (__asprintf_internal): Don't declare.
31881         (__asprintf): Don't define as macro.  Declare hidden proto.
31882         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31883         (__fsetlocking): Declare hidden proto.
31884         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31885         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31886         hidden proto.
31887         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31888         (_IO_setlinebuf): Remove use of INTUSE.
31889         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31890         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31891         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31892         Remove declaration.
31893         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31894         (_IO_do_flush): Remove use of INTUSE.
31895         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31896         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31897         (_IO_adjust_column, _IO_least_wmarker)
31898         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31899         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31900         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31901         (_IO_default_doallocate, _IO_wdefault_doallocate)
31902         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31903         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31904         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31905         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31906         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31907         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31908         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31909         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31910         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31911         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31912         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31913         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31914         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31915         proto.
31916         (_IO_flush_all_internal, _IO_adjust_column_internal)
31917         (_IO_default_uflow_internal, _IO_default_finish_internal)
31918         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31919         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31920         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31921         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31922         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31923         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31924         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31925         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31926         (_IO_file_close_internal, _IO_file_close_it_internal)
31927         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31928         (_IO_file_init_internal, _IO_file_attach_internal)
31929         (_IO_file_fopen_internal, _IO_file_read_internal)
31930         (_IO_file_sync_internal, _IO_file_seek_internal)
31931         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31932         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31933         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31934         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31935         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31936         (_IO_list_all_internal, _IO_link_in_internal)
31937         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31938         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31939         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31940         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31941         (_IO_do_write_internal, _IO_padn_internal)
31942         (_IO_getline_info_internal, _IO_getline_internal)
31943         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31944         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31945         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31946         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31947         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31948         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31949         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31950         with libc_hidden_ver, remove use of INTUSE.
31951         * libio/genops.c: Likewise.
31952         * libio/freopen.c: Likewise.
31953         * libio/freopen64.c: Likewise.
31954         * libio/iofclose.c: Likewise.
31955         * libio/iofdopen.c: Likewise.
31956         * libio/iofflush.c: Likewise.
31957         * libio/iofflush_u.c: Likewise.
31958         * libio/iofgets.c: Likewise.
31959         * libio/iofgets_u.c: Likewise.
31960         * libio/iofopen.c: Likewise.
31961         * libio/iofopncook.c: Likewise.
31962         * libio/iofread.c: Likewise.
31963         * libio/iofread_u.c: Likewise.
31964         * libio/ioftell.c: Likewise.
31965         * libio/iofwrite.c: Likewise.
31966         * libio/iogetline.c: Likewise.
31967         * libio/iogets.c: Likewise.
31968         * libio/iogetwline.c: Likewise.
31969         * libio/iopadn.c: Likewise.
31970         * libio/iopopen.c: Likewise.
31971         * libio/ioseekoff.c: Likewise.
31972         * libio/ioseekpos.c: Likewise.
31973         * libio/iosetbuffer.c: Likewise.
31974         * libio/iosetvbuf.c: Likewise.
31975         * libio/ioungetc.c: Likewise.
31976         * libio/ioungetwc.c: Likewise.
31977         * libio/iovdprintf.c: Likewise.
31978         * libio/iovsprintf.c: Likewise.
31979         * libio/iovsscanf.c: Likewise.
31980         * libio/memstream.c: Likewise.
31981         * libio/obprintf.c: Likewise.
31982         * libio/oldfileops.c: Likewise.
31983         * libio/oldiofclose.c: Likewise.
31984         * libio/oldiofdopen.c: Likewise.
31985         * libio/oldiofopen.c: Likewise.
31986         * libio/oldiopopen.c: Likewise.
31987         * libio/oldstdfiles.c: Likewise.
31988         * libio/putc.c: Likewise.
31989         * libio/setbuf.c: Likewise.
31990         * libio/setlinebuf.c: Likewise.
31991         * libio/stdfiles.c: Likewise.
31992         * libio/strops.c: Likewise.
31993         * libio/vasprintf.c: Likewise.
31994         * libio/vscanf.c: Likewise.
31995         * libio/vsnprintf.c: Likewise.
31996         * libio/vswprintf.c: Likewise.
31997         * libio/wfiledoalloc.c: Likewise.
31998         * libio/wfileops.c: Likewise.
31999         * libio/wgenops.c: Likewise.
32000         * libio/wmemstream.c: Likewise.
32001         * libio/wstrops.c: Likewise.
32002         * libio/__fpurge.c: Likewise.
32003         * libio/__fsetlocking.c: Likewise.
32004         * assert/assert.c: Likewise.
32005         * debug/fgets_chk.c: Likewise.
32006         * debug/fgets_u_chk.c: Likewise.
32007         * debug/fread_chk.c: Likewise.
32008         * debug/fread_u_chk.c: Likewise.
32009         * debug/gets_chk.c: Likewise.
32010         * debug/obprintf_chk.c: Likewise.
32011         * debug/vasprintf_chk.c: Likewise.
32012         * debug/vdprintf_chk.c: Likewise.
32013         * debug/vsnprintf_chk.c: Likewise.
32014         * debug/vsprintf_chk.c: Likewise.
32015         * malloc/mtrace.c: Likewise.
32016         * misc/error.c: Likewise.
32017         * misc/syslog.c: Likewise.
32018         * stdio-common/asprintf.c: Likewise.
32019         * stdio-common/fxprintf.c: Likewise.
32020         * stdio-common/getw.c: Likewise.
32021         * stdio-common/isoc99_fscanf.c: Likewise.
32022         * stdio-common/isoc99_scanf.c: Likewise.
32023         * stdio-common/isoc99_vfscanf.c: Likewise.
32024         * stdio-common/isoc99_vscanf.c: Likewise.
32025         * stdio-common/isoc99_vsscanf.c: Likewise.
32026         * stdio-common/printf-prs.c: Likewise.
32027         * stdio-common/printf_fp.c: Likewise.
32028         * stdio-common/printf_fphex.c: Likewise.
32029         * stdio-common/printf_size.c: Likewise.
32030         * stdio-common/putw.c: Likewise.
32031         * stdio-common/scanf.c: Likewise.
32032         * stdio-common/sprintf.c: Likewise.
32033         * stdio-common/tmpfile.c: Likewise.
32034         * stdio-common/vfprintf.c: Likewise.
32035         * stdio-common/vfscanf.c: Likewise.
32036         * stdlib/strfmon_l.c: Likewise.
32037         * sunrpc/openchild.c: Likewise.
32038         * sunrpc/xdr_stdio.c: Likewise.
32039         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
32040         * sysdeps/mach/hurd/tmpfile.c: Likewise.
32041
32042 2012-05-24  Roland McGrath  <roland@hack.frob.com>
32043
32044         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32045
32046         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
32047         in the third column, to generate for the shared library an IFUNC
32048         that uses _dl_vdso_vsym.
32049         * Makerules (COMPILE.c, compile-stdin.c): New variables.
32050         * Makeconfig (object-suffixes-noshared): New variable.
32051
32052         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
32053         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
32054         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
32055         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
32056
32057         [BZ #14132]
32058         * include/sys/time.h (__gettimeofday): Remove macro.
32059         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
32060         * time/gettimeofday.c (__gettimeofday): Remove #undef.
32061         Remove INTDEF.
32062         (__gettimeofday): Add libc_hidden_def.
32063         (gettimeofday): Add libc_hidden_weak.
32064         * sysdeps/mach/gettimeofday.c: Likewise.
32065         * sysdeps/posix/gettimeofday.c: Likewise.
32066         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32067         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
32068         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
32069         (__gettimeofday_internal): Remove strong_alias.
32070         (__gettimeofday): Add libc_hidden_def.
32071         (gettimeofday): Add libc_hidden_weak.
32072         * sysdeps/unix/syscalls.list (gettimeofday):
32073         Remove __gettimeofday_internal alias.
32074
32075 2012-05-24  Daniel Jacobowitz  <drow@false.org>
32076             H.J. Lu  <hongjiu.lu@intel.com>
32077
32078         [BZ #12495]
32079         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
32080         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
32081         (largebin_index_32_big): New.
32082         (largebin_index): Use it for 16-byte alignment.
32083         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
32084         correction with front_misalign.
32085
32086 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
32087
32088         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
32089         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32090         Likewise.
32091         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
32092         Likewise.
32093         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
32094         Likewise.
32095         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
32096         Likewise.
32097         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
32098         Likewise.
32099         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
32100         Likewise.
32101         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
32102         Likewise.
32103         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
32104         Likewise.
32105         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
32106         Likewise.
32107         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
32108         Likewise.
32109         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32110         Likewise.
32111         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
32112         Likewise.
32113
32114         * scripts/data/c++-types-x32-linux-gnu.data: New file.
32115         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
32116
32117 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32118
32119         [BZ #10846]
32120         [BZ #14036]
32121         * math/libm-test.inc (exp_test): Add test from bug 14036.
32122         (pow_test): Add test from bug 10846.
32123
32124         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
32125         and other flags.
32126         (special_function): Do not include flags in test name.
32127         (parse_args): Likewise.
32128         * sysdeps/i386/fpu/libm-test-ulps: Update.
32129         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
32130         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
32131         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
32132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32133
32134         * math/gen-libm-test.pl (%beautify): Add entries for underflow
32135         exceptions.
32136         * math/libm-test.inc ("Philosophy"): Update comment about
32137         exception testing.
32138         (UNDERFLOW_EXCEPTION): New macro.
32139         (UNDERFLOW_EXCEPTION_OK): Likewise.
32140         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
32141         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
32142         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
32143         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
32144         (INVALID_EXCEPTION_OK): Update value.
32145         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
32146         (OVERFLOW_EXCEPTION_OK): Likewise.
32147         (IGNORE_ZERO_INF_SIGN): Likewise.
32148         (test_exceptions): Handle underflow exceptions.
32149         (acos_test): Update for underflow exception expectations.
32150         (cexp_test): Likewise.
32151         (clog_test): Likewise.
32152         (clog10_test): Likewise.
32153         (csqrt_test): Likewise.
32154         (ctan_test): Likewise.
32155         (ctanh_test): Likewise.
32156         (exp_test): Likewise.
32157         (exp10_test): Likewise.
32158         (exp2_test): Likewise.
32159         (expm1_test): Likewise.
32160         (fma_test): Likewise.
32161         (j0_test): Likewise.
32162         (jn_test): Likewise.
32163         (nexttoward_test): Likewise.
32164         (pow_test): Likewise.
32165         (scalbn_test): Likewise.
32166         (scalbln_test): Likewise.
32167         (tan_test): Likewise.
32168         (y1_test): Likewise.
32169         * sysdeps/i386/fpu/libm-test-ulps: Update.
32170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32171
32172 2012-05-23  David S. Miller  <davem@davemloft.net>
32173
32174         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32175         (__libc_sigaction): Remove unused local variables.
32176
32177 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32178
32179         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
32180
32181 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32182
32183         mktime: avoid signed integer overflow
32184         * time/mktime.c (__mktime_internal): Do not mishandle the case
32185         where diff == INT_MIN.
32186
32187         mktime: simplify computation of average
32188         * time/mktime.c (ranged_convert): Use new time_t_avg function
32189         instead of rolling our own (probably-slower) code.
32190
32191         mktime: do not assume signed right shift propagates sign bit
32192         * time/mktime.c (isdst_differ): New static function.
32193         (__mktime_internal): No need to normalize tm_isdst now.
32194         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32195         tm_isdst values.
32196
32197         mktime: merge another wrapv change from gnulib
32198         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32199         from some compilers.
32200
32201         mktime: remove incorrect attempt at unusual arithmetics
32202         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32203         The code didn't really work on such machines anyway.
32204         (TYPE_MINIMUM): Assume two's complement.
32205         (twos_complement_arithmetic): Verify that long_int and time_t
32206         are two's complement (or unsigned, in the latter case).
32207
32208         mktime: check signed shifts on long_int and time_t, too
32209         * time/mktime.c (SHR): Check that shifts work as desired
32210         on the types long_int and time_t too, as SHR is used on
32211         such types.
32212
32213         mktime: do not assume 'long' is wide enough
32214         * time/mktime.c (verify): Move decl up.
32215         (long_int): New type.
32216         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32217         to remove assumption in the code that 'long' is wide enough to
32218         store year values.  This assumption is not true on x32 and on
32219         some non-glibc platforms.
32220
32221         mktime: merge wrapv change from gnulib
32222         * time/mktime.c (WRAPV): New macro.
32223         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32224         (guess_time_tm, __mktime_internal): Do not assume that signed
32225         integer overflow wraps around; modern compilers generate code
32226         where this assumption is no longer valid.
32227
32228 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32229
32230         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32231         Replace "jmp L(pseudo_end)" with "ret".
32232         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32233         Likewise.
32234
32235 2012-05-23  Andreas Jaeger  <aj@suse.de>
32236
32237         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32238         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32239
32240 2012-05-23  Andreas Jaeger  <aj@suse.de>
32241             Maximilian Attems  <max@stro.at>
32242
32243         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32244         New macros.
32245
32246 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32247
32248         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32249         code so that pseudo_end is just ret and the stack pointer is
32250         correct also for static library in error case.
32251
32252 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32253
32254         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32255         move to syscalls.list.
32256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32260
32261         * manual/install.texi (Running make install): Do not mention Linux
32262         kernel version for which pt_chown is not needed.
32263         (Linux): Do not mention problems with nscd with 2.0 kernels.
32264         * INSTALL: Regenerated.
32265
32266 2012-05-23  Andreas Jaeger  <aj@suse.de>
32267
32268         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32269         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32270         macro.
32271         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32272         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32273         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32274         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32275         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32276         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32277         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32278         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32279         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32280         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32281         * sysdeps/unix/sysv/linux/bits/in.h
32282         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32283
32284 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32285
32286         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32287         (PREPARE_VERSION): Just use assert instead, it will be elided
32288         under [NDEBUG] anyway.
32289
32290 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32291
32292         * sysdeps/unix/sysv/linux/Makefile: Include
32293         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32294         (sysdep_routines): Remove sysctl.
32295         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32296         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32297         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32298         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32299         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32300
32301 2012-05-22  Andreas Jaeger  <aj@suse.de>
32302
32303         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32304         that pseudo_end is just ret and the stack pointer is correct also
32305         for static library in error case.
32306
32307 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32308
32309         [BZ #14122]
32310         * nss/nsswitch.c (defconfig_entries): New variable.
32311         (__nss_database_lookup): Don't leak defconfig entries.
32312         (nss_parse_service_list): Don't leak on error paths.
32313         (free_database_entries): New function.
32314         (free_defconfig): New function.
32315         (free_mem): Move common code to free_database_entries.
32316
32317 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32318
32319         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32320         Add arch_prctl.
32321         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32322
32323         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32324         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32325         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32326         New macro.
32327         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32328         (INTERNAL_SYSCALL_TYPES): Likewise.
32329         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32330         (LOAD_REGS_TYPES_[1-6]): Likewise.
32331         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32332         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32333
32334 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32335
32336         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32337         copysignl for GLIBC_2_0.
32338         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32339         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32340         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32341         logbl for GLIBC_2_0.
32342         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32343         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32344
32345 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32346
32347         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32348         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32349
32350         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32351         Use "neg %eax".
32352
32353         * time/mktime.c: Update copyright years.
32354
32355 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32356
32357         mktime: merge comment-quoting-style change from gnulib
32358         * time/mktime.c: Quote 'like this' in comments.
32359         The GNU coding standards suggest that we no longer quote `like this',
32360         as "`" and "'" are typically rendered asymmetrically nowadays.
32361         The typical gnulib style is to quote 'like this' when quoting
32362         code, and "like this" when quoting English.
32363
32364         * time/mktime.c (compile-command): Add "-I.".
32365
32366         mktime: merge mktime-internal.h change from gnulib
32367         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32368
32369         mktime: merge time_r change from gnulib
32370         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32371
32372         mktime: merge DEBUG change from gnulib
32373         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32374         case system <time.h> has a #define.
32375
32376         mktime: merge <sys/types.h> change from gnulib
32377         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32378         since <time.t> is now guaranteed to define time_t.
32379
32380         mktime: merge HAVE_CONFIG_H change from gnulib
32381         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32382
32383 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32384
32385         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32386         Use "neg %eax".
32387
32388         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32389         __rlim_t cast.
32390         (struct rusage): Use anonymous union to pad each field to
32391         __syscall_slong_t.
32392
32393 2012-05-21  David S. Miller  <davem@davemloft.net>
32394
32395         * Makefules (o-iterator): Remove .s cases.
32396         (compile-command.s): Delete.
32397         (COMPILE.s): Delete.
32398         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32399
32400 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32401
32402         * configure.in (libc_cv_predef_stack_protector): Only consider
32403         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32404         * configure: Regenerated.
32405
32406 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32407
32408         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32409         New macro.  Use R*LP on int and pointer.
32410         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32411         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32412         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32413         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32414
32415         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32416         [__WORDSIZE_TIME64_COMPAT32] instead of
32417         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32418         (struct utmp): Likewise.
32419         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32420         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32421         Renamed to ...
32422         (__WORDSIZE_TIME64_COMPAT32): This.
32423         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32424         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32425         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32426         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32427         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32428         (__WORDSIZE_TIME64_COMPAT32): New macro.
32429
32430 2012-05-21  Andreas Jaeger  <aj@suse.de>
32431
32432         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32433         only if [SHARED]. Add prototype for __wcschr_ia32.
32434
32435 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32436
32437         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32438         of %rbp unmolested in the jmp_buf while mangling the low bits.
32439         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32440         unmolested high bits of %rbp while demangling the low bits.
32441         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32442
32443 2012-05-21  Andreas Jaeger  <aj@suse.de>
32444
32445         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32446         * sunrpc/svc_simple.c: Use it for registerrpc.
32447         * sunrpc/xcrypt.c: Use it for passwd2des.
32448
32449         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32450
32451 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32452
32453         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32454         Don't define if [__SYSCALL_WORDSIZE != 32].
32455         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32456         New macro.
32457
32458 2012-05-21  Bruno Haible  <bruno@clisp.org>
32459             Andreas Jaeger  <aj@suse.de>
32460
32461         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32462         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32463         inptr and inend for must_buffer_ch.
32464         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32465         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32466         * stdio-common/Makefile (tests): Remove bug15.
32467         (bug15-ENV): Remove macro.
32468         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32469         anymore.
32470
32471 2012-05-19  Andreas Jaeger  <aj@suse.de>
32472             Roland McGrath  <roland@hack.frob.com>
32473
32474         * manual/contrib.texi: Completely rewritten. It contains now an
32475         alphabetical list of contributors and their contributions.
32476
32477 2012-05-21  Richard Henderson  <rth@twiddle.net>
32478
32479         * misc/getauxval.c (__getauxval): Use unsigned long int.
32480         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32481         (getauxval): Use unsigned long int.
32482
32483 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32484
32485         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32486
32487 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32488
32489         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32490         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32491         __alignof__ (long double).
32492
32493 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32494
32495         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32496
32497 2012-05-20  Richard Henderson  <rth@twiddle.net>
32498
32499         * misc/getauxval.c: New file.
32500         * misc/sys/auxv.h: New file.
32501         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32502         (routines): Add getauxval.
32503         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32504         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32505         * elf/dl-sysdep.c (_dl_auxv): Remove.
32506         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32507         * elf/dl-support.c (_dl_auxv): New variable.
32508         (_dl_aux_init): Initialize it.
32509         * manual/startup.texi (Auxiliary Vector): New node.
32510         * sysdeps/generic/bits/hwcap.h: New file.
32511         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32512         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32513         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32514         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32515         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32516         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32518         Update.
32519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32522         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32523         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32524         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32525         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32526         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32527
32528 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32529
32530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32531
32532 2012-05-19  David S. Miller  <davem@davemloft.net>
32533
32534         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32535
32536 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32537
32538         [BZ #14123]
32539         * math/s_ccosh.c: Include <float.h>
32540         (__ccosh): Avoid internal overflow calculating sinh and cosh
32541         values before multiplying by sin and cos values.
32542         * math/s_ccoshf.c: Likewise.
32543         * math/s_ccoshl.c: Likewise.
32544         * math/s_csin.c: Likewise.
32545         * math/s_csinf.c: Likewise.
32546         * math/s_csinl.c: Likewise.
32547         * math/s_csinh.c: Likewise.
32548         * math/s_csinhf.c: Likewise.
32549         * math/s_csinhl.c: Likewise.
32550         * math/libm-test.inc (ccos_test): Add more tests.
32551         (ccosh_test): Likewise.
32552         (csin_test): Likewise.
32553         (csinh_test): Likewise.
32554         * sysdeps/i386/fpu/libm-test-ulps: Update.
32555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32556
32557 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
32558
32559         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
32560         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
32561
32562         * sysdeps/x86_64/x32/_itoa.h: Add comment.
32563
32564 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32565
32566         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
32567         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
32568         * sysdeps/powerpc/soft-fp/Versions: Likewise.
32569         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
32570         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
32571         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
32572         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
32573         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
32574         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32575         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32576         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32577         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32578         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32579         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32580         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32581         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32582         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32583         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32584         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32585         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32586         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32587         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32588         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32589         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32590         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32591         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32592         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32593         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32594         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32595         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32596         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32597
32598 2012-05-18  Andreas Jaeger  <aj@suse.de>
32599
32600         * csu/.gitignore: Delete.
32601
32602 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32603
32604         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32605         (timex): Use __syscall_slong_t.
32606
32607 2012-05-18  Andreas Jaeger  <aj@suse.de>
32608             Carlos O'Donell  <carlos_odonell@mentor.com>
32609
32610         * manual/install.texi (Configuring and compiling): Update
32611         description about files modified in the source directory.
32612         * INSTALL: Regenerated.
32613
32614 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32615
32616         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32617         value.  Use "or" to set return value to -1.
32618         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32619         negate return value.
32620
32621 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32622
32623         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32624         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32625         failure if the compiler has Graphite support disabled.
32626         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32627         Likewise.
32628         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32629         (CFLAGS-memmove.c): Likewise.
32630         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32631         Likewise.
32632
32633 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32634
32635         * sysdeps/x86_64/x32/_itoa.h: New file.
32636
32637         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32638         getdents system call only if kernel and user dirents have the
32639         same d_ino and d_off.
32640
32641         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32642         LLONG_MAX != LONG_MAX.
32643         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32644         (_fitoa_word): Likewise.
32645
32646         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32647         years.
32648         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32649         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32650         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32651
32652         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32653         include <bits/wordsize.h>.  Check __x86_64__ instead of
32654         __WORDSIZE.
32655         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32656         if __x86_64__ is defined.  Use anonymous union on fpstate.
32657
32658         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32659         anonymous union.
32660
32661 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32662
32663         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32664         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32665         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32666         Refer to _rtld_local_ro instead of _rtld_global_ro.
32667         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32668         Likewise.
32669         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32670         Likewise.
32671         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32672         Likewise.
32673         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32674         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32675         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32676
32677         * sysdeps/powerpc/powerpc32/dl-machine.c
32678         (__elf_machine_runtime_setup) [PROF]: Don't reference
32679         _dl_prof_resolve.
32680
32681 2012-05-18  Andreas Jaeger  <aj@suse.de>
32682
32683         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32684         function only available for GCCs before 3.4 since GCC 3.4
32685         introduced a builtin.
32686         (lrint): Likewise.
32687         (llrintf): Likewise.
32688         (llrint): Likewise.
32689         (fmaxf): Likewise.
32690         (fmax): Likewise.
32691         (fminf): Likewise.
32692         (fmin): Likewise.
32693         (rint): Likewise.
32694         (rintf): Likewise.
32695         (nearbyint): Likewise.
32696         (nearbyintf): Likewise.
32697         (ceil): Likewise.
32698         (ceilf): Likewise.
32699         (floor): Likewise.
32700         (floorf): Likewise.
32701
32702 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32703
32704         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32705         on both fields and cast pointer to __syscall_ulong_t.
32706
32707         * bits/types.h (__fsword_t): New type.
32708         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32709         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32710         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32711         (__FSWORD_T_TYPE): Likewise.
32712         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32713         (__FSWORD_T_TYPE): Likewise.
32714         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32715         (__FSWORD_T_TYPE): Likewise.
32716         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32717         (__FSWORD_T_TYPE): Likewise.
32718         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32719         __SWORD_TYPE with __fsword_t.
32720         (statfs64): Likewise.
32721
32722 2012-05-17  David S. Miller  <davem@davemloft.net>
32723
32724         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32725
32726 2012-05-17  Andreas Jaeger  <aj@suse.de>
32727
32728         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32729         warning.
32730
32731 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32732
32733         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32734
32735 2012-05-17  Andreas Jaeger  <aj@suse.de>
32736
32737         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32738         when it is used.
32739
32740 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32741
32742         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32743
32744 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32745
32746         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32747         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32748
32749 2012-05-17  Andreas Jaeger  <aj@suse.de>
32750             Carlos O'Donell  <carlos_odonell@mentor.com>
32751
32752         [BZ #14059]
32753         * sysdeps/x86_64/multiarch/init-arch.h
32754         (bit_YMM_Usable): Rename to...
32755         (bit_AVX_Usable): ... this.
32756         (bit_FMA4_Usable): New macro.
32757         (bit_XMM_state): New macro.
32758         (bit_YMM_state): New macro.
32759         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32760         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32761         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32762         (CPUID_OSXSAVE): New macro.
32763         (CPUID_AVX): New macro.
32764         (CPUID_FMA4): New macro.
32765         (index_YMM_Usable): Rename to...
32766         (index_AVX_Usable): ... this.
32767         (HAS_AVX): Use HAS_ARCH_FEATURE.
32768         (HAS_FMA4): Likewise.
32769         (HAS_YMM_USABLE): Remove.
32770         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32771         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32772         are present.
32773         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32774         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32775         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32776         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32777         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32778
32779 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32780
32781         * math/libm-test.c: Support platforms without multiple rounding modes.
32782         * math/bug-nextafter.c: Support platforms without FP exceptions.
32783         * math/bug-nexttoward.c: Likewise.
32784         * math/test-fenv.c: Likewise.
32785         * math/test-misc.c: Likewise.
32786         * stdlib/bug-getcontext.c: Likewise.
32787
32788 2012-05-17  Andreas Jaeger  <aj@suse.de>
32789
32790         * manual/examples/search.c (critter_cmp): Change signature to
32791         avoid warnings.
32792         * manual/string.texi (Collation Functions): Likewise.
32793
32794 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32795
32796         * bits/types.h: Fold copyright years.
32797         * bits/typesizes.h: Likewise.
32798         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32799         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32800         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32801         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32802         * time/time.h: Likewise.
32803
32804 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32805
32806         [BZ #208]
32807         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32808         in instead of returning them.  Return void.
32809         (__libc_mallinfo): Accumulate over all arenas.
32810         (__malloc_stats): Adjust for change in int_mallinfo interface.
32811
32812 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32813
32814         [BZ #10375]
32815         * configure.in (NM): Add AC_CHECK_TOOL for it.
32816         (libc_extra_cflags): New substituted variable.
32817         Check for -fstack-protector being used implicitly.
32818         * configure: Regenerated.
32819         * config.make.in (config-extra-cflags): New variable,
32820         gets @libc_extra_cflags@.
32821         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32822
32823         [BZ #10375]
32824         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32825         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32826         * configure: Regenerated.
32827         * config.make.in (CPPUNDEFS): New substituted variable.
32828         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32829         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32830         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32831
32832 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32833
32834         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32835         (mq_attr): Use __syscall_slong_t.
32836
32837 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32838
32839         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32840         Check __x86_64__ instead of __WORDSIZE.
32841         (_STAT_VER_LINUX): Likewise.
32842         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32843         __syscall_ulong_t and __syscall_slong_t.
32844         (stat64): Likewise.
32845
32846 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32847
32848         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32849
32850 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32851
32852         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32853
32854 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32855
32856         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32857         __syscall_ulong_t.
32858
32859         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32860         include <bits/wordsize.h>.  Check __x86_64__ instead of
32861         __WORDSIZE.
32862         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32863         defined.
32864         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32865
32866         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32867         include <bits/wordsize.h>.  Check __x86_64__ instead of
32868         __WORDSIZE.
32869         (user_regs_struct): Use "__extension__ unsigned long long"
32870         instead of "unsigned long" if __x86_64__ is defined.
32871         (user): Likewise.  Pad after pointer field if __ILP32__ is
32872         defined.
32873
32874 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32875
32876         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32877         versions 5 to 9.
32878         * configure: Regenerated.
32879         * manual/install.texi (texinfo): Increase version requirement to
32880         4.5 or later.
32881         * INSTALL: Regenerated.
32882
32883         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32884
32885 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32886
32887         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32888
32889         * sysdeps/x86_64/x32/ffs.c: New file.
32890
32891         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32892         __syscall_ulong_t.
32893         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32894         defined.  Use __syscall_ulong_t.
32895         (shminfo): Use __syscall_ulong_t.
32896         (shm_info): Likewise.
32897
32898         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32899         __syscall_ulong_t.
32900
32901         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32902         <bits/wordsize.h>.
32903         (msgqnum_t): Use __syscall_ulong_t.
32904         (msglen_t): Likewise.
32905         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32906         __syscall_ulong_t.
32907
32908         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32909         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32910
32911         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32912
32913         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32914         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32915
32916         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32917         __syscall_slong_t.
32918
32919         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32920         include <bits/wordsize.h>.  Check __x86_64__ instead of
32921         __WORDSIZE.
32922
32923         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32924         "unsigned long long int" if __x86_64__ is defined.
32925         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32926
32927         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32928         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32929         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32930
32931         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32932         <stdint.h>.
32933         (GET_PC): Cast to uintptr_t first.
32934         (GET_FRAME): Likewise.
32935         (GET_STACK): Likewise.
32936
32937         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32938         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32939         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32940         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32941         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32942         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32943         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32944         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32945         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32946         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32947         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32948         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32949         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32950         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32951         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32952         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32953         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32954         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32955         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32956         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32957         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32958         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32959         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32960         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32961         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32962         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32963         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32964         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32965         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32966
32967 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32968
32969         * Makerules (+depfiles): Also collect depfiles from .oS in
32970         $(extra-objs).
32971         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32972         .oS, $(libnldbl-routines)).
32973
32974         * Makerules (native-compile-mkdep-flags): Define.
32975         * sunrpc/Makefile (extra-objs): Add $(addprefix
32976         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32977         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32978         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32979         calling $(make-target-directory).
32980
32981 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32982
32983         * bits/types.h (__snseconds_t): Removed.
32984         * time/time.h (struct timespec): Replace __snseconds_t with
32985         __syscall_slong_t.
32986         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32987         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32988         Likewise.
32989         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32990         (__SNSECONDS_T_TYPE): Likewise.
32991         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32992         (__SNSECONDS_T_TYPE): Likewise.
32993         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32994         (__SNSECONDS_T_TYPE): Likewise.
32995
32996 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32997
32998         * sysdeps/mach/hurd/bits/typesizes.h
32999         (__SYSCALL_SLONG_TYPE): New macro.
33000         (__SYSCALL_ULONG_TYPE): Likewise.
33001
33002 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33003
33004         * bits/types.h (__syscall_slong_t): New type.
33005         (__syscall_ulong_t): Likewise.
33006
33007         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
33008         (__SYSCALL_ULONG_TYPE): Likewise.
33009         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33010         (__SYSCALL_SLONG_TYPE): Likewise.
33011         (__SYSCALL_ULONG_TYPE): Likewise.
33012         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33013         (__SYSCALL_SLONG_TYPE): Likewise.
33014         (__SYSCALL_ULONG_TYPE): Likewise.
33015         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33016         (__SYSCALL_SLONG_TYPE): Likewise.
33017         (__SYSCALL_ULONG_TYPE): Likewise.
33018
33019 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33020
33021         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
33022         Add sigaltstack-offsets.sym.
33023         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
33024         <sigaltstack-offsets.h>.
33025         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
33026         longjmp_msg pointer.
33027         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
33028         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
33029         signal stack.
33030         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
33031
33032 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33033
33034         * elf/stackguard-macros.h: Remove file.
33035         * sysdeps/generic/stackguard-macros.h: New file.
33036         * sysdeps/i386/stackguard-macros.h: Likewise.
33037         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
33038         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
33039         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
33040         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
33041         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
33042         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
33043         * sysdeps/x86_64/stackguard-macros.h: Likewise.
33044         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
33045         <elf/stackguard-macros.h>.
33046
33047         [BZ #14109]
33048         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
33049         __aligned__ in attribute.
33050         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
33051         (gregset_t): Likewise.
33052
33053 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33054
33055         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
33056         * sysdeps/x86_64/64/Implies-after: Here.  New file.
33057         * sysdeps/x86_64/x32/Implies-after: New file.
33058
33059 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33060
33061         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
33062         and access return value for _dl_profile_fixup.  Use R10_LP to
33063         load frame size.
33064
33065 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33066
33067         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
33068
33069 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33070
33071         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
33072         * sysdeps/x86_64/x32/sysdep.h: New file.
33073
33074 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33075
33076         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
33077         * sysdeps/x86_64/setjmp.S: Likewise.
33078
33079 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33080
33081         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
33082         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
33083         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
33084         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
33085         remove unused global constant.
33086
33087 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
33088
33089         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
33090         include of <not-cancel.h>.
33091
33092 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33093
33094         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
33095
33096 2012-05-15  Jeff Law  <law@redhat.com>
33097             Andreas Jaeger  <aj@suse.de>
33098
33099         [BZ #13594]
33100         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
33101         out from...
33102         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
33103         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
33104         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
33105         code changing __hst_map_handle.map.
33106
33107 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33108
33109         * configure.in (sysnames): Look for Implies-before and Implies-after
33110         files.
33111         * configure: Regenerated.
33112
33113 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33114
33115         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
33116         8-byte data alignment with LP_SIZE alignment.
33117
33118 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33119
33120         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
33121         into R10_LP.
33122
33123 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33124
33125         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
33126
33127 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33128
33129         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
33130         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
33131         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
33132         Likewise.
33133         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
33134
33135 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33136
33137         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
33138         (stackinfo_sub_sp): Likewise.
33139
33140 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33141
33142         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
33143         RAX_LP.
33144
33145 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33146
33147         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
33148         into R*_LP.
33149
33150 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33151
33152         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
33153         sizes into R*_LP.
33154
33155 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33156
33157         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
33158
33159 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33160
33161         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
33162         into R11_LP and load __x86_64_shared_cache_size_half into
33163         R8_LP.
33164
33165 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33166
33167         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
33168         R8_LP.
33169
33170 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33171
33172         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
33173         logb for POWER7.
33174         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
33175         logbf for POWER7.
33176         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
33177         logbl for POWER7.
33178         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
33179         powerpc32/power7/fpu/s_logb.c via #include.
33180         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
33181         powerpc32/power7/fpu/s_logbf.c via #include.
33182         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
33183         powerpc32/power7/fpu/s_logbl.c via #include.
33184
33185 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33186
33187         * README.libm: Remove file.
33188
33189 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33190
33191         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33192         count for x32.  Use R*_LP and omit operand-size suffix.
33193
33194 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33195
33196         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33197         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33198         * sysdeps/x86_64/x32/shlib-versions: New file.
33199
33200 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33201
33202         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33203         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33204         Use _dl_fatal_printf instead.
33205
33206 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33207
33208         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33209         set if not set by the user.  Do not allow for being unset.
33210         * sysdeps/unix/sysv/linux/configure: Regenerated.
33211
33212 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33213
33214         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33215         the `q' suffix from lea and replace .quad with ASM_ADDR.
33216
33217 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33218
33219         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33220         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33221         instead of $17.
33222         (PTR_DEMANGLE): Likewise.
33223
33224 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33225
33226         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33227         (LP_OP): Likewise.
33228         (ASM_ADDR): Likewise.
33229         (RAX_LP): Likewise.
33230         (RBP_LP): Likewise.
33231         (RBX_LP): Likewise.
33232         (RCX_LP): Likewise.
33233         (RDI_LP): Likewise.
33234         (RSI_LP): Likewise.
33235         (RSP_LP): Likewise.
33236         (R8_LP): Likewise.
33237         (R9_LP): Likewise.
33238         (R10_LP): Likewise.
33239         (R10_LP): Likewise.
33240         (R11_LP): Likewise.
33241         (R12_LP): Likewise.
33242         (R13_LP): Likewise.
33243         (R14_LP): Likewise.
33244         (R15_LP): Likewise.
33245
33246 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33247
33248         * sysdeps/x86_64/x32/dl-machine.h: New file.
33249
33250 2012-05-14  Andreas Jaeger  <aj@suse.de>
33251
33252         * manual/Makefile (subdir): Remove export of subdir.
33253         (all): Remove target.
33254         (.PHONY): Remove all from list.
33255         (mkinstalldirs): Remove.
33256         (.PHONY): Remove installdirs from list.
33257         ($(inst_infodir)/libc.info): Use make-target-directory.
33258         (installdirs): Remove.
33259         (subdir_%): Remove.
33260         (glibc-targets): Remove.
33261         (lib): Remove.
33262         (stubs): Remove.
33263         ($(objpfx)stubs ../po/manual.pot): Remove.
33264         ($(objpfx)stamp%): Remove.
33265         (make-target-directory): Remove.
33266         (subdir_install): Remove.
33267         (routines): Remove.
33268         (aux): Remove.
33269         (sources): Remove.
33270         (objects): Remove.
33271         (headers): Remove.
33272
33273         [BZ #13750]
33274         * manual/.gitignore: Remove, it's not needed anymore.
33275         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33276         all files in it.
33277         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33278         directory.
33279         (texis): Renamed to $(objpfx)texis.
33280         (texis-path): New, contains path to generated files.
33281         (chapters.%): Use texis-path for complete path, add extra argument
33282         libc-texinfo.sh.
33283         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33284         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33285         (summary,texi, stamp-summary): Use complete path of
33286         files. Generate files in build dir.
33287         (dir-add.texi): Build in build dir.
33288         (libm-err.texi,stamp-libm-err): Likewise.
33289         (version.texi, stamp-version): Likewise.
33290         (.%c.texi): Likewise.
33291         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33292         (mostlyclean): Remove target.
33293         (realclean): Remove target.
33294         (generated): Add new variable with contents from mostlyclean and
33295         realclean, remove entries duplicated in common-mostlyclean, add
33296         stamp-libm-err and stamp-version.
33297         (generated-dirs): Add libc directory.
33298         ($(inst_infodir)/libc.info): Install files from build dir.
33299
33300         * manual/install.texi (Configuring and compiling): Adjust since
33301         the info files are not part of the tar ball anymore.
33302
33303 2012-05-14  Andreas Jaeger  <aj@suse.de>
33304
33305         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33306         variable.
33307
33308 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33309
33310         [BZ #13717]
33311         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33312         to 2.2.0 where earlier.
33313         * sysdeps/unix/sysv/linux/configure: Regenerated.
33314         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33315         Remove conditional code.
33316         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33317         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33318         Remove conditional code.
33319         [!__NR_lchown]: Likewise.
33320         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33321         [__NR_lchown]: Likewise.
33322         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33323         comment referencing __ASSUME_LCHOWN_SYSCALL.
33324         * sysdeps/unix/sysv/linux/i386/sigaction.c
33325         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33326         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33327         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33328         Remove conditional code.
33329         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33330         (__protocol_available): Remove #if 0 code.
33331         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33332         conditional code.
33333         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33334         * sysdeps/unix/sysv/linux/kernel-features.h
33335         (__ASSUME_GETCWD_SYSCALL): Don't define.
33336         (__ASSUME_REALTIME_SIGNALS): Likewise.
33337         (__ASSUME_PREAD_SYSCALL): Likewise.
33338         (__ASSUME_PWRITE_SYSCALL): Likewise.
33339         (__ASSUME_POLL_SYSCALL): Likewise.
33340         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33341         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33342         non-SPARC.
33343         (__ASSUME_SIOCGIFNAME): Don't define.
33344         (__ASSUME_MSG_NOSIGNAL): Likewise.
33345         (__ASSUME_SENDFILE): Define unconditionally.
33346         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33347         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33348         conditional code.
33349         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33350         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33351         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33352         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33353         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33354         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33355         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33357         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33358         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33360         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33361         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33363         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33364         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33366         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33367         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33369         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33370         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33372         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33373         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33375         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33376         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33378         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33379         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33380         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33381         Remove conditional code.
33382         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33383         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33384         Remove conditional code.
33385         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33386         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33387         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33388         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33389         Remove conditional code.
33390         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33391         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33392         Remove conditional code.
33393         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33394         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33395         Remove conditional code.
33396         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33397         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33398         Remove conditional code.
33399         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33400         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33401         Remove conditional code.
33402         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33403         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33404         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33405         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33406         * sysdeps/unix/sysv/linux/sigaction.c
33407         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33408         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33409         * sysdeps/unix/sysv/linux/sigpending.c
33410         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33411         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33412         * sysdeps/unix/sysv/linux/sigprocmask.c
33413         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33414         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33415         * sysdeps/unix/sysv/linux/sigsuspend.c
33416         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33417         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33418         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33419         (__libc_missing_rt_sigs): Remove.
33420         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33421         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33422         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33423         Remove conditional code.
33424         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33425         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33426         return 1.
33427         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33428         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33429         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33430         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33431
33432 2012-05-14  Andreas Jaeger  <aj@suse.de>
33433
33434         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33435         it's not used in glibc.
33436         (__coshm1): Likewise.
33437         (__acosh1p): Likewise.
33438         (__sgn): Likewise.
33439
33440         * manual/string.texi (Copying and Concatenation): Add missing
33441         variable in concat example.
33442         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33443
33444 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33445
33446         [BZ #14103]
33447         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33448         __builtin_clzl with __builtin_clzll.
33449
33450 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33451
33452         [BZ #14104]
33453         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33454         libc_freeres_ptr.
33455
33456 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33457
33458         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33459         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33460         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33461         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33462
33463 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33464
33465         * NEWS: Update ia64 info.
33466
33467 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33468
33469         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33470         used as bcopy.
33471
33472 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33473
33474         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33475         * sysdeps/unix/syscalls.list (dup3): Likewise.
33476         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33477         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33478
33479 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33480
33481         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33482         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33483
33484 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33485
33486         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33487         thread pointer.
33488         (TLS_IE): Use mov/add instead of movq/addq to load thread
33489         pointer.
33490         (TLS_GD_PREFIX): New.
33491         (TLS_GD): Use it.
33492
33493 2012-05-11  David S. Miller  <davem@davemloft.net>
33494
33495         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33496         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33497         (_FPU_SETCW): Likewise.
33498
33499 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33500
33501         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33502         is 32-byte aligned.
33503
33504 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33505
33506         [BZ #11837]
33507         * iconvdata/gb18030.c: Update tables.
33508         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33509         characters specially.
33510         (BODY for TO_LOOP): Add encoding of missing ranges.
33511
33512 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33513
33514         [BZ #13673]
33515         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33516         * sysdeps/mach/hurd/dup3.c: Likewise.
33517         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33518         * sysdeps/powerpc/memmove.c:: Likewise.
33519
33520 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33521
33522         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33523         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33524
33525 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33526
33527         * elf/elf.h (R_X86_64_RELATIVE64): New.
33528         (R_X86_64_NUM): Updated.
33529         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33530         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33531         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33532         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
33533         tst-quad1pie tst-quad2pie
33534         (modules-names): Add tst-quadmod1 tst-quadmod2.
33535         ($(objpfx)tst-quad1): New dependency.
33536         ($(objpfx)tst-quad2): Likewise.
33537         ($(objpfx)tst-quad1pie): Likewise.
33538         ($(objpfx)tst-quad2pie): Likewise.
33539         * sysdeps/x86_64/tst-quad1.c: New file.
33540         * sysdeps/x86_64/tst-quad1pie.c: New file.
33541         * sysdeps/x86_64/tst-quad2.c: Likewise.
33542         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
33543         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
33544         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
33545         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
33546         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
33547
33548 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33549
33550         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
33551         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
33552         * streams/stropts.h (t_scalar_t): Define type.
33553
33554         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
33555         (_PATH_PRESERVE): Set to "/var/lib".
33556         (_PATH_RWHODIR): Set to "/var/spool/rwho".
33557
33558         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
33559         instead of int.
33560
33561         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
33562         if __dir_mkfile succeeded.
33563
33564         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
33565         checking for _hurd_dtablesize.  Unlock it right after having
33566         finished _hurd_dtable allocation.
33567
33568 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33569
33570         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
33571         * sysdeps/mach/hurd/configure: Regenerated.
33572         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
33573         special-casing to...
33574         * sysdeps/gnu/configure.in: ... this new file.
33575         * sysdeps/unix/sysv/linux/configure: Regenerated.
33576         * sysdeps/gnu/configure: New generated file.
33577
33578         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33579         for Linux: use nsec instead of usec, as well as:
33580         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33581         members of type struct timespec.
33582         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33583         New macros.
33584         (struct stat64): Likewise.
33585         (_STATBUF_ST_NSEC): New macro.
33586         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33587
33588         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33589         __strtoul_internal rather than strtoul.
33590
33591 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33592
33593         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33594         and reject them.
33595
33596 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33597
33598         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33599         which preserves existing values.
33600         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33601
33602 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33603
33604         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33605         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33606         greater than FD_SETSIZE.
33607
33608 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33609
33610         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33611         allocated, call __vm_protect to finish enabling the existing space, and
33612         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33613         allocate the remainder.
33614
33615 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33616
33617         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33618         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33619
33620 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33621
33622         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33623         sysdeps/mach/hurd/readlink.c.
33624
33625         * posix/tst-sysconf.c (posix_options): Only use
33626         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33627         _POSIX_SYNCHRONIZED_IO when they are defined
33628         * sysdeps/mach/hurd/bits/posix_opt.h:
33629         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33630         (_XOPEN_REALTIME): Undefine macro.
33631         (_XOPEN_REALTIME_THREADS): Undefine macro.
33632         (_XOPEN_SHM): Undefine macro.
33633         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33634         macro to -1.
33635         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33636         macro to -1.
33637         (_POSIX_ASYNC_IO): Undefine macro.
33638         (_POSIX_PRIORITIZED_IO): Undefine macro.
33639         (_POSIX_SPIN_LOCKS): Define macro to -1.
33640
33641         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33642         SA_NODEFER, SA_RESETHAND.
33643         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33644         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33645         F_DUPFD_CLOEXEC.
33646
33647 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33648
33649         * elf/Makefile (pldd-modules): Define unconditionally.
33650
33651 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33652
33653         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33654
33655 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33656
33657         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33658         Return ENOENT when name is empty.
33659         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33660
33661 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33662
33663         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33664
33665         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33666
33667 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33668
33669         Fix mlock in all cases except non-readable pages.
33670         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33671         instead of VM_PROT_ALL as parameter to __vm_wire function.
33672
33673         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33674         (__mkdir): When path is `/', just fail with EEXIST.
33675         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33676
33677 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33678
33679         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33680         <sys/uio.h> (for writev).
33681         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33682         and <sys/param.h> (for MIN).
33683
33684 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33685
33686         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33687         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33688         if interrupted.
33689
33690 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33691
33692         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33693         Depend on against $(link-rpcuserlibs).
33694
33695 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33696
33697         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33698         (__libc_stack_end): Do not use attribute_relro.
33699         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33700         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33701         to libthread-provided value.
33702         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33703         attribute_relro.
33704
33705 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33706
33707         [BZ #3748]
33708         * bits/libc-lock.h (__libc_once_get): New macro.
33709         * sysdeps/mach/bits/libc-lock.h: Likewise.
33710         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33711         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33712         instead of using implementation details.
33713
33714         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33715         * libio/freopen.c: Likewise.
33716         * libio/freopen64.c: Likewise.
33717         * misc/syslog.c: Likewise.
33718         * nscd/connections.c: Likewise.
33719         * nscd/netgroupcache.c: Likewise.
33720         * sysdeps/posix/getcwd.c: Likewise.
33721
33722 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33723
33724         * math/w_ilogbf.c: Add #include <limits.h>.
33725
33726 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33727
33728         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33729         path instead of returning without unlocking.
33730
33731         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33732         immediate-write ioctls.
33733         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33734
33735 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33736
33737         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33738         __builtin_frame_address instead of making assumptions about the
33739         location of the return address relative to DATA.  Force early load of
33740         the return address.
33741         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33742         __builtin_frame_address.
33743
33744         dup3 for GNU Hurd.
33745         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33746         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33747         implement dup3 and do some further code clean-ups.
33748         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33749         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33750
33751 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33752
33753         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33754
33755         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33756         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33757         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33758         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33759         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33760         d->port.lock.
33761
33762         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33763         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33764         when handler == SIG_ERR, not when handler != SIG_ERR.
33765
33766 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33767
33768         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33769         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33770         definitions.
33771
33772         accept4 for GNU Hurd.
33773         * include/sys/socket.h (__libc_accept4): New prototype.
33774         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33775         to implement __libc_accept4.
33776         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33777         __libc_accept4.
33778         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33779
33780         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33781         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33782         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33783         signal-defines.sym.
33784
33785 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33786
33787         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33788
33789 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33790
33791         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33792         assertion on O_CLOEXEC flag.
33793         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33794         * hurd/intern-fd.c: Likewise.
33795         * hurd/port2fd.c: Likewise.
33796
33797 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33798
33799         [BZ #3906]
33800         * bits/in.h (IPV6_PKTINFO): Define new macro.
33801         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33802
33803 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33804
33805         [BZ #13954]
33806         [BZ #13955]
33807         [BZ #13956]
33808         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33809         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33810         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33811         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33812         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33813         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33814         * math/libm-test.inc (logb_test) : Additional logb tests.
33815
33816 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33817             Andreas Jaeger  <aj@suse.de>
33818
33819         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33820         * configure: Regenerated.
33821         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33822         * config.make.in (link-obsolete-rpc): New substituted variable.
33823         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33824         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33825         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33826         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33827         so that libc.a contains the symbols.
33828         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33829         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33830         * sunrpc/auth_none.c: Likewise.
33831         * sunrpc/auth_unix.c: Likewise.
33832         * sunrpc/authdes_prot.c: Likewise.
33833         * sunrpc/authuxprot.c: Likewise.
33834         * sunrpc/clnt_gen.c: Likewise.
33835         * sunrpc/clnt_perr.c: Likewise.
33836         * sunrpc/clnt_raw.c: Likewise.
33837         * sunrpc/clnt_simp.c: Likewise.
33838         * sunrpc/clnt_tcp.c: Likewise.
33839         * sunrpc/clnt_udp.c: Likewise.
33840         * sunrpc/clnt_unix.c: Likewise.
33841         * sunrpc/des_crypt.c: Likewise.
33842         * sunrpc/des_soft.c: Likewise.
33843         * sunrpc/get_myaddr.c: Likewise.
33844         * sunrpc/key_call.c: Likewise.
33845         * sunrpc/key_prot.c: Likewise.
33846         * sunrpc/netname.c: Likewise.
33847         * sunrpc/pm_getmaps.c: Likewise.
33848         * sunrpc/pm_getport.c: Likewise.
33849         * sunrpc/pmap_clnt.c: Likewise.
33850         * sunrpc/pmap_prot.c: Likewise.
33851         * sunrpc/pmap_prot2.c: Likewise.
33852         * sunrpc/pmap_rmt.c: Likewise.
33853         * sunrpc/publickey.c: Likewise.
33854         * sunrpc/rpc_cmsg.c: Likewise.
33855         * sunrpc/rpc_common.c: Likewise.
33856         * sunrpc/rpc_dtable.c: Likewise.
33857         * sunrpc/rpc_prot.c: Likewise.
33858         * sunrpc/rpc_thread.c: Likewise.
33859         * sunrpc/rtime.c: Likewise.
33860         * sunrpc/svc.c: Likewise.
33861         * sunrpc/svc_auth.c: Likewise.
33862         * sunrpc/svc_raw.c: Likewise.
33863         * sunrpc/svc_run.c: Likewise.
33864         * sunrpc/svc_tcp.c: Likewise.
33865         * sunrpc/svc_udp.c: Likewise.
33866         * sunrpc/svc_unix.c: Likewise.
33867         * sunrpc/svcauth_des.c: Likewise.
33868         * sunrpc/xcrypt.c: Likewise.
33869         * sunrpc/xdr.c: Likewise.
33870         * sunrpc/xdr_array.c: Likewise.
33871         * sunrpc/xdr_float.c: Likewise.
33872         * sunrpc/xdr_intXX_t.c: Likewise.
33873         * sunrpc/xdr_mem.c: Likewise.
33874         * sunrpc/xdr_rec.c: Likewise.
33875         * sunrpc/xdr_ref.c: Likewise.
33876         * sunrpc/xdr_sizeof.c: Likewise.
33877         * sunrpc/xdr_stdio.c: Likewise.
33878
33879 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33880
33881         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33882         change.  Update copyright years.
33883
33884 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33885
33886         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33887
33888 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33889             Joseph Myers  <joseph@codesourcery.com>
33890             Paul Pluzhnikov  <ppluzhnikov@google.com>
33891
33892         [BZ #14012]
33893         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33894         requiring rpcgen.
33895         [cross-compiling] (extra-libs): Likewise.
33896         [cross-compiling] (extra-libs-others): Likewise.
33897         [cross-compiling] (librpcsvc-routines): Likewise.
33898         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33899         [cross-compiling] (omit-deps): Likewise.
33900         (sunrpc-CPPFLAGS): New variable.
33901         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33902         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33903         (cross-rpcgen-objs): New variable.
33904         (extra-objs): Append $(cross-rpcgen-objs).
33905         ($(cross-rpcgen-objs)): New rule.
33906         ($(objpfx)cross-rpcgen): Likewise.
33907         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33908         comment.
33909         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33910         ($(objpfx)x%.stmp): Likewise.
33911         * sunrpc/proto.h [IS_IN_build] (_): Define.
33912         [IS_IN_build] (_libc_intl_domainname): Likewise.
33913
33914 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33915
33916         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33917         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33918         and R_X86_64_TPOFF64.
33919
33920 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33921
33922         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33923         sysdeps/unix/sysv/syscalls.list.
33924         (stime): Likewise.
33925         (utime): Likewise.
33926         * sysdeps/unix/sysv/syscalls.list: Remove file.
33927
33928 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33929
33930         [BZ #3440]
33931         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33932         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33933         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33934         (__LC_IDENTIFICATION): Make these macros useful in #if
33935         expressions, as required by C99.
33936
33937 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33938
33939         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33940         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33941         after this.
33942
33943 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33944
33945         * stdlib/longlong.h: Updated from GCC.
33946
33947 2012-05-09  Andreas Jaeger  <aj@suse.de>
33948
33949         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33950         default is first entry.
33951         (run_mode): Set type.
33952         (main): Remove informal message about syslog.
33953         (options): Fix typo.
33954
33955         [BZ #14053]
33956         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33957         to asm.
33958         (lrint): Likewise.
33959         (llrintf): Likewise.
33960         (llrint): Likewise.
33961         (rint): Likewise.
33962         (rintf): Likewise.
33963         (nearbyint): Likewise.
33964         (nearbyintf): Likewise.
33965
33966 2012-05-09  Andreas Jaeger  <aj@suse.de>
33967             Pedro Alves  <palves@redhat.com>
33968
33969         * nscd/nscd.c (run_mode): Use enum.
33970         (main): Cleanup coding style issue.
33971
33972 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33973             Andreas Jaeger  <aj@suse.de>
33974
33975         * nscd/nscd.c (go_background): Replaced with...
33976         (run_mode): ... this.
33977         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33978         (options): Add -F --foreground.
33979         (main): Implement it.
33980         (parse_opt): Parse it.
33981
33982 2012-05-09  Andreas Jaeger  <aj@suse.de>
33983
33984         [BZ #14083]
33985         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33986         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33987         -Wconversion warning.
33988         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33989         Likewise.
33990
33991 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33992
33993         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33994         == 0.
33995         (LC_ALL): Use macro-int-constant.
33996         (LC_COLLATE): Likewise.
33997         (LC_CTYPE): Likewise.
33998         (LC_MESSAGES): Likewise.
33999         (LC_MONETARY): Likewise.
34000         (LC_NUMERIC): Likewise.
34001         (LC_TIME): Likewise.
34002         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
34003         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
34004         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34005         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
34006         Specify type.
34007         [C99-based standards] (float_t): Expect type.
34008         [C99-based standards] (double_t): Expect type.
34009         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
34010         type.
34011         [C99-based standards] (HUGE_VALL): Likewise.
34012         [C99-based standards] (INFINITY): Likewise.
34013         [C99-based standards] (NAN): Likewise.
34014         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
34015         [C99-based standards] (FP_NAN): Likewise.
34016         [C99-based standards] (FP_NORMAL): Likewise.
34017         [C99-based standards] (FP_SUBNORMAL): Likewise.
34018         [C99-based standards] (FP_ZERO): Likewise.
34019         [C99-based standards] (FP_FAST_FMA): Use
34020         optional-macro-int-constant.  Specify type.  Require == 1.
34021         [C99-based standards] (FP_FAST_FMAF): Likewise.
34022         [C99-based standards] (FP_FAST_FMAL): Likewise.
34023         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
34024         [C99-based standards] (FP_ILOGBNAN): Likewise.
34025         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
34026         Specify type.
34027         [C99-based standards] (MATH_ERREXCEPT): Likewise.
34028         [C99-based standards] (math_errhandling): Specify type.
34029         [ISO99 || ISO11] (signgam): Do not allow.
34030         [non-C99-based standards] (copysignf): Do not allow.
34031         [non-C99-based standards] (exp2f): Likewise.
34032         [non-C99-based standards] (log2f): Likewise.
34033         [non-C99-based standards] (modff): Allow.
34034         [non-C99-based standards] (erff): Do not allow.
34035         [non-C99-based standards] (erfcf): Likewise.
34036         [non-C99-based standards] (gammaf): Likewise.
34037         [non-C99-based standards] (hypotf): Likewise.
34038         [non-C99-based standards] (j0f): Likewise.
34039         [non-C99-based standards] (j1f): Likewise.
34040         [non-C99-based standards] (jnf): Likewise.
34041         [non-C99-based standards] (lgammaf): Likewise.
34042         [non-C99-based standards] (tgammaf): Likewise.
34043         [non-C99-based standards] (y0f): Likewise.
34044         [non-C99-based standards] (y1f): Likewise.
34045         [non-C99-based standards] (ynf): Likewise.
34046         [non-C99-based standards] (isnanf): Likewise.
34047         [non-C99-based standards] (acoshf): Likewise.
34048         [non-C99-based standards] (asinhf): Likewise.
34049         [non-C99-based standards] (atanhf): Likewise.
34050         [non-C99-based standards] (cbrtf): Likewise.
34051         [non-C99-based standards] (expm1f): Likewise.
34052         [non-C99-based standards] (ilogbf): Likewise.
34053         [non-C99-based standards] (log1pf): Likewise.
34054         [non-C99-based standards] (logbf): Likewise.
34055         [non-C99-based standards] (nextafterf): Likewise.
34056         [non-C99-based standards] (remainderf): Likewise.
34057         [non-C99-based standards] (rintf): Likewise.
34058         [non-C99-based standards] (scalbf): Likewise.
34059         [non-C99-based standards] (copysignl): Likewise.
34060         [non-C99-based standards] (exp2l): Likewise.
34061         [non-C99-based standards] (log2l): Likewise.
34062         [non-C99-based standards] (modfl): Allow.
34063         [non-C99-based standards] (erfl): Do not allow.
34064         [non-C99-based standards] (erfcl): Likewise.
34065         [non-C99-based standards] (gammal): Likewise.
34066         [non-C99-based standards] (hypotl): Likewise.
34067         [non-C99-based standards] (j0l): Likewise.
34068         [non-C99-based standards] (j1l): Likewise.
34069         [non-C99-based standards] (jnl): Likewise.
34070         [non-C99-based standards] (lgammal): Likewise.
34071         [non-C99-based standards] (tgammal): Likewise.
34072         [non-C99-based standards] (y0l): Likewise.
34073         [non-C99-based standards] (y1l): Likewise.
34074         [non-C99-based standards] (ynl): Likewise.
34075         [non-C99-based standards] (isnanl): Likewise.
34076         [non-C99-based standards] (acoshl): Likewise.
34077         [non-C99-based standards] (asinhl): Likewise.
34078         [non-C99-based standards] (atanhl): Likewise.
34079         [non-C99-based standards] (cbrtl): Likewise.
34080         [non-C99-based standards] (expm1l): Likewise.
34081         [non-C99-based standards] (ilogbl): Likewise.
34082         [non-C99-based standards] (log1pl): Likewise.
34083         [non-C99-based standards] (logbl): Likewise.
34084         [non-C99-based standards] (nextafterl): Likewise.
34085         [non-C99-based standards] (remainderl): Likewise.
34086         [non-C99-based standards] (rintl): Likewise.
34087         [non-C99-based standards] (scalbl): Likewise.
34088         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34089         [non-C99-based standards] (FP_*): Do not allow.
34090         [C99-based standards] (FP_*): Change to
34091         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
34092         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34093         allow.
34094         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
34095         (SIG_ERR): Likewise.
34096         [X/Open-based standards] (SIG_HOLD): Likewise.
34097         (SIG_IGN): Likewise.
34098         (SIGABRT): Use macro-int-constant.  Specify type.  Require
34099         positive value.
34100         (SIGFPE): Likewise.
34101         (SIGILL): Likewise.
34102         (SIGINT): Likewise.
34103         (SIGSEGV): Likewise.
34104         (SIGTER): Likewise.
34105         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
34106         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
34107         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
34108         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
34109         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
34110         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
34111         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
34112         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
34113         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
34114         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
34115         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
34116         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
34117         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
34118         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
34119         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
34120         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
34121         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
34122         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
34123         [X/Open-based standards] (SIGTRAP): Likewise.
34124         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
34125         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
34126         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
34127         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
34128         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34129         allow.
34130
34131 2012-05-08  Ian Wienand  <ianw@vmware.com>
34132
34133         [BZ #14080]
34134         * time/tzset.c (__tzset_parse_tz): Update default rules for
34135         daylight time changes in the Energy Policy Act of 2005.
34136
34137 2012-05-09  Andreas Jaeger  <aj@suse.de>
34138
34139         [BZ #13983]
34140         * elf/ldconfig.c (parse_conf): Change string to make clear that
34141         ldconfig only issued a warning if ld.so.conf does not exist.
34142
34143 2012-05-08  David S. Miller  <davem@davemloft.net>
34144
34145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
34146         movxtod instead of popping the value on the stack.
34147
34148         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34149
34150 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
34151
34152         * config.h.in: Add HAVE_ARM_PCS_VFP.
34153
34154 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
34155
34156         [BZ #13979]
34157         * include/features.h: Warn if user requests __FORTIFY_SOURCE
34158         checking but the checks are disabled for any reason.
34159
34160 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
34161
34162         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
34163         and ELF64_R_TYPE with ELFW(R_TYPE).
34164
34165 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
34166
34167         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
34168         (ulimit): Likewise.
34169
34170         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
34171         (settimeofday): Likewise.
34172
34173 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
34174
34175         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
34176         a struct th_u2 inside the union, and move tu_block/tu_code into
34177         a new th_u3 union of tu_block/tu_code inside of that.  Move
34178         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
34179         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
34180         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
34181         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
34182         (th_stuff): Change to th_u1.tu_stuff.
34183         (th_data): Define.
34184         (th_msg): Change to th_u1.th_u2.tu_data.
34185
34186 2012-05-07  David S. Miller  <davem@davemloft.net>
34187
34188         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34189
34190         [BZ #14074]
34191         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34192         (SETUP_PIC_REG): Use it.
34193         (SETUP_PIC_REG_LEAF): Use it.
34194
34195 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34196
34197         [BZ #13885]
34198         [BZ #13923]
34199         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34200         USE_AS_EXPM1L.
34201         (EXPL_FINITE): Likewise.
34202         (FLDLOG): Likewise.
34203         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34204         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34205         e_expl.S.
34206         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34207         USE_AS_EXPM1L.
34208         (EXPL_FINITE): Likewise.
34209         (FLDLOG): Likewise.
34210         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34211         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34212         e_expl.S.
34213         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34214         test of -max_value argument for long double.
34215         * sysdeps/i386/fpu/libm-test-ulps: Update.
34216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34217
34218 2012-05-06  David S. Miller  <davem@davemloft.net>
34219
34220         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34221         quad soft-float symbols whose references which are compiler
34222         generated.
34223         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34224
34225 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34226
34227         [BZ #13884]
34228         [BZ #13914]
34229         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34230         USE_AS_EXP10L.
34231         (EXPL_FINITE): Likewise.
34232         (FLDLOG): Likewise.
34233         (c0): Likewise.
34234         (c1): Likewise.
34235         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34236         Adjust comments for base varying.
34237         (__expl_finite): Change alias to EXPL_FINITE.
34238         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34239         e_expl.S.
34240         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34241         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34242         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34243         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34244         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34245         USE_AS_EXP10L.
34246         (EXPL_FINITE): Likewise.
34247         (FLDLOG): Likewise.
34248         (c0): Likewise.
34249         (c1): Likewise.
34250         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34251         Adjust comments for base varying.
34252         (__expl_finite): Change alias to EXPL_FINITE.
34253         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34254         tests for bugs.
34255         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34256
34257         [BZ #14064]
34258         * math/libm-test.inc (check_float_internal): Correct ulp
34259         calculation for subnormal expected results.
34260
34261 2012-05-06  Andreas Jaeger  <aj@suse.de>
34262
34263         * Makeconfig (+math-flags): New, set to -frounding-math.
34264         (+cflags): Add +math-flags so that all of glibc gets compiled with
34265         it.
34266
34267         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34268
34269 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34270
34271         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34272         Disable one test.
34273
34274         [BZ #13787]
34275         [BZ #13922]
34276         [BZ #14036]
34277         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34278         (__ieee754_expl): Allow for and saturate large arguments.
34279         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34280         (u_threshold): Likewise.
34281         (__exp): Call __ieee754_exp before checking for overflow and
34282         underflow.
34283         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34284         (u_threshold): Likewise.
34285         (__expf): Call __ieee754_expf before checking for overflow and
34286         underflow.
34287         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34288         (u_threshold): Likewise.
34289         (__expl): Call __ieee754_expl before checking for overflow and
34290         underflow.
34291         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34292         (__ieee754_expl): Allow for and saturate large arguments.
34293         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34294         missing overflow exception on overflow.
34295         (expm1_test): Do not allow missing overflow exception on overflow.
34296
34297         * sysdeps/i386/fpu/e_expl.c: Move to ...
34298         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34299         rather than using inline asm.
34300         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34301         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34302         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34303
34304         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34305         (nice): Likewise.
34306         (poll): Likewise.
34307         (signal): Likewise.
34308         (time): Likewise.
34309         (times): Likewise.
34310
34311 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34312
34313         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34314         sysdeps/unix/common/syscalls.list.
34315         (fchmod): Likewise.
34316         (fchown): Likewise.
34317         (ftruncate): Likewise.
34318         (getrusage): Likewise.
34319         (gettimeofday): Likewise.
34320         (setpgid): Likewise.
34321         (setregid): Likewise.
34322         (setreuid): Likewise.
34323         (sigaction): Likewise.
34324         (truncate): Likewise.
34325         (vhangup): Likewise.
34326         * sysdeps/unix/common/syscalls.list: Remove file.
34327         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34328         * sysdeps/unix/sysv/linux/Implies: Likewise.
34329
34330 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34331
34332         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34333         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34334         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34335         Moved to ...
34336         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34337         Here.
34338         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34339         to ...
34340         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34341         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34342         to ...
34343         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34344         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34345         to ...
34346         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34347         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34348         to ...
34349         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34350         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34351         to ...
34352         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34353         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34354         to ...
34355         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34356         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34357         to ...
34358         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34359         Here.
34360         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34361         to ...
34362         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34363         Here.
34364         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34365         to ...
34366         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34367         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34368         Moved to ...
34369         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34370         Here.
34371         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34372         to ...
34373         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34374
34375 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34376
34377         * sysdeps/unix/common/bits/dirent.h: Remove file.
34378         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34379
34380         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34381         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34382         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34383         * sysdeps/unix/bsd/isatty.c: Likewise.
34384         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34385         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34386         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34387
34388 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34389
34390         [BZ #13563]
34391         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34392         long double comparison inaccuracies.
34393         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34394         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34395
34396 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34397
34398         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34399         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34400
34401 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34402
34403         [BZ #14049]
34404         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34405         nonzero digits before rounding a hex value.
34406         * stdlib/tst-strtod.c (tests): Add another test.
34407
34408 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34409
34410         * sysdeps/s390/fpu/libm-test-ulps: Update.
34411
34412 2012-05-03  Andreas Jaeger  <aj@suse.de>
34413
34414         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34415         does not get optimized out.
34416         (malloc_opt_barrier): New.
34417
34418 2012-05-03  Andreas Jaeger  <aj@suse.de>
34419             Roland McGrath  <roland@hack.frob.com>
34420
34421         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34422         intermediate file deletion.
34423         (generated): Add .symlist files.
34424
34425 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34426
34427         [BZ #13775]
34428         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34429         Redirect under this condition.
34430         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34431         [__USE_GNU] (__dprintf_chk): Not under this condition.
34432         [__USE_GNU] (__vdprintf_chk): Likewise.
34433         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34434         under this condition.
34435         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34436         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34437         [__USE_XOPEN2K8] (vdprintf): Likewise.
34438         [__USE_GNU] (__dprintf_chk): Not under this condition.
34439         [__USE_GNU] (__vdprintf_chk): Likewise.
34440         [__USE_GNU] (dprintf): Likewise.
34441         [__USE_GNU] (vdprintf): Likewise.
34442
34443 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34444
34445         * elf/Makefile (common-generated): Set this instead of generated for
34446         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34447         $(all-built-dso)-derived lists.
34448
34449 2012-05-03  Andreas Jaeger  <aj@suse.de>
34450
34451         * sysdeps/i386/fpu/libm-test-ulps: Update.
34452
34453         * FAQ: Removed.
34454         * FAQ.in: Likewise.
34455         * scripts/gen-FAQ.pl: Likewise.
34456         * manual/install.texi (Installation): Point to online location of
34457         FAQ.
34458         * Makefile (files-for-dist): Remove FAQ.
34459         (FAQ): Remove.
34460
34461 2012-05-02  Allan McRae  <allan@archlinux.org>
34462
34463         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34464         (LDFLAGS-reldepmod5.so): Likewise.
34465         (LDFLAGS-reldep6mod1.so): Likewise.
34466         (LDFLAGS-reldep6mod4.so): Likewise.
34467         (LDFLAGS-reldep8mod3.so): Likewise.
34468         (LDFLAGS-unload4mod1.so): Likewise.
34469         (LDFLAGS-unload4mod2.so): Likewise.
34470         (LDFLAGS-tst-initorder): Likewise.
34471         (LDFLAGS-tst-initordera2.so): Likewise.
34472         (LDFLAGS-tst-initordera3.so): Likewise.
34473         (LDFLAGS-tst-initordera4.so): Likewise.
34474         (LDFLAGS-tst-initorderb2.so): Likewise.
34475         (LDFLAGS-noload): Likewise.
34476         (LDFLAGS-next): Likewise.
34477         (LDFLAGS-order2mod1.so): Likewise.
34478         (LDFLAGS-order2mod2.so): Likewise.
34479         (LDFLAGS-tst-initorder2): Likewise.
34480         (LDFLAGS-tst-initorder2a.so): Likewise.
34481         (LDFLAGS-tst-initorder2b.so): Likewise.
34482         (LDFLAGS-tst-initorder2c.so): Likewise.
34483         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34484
34485 2012-05-02  David S. Miller  <davem@davemloft.net>
34486
34487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34488
34489 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34490
34491         [BZ #14055]
34492         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34493
34494 2012-05-02  Andreas Jaeger  <aj@suse.de>
34495
34496         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34497         since we manipulate rounding mode.
34498         (CPPFLAGS-test-idouble.c): Likewise.
34499         (CPPFLAGS-test-ifloat.c): Likewise.
34500         (CFLAGS-test-ldouble.c): Likewise.
34501         (CFLAGS-test-double.c): Likewise.
34502         (CFLAGS-test-float.c): Likewise.
34503         (CFLAGS-test-misc.c): Likewise.
34504         (CFLAGS-test-test-fenv.c): Likewise.
34505
34506 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34507
34508         [BZ #2550]
34509         [BZ #2570]
34510         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34511         comparisons to determine direction to adjust input.
34512
34513 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34514
34515         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34516         output to the target.
34517
34518         * scripts/localplt.awk: New file.
34519         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34520         (check-localplt-CFLAGS): Variable removed.
34521         ($(all-built-dso:=.jmprel)): New static pattern rule.
34522         (generated): Add those targets.
34523         (localplt-built-dso): New variable.
34524         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34525
34526         * elf/check-localplt.c: File removed.
34527
34528         * scripts/check-execstack.awk: New file.
34529         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34530         (check-execstack-CFLAGS): Variable removed.
34531         ($(objpfx)check-execstack.h): Target removed.
34532         ($(objpfx)execstack-default): New target.
34533         (generated): Add that instead of check-execstack.h.
34534         ($(all-built-dso:=.phdr)): New static pattern rule.
34535         (generated): Add those targets.
34536         * elf/check-execstack.c: File removed.
34537
34538         * scripts/check-textrel.awk: New file.
34539         * elf/Makefile ($(objpfx)check-textrel): Target removed.
34540         (check-textrel-CFLAGS): Variable removed.
34541         (all-built-dso): Use := to define.o
34542         ($(all-built-dso:=.dyn)): New static pattern rule.
34543         (generated): Add those targets.
34544         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
34545         * config.make.in (READELF): New substituted variable.
34546         * elf/check-textrel.c: File removed.
34547
34548 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34549
34550         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34551         allow.
34552         * conform/data/ctype.h-data [C99-based standards] (isblank):
34553         Expect function.
34554         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
34555         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
34556         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34557         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
34558         Specify type.  Require positive value.
34559         (EILSEQ): Likewise.
34560         (ERANGE): Likewise.
34561         [ISO || POSIX] (EILSEQ): Do not expect.
34562         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
34563         Specify type.  Require positive value.
34564         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
34565         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
34566         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
34567         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
34568         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
34569         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
34570         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
34571         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
34572         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
34573         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
34574         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34575         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34576         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34577         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34578         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34579         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34580         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34581         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34582         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34583         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34584         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34585         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34586         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34587         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34588         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34589         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34590         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34591         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34592         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34593         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34594         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34595         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34596         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34597         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34598         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34599         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34600         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34601         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34602         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34603         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34604         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34605         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34606         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34607         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34608         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34609         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34610         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34611         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34612         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34613         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34614         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34615         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34616         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34617         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34618         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34619         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34620         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34621         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34622         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34623         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34624         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34625         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34626         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34627         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34628         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34629         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34630         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34631         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34632         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34633         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34634         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34635         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34636         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34637         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34638         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34639         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34640         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34641         Require >= 2.
34642         (FLT_ROUNDS): Expect as macro, not constant.
34643         (FLT_MANT_DIG): Use macro-int-constant.
34644         (DBL_MANT_DIG): Likewise.
34645         (LDBL_MANT_DIG): Likewise.
34646         (FLT_DIG): Likewise.
34647         (DBL_DIG): Likewise.
34648         (LDBL_DIG): Likewise.
34649         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34650         (DBL_MIN_EXP): Likewise.
34651         (LDBL_MIN_EXP): Likewise.
34652         (FLT_MAX_EXP): Use macro-int-constant.
34653         (DBL_MAX_EXP): Likewise.
34654         (LDBL_MAX_EXP): Likewise.
34655         (FLT_MAX_10_EXP): Likewise.
34656         (DBL_MAX_10_EXP): Likewise.
34657         (LDBL_MAX_10_EXP): Likewise.
34658         (FLT_MAX): Use macro-constant.
34659         (DBL_MAX): Likewise.
34660         (LDBL_MAX): Likewise.
34661         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34662         (DBL_EPSILON): Likewise.
34663         (LDBL_EPSILON): Likewise.
34664         (FLT_MIN): Likewise.
34665         (DBL_MIN): Likewise.
34666         (LDBL_MIN): Likewise.
34667         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34668         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34669         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34670         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34671         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34672         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34673         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34674         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34675         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34676         [ISO11] (FLT_TRUE_MIN): Likewise.
34677         [ISO11] (LDBL_TRUE_MIN): Likewise.
34678         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34679         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34680         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34681         (SCHAR_MAX): Likewise.
34682         (UCHAR_MAX): Likewise.
34683         (CHAR_MIN): Likewise.
34684         (CHAR_MAX): Likewise.
34685         (MB_LEN_MAX): Use macro-int-constant.
34686         (SHRT_MIN): Use macro-int-constant.  Specify type.
34687         (SHRT_MAX): Likewise.
34688         (USHRT_MAX): Likewise.
34689         (INT_MAX): Likewise.
34690         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34691         bound negative.
34692         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34693         bound with "U".
34694         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34695         bound with "L".
34696         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34697         bound negative.  Suffix upper bound with "L".
34698         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34699         bound with "UL".
34700         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34701         Specify type.
34702         [C99-based standards] (LLONG_MAX): Likewise.
34703         [C99-based standards] (ULLONG_MAX): Likewise.
34704         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34705         == 0.
34706         [ISO11] (max_align_t): Require type.
34707         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34708
34709         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34710         from $CFLAGS, without defining away __attribute__ calls.
34711         (checknamespace): Use $CFLAGS_namespace.
34712
34713         * conform/conformtest.pl (@keywords): Only include C99 keywords
34714         for standards based on C99 or C11.
34715
34716         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34717         Disable tests.
34718         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34719         UNIX98]: Likewise.
34720
34721         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34722         usability of symbols in #if.
34723
34724         * conform/conformtest.pl: If macro or constant types start
34725         "promoted:", expect the symbol to be of the following type
34726         promoted by the integer promotions.
34727
34728         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34729         in one place.  Also handle "macro-constant".
34730
34731         * conform/conformtest.pl: Only accept expected macro values with
34732         "==".  Parse all "macro" lines in one place.
34733         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34734
34735         * conform/conformtest.pl: Handle braced types on "constant" lines
34736         instead of handling "typed-constant".
34737         * conform/data/signal.h-data: Use "constant" instead of
34738         "typed-constant".
34739
34740         * conform/conformtest.pl: Handle "optional-" at start of lines in
34741         one place rather than duplicating several cases.  Handle each
34742         format of "macro" line with initial "optional-".
34743
34744         * conform/conformtest.pl: Only accept expected constant or
34745         optional-constant values with "==".  Parse all "constant" lines in
34746         one place.  Parse all "optional-constant" lines in one place.
34747         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34748         * conform/data/fmtmsg.h-data: Likewise.
34749         * conform/data/netinet/in.h-data: Likewise.
34750         * conform/data/tar.h-data: Likewise.
34751         * conform/data/limits.h-data: Use "==" form on "constant" and
34752         "optional-constant" lines.
34753
34754         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34755         Use -std=c99 for XOPEN2K.
34756         (@knownproblems): Remove.
34757         (newtoken): Don't check %isknown.
34758
34759         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34760         Do not expect macro.
34761         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34762         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34763         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34764         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34765         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34766         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34767         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34768         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34769         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34770         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34771         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34772         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34773         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34774         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34775         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34776         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34777         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34778         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34779         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34780         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34781         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34782         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34783         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34784         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34785         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34786         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34787         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34788         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34789         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34790         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34791         [XPG3] (acosh): Likewise.
34792         [XPG3] (asinh): Likewise.
34793         [XPG3] (atanh): Likewise.
34794         [XPG3] (cbrt): Likewise.
34795         [XPG3] (expm1): Likewise.
34796         [XPG3] (ilogb): Likewise.
34797         [XPG3] (log1p): Likewise.
34798         [XPG3] (logb): Likewise.
34799         [XPG3] (nextafter): Likewise.
34800         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34801         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34802         [XPG3] (remainder): Likewise.
34803         [XPG3] (rint): Likewise.
34804         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34805         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34806         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34807         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34808         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34809         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34810         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34811         [UNIX98 || XOPEN2K] (scalb): Expect.
34812         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34813         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34814         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34815         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34816         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34817         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34818         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34819         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34820         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34821         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34822         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34823         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34824         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34825         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34826         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34827         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34828         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34829         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34830         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34831         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34832         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34833         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34834         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34835         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34836         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34837         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34838         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34839         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34840         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34841         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34842         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34843         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34844         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34845         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34846         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34847         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34848         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34849         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34850         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34851         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34852         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34853         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34854         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34855         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34856         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34857         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34858         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34859         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34860         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34861         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34862         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34863         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34864         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34865         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34866         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34867         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34868         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34869         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34870         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34871         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34872         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34873         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34874         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34875         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34876         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34877         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34878         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34879         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34880         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34881         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34882         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34883         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34884         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34885         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34886         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34887         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34888         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34889         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34890         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34891         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34892         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34893         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34894         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34895         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34896         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34897         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34898         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34899         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34900         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34901         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34902         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34903         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34904         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34905         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34906         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34907         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34908         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34909         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34910         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34911         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34912         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34913         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34914         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34915         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34916         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34917         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34918         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34919         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34920         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34921         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34922         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34923         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34924         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34925         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34926         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34927         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34928         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34929         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34930         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34931         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34932         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34933         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34934         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34935         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34936         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34937         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34938         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34939         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34940         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34941         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34942         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34943         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34944         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34945         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34946         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34947         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34948         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34949
34950         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34951         _XOPEN_SOURCE_EXTENDED for XPG4.
34952
34953         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34954
34955         * Makeconfig (localtime): Remove variable.
34956         (inst_localtime-file): Likewise.
34957
34958 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34959
34960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34961         Update.
34962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34963         Update.
34964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34965         Update.
34966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34967         Update.
34968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34969         Update.
34970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34971         Update.
34972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34973         Update.
34974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34975         Update.
34976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34977         Update.
34978
34979 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34980
34981         [BZ #2550]
34982         [BZ #2570]
34983         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34984         comparisons to determine direction to adjust input.
34985         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34986         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34987         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34988         Likewise.
34989         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34990         Likewise.
34991         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34992         Likewise.
34993         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34994         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34995         Likewise.
34996         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34997         Likewise.
34998         * math/libm-test.inc (nexttoward_test): Add more tests.
34999
35000 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
35001
35002         [BZ #14040]
35003         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
35004         in version GLIBC_2.1, not GLIBC_2.0.
35005         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
35006         Likewise.
35007
35008 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
35009
35010         [BZ #13942]
35011         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
35012         (1 - x) * (1 + x).
35013         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
35014         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
35015         * math/libm-test.inc (acos_test): Add more tests.
35016         (asin_test): Likewise.
35017         * sysdeps/i386/fpu/libm-test-ulps: Update.
35018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35019
35020         [BZ #14034]
35021         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
35022         of square root.
35023         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
35024         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
35025         * math/libm-test.inc (acos_test_tonearest): New function.
35026         (acos_test_towardzero): Likewise.
35027         (acos_test_downward): Likewise.
35028         (acos_test_upward): Likewise.
35029         (asin_test_tonearest): Likewise.
35030         (asin_test_towardzero): Likewise.
35031         (asin_test_downward): Likewise.
35032         (asin_test_upward): Likewise.
35033         (main): Call the new functions.
35034         * sysdeps/i386/fpu/libm-test-ulps: Update.
35035         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35036
35037         [BZ #13884]
35038         [BZ #13924]
35039         * math/e_exp10.c: Include <float.h>.
35040         (__ieee754_exp10): Handle underflow here rather than multiplying
35041         large negative argument by M_LN10.
35042         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
35043         of __ieee754_expf.
35044         * math/e_exp10l.c: Include <float.h>.
35045         (__ieee754_exp10l): Handle underflow here rather than multiplying
35046         large negative argument by M_LN10l.
35047         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
35048         spurious overflow exception on underflow.
35049
35050 2012-04-29  Marek Polacek  <polacek@redhat.com>
35051
35052         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
35053         (__fortify_function): New macro.
35054         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
35055         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
35056         __extern_always_inline.
35057         * libio/bits/stdio2.h: Likewise.
35058         * libio/bits/stdio.h: Likewise.
35059         * string/string.h: Likewise.
35060         * string/bits/string3.h: Likewise.
35061         * include/stdio.h: Likewise.
35062         * stdlib/bits/stdlib.h: Likewise.
35063         * stdlib/stdlib.h: Likewise.
35064         * rt/bits/mqueue2.h: Likewise.
35065         * rt/mqueue.h: Likewise.
35066         * posix/bits/unistd.h: Likewise.
35067         * posix/unistd.h: Likewise.
35068         * io/bits/poll2.h: Likewise.
35069         * io/bits/fcntl2.h: Likewise.
35070         * io/fcntl.h: Likewise.
35071         * io/sys/poll.h: Likewise.
35072         * misc/bits/syslog.h: Likewise.
35073         * misc/bits/syslog-ldbl.h: Likewise.
35074         * misc/sys/syslog.h: Likewise.
35075         * socket/bits/socket2.h: Likewise.
35076         * socket/sys/socket.h: Likewise.
35077         * debug/tst-chk1.c: Likewise.
35078         * wcsmbs/bits/wchar2.h: Likewise.
35079         * wcsmbs/bits/wchar-ldbl.h: Likewise.
35080         * wcsmbs/wchar.h: Likewise.
35081
35082 2012-04-29  Andreas Jaeger  <aj@suse.de>
35083
35084         * Makerules (tests): Remove enable-check-abi protection.
35085         (check-abi-warn): Remove.
35086         (check-abi-%): Remove check-abi-warn usage.
35087
35088         * configure.in: Remove check-abi configure option.
35089         * configure: Regenerated.
35090         * config.make.in (enable-check-abi): Remove.
35091
35092 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
35093
35094         [BZ #14033]
35095         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
35096         double functions to double *_finite functions.
35097
35098         [BZ #13941]
35099         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
35100         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
35101         LDBL_MIN_EXP.
35102         * stdio-common/Makefile (tests): Add tst-sprintf3.
35103         * stdio-common/tst-sprintf3.c: New file.
35104
35105         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
35106         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
35107
35108 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35109
35110         * conform/conformtest.pl: Remove duplicate typed-constant
35111         handling.
35112
35113 2012-04-28  David S. Miller  <davem@davemloft.net>
35114
35115         * Makerules (%.abilist): Add vpath on sysdep_dirs.
35116         (check-abi-%): Remove AWK script prerequisite and explicit
35117         abilist directory.
35118         (check-abi): Rewrite to just diff the symlist with the abilist.
35119         (config-tls, config-abi-config): Delete, no longer used.
35120         (update-abi-%): Remove AWK script and explicit abilist directory.
35121         (update-abi): Rewrite to simply compare and conditionally copy the
35122         symlist and the sysdep abilist file.  Remove update-abi-config
35123         checks.
35124         * abilist/ld.abilist: Remove.
35125         * abilist/libBrokenLocale.abilist: Remove.
35126         * abilist/libanl.abilist: Remove.
35127         * abilist/libcrypt.abilist: Remove.
35128         * abilist/libdl.abilist: Remove.
35129         * abilist/librt.abilist: Remove.
35130         * abilist/libthread_db.abilist: Remove.
35131         * abilist/libutil.abilist: Remove.
35132         * scripts/extract-abilist.awk: Remove.
35133         * scripts/merge-abilist.awk: Remove.
35134         * sysdeps/generic/libcidn.abilist: New file.
35135         * sysdeps/generic/libnss_compat.abilist: New file.
35136         * sysdeps/generic/libnss_db.abilist: New file.
35137         * sysdeps/generic/libnss_dns.abilist: New file.
35138         * sysdeps/generic/libnss_files.abilist: New file.
35139         * sysdeps/generic/libnss_hesiod.abilist: New file.
35140         * sysdeps/generic/libnss_nis.abilist: New file.
35141         * sysdeps/generic/libnss_nisplus.abilist: New file.
35142         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
35143         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
35144         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
35145         file.
35146         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
35147         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
35148         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
35149         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
35150         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
35151         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
35152         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
35153         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
35154         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
35155         file.
35156         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
35157         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
35158         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
35159         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
35160         file.
35161         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
35162         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
35163         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
35164         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
35165         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
35166         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
35167         file.
35168         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
35169         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
35170         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
35171         file.
35172         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
35173         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
35174         New file.
35175         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
35176         New file.
35177         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
35178         New file.
35179         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
35180         New file.
35181         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
35182         New file.
35183         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
35184         New file.
35185         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
35186         New file.
35187         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
35188         New file.
35189         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
35190         New file.
35191         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35192         New file.
35193         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35194         New file.
35195         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35196         New file.
35197         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35198         New file.
35199         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35200         file.
35201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35202         New file.
35203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35204         New file.
35205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35206         file.
35207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35208         New file.
35209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35210         New file.
35211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35212         file.
35213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35214         New file.
35215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35216         New file.
35217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35218         New file.
35219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35220         New file.
35221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35222         New file.
35223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35224         New file.
35225         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35226         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35227         file.
35228         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35229         New file.
35230         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35231         file.
35232         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35233         file.
35234         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35235         file.
35236         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35237         file.
35238         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35239         file.
35240         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35241         New file.
35242         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35243         file.
35244         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35245         file.
35246         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35247         New file.
35248         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35249         file.
35250         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35251         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35252         file.
35253         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35254         New file.
35255         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35256         file.
35257         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35258         file.
35259         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35260         file.
35261         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35262         file.
35263         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35264         file.
35265         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35266         New file.
35267         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35268         file.
35269         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35270         file.
35271         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35272         New file.
35273         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35274         file.
35275         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35276         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35277         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35278         file.
35279         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35280         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35281         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35282         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35283         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35284         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35285         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35286         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35287         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35288         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35289         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35290         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35291         file.
35292         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35293         New file.
35294         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35295         file.
35296         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35297         file.
35298         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35299         file.
35300         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35301         file.
35302         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35303         file.
35304         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35305         New file.
35306         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35307         New file.
35308         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35309         file.
35310         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35311         New file.
35312         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35313         file.
35314         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35315         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35316         file.
35317         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35318         New file.
35319         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35320         file.
35321         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35322         file.
35323         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35324         file.
35325         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35326         file.
35327         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35328         file.
35329         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35330         New file.
35331         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35332         New file.
35333         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35334         file.
35335         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35336         New file.
35337         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35338         file.
35339
35340 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35341
35342         * conform/conformtest.pl: Fix typo in handling typed-constant from
35343         allow-header.
35344
35345 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35346
35347         * README: Cut down references to pre-2.6 Linux kernels and
35348         Linuxthreads.  Update lists of configurations in libc and ports
35349         and sort alphabetically.  Say "or newer" with Linux kernel version
35350         requirements.
35351
35352         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35353
35354 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35355
35356         [BZ #887]
35357         * math/libm-test.inc (logb_test_downward): New test to expose
35358         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35359         rounding mode.
35360
35361 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35362
35363         [BZ #14027]
35364         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35365         to be done.
35366         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35367         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35368
35369 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35370
35371         * sysdeps/unix/i386/brk.S: Remove file.
35372         * sysdeps/unix/i386/dl-brk.S: Likewise.
35373         * sysdeps/unix/i386/pipe.S: Likewise.
35374         * sysdeps/unix/i386/sigreturn.S: Likewise.
35375         * sysdeps/unix/i386/syscall.S: Likewise.
35376         * sysdeps/unix/i386/vfork.S: Likewise.
35377         * sysdeps/unix/i386/wait.S: Likewise.
35378
35379         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35380         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35381
35382         * configure.in (arm*-none*): Do not allow without
35383         --enable-hacker-mode.
35384         (netbsd*): Remove case setting base_os.
35385         (386bsd*): Likewise.
35386         (freebsd*): Likewise.
35387         (bsdi*): Likewise.
35388         (osf*): Likewise.
35389         (sunos*): Likewise.
35390         (ultrix*): Likewise.
35391         (newsos*): Likewise.
35392         (dynix*): Likewise.
35393         (*bsd*): Likewise.
35394         (sysv*): Likewise.
35395         (isc*): Likewise.
35396         (esix*): Likewise.
35397         (sco*): Likewise.
35398         (minix*): Likewise.
35399         (irix4*): Likewise.
35400         (irix6*): Likewise.
35401         (solaris[2-9]*): Likewise.
35402         (none): Likewise.
35403         * configure: Regenerated.
35404
35405 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35406
35407         [BZ #11521]
35408         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35409         overflow or cancellation in calculating denominator.
35410         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35411         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35412         down expression to avoid unexpected rounding in newer GCCs.
35413         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35414
35415 2012-04-26  David S. Miller  <davem@davemloft.net>
35416
35417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35418         long-double compat symbols.
35419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35424         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35425         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35428         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35429         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35430         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35431         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35432
35433 2012-04-25  David S. Miller  <davem@davemloft.net>
35434
35435         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35436         HWCAP_* values only after the memory barriers have been defined.
35437         (atomic_full_barrier): Define.
35438         (atomic_read_barrier): Define.
35439         (atomic_write_barrier): Define.
35440
35441 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35442
35443         * shlib-versions: Add libgcc_s version information.
35444         * sysdeps/generic/libgcc_s.h: Remove.
35445         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35446         libgcc_s.h.
35447         * sysdeps/gnu/unwind-resume.c: Likewise.
35448         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35449
35450 2012-04-25  David S. Miller  <davem@davemloft.net>
35451
35452         * sysdeps/unix/sparc/brk.S: Delete.
35453         * sysdeps/unix/sparc/dl-brk.S: Delete.
35454         * sysdeps/unix/sparc/pipe.S: Delete.
35455         * sysdeps/unix/sparc/sysdep.S: Delete.
35456         * sysdeps/unix/sparc/sysdep.h: Delete.
35457         * sysdeps/unix/sparc/vfork.S: Delete.
35458         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35459         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35460         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35461         (ret_ERRVAL, r0, r1, MOVE): Define.
35462         (JUMPTARGET): Remove.
35463         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35464         sysdeps/unix/sparc/sysdep.h
35465         (ENTRY, END): Remove.
35466         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35467
35468 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35469
35470         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35471         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35472         -DIS_IN_build.
35473
35474         * timezone/README: Update upstream location and email address for
35475         tzcode and tzdata.
35476         * timezone/zdump.c: Update from tzcode 2012b.
35477         * timezone/zic.c: Likewise.
35478
35479         * configure.in (libc_cv_as_needed): Remove test.
35480         * configure: Regenerated.
35481         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35482         conditional definition.
35483         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35484         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35485         * config.make.in (have-as-needed): Remove variable.
35486
35487 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35488             Paul Pluzhnikov  <ppluzhnikov@google.com>
35489
35490         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35491         strings correctly.
35492
35493 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35494
35495         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35496         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35497         * sysdeps/sh/strlen.S: Likewise.
35498
35499 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35500
35501         * sysdeps/unix/fork.S: Remove file.
35502         * sysdeps/unix/i386/fork.S: Likewise.
35503         * sysdeps/unix/sparc/fork.S: Likewise.
35504
35505         * sysdeps/unix/system.c: Remove file.
35506         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35507
35508         * sysdeps/unix/getegid.S: Remove file.
35509         * sysdeps/unix/geteuid.S: Likewise.
35510
35511 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35512
35513         * scripts/check-localplt.awk: New file.
35514         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35515         of diff.
35516         * scripts/data/localplt-generic.data: Add a comment.
35517
35518         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35519         NODE when __dir_mkfile failed.
35520         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35521         Reported by Ludovic Courtès <ludo@gnu.org>.
35522
35523 2012-04-24  Andreas Jaeger  <aj@suse.de>
35524
35525         * Makerules (common-clean): Also remove gen-as-const-headers
35526         files.
35527
35528 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35529
35530         * Makerules (native-compile): Do not change working directory for
35531         build.  Use $(OUTPUT_OPTION) in command.
35532         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
35533
35534 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35535
35536         [BZ #13886]
35537         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
35538         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
35539         * math/libm-test.inc (floor_test): Add more tests.
35540         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
35541
35542 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35543
35544         * sysdeps/unix/getdents.c: Remove file.
35545         * sysdeps/unix/sysv/getdents.c: Likewise.
35546         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
35547
35548         * sysdeps/unix/syscalls.list (madvise): Add syscall from
35549         sysdeps/unix/mman/syscalls.list.
35550         (mmap): Likewise.
35551         (mprotect): Likewise.
35552         (msync): Likewise.
35553         (munmap): Likewise.
35554         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
35555         * sysdeps/unix/mman/syscalls.list: Remove.
35556         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
35557
35558         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
35559         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
35560         * configure: Regenerated.
35561         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
35562         $(libgcc_s_suffix).
35563         * config.make.in (libgcc_s_suffix): Remove variable.
35564
35565 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
35566
35567         * sysdeps/unix/sysv/gethostname.c: Move to ...
35568         * sysdeps/posix/gethostname.c: ... here.
35569
35570         * sysdeps/unix/execve.S: Remove file.
35571
35572         * sysdeps/unix/_exit.S: Remove file.
35573
35574 2012-04-23  Andreas Jaeger  <aj@suse.de>
35575
35576         [BZ #13739]
35577         * manual/Makefile: Remove make dist support, there's no
35578         need for a stand-alone documentation tar ball.
35579         (TEXI2DVI): Define always, it's not in Makeconfig.
35580         (dist): Removed.
35581         (tar-it): Removed.
35582         (edition): Removed.
35583         (glibc-doc-$(edition).tar): Removed
35584         (%.Z): Removed.
35585         (%.gz): Removed.
35586         (%.uu): Removed.
35587         (ETAGS): Remove, it's in Makeconfig.
35588         (move-if-change): Remove, it's in Makeconfig.
35589
35590 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35591
35592         [BZ #13970]
35593         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35594         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35595         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35596         (strtod_l, strtof_l, strtold_l): Remove __wur.
35597         It is not necessarily an error to ignore strtol's return value.
35598         One can reliably look at the stored endptr to decide whether
35599         the number had valid syntax.
35600
35601 2012-04-21  Andreas Jaeger  <aj@suse.de>
35602
35603         [BZ #13739]
35604         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35605
35606 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35607
35608         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35609         * sysdeps/unix/sysv/Versions: Remove file.
35610
35611 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35612
35613         [BZ #13927]
35614         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35615
35616 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35617
35618         [BZ #7064]
35619         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35620         version from __vm86.
35621
35622 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35623
35624         * sysdeps/unix/common/lxstat.c: Remove file.
35625         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35626
35627         * sysdeps/unix/sysv/Makefile: Remove file.
35628
35629         * sysdeps/unix/sysv/direct.h: Remove file.
35630
35631         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35632         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35633         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35634         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35635         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35636         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35637         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35638
35639         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35640
35641         * sysdeps/unix/xmknod.c: Remove file.
35642         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35643
35644         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35645
35646         * sysdeps/unix/sysv/i386/time.S: Remove file.
35647
35648         * sysdeps/unix/fxstat.c: Remove file.
35649         * sysdeps/unix/xstat.c: Likewise.
35650         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35651
35652         * sysdeps/unix/sysv/sigaction.c: Remove file.
35653
35654         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35655         (sysdep_headers): Remove variable.
35656         [termio.h not in sysdep_headers] (generated): Likewise.
35657         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35658         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35659         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35660         * sysdeps/unix/sysv/tcflow.c: Likewise.
35661         * sysdeps/unix/sysv/tcflush.c: Likewise.
35662         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35663         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35664         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35665         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35666         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35667
35668         * sysdeps/unix/siglist.c: Remove file.
35669
35670         * sysdeps/unix/getppid.S: Remove file.
35671
35672         * sysdeps/unix/mkdir.c: Remove file.
35673         * sysdeps/unix/rmdir.c: Likewise.
35674
35675 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35676
35677         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35678         ERR_MAX value.
35679         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35680         errlist-compat value.
35681
35682 2012-04-18  David S. Miller  <davem@davemloft.net>
35683
35684         * sysdeps/generic/memcopy.h (reg_char): Delete.
35685         * debug/strcat_chk.c: Use char, not reg_char.
35686         * debug/strcpy_chk.c: Likewise.
35687         * debug/strncat_chk.c: Likewise.
35688         * debug/strncpy_chk.c: Likewise.
35689         * string/memchr.c: Likewise.
35690         * string/memrchr.c: Likewise.
35691         * string/rawmemchr.c: Likewise.
35692         * string/strcat.c: Likewise.
35693         * string/strchr.c: Likewise.
35694         * string/strchrnul.c: Likewise.
35695         * string/strcmp.c: Likewise.
35696         * string/strcpy.c: Likewise.
35697         * string/strncat.c: Likewise.
35698         * string/strncmp.c: Likewise.
35699         * string/strncpy.c: Likewise.
35700
35701 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35702
35703         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35704         __builtin_memcopy is called when src and dest ranges are known to not
35705         overlap.
35706
35707 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35708
35709         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35710         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35711         fwd_align_merge macro call.
35712         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35713         bwd_align_merge macro call.
35714         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35715
35716 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35717
35718         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35719         bwd_align_merge macros.
35720         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35721         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35722         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35723
35724 2012-04-18  David S. Miller  <davem@davemloft.net>
35725
35726         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35727
35728 2012-04-18  Andreas Jaeger  <aj@suse.de>
35729
35730         [BZ# 6794]
35731         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35732         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35733         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35734
35735         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35736         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35737         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35738
35739         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35740         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35741         Adjust for changed ldbl-128 files.
35742
35743         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35744         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35745         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35746
35747 2012-04-17  David S. Miller  <davem@davemloft.net>
35748
35749         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35750
35751 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35752
35753         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35754         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35755         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35756         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35757         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35758         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35759
35760 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35761
35762         [BZ #6794]
35763         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35764         * math/libm-test.inc: Add ilogb errno and exception tests.
35765         * math/w_ilogb.c: New file: ilogb wrapper.
35766         * math/w_ilogbf.c: New file: ilogbf wrapper.
35767         * math/w_ilogbl.c: New file: ilogbl wrapper.
35768         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35769         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35770         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35771         exception being thrown with 0.0 as argument.
35772         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35773         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35774         exception being thrown with 0.0 as argument.
35775         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35776         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35777         exception being thrown with 0.0 as argument.
35778         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35779         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35780         exception being thrown with 0.0 as argument.
35781         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35782         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35783         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35784         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35785         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35786         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35787         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35788         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35789         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35790
35791 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35792
35793         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35794         with altivec.
35795
35796 2012-04-16  Marek Polacek  <polacek@redhat.com>
35797
35798         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35799
35800 2012-04-16  Marek Polacek  <polacek@redhat.com>
35801
35802         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35803         operands of fdivp instruction.
35804
35805 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35806
35807         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35808         * elf/tst-auditmod3b.c: Likewise.
35809         * elf/tst-auditmod4b.c: Likewise.
35810         * elf/tst-auditmod5b.c: Likewise.
35811         * elf/tst-auditmod6b.c: Likewise.
35812         * elf/tst-auditmod6c.c: Likewise.
35813         * elf/tst-auditmod7b.c: Likewise.
35814         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35815         * sysdeps/x86_64/preconfigure.in: Likewise.
35816         * sysdeps/x86_64/preconfigure: Regenerated.
35817
35818 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35819
35820         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35821         __ILP32__.
35822
35823 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35824
35825         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35826         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35827
35828 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35829
35830         [BZ #13973]
35831         * locale/iso-639.def: Fix gl language name. Spotted by
35832         Yaron Shahrabani.
35833
35834 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35835
35836         [BZ #2074]
35837         * libio/libio.h (__io_write_fn): Update comment.
35838
35839 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35840
35841         [BZ #2074]
35842         * stdio.texi (Hook Functions): The user provided writer function
35843         is not allowed to return -1.
35844
35845 2012-04-11  David S. Miller  <davem@davemloft.net>
35846
35847         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35848
35849 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35850
35851         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35852         Add a leading slash to rtkaio.
35853
35854 2012-04-11  Jim Meyering  <meyering@redhat.com>
35855
35856         [BZ #11959]
35857         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35858         It is not necessarily an error to ignore fwrite's return
35859         value.  One can reliably use ferror to test for errors after
35860         the fact.
35861
35862 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35863
35864         * bits/types.h (__snseconds_t): New type.
35865         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35866
35867         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35868         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35869         (__SNSECONDS_T_TYPE): Likewise.
35870         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35871         (__SNSECONDS_T_TYPE): Likewise.
35872         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35873         (__SNSECONDS_T_TYPE): Likewise.
35874
35875 2012-04-10  Andreas Jaeger  <aj@suse.de>
35876
35877         [BZ #2636]
35878         * manual/time.texi (Processor Time): Return type of times is
35879         elapsed real time since an arbitrary point in the past.
35880         (CPU Time): Move CLK_TCK from here...
35881         (Processor Time): ...to here.  Correct description.
35882         * manual/conf.texi (Constants for Sysconf): Correct description of
35883         _SC_CLK_TCK.
35884
35885 2012-04-10  David S. Miller  <davem@davemloft.net>
35886
35887         [BZ #13967]
35888         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35889         where the is a gap between DT_REL(A) and DT_JMPREL.
35890
35891 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35892
35893         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35894         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35895         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35896
35897 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35898
35899         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35900         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35901         (dl_main): Handle --inhibit-cache.
35902         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35903         _dl_inhibit_cache.
35904         * elf/dl-load.c (_dl_map_object): Use it.
35905         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35906
35907 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35908
35909         [BZ #13872]
35910         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35911         (__ieee754_powl): Saturate large exponents rather than testing for
35912         overflow of y*log2(x).
35913         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35914         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35915         exceptions.
35916
35917         [BZ #11521]
35918         * math/s_ctan.c: Include <float.h>.
35919         (__ctan): Avoid internal overflow or cancellation in calculating
35920         denominator.
35921         * math/s_ctanf.c: Likewise.
35922         * math/s_ctanl.c: Likewise.
35923         * math/s_ctanh.c: Likewise.
35924         * math/s_ctanhf.c: Likewise.
35925         * math/s_ctanhl.c: Likewise.
35926         * math/libm-test.inc (ctan_test): Add more tests.
35927         (ctanh_test): Likewise.
35928         * sysdeps/i386/fpu/libm-test-ulps: Update.
35929         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35930
35931 2012-04-09  Andreas Jaeger  <aj@suse.de>
35932
35933         [BZ #6894]
35934         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35935         is an optional BSD extension.
35936
35937         [BZ #10254]
35938         * manual/stdio.texi (Opening Streams): Document additional fopen
35939         parameters.
35940
35941 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35942
35943         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35944         %eax without telling the compiler.
35945
35946 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35947
35948         [BZ # 13963]
35949         * manual/install.texi: Use sourceware.org.
35950
35951 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35952
35953         [BZ #13873]
35954         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35955         (__ieee754_pow): Generate overflow and underflow using huge*huge
35956         and tiny*tiny rather than just returning constant infinity or zero
35957         for large exponents.
35958         * math/libm-test.inc (pow_test): Require overflow exceptions for
35959         applicable cases of large exponents.
35960
35961         [BZ #706]
35962         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35963         (__ieee754_pow): Use iterative multiplication algorithm only for
35964         integer exponents with absolute value below 1024.  Check for odd
35965         integer exponents when using algorithm for real exponents.
35966         * math/libm-test.inc (pow_test): Add more tests.
35967         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35968
35969 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35970
35971         [BZ #13705]
35972         * math/libm-test.inc (exp_test): Do not allow overflow exception
35973         on underflow test.
35974
35975 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35976
35977         [BZ #13705]
35978         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35979         instead of __kernel_standard_f.
35980
35981 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35982
35983         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35984         * sysdeps/x86_64/memset_chk.S: Likewise.
35985
35986 2012-04-08  Andreas Jaeger  <aj@suse.de>
35987
35988         [BZ #10153]
35989         * manual/startup.texi (Environment Access): Describe return value
35990         for putenv and setenv.
35991
35992         [BZ #6895]
35993         * manual/filesys.texi (Directory Entries): Add description for
35994         DT_LNK.
35995
35996         [BZ #6890]
35997         * manual/filesys.texi (Directory Entries): Clarify that it's file
35998         system not operating system in the description of DT_UNKNOWN.
35999
36000         [BZ #6578]
36001         * manual/syslog.texi (closelog): Fix reference, it's openlog.
36002
36003 2012-04-08  Stephen Compall  <s11@member.fsf.org>
36004
36005         [BZ #6649]
36006         * manual/llio.texi (Opening and Closing Files): Add cross
36007         reference to explain mode argument.
36008
36009 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
36010
36011         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
36012         * sysdeps/x86_64/memset_chk.S: Likewise.
36013
36014 2012-04-07  David S. Miller  <davem@davemloft.net>
36015
36016         * elf/elf.h (R_SPARC_WDISP10): Define.
36017         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
36018         R_SPARC_SIZE32.
36019         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
36020         R_SPARC_SIZE64 and R_SPARC_H34.
36021
36022 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
36023
36024         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
36025         conditions and remove no longer applicable assertion.
36026
36027 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
36028
36029         * bits/byteswap.h: Include <features.h>.
36030         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
36031         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
36032
36033 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
36034
36035         * bits/byteswap.h (__bswap_16): Removed.
36036         Include <bits/byteswap-16.h> to get __bswap_16.
36037         * sysdeps/i386/bits/byteswap.h: Likewise.
36038         * sysdeps/s390/bits/byteswap.h: Likewise.
36039         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36040         * bits/byteswap-16.h: New file.
36041         * sysdeps/i386/bits/byteswap-16.h: Likewise.
36042         * sysdeps/s390/bits/byteswap-16.h: Likewise.
36043         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
36044         * string/Makefile (headers): Add bits/byteswap-16.h.
36045
36046 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36047
36048         [BZ #13895]
36049         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
36050         extra indirection.
36051         * nss/Makefile (tests-static, tests): Add tst-nss-static.
36052         * nss/tst-nss-static.c: New.
36053
36054 2012-04-06  Robert Millan  <rmh@gnu.org>
36055
36056         [BZ #6486]
36057         * manual/llio.texi (File Position Primitive): lseek
36058         refers to WHENCE when it really means OFFSET.
36059
36060 2012-04-06  Andreas Jaeger  <aj@suse.de>
36061
36062         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
36063         strncmp declarations.
36064
36065         * abilist/libc.abilist: Add __poll and __ppoll.
36066
36067 2012-04-05  David S. Miller  <davem@davemloft.net>
36068
36069         * scripts/check-local-headers.sh: Accept a host triplet in the
36070         path matched by the exclude regexp.
36071
36072         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
36073         definition.
36074         * sysdeps/powerpc/powerpc32/dl-machine.h
36075         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
36076         * sysdeps/s390/s390-32/dl-machine.h
36077         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36078         * sysdeps/sparc/sparc32/dl-machine.h
36079         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36080         * sysdeps/sparc/sparc64/dl-machine.h
36081         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36082
36083         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
36084         lazy binding.
36085         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
36086         undefined symbol errors.
36087
36088         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
36089         DT_NEEDED entries.
36090
36091 2012-04-05  Michael Matz  <matz@suse.de>
36092
36093         [BZ #13592]
36094         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
36095
36096 2012-04-05  Andreas Jaeger  <aj@suse.de>
36097
36098         [BZ #13908]
36099         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
36100         comment.
36101
36102 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36103
36104         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
36105         which ROUND is no valid rounding mode.
36106
36107 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36108
36109         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
36110         read again.
36111         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
36112
36113 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36114
36115         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
36116         an exception using FPU order intentionally.
36117
36118 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36119
36120         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
36121         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
36122         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
36123         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
36124
36125 2012-04-05  Simon Josefsson  <simon@josefsson.org>
36126
36127         [BZ #12340]
36128         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
36129         EINVAL when BUFLEN is too smal.
36130
36131 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
36132
36133         [BZ #13553]
36134         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
36135         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
36136
36137 2012-04-03  Andreas Jaeger  <aj@suse.de>
36138
36139         [BZ #13938]
36140         * manual/setjmp.texi (System V contexts): Fix sentence.
36141
36142         [BZ #13926]
36143         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
36144         New macro for this case.
36145         [!__GNUC__] (__bswap_64): New inline function for this case.
36146         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36147         * bits/byteswap.h: Likewise.
36148         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
36149         ull, guard with __GLIBC_HAVE_LONG_LONG.
36150
36151         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
36152         __GLIBC_HAVE_LONG_LONG.
36153
36154         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
36155         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
36156
36157 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
36158
36159         [BZ #13691]
36160         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
36161         inptr and inend, rather than using last_ch.
36162
36163 2012-04-02  David S. Miller  <davem@davemloft.net>
36164
36165         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
36166         * stdio-common/printf-parse.h (read_int): Change return type to
36167         'int', return -1 on INT_MAX overflow.
36168         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
36169         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
36170         overflows INT_MAX.  Check for overflow of in-format-string precision
36171         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
36172         SIZE_MAX not INT_MAX for integer overflow test.
36173         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
36174         skip the construct in the format string but do not record anything.
36175         * stdio-common/bug22.c: Adjust to test both width/prevision
36176         INT_MAX overflow as well as total length INT_MAX overflow.  Check
36177         explicitly for proper errno values.
36178
36179 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
36180
36181         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
36182         CHAR_MAX.
36183         * string/test-strcmp.c [! WIDE]: Likewise.
36184         * time/tst-mktime2.c: Likewise for INT_MAX.
36185         * string/test-string.h: #include <sys/param.h> for MIN.
36186
36187         * csu/init-first.c (__libc_init_first): Call __ctype_init.
36188         * sysdeps/i386/init-first.c (init): Likewise.
36189         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
36190         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36191         * sysdeps/sh/init-first.c (init): Likewise.
36192
36193 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36194
36195         * po/ru.po: Update from translation team.
36196         * po/vi.po: Likewise.
36197
36198 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36199
36200         * resolv/nss_dns/dns-host.c: Merge copyright years.
36201
36202 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36203
36204         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36205         Optimize memcpy with prefetch if
36206         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36207         src, dst pointers have unequal 16 byte alignments.
36208
36209 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36210
36211         [BZ #13928]
36212         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36213         from a CNAME entry and return the minimum ttl for the query.
36214         (gaih_getanswer_slice): Likewise.
36215
36216 2012-03-30  Jeff Law  <law@redhat.com>
36217
36218         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36219         due to long keys.
36220         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36221         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36222
36223         * resolv/nss_dns/dns-host.c: Update copyright year.
36224
36225 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36226
36227         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36228         requests to save a system call.  Fix check that all bytes are sent.
36229
36230         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36231         comments for sendmmsg.
36232
36233 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36234
36235         [BZ #13691]
36236         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36237         with only 1 character between 0x0041 and 0x01b0.
36238         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36239         * wcsmbs/tst-mbsnrtowcs.c: New file.
36240
36241 2012-03-29  David S. Miller  <davem@davemloft.net>
36242
36243         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36244         small copies by hand.
36245
36246 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36247
36248         [BZ #13761]
36249         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36250         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36251         group memberships.
36252
36253 2012-03-28  David S. Miller  <davem@davemloft.net>
36254
36255         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36256         that branches into memcpy.
36257         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36258         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36259         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36260         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36261         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36262         bits.
36263         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36264         implementation too.
36265         * sysdeps/sparc/mempcpy.S: New file.
36266
36267         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36268         the IFUNC routine in the libc case.
36269         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36270
36271         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36272         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36273         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36274         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36275         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36276         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36277         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36278         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36279
36280         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36281         loop to 256 bytes instead of 64 bytes and fix test signedness.
36282
36283         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36284         * sysdeps/sparc/sparc32/Makefile: rather than here...
36285         * sysdeps/sparc/sparc64/Makefile: and here.
36286
36287 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36288
36289         * malloc/mallocbug.c: Avoid warnings about unused variables.
36290
36291 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36292
36293         [BZ #13760]
36294         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36295         in the right place. Discard and retry query if response is
36296         larger than input buffer size.
36297
36298 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36299
36300         [BZ #369]
36301         [BZ #2678]
36302         [BZ #3866]
36303         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36304         x for large integer exponent.
36305         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36306         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36307         sign of result as needed afterwards.
36308         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36309         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36310         result for underflowing pow the same as for overflow.
36311         (__kernel_standard_l): Handle powl overflow and underflow here
36312         rather than calling __kernel_standard.
36313         * math/libm-test.inc (pow_test): Add more tests.
36314
36315         [BZ #3868]
36316         [BZ #13879]
36317         [BZ #13910]
36318         [BZ #13911]
36319         [BZ #13912]
36320         [BZ #13913]
36321         [BZ #13915]
36322         [BZ #13916]
36323         [BZ #13917]
36324         [BZ #13918]
36325         [BZ #13919]
36326         [BZ #13920]
36327         [BZ #13921]
36328         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36329         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36330         (__kernel_standard_l): New function.
36331         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36332         __kernel_standard.
36333         * math/w_acosl.c (__acosl): Likewise.
36334         * math/w_asinl.c (__asinl): Likewise.
36335         * math/w_atan2l.c (__atan2l): Likewise.
36336         * math/w_atanhl.c (__atanhl): Likewise.
36337         * math/w_coshl.c (__coshl): Likewise.
36338         * math/w_exp10l.c (__exp10l): Likewise.
36339         * math/w_exp2l.c (__exp2l): Likewise.
36340         * math/w_fmodl.c (__fmodl): Likewise.
36341         * math/w_hypotl.c (__hypotl): Likewise.
36342         * math/w_j0l.c (__j0l, __y0l): Likewise.
36343         * math/w_j1l.c (__j1l, __y1l): Likewise.
36344         * math/w_jnl.c (__jnl, __ynl): Likewise.
36345         * math/w_lgammal.c (__lgammal): Likewise.
36346         * math/w_log10l.c (__log10l): Likewise.
36347         * math/w_log2l.c (__log2l): Likewise.
36348         * math/w_logl.c (__logl): Likewise.
36349         * math/w_powl.c (__powl): Likewise.
36350         * math/w_remainderl.c (__remainderl): Likewise.
36351         * math/w_scalbl.c (sysv_scalbl): Likewise.
36352         * math/w_sinhl.c (__sinhl): Likewise.
36353         * math/w_sqrtl.c (__sqrtl): Likewise.
36354         * math/w_tgammal.c (__tgammal): Likewise.
36355         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36356         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36357         * math/libm-test.inc (acos_test): Add more tests.
36358         (acosh_test): Likewise.
36359         (asin_test): Likewise.
36360         (atanh_test): Likewise.
36361         (exp_test): Likewise.
36362         (exp10_test): Likewise.
36363         (exp2_test): Likewise.
36364         (expm1_test): Likewise.
36365         (lgamma_test): Likewise.
36366         (log_test): Likewise.
36367         (log10_test): Likewise.
36368         (log1p_test): Likewise.
36369         (log2_test): Likewise.
36370         (pow_test): Do not allow some spurious overflow exceptions.
36371         (sqrt_test): Add more tests.
36372         (tgamma_test): Likewise.
36373         (y0_test): Likewise.
36374         (y1_test): Likewise.
36375         (yn_test): Likewise.
36376
36377 2012-03-27  Anton Blanchard  <anton@samba.org>
36378
36379         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36380         MAP_HUGETLB.
36381         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36382         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36383         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36384
36385 2012-03-27  David S. Miller  <davem@davemloft.net>
36386
36387         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36388
36389         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36390         have-as-vis3 check.
36391
36392 2012-03-27  Andreas Jaeger  <aj@suse.de>
36393
36394         * sysdeps/x86_64/elf/configure.in: Moved to ...
36395         * sysdeps/x86_64/configure.in: ... here.
36396         * sysdeps/x86_64/elf/start.S: Moved to ...
36397         * sysdeps/x86_64/start.S: ... here.
36398         * sysdeps/x86_64/elf/configure: Delete.
36399
36400         * sysdeps/x86_64/configure.in: Merge contents from
36401         sysdeps/i386/configure.in (without i686 check).
36402
36403         * sysdeps/i386/elf/Versions: Merge into ...
36404         * sysdeps/i386/Versions: ... this.
36405         * sysdeps/i386/elf/Versions: Delete file.
36406         * sysdeps/i386/elf/start.S: Moved to ...
36407         * sysdeps/i386/start.S: ...here.
36408         * sysdeps/i386/elf/configure.in: Merge into...
36409         * sysdeps/i386/configure.in: ...here.
36410         * sysdeps/i386/elf/configure.in: Delete file.
36411         * sysdeps/i386/elf/configure: Delete file.
36412
36413         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36414         * debug/backtracesyms.c: ... here.
36415         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36416         * debug/backtracesymsfd.c: ... here.
36417         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36418         * sysdeps/generic/ifunc-sel.h: ... here.
36419
36420         * sysdeps/unix/i386/start.c: Delete file.
36421         * sysdeps/unix/sparc/start.c: Delete file.
36422         * sysdeps/unix/start.c: Delete file.
36423
36424         * sysdeps/sh/elf/configure.in: Moved to ...
36425         * sysdeps/sh/configure.in: ... here.
36426         * sysdeps/sh/elf/start.S: Moved to ...
36427         * sysdeps/sh/start.S: ... here.
36428         * sysdeps/sh/elf/configure: Delete file.
36429
36430         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36431         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36432         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36433         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36434         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36435         * sysdeps/powerpc/powerpc64/start.S: here.
36436         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36437         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36438         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36439         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36440         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36441
36442         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36443         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36444         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36445         * sysdeps/powerpc/powerpc32/start.S: ... here.
36446         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36447         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36448         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36449
36450         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36451         * sysdeps/powerpc/ifunc-sel.h: ... here.
36452         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36453         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36454
36455         * sysdeps/sparc/elf/configure.in: Moved to ...
36456         * sysdeps/sparc/configure.in: ... here.
36457         * sysdeps/sparc/elf/configure: Delete file.
36458         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36459         * sysdeps/sparc/sparc32/start.S: ... here.
36460         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36461         * sysdeps/sparc/sparc64/start.S: ... here.
36462         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36463         * sysdeps/sparc/sparc32/Makefile: ... this.
36464         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36465         * sysdeps/sparc/sparc64/Makefile: ... this.
36466
36467         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36468         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36469         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36470         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36471         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36472         * sysdeps/s390/s390-32/setjmp.S: ... here.
36473         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36474         * sysdeps/s390/s390-32/configure.in: ... here.
36475         * sysdeps/s390/s390-32/elf/configure: Delete file.
36476         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36477         * sysdeps/s390/s390-32/start.S: ... here.
36478
36479         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36480         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36481         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36482         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36483         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36484         * sysdeps/s390/s390-64/setjmp.S: ... here.
36485         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36486         * sysdeps/s390/s390-64/configure.in: ... here
36487         * sysdeps/s390/s390-64/elf/configure: Delete file.
36488         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36489         * sysdeps/s390/s390-64/start.S: ... here.
36490         * sysdeps/s390/s390-64/elf/configure: Delete.
36491
36492         * configure.in: Remove support for elf directories in sysdeps.
36493
36494         * configure: Regenerated.
36495         * sysdeps/i386/configure: Regenerated.
36496         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36497         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36498         * sysdeps/s390/s390-32/configure: Regenerated.
36499         * sysdeps/s390/s390-64/configure: Regenerated.
36500         * sysdeps/sh/configure: Regenerated.
36501         * sysdeps/sparc/configure: Regenerated.
36502         * sysdeps/x86_64/configure: Regenerated.
36503
36504 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36505
36506         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36507
36508         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36509         denormal result into account.
36510
36511 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36512
36513         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36514         Reported by Allan McRae <allan@archlinux.org>.
36515
36516 2012-03-23  Jeff Law  <law@redhat.com>
36517
36518         * nss/getnssent.c (__nss_getent): Fix typo.
36519
36520 2012-03-23  David S. Miller  <davem@davemloft.net>
36521
36522         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36523
36524 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36525
36526         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36527         to pad to uint64_t for each field.
36528         (dl_tls_index): Replace unsigned long with uint64_t.
36529
36530 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36531         Paul Pluzhnikov  <ppluzhnikov@google.com>
36532
36533         [BZ #6528]
36534         * grp/Makefile (otherlibs): Don't set it.
36535         * inet/Makefile (otherlibs): Likewise.
36536         * login/Makefile (otherlibs): Likewise.
36537         * nscd/Makefile (otherlibs): Likewise.
36538         * posix/Makefile (otherlibs): Likewise.
36539         * pwd/Makefile (otherlibs): Likewise.
36540         * rt/Makefile (otherlibs): Likewise.
36541         * sunrpc/Makefile (otherlibs): Likewise.
36542         * nss/Makefile (otherlibs): Likewise.
36543         Add libnss_files to routines and static-only-routines.
36544         ($(objpfx)getent): Remove rule.
36545         * resolv/Makefile: Add libnss_dns and libresolv to routines and
36546         static-only-routines.
36547
36548 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36549
36550         [BZ #13892]
36551         * math/s_cexp.c: Include <float.h>.
36552         (__cexp): Handle exp result overflowing not necessarily
36553         overflowing both real and imaginary parts of result.
36554         * math/s_cexpf.c: Likewise.
36555         * math/s_cexpl.c: Likewise.
36556         * math/libm-test.inc (cexp_test): Add more tests.
36557         * sysdeps/i386/fpu/libm-test-ulps: Update.
36558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36559
36560 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36561
36562         * include/link.h (ELFW): New macro.
36563         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
36564         Replace ELF64_R_TYPE with ELFW(R_TYPE).
36565
36566 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36567
36568         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
36569         with uint64_t.
36570
36571 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36572
36573         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
36574         declaration.
36575         (struct La_x32_retval): Likewise.
36576
36577 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36578
36579         * sysdeps/x86_64/preconfigure.in: New file.
36580         * sysdeps/x86_64/preconfigure: New generated file.
36581
36582 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36583
36584         [BZ #13824]
36585         * math/e_exp2l.c: Include <float.h>.
36586         (__ieee754_exp2l): Handle overflow and underflow cases
36587         separately.  Only pass fractional part of argument to
36588         __ieee754_expl.
36589         * math/libm-test.inc (exp2_test): Add more tests.
36590
36591         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36592         negating x to take absolute value.
36593         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36594         Likewise.
36595         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36596         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36597         Likewise.
36598         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36599         computing low part if x was negated.
36600         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36601
36602 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36603
36604         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36605         la_x32_gnu_pltexit.
36606         (pltexit): Cast int_retval to ptrdiff_t.
36607         * elf/tst-auditmod3b.c: Likewise.
36608         * elf/tst-auditmod4b.c: Likewise.
36609         * elf/tst-auditmod5b.c: Likewise.
36610         * elf/tst-auditmod6b.c: Likewise.
36611         * elf/tst-auditmod6c.c: Likewise.
36612         * elf/tst-auditmod7b.c: Likewise.
36613
36614         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36615         and x32_gnu_pltexit.
36616
36617         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36618         __ELF_NATIVE_CLASS.
36619         (La_x32_regs): New macro.
36620         (La_x32_retval): Likewise.
36621         (la_x32_gnu_pltenter): New function prototype.
36622         (la_x32_gnu_pltexit): Likewise.
36623
36624 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36625
36626         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36627         exponent.
36628
36629         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36630
36631         * configure.in (libc_cv_cc_nofma): Check for option to disable
36632         generation of FMA instructions.
36633         * configure: Regenerate.
36634         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36635         * sysdeps/ieee754/dbl-64/Makefile: New file.
36636         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36637         Remove brandred-fma4.
36638         (CFLAGS-brandred-fma4.c): Remove.
36639         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36640         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36641         define.
36642         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36643         define.
36644
36645 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36646
36647         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36648         LLONG_MAX != LONG_MAX.
36649         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36650         (_fitoa_word): Likewise.
36651         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36652         LLONG_MAX != LONG_MAX.
36653         * stdio-common/_itowa.h: Include <_itoa.h>.
36654         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36655         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36656         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36657         only if not defined.
36658         (_ITOA_WORD_TYPE): Likewise.
36659         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36660         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36661
36662 2012-03-21  David S. Miller  <davem@davemloft.net>
36663
36664         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36665
36666 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36667
36668         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36669         of x86_64 when setting libc_cv_slibdir, libdir and
36670         libc_cv_localedir.
36671         * sysdeps/unix/sysv/linux/configure: Regenerated.
36672
36673 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36674
36675         * manual/lang.texi (Old Varargs): Remove section.
36676         (How Variadic): Update menu.
36677         (va_start): Do not mention varargs.h.
36678
36679 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36680             Joseph Myers  <joseph@codesourcery.com>
36681
36682         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36683         link test.
36684         * configure: Regenerated.
36685
36686 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36687
36688         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36689         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36690         conformtest.pl
36691
36692 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36693
36694         * NOTES: Remove.
36695         * Makefile (files-for-dist): Remove NOTES.
36696         (NOTES): Remove rule.
36697         * README: Don't refer to NOTES.
36698         * manual/creature.texi: Don't include macros.texi.
36699         * manual/intro.texi (creature.texi): Remove comment referring to
36700         NOTES.
36701
36702         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36703         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36704         * configure: Regenerated.
36705         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36706         LIBC_TRY_CC_OPTION.
36707         (libc_cv_as_i686): Likewise.
36708         (libc_cv_cc_avx): Likewise.
36709         (libc_cv_cc_sse2avx): Likewise.
36710         (libc_cv_cc_fma4): Likewise.
36711         (libc_cv_cc_novzeroupper): Likewise.
36712         * sysdeps/i386/configure: Regenerated.
36713
36714         [BZ #13883]
36715         * sysdeps/i386/fpu/s_cexp.S: Remove.
36716         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36717         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36718         * math/libm-test.inc (cexp_test): Add more tests.
36719         * sysdeps/i386/fpu/libm-test-ulps: Update.
36720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36721
36722 2012-03-21  Allan McRae  <allan@archlinux.org>
36723
36724         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36725
36726 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36727
36728         [BZ #13871]
36729         * math/w_exp2.c: Do not include <float.h>.
36730         (o_threshold, u_threshold): Remove.
36731         (__exp2): Calculate result before checking finiteness and calling
36732         __kernel_standard.
36733         * math/w_exp2f.c: Likewise.
36734         * math/w_exp2l.c: Likewise.
36735         * math/libm-test.inc (exp2_test): Require overflow exception for
36736         1e6 input.
36737
36738         [BZ #3866]
36739         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36740         range of signed 64-bit integers before using fistpll.  Remove
36741         checks for whether integers fit in mantissa bits.
36742         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36743         the range of signed 32-bit integers before using fistpl.  Remove
36744         checks for whether integers fit in mantissa bits.
36745         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36746         (__ieee754_powl): Test for y outside the range of signed 64-bit
36747         integers before using fistpll.  Reduce 64-bit values to 63-bit
36748         ones as needed.
36749         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36750         divide-by-zero is raised for zero to large negative powers.
36751         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36752         (__ieee754_powl): Test for y outside the range of signed 64-bit
36753         integers before using fistpll.  Reduce 64-bit values to 63-bit
36754         ones as needed.
36755         * math/libm-test.inc (pow_test): Add more tests.
36756
36757 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36758
36759         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36760         <stdio-common/_itoa.h>.
36761         * debug/segfault.c: Likewise.
36762         * elf/dl-cache.c: Likewise.
36763         * elf/dl-minimal.c: Likewise.
36764         * elf/dl-misc.c: Likewise.
36765         * elf/dl-sysdep.c: Likewise.
36766         * elf/dl-version.c: Likewise.
36767         * elf/rtld.c: Likewise.
36768         * hurd/hurdsock.c: Likewise.
36769         * hurd/lookup-retry.c: Likewise.
36770         * malloc/malloc.c: Likewise.
36771         * malloc/mtrace.c: Likewise.
36772         * nscd/nscd_getgr_r.c: Likewise.
36773         * nscd/nscd_getpw_r.c: Likewise.
36774         * nscd/nscd_getserv_r.c: Likewise.
36775         * posix/getopt_init.c: Likewise.
36776         * posix/wordexp.c: Likewise.
36777         * stdio-common/_itoa.c: Likewise.
36778         * stdio-common/printf_fphex.c: Likewise.
36779         * stdio-common/vfprintf.c: Likewise.
36780         * string/_strerror.c: Likewise.
36781         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36782         * sysdeps/i386/i686/hp-timing.h: Likewise.
36783         * sysdeps/mach/_strerror.c: Likewise.
36784         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36785         * sysdeps/mach/hurd/sethostid.c: Likewise.
36786         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36787         * sysdeps/mach/xpg-strerror.c: Likewise.
36788         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36789         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36790         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36791         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36792         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36793         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36794         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36795         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36796         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36797         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36798         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36799         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36800         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36801         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36802         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36803         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36804         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36805         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36806         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36807         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36808         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36809
36810         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36811
36812         * stdio-common/_itoa.h: Moved to ...
36813         * sysdeps/generic/_itoa.h: Here.
36814
36815         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36816
36817         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36818         instead of "_itoa.h" and "_itowa.h".
36819         * stdio-common/vfprintf.: Likewise.
36820
36821 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36822
36823         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36824         <bits/wordsize.h>.
36825         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36826         (__signbit): Likwise.
36827         (llrintf): Likwise.
36828         (llrint): Likwise.
36829
36830 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36831
36832         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36833         __WORDSIZE != 64.
36834
36835 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36836
36837         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36838         OVERFLOW_EXCEPTION_OK.
36839         * math/libm-test.inc ("Philosophy"): Update comment about
36840         exception testing.
36841         (OVERFLOW_EXCEPTION): Define.
36842         (OVERFLOW_EXCEPTION_OK): Likewise.
36843         (INVALID_EXCEPTION_OK): Renumber.
36844         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36845         (IGNORE_ZERO_INF_SIGN): Likewise.
36846         (test_exceptions): Handle FE_OVERFLOW.
36847         (exp10_test): Expect overflow exceptions.
36848         (exp2_test): Likewise.
36849         (expm1_test): Likewise.
36850         (nextafter_test): Likewise.
36851         (pow_test): Likewise.
36852         (scalbn_test): Likewise.
36853         (scalbln_test): Likewise.
36854
36855 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36856
36857         * sysdeps/x86_64/bits/atomic.h
36858         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36859         64bit integer.
36860         (atomic_exchange_acq): Likewise.
36861         (__arch_exchange_and_add_body): Likewise.
36862         (__arch_add_body): Likewise.
36863         (atomic_add_negative): Likewise.
36864         (atomic_add_zero): Likewise.
36865
36866 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36867
36868         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36869         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36870
36871 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36872
36873         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36874         Check __x86_64__ instead of __WORDSIZE.
36875
36876 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36877
36878         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36879
36880 2012-03-19  David S. Miller  <davem@davemloft.net>
36881
36882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36883
36884         * sysdeps/sparc/fpu/fenv_private.h: New file.
36885         * sysdeps/sparc/fpu/math_private.h: Use it.
36886         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36887         Remove.
36888         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36889         (libc_feholdexcept_setroundl): Remove.
36890         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36891         Remove.
36892         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36893         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36894
36895 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36896
36897         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36898         int64_t instead of long int.
36899         (INSERT_WORDS64): Likwise.
36900
36901 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36902
36903         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36904         _Unwind_GetCFA return to _Unwind_Ptr first.
36905
36906 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36907
36908         [BZ #13629]
36909         * math/s_clog.c: Include <float.h>.
36910         (__clog): Scale large or subnormal inputs.
36911         * math/s_clogf.c: Likewise.
36912         * math/s_clogl.c: Likewise.
36913         * math/s_clog10.c: Include <float.h>.
36914         (M_LOG10_2): Define.
36915         (__clog10): Scale large or subnormal inputs.
36916         * math/s_clog10f.c: Likewise.
36917         * math/s_clog10l.c: Likewise.
36918         * math/libm-test.inc (clog_test): Add more tests.
36919         (clog10_test): Likewise.
36920         * sysdeps/i386/fpu/libm-test-ulps: Update.
36921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36922
36923         [BZ #11451]
36924         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36925         x and y.
36926         * math/libm-test.inc (atan2_test): Add another test.
36927
36928         * Makerules (common-objdir-compile): Remove.
36929         * sysdeps/unix/Makefile (config-generated): Do not add
36930         $(unix-generated) to variable.
36931         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36932         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36933         Remove rule.
36934         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36935         Likewise.
36936         [generic bits/local_lim.h] (before-compile): Do not append to
36937         variable.
36938         [generic bits/local_lim.h] (common-generated): Likewise.
36939         [generic sys/param.h] (before-compile): Do not append to variable.
36940         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36941         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36942         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36943         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36944         include.
36945         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36946         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36947         [generic sys/param.h] ($(addprefix
36948         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36949         [generic sys/param.h] (common-generated): Do not append to
36950         variable.
36951         [generic sys/param.h] (sysdep_headers): Likewise.
36952         [generic bits/errno.h] (before-compile): Do not append to
36953         variable.
36954         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36955         rule.
36956         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36957         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36958         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36959         [generic bits/errno.h] (common-generated): Do not append to
36960         variable.
36961         [generic bits/ioctls.h] (before-compile): Do not append to
36962         variable.
36963         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36964         rule.
36965         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36966         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36967         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36968         rule.
36969         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36970         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36971         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36972         [generic bits/ioctls.h] (common-generated): Do not append to
36973         variable.
36974         [generic sys/syscall.h] (syscall.h): Remove variable.
36975         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36976         rule.
36977         [generic sys/syscall.h] (before-compile): Do not append to
36978         variable.
36979         [generic sys/syscall.h] (common-generated): Likewise.
36980         * sysdeps/unix/errnos-tmpl.c: Remove file.
36981         * sysdeps/unix/errnos.awk: Likewise.
36982         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36983         * sysdeps/unix/ioctls.awk: Likewise.
36984         * sysdeps/unix/mk-local_lim.c: Likewise.
36985         * sysdeps/unix/snarf-ioctls: Likewise.
36986
36987 2012-03-19  Richard Henderson  <rth@twiddle.net>
36988
36989         * sysdeps/i386/fpu/fenv_private.h: New file.
36990         * sysdeps/i386/fpu/math_private.h: Use it.
36991         (math_opt_barrier, math_force_eval): Remove.
36992         (libc_feholdexcept_setround_53bit): Remove.
36993         (libc_feupdateenv_53bit): Remove.
36994         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36995         (math_opt_barrier, math_force_eval): Remove.
36996         (libc_feholdexcept): Remove.
36997         (libc_feholdexcept_setround): Remove.
36998         (libc_fetestexcept, libc_fesetenv): Remove.
36999         (libc_feupdateenv_test): Remove.
37000         (libc_feupdateenv, libc_feholdsetround): Remove.
37001         (libc_feresetround): Remove.
37002
37003         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
37004         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
37005
37006         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
37007         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
37008         (libc_feupdateenv_testl): New.
37009         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
37010         (libc_feupdateenv_testf): New.
37011         (libc_feupdateenv): Use libc_feupdateenv_test.
37012         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
37013         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
37014
37015         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
37016         (libc_feholdsetroundf, libc_feholdsetroundl): New.
37017         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
37018         (libc_feresetround_noex): New.
37019         (libc_feresetround_noexf): New.
37020         (libc_feresetround_noexl): New.
37021         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
37022         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
37023         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
37024         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
37025         SET_RESTORE_ROUND.
37026         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
37027         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
37028         (__cos): Likewise.
37029         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
37030         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
37031         SET_RESTORE_ROUND_NOEX.
37032         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
37033         SET_RESTORE_ROUND_NOEXF.
37034         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
37035         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
37036         (libc_feholdsetroundf): New.
37037         (libc_feresetround, libc_feresetroundf): New.
37038
37039         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
37040         (libc_feholdexcept_setround_53bit): Convert from macro to function.
37041         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
37042
37043         * sysdeps/generic/math_private.h: Include <fenv.h>.
37044         (default_libc_feholdexcept): New.
37045         (default_libc_feholdexcept_setround): New.
37046         (default_libc_fesetenv, default_libc_feupdateenv): New.
37047         (libc_feholdexcept): Only define if undefined.
37048         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
37049         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
37050         (libc_feholdexcept_setroundl): Likewise.
37051         (libc_feholdexcept_setround_53bit): Likewise.
37052         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
37053         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
37054         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
37055         (libc_feupdateenv_53bit): Likewise.
37056         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
37057         (libc_feholdexcept): Convert from macro to inline function.
37058         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
37059         (libc_fesetenv, libc_feupdateenv): Likewise.
37060
37061         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
37062         not previously defined.
37063         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
37064         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
37065         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
37066         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
37067         * sysdeps/ieee754/flt-32/math_private.h: New file.
37068         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
37069         math_private.h below SET_FLOAT_WORD.
37070         (__isnan, __isinf_ns, __finite): Remove.
37071         (__isnanf, __isinf_nsf, __finitef): Remove.
37072
37073 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
37074
37075         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37076
37077 2012-03-17  David S. Miller  <davem@davemloft.net>
37078
37079         [BZ #6471]
37080         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
37081         for 2.16.
37082
37083 2012-03-16  David S. Miller  <davem@davemloft.net>
37084
37085         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
37086         warnings.
37087
37088         [BZ #6471]
37089         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
37090         properly.
37091         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
37092         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
37093         sysdep_routines when subdir is sysvipc.
37094         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
37095         __getshmlba helper.
37096
37097         * sysdeps/sparc/fpu/libm-test/ulps: Update.
37098
37099 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37100
37101         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
37102         [__LP64__].
37103
37104 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37105
37106         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
37107         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
37108         (__lround): Renamed to ...
37109         (__llround): This.  Replace long int with long long int.
37110         Define lround functions as aliases of llround functions.
37111         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
37112
37113 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37114
37115         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
37116         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
37117         adresses to uintptr_t.  Replace "long int" and "unsigned long
37118         int" with "greg_t" on va_arg.
37119
37120 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37121
37122         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
37123         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
37124
37125         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
37126         Move e_machine check before EI_CLASS check.  Handle x32
37127         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
37128         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
37129         SKIP_EM_IA_64 and include
37130         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
37131
37132         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
37133         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
37134         (add_system_dir): New macro.
37135
37136         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
37137         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
37138
37139 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37140
37141         [BZ #2551]
37142         [BZ #2552]
37143         [BZ #2553]
37144         [BZ #2554]
37145         [BZ #2562]
37146         [BZ #2563]
37147         [BZ #2565]
37148         [BZ #2566]
37149         [BZ #2576]
37150         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
37151         (y0): Likewise.
37152         * math/w_j0f.c (j0f): Likewise.
37153         (y0f): Likewise.
37154         * math/w_j0l.c (__j0l): Likewise.
37155         (__y0l): Likewise.
37156         * math/w_j1.c (j1): Likewise.
37157         (y1): Likewise.
37158         * math/w_j1f.c (j1f): Likewise.
37159         (y1f): Likewise.
37160         * math/w_j1l.c (__j1l): Likewise.
37161         (__y1l): Likewise.
37162         * math/w_jn.c (jn): Likewise.
37163         (yn): Likewise.
37164         * math/w_jnf.c (jnf): Likewise.
37165         (ynf): Likewise.
37166         * math/w_jnl.c (__jnl): Likewise.
37167         (__ynl): Likewise.
37168         * math/libm-test.inc (j0_test): Add more tests.
37169         (j1_test): Likewise.
37170         (jn_test): Likewise.  Add trailing semicolon to existing test.
37171         (y0_test): Likewise.
37172         (y1_test): Likewise.
37173         * sysdeps/i386/fpu/libm-test-ulps: Update.
37174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37175
37176         [BZ #13851]
37177         [BZ #13854]
37178         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
37179         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
37180         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
37181         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
37182         (__tanl): Set errno for infinite argument.
37183         * sysdeps/i386/fpu/mptan.c: Remove.
37184         * sysdeps/i386/fpu/s_tan.S: Likewise.
37185         * sysdeps/i386/fpu/s_tanl.S: Likewise.
37186         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
37187         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
37188         * math/libm-test.inc (tan_test): Add more tests and enable more
37189         tests for double and long double.
37190         * sysdeps/i386/fpu/libm-test-ulps: Update.
37191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37192
37193 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37194
37195         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37196         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37197
37198 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37199
37200         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37201         * configure.in: Use it for both main tree and add-ons.
37202         * configure: Regenerated.
37203
37204 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37205
37206         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37207
37208 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37209
37210         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37211         in comment.
37212
37213         [BZ #13851]
37214         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37215         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37216         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37217         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37218         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37219         infinite argument.
37220         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37221         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37222         != 0 for prec == 2.
37223         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37224         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37225         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37226         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37227         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37228         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37229         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37230         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37231         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37232         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37233         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37234         * math/libm-test.inc (cos_test): Add more tests and enable more
37235         tests for long double.
37236         (sin_test): Likewise.
37237         (sincos_test): Likewise.
37238         * sysdeps/i386/fpu/libm-test-ulps: Update.
37239         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37240
37241 2012-03-16  David S. Miller  <davem@davemloft.net>
37242
37243         * sysdeps/sparc/fpu/math_private.h: New file.
37244
37245 2012-03-15  David S. Miller  <davem@davemloft.net>
37246
37247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37248         file.
37249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37251         file.
37252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37253         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37254         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37255         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37256         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37257         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37258         sysdep routines.
37259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37260
37261         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37262         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37263
37264         * sysdeps/sparc/sparc-ifunc.h: New file.
37265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37266         sparc-ifunc.h
37267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37269         Likewise.
37270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37271         Likewise.
37272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37276         Likewise.
37277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37282         Likewise.
37283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37284         Likewise.
37285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37289         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37290         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37291         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37292         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37293         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37294         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37295         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37296         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37297         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37298         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37299         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37300         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37301         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37302         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37303         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37304         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37305         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37306         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37307         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37308         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37309
37310 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37311
37312         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37313         scaling.
37314         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37315
37316 2012-03-15  Andreas Jaeger  <aj@suse.de>
37317
37318         [BZ #13852]
37319         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37320         ieee754/flt-32 implementation for sin, cos and sincos.
37321         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37322         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37323         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37324         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37325         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37326         ieee754/flt-32 implementation for tan.
37327
37328         * math/libm-test.inc (cos_test): Enable some large input tests for
37329         float as well
37330         (sin_test): Likewise.
37331         (sincos_test): Likewise.
37332         (tan_test): Add tests for large input.
37333
37334         * sysdeps/i386/fpu/libm-test-ulps: Update.
37335
37336 2012-03-15  Andreas Jaeger  <aj@suse.de>
37337
37338         [BZ #13658]
37339         * math/libm-test.inc (cos_test): Add more test cases.
37340         (sin_test): Likewise.
37341         (sincos_test): Likewise.
37342
37343 2012-03-15  Andreas Jaeger  <aj@suse.de>
37344
37345         [BZ #13837]
37346         * math/libm-test.inc (cos_test): Add a test case for large input
37347         value.
37348         (sin_test): Likewise.
37349         (sincos_test): Likewise.
37350
37351 2012-03-15  Andreas Jaeger  <aj@suse.de>
37352             Joseph Myers  <joseph@codesourcery.com>
37353
37354         [BZ #13658]
37355         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37356         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37357         * sysdeps/i386/fpu/branred.c: Likewise.
37358         * sysdeps/i386/fpu/dosincos.c: Likewise.
37359         * sysdeps/i386/fpu/mpa.c: Likewise.
37360         * sysdeps/i386/fpu/s_cos.S: Likewise.
37361         * sysdeps/i386/fpu/s_sin.S: Likewise.
37362         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37363         * sysdeps/i386/fpu/sincos32.c: Likewise.
37364
37365         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37366         Define.
37367         (libc_feupdateenv_53bit): Define.
37368         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37369         Define.
37370         (libc_feupdateenv_53bit): Define.
37371
37372         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37373         53 bit (without extend i386 double precision).
37374
37375         * math/libm-test.inc (sincos_test): Add tests for large input.
37376         (sin): Likewise.
37377         (cos): Likewise.
37378
37379         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37380
37381 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37382
37383         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37384
37385 2012-03-15  David S. Miller  <davem@davemloft.net>
37386
37387         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37388         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37389         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37390         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37395         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37396         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37397         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37398         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37399         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37400         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37401         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37403         file.
37404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37406         file.
37407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37409         file.
37410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37412         file.
37413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37414         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37415         fmin/fmax sysdep routines.
37416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37417
37418 2012-03-14  David S. Miller  <davem@davemloft.net>
37419
37420         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37421         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37422         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37423         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37424         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37425         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37426         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37427         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37428         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37429         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37430         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37431         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37432         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37433         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37434         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37435         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37436         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37437         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37438         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37439         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37440         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37441         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37442         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37443         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37444         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37445         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37446         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37447         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37448         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37449         routines.
37450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37451         file.
37452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37454         file.
37455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37457         file.
37458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37460         file.
37461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37463         file.
37464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37466         file.
37467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37468         file.
37469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37470         file.
37471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37472         file.
37473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37474         New file.
37475         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37476         file.
37477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37478         file.
37479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37481         file.
37482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37484         file.
37485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37487         file.
37488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37490         VIS3 routines.
37491
37492         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37493         New file.
37494
37495         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37496
37497         * sysdeps/sparc/configure.in: New file.
37498         * sysdeps/sparc/configure: Generate.
37499         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37500         * configure: Regenerate.
37501         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37502         * config.make.in (have-as-vis3): New.
37503         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37504         available use -Av9d instead of -Av9a.
37505         * sysdeps/sparc/sparc64/Makefile: Likewise.
37506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37508         New file.
37509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37510         file.
37511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37512         New file.
37513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37514         file.
37515         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37516         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37517         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37518         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37519         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37520
37521         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37522         fzeros/fnegs to load 0x80000000 into a float register instead of
37523         using the stack.
37524         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37525
37526 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37527
37528         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37529         bits/syscall.h.
37530         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37531         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37532         ($(inst_includedir)/bits/syscall.h): Remove rule.
37533         ($(objpfx)bits/syscall.d): Include instead of
37534         $(objpfx)syscall-list.d.
37535         (generated): Change syscall-list.h and syscall-list.d to
37536         bits/syscall.h and bits/syscall.d.
37537
37538 2012-03-14  Roland McGrath  <roland@hack.frob.com>
37539
37540         [BZ #13846]
37541         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
37542
37543 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37544
37545         [BZ #13841]
37546         * math/s_csqrt.c: Include <float.h>.
37547         (__csqrt): Scale large or subnormal inputs.
37548         * math/s_csqrtf.c: Likewise.
37549         * math/s_csqrtl.c: Likewise.
37550         * math/libm-test.inc (csqrt_test): Add more tests.
37551         * sysdeps/i386/fpu/libm-test-ulps: Update.
37552         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37553
37554         [BZ #13840]
37555         * math/libm-test.inc (hypot_test): Add more tests.
37556
37557 2012-03-13  David S. Miller  <davem@davemloft.net>
37558
37559         [BZ #13840]
37560         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
37561         double-precision for the calculation instead of scaling.
37562
37563 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
37564
37565         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
37566         manipulate bits before adding and subtracting TWO52[sx].
37567         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
37568         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
37569         Likewise.
37570         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
37571
37572 2012-03-13  David S. Miller  <davem@davemloft.net>
37573
37574         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37575         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37576         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37577         rtld-global-offsets.h
37578         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37579
37580         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37581         large parameters.
37582
37583         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37584
37585         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37586         'err' in the ifdef scope in which it is actually used.
37587
37588         * nss/nss_db/db-init.c: Include string.h
37589
37590 2012-03-12  David S. Miller  <davem@davemloft.net>
37591
37592         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37593         masking out of the most significant byte of random value used.
37594         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37595         Fix coding style in previous change.
37596
37597         * sysdeps/unix/sysv/linux/kernel-features.h
37598         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37599         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37600         expression.
37601         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37602         later.
37603
37604 2012-03-11  David S. Miller  <davem@davemloft.net>
37605
37606         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37607         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37608         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37609         for 'resultvar' otherwise things get truncated on 64-bit.
37610
37611         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37612         Fix masking out of the most significant byte of random value used.
37613
37614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37615
37616 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37617
37618         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37619
37620 2012-03-09  David S. Miller  <davem@davemloft.net>
37621
37622         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37623         variables with appropriate CPP guards.
37624         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37625         from the frame pointer, not the stack pointer.  Correct layout
37626         comments.  Fix test on resulting framesize and the management of
37627         the outregs buffer for pltexit.  Preserve floating point return
37628         values across _dl_call_pltexit call.
37629         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37630         framesize and the management of the outregs buffer for pltexit.
37631         Preserve floating point return values across _dl_call_pltexit
37632         call.
37633         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37634         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37635         (la_sparc64_gnu_pltexit): New functions.
37636         (print_exit): Fix format string for return register value.
37637
37638 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37639
37640         * sunrpc/Makefile (others): Add rpcgen.
37641         ($(objpfx)rpcgen): Remove special build rule and dependency on
37642         libc.
37643         * sunrpc/rpcgen.c: New file.
37644
37645 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37646
37647         [BZ #13673]
37648         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37649         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37650         * sysdeps/i386/crti.S: Likewise.
37651         * sysdeps/i386/crtn.S: Likewise.
37652         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37653         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37654         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37655         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37656         * sysdeps/sh/crti.S: Likewise.
37657         * sysdeps/sh/crtn.S: Likewise.
37658         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37659
37660         [BZ #13673]
37661         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37662         with URL.
37663         * locale/programs/locfile-kw.gperf: Likewise.
37664         * locale/programs/charmap-kw.h: Regenerated.
37665         * locale/programs/locfile-kw.h: Likewise.
37666
37667         [BZ #13673]
37668         * intl/plural.y: Replace FSF snail mail address with URL.
37669         * intl/plural.c: Regenerated.
37670
37671 2012-03-09  Richard Henderson  <rth@twiddle.net>
37672
37673         * include/math_private.h: Remove file.
37674         * math/math_private.h: Move file ...
37675         * sysdeps/generic/math_private.h: ... here.
37676
37677         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37678         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37679         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37680
37681         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37682         and <math_private.h>.
37683         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37684         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37685         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37686         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37687         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37688         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37689         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37690         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37691         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37692         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37693         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37694         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37695         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37696         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37697         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37698         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37699         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37700         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37701         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37702         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37703         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37704         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37705         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37706         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37707         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37708         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37709         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37710         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37711         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37712         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37713         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37714         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37715         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37716         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37717         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37718         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37719         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37720         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37721         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37722         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37723         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37724         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37725         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37726         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37727         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37728         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37729         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37730         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37731         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37732         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37733         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37734         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37735         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37736         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37737         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37738         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37739         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37740         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37741         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37742         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37743         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37744         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37745         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37746         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37747         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37748         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37749         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37750         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37751         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37752         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37753         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37754         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37755         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37756         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37757         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37758         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37759         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37760         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37761         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37762         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37763         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37764         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37765         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37766         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37767         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37768         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37769         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37770         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37771         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37772         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37773         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37774         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37775         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37776         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37777         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37778         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37779         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37780         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37781         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37782         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37783         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37784         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37785         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37786         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37787         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37788         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37789         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37790         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37791         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37792         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37793         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37794         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37795         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37796         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37797         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37798         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37799         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37800         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37801         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37802         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37803         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37804         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37805         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37806         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37807         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37808         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37809         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37810         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37811         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37812         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37813         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37814         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37815         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37816         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37817         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37818         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37819         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37820         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37821         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37822         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37823         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37824         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37825         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37826         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37827         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37828         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37829         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37830         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37831         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37832         * sysdeps/ieee754/k_standard.c: Likewise.
37833         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37834         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37835         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37836         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37837         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37838         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37839         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37840         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37841         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37842         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37843         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37844         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37845         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37846         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37847         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37848         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37849         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37850         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37851         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37852         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37853         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37854         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37855         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37856         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37857         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37858         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37859         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37860         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37861         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37862         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37863         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37864         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37865         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37866         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37867         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37868         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37869         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37870         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37871         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37872         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37873         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37874         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37875         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37876         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37877         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37878         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37879         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37880         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37881         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37882         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37883         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37884         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37885         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37886         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37887         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37888         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37889         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37890         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37891         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37892         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37893         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37894         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37895         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37896         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37897         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37898         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37899         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37900         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37901         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37902         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37903         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37904         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37905         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37906         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37907         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37908         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37909         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37910         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37911         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37912         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37913         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37914         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37915         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37916         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37917         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37918         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37919         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37920         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37921         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37922         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37923         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37924         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37925         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37926         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37927         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37928         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37929         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37930         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37931         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37932         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37933         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37934         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37935         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37936         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37937         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37938         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37939         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37940         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37941         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37942         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37943         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37944         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37945         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37946         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37947         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37948         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37949         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37950         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37951         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37952         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37953         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37954         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37955         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37956         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37957         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37958         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37959         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37960         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37961         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37962         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37963         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37964         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37965         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37966         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37967         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37968         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37969         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37970         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37971         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37972         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37973         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37974         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37975         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37976         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37977         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37978         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37979         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37980         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37981         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37982         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37983         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37984         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37985         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37986         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37987         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37988         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37989         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37990         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37991         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37992         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37993         * sysdeps/ieee754/s_lib_version.c: Likewise.
37994         * sysdeps/ieee754/s_matherr.c: Likewise.
37995         * sysdeps/ieee754/s_signgam.c: Likewise.
37996         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37997         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37998         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37999         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
38000         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
38001         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
38002         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
38003         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
38004         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
38005         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
38006         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
38007         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
38008         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
38009         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
38010         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
38011         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
38012         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
38013         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
38014         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
38015         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
38016         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
38017
38018 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
38019
38020         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
38021         * sunrpc/rpc_main.c: Likewise.
38022         * sunrpc/rpc_svcout.c: Likewise.
38023
38024 2012-03-09  David S. Miller  <davem@davemloft.net>
38025
38026         * include/math_private.h: New file.
38027
38028 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
38029
38030         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
38031         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
38032         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
38033         from <bits/socket_type.h>.
38034         (enum __socket_type): Don't define here.
38035         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
38036         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38037         bits/socket_type.h.
38038
38039         [BZ #13566]
38040         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
38041         checking __USE_GNU.
38042
38043         * Makerules ($(inst_includedir)/%.h): New rule.
38044         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
38045         (install-others): Remove variable setting.
38046         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
38047
38048 2012-03-08  Richard Henderson  <rth@twiddle.net>
38049
38050         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
38051         from macro to inline function; merge with the
38052         !__LIBC_INTERNAL_MATH_INLINES version.
38053         (__ieee754_sqrtf): Likewise.
38054
38055         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
38056         to inline function.
38057         (__rintf, __floor, __floorf): Likewise.
38058
38059         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
38060         macro to inline function.
38061         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
38062
38063         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
38064         not <math/math_private.h>.
38065
38066 2012-03-08  David S. Miller  <davem@davemloft.net>
38067
38068         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
38069         copyright year.
38070         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
38071
38072 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
38073
38074         * resolv/gai_misc.c (handle_requests): Fix struct timespec
38075         normalization.
38076         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
38077         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
38078
38079 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
38080
38081         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
38082         be defined individually, they must be defined as a block.  Define
38083         S for printing a string instead of hidint the different by using a
38084         macro for adding the 'l'.
38085         * stdio-common/tst-fphex-wide.c: Adjust.
38086
38087 2012-03-07  Marek Polacek  <polacek@redhat.com>
38088
38089         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
38090
38091 2012-03-08  Marek Polacek  <polacek@redhat.com>
38092
38093         [BZ #13806]
38094         * stdio-common/Makefile (tests): Add tst-fphex-wide.
38095         * stdio-common/tst-fphex.c: Define a few macros to make the
38096         test reusable.  Use them.
38097         * stdio-common/tst-fphex-wide.c: New file.
38098
38099 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
38100
38101         [BZ #6911]
38102         * manual/macros.texi (gnusystems): New macro.
38103         (nongnusystems): Likewise.
38104         (gnulinuxhurdsystems): Likewise.
38105         (gnuhurdsystems): Likewise..
38106         (gnulinuxsystems): Likewise.
38107         * manual/charset.texi: Use new macros or @theglibc{} to refer to
38108         variants of the GNU system, not "GNU system".
38109         * manual/conf.texi: Likewise.
38110         * manual/errno.texi: Likewise.  Update example of errno macro
38111         expansion.
38112         * manual/filesys.texi: Likewise.
38113         (getumask): Document as specific to GNU/Hurd.
38114         * manual/install.texi: Likewise.  Reword some references to
38115         GNU/Linux.
38116         * manual/intro.texi: Likewise.
38117         * manual/io.texi: Likewise.
38118         (File Name Portability): Detail which constraints are inapplicable
38119         to all GNU systems and which are only inapplicable to GNU/Hurd.
38120         * manual/job.texi: Likewise.
38121         * manual/llio.texi: Likewise.
38122         (O_NOCTTY): Document as present on GNU/Linux.
38123         * manual/maint.texi: Likewise.
38124         * manual/memory.texi: Likewise.
38125         * manual/pattern.texi: Likewise.
38126         * manual/pipe.texi: Likewise.
38127         * manual/process.texi: Likewise.
38128         * manual/resource.texi: Likewise.
38129         (RUSAGE_CHILDREN): Remove statement about specifying a particular
38130         child on GNU/Hurd.
38131         * manual/setjmp.texi: Likewise.
38132         * manual/signal.texi: Likewise.
38133         * manual/startup.texi: Likewise.
38134         * manual/stdio.texi: Likewise.
38135         * manual/terminal.texi: Likewise.
38136         (ONLCR): Document as POSIX.
38137         (OXTABS): Document availability on GNU/Linux as XTABS.
38138         (ONOEOT): Document availability separately from other bits.
38139         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
38140         * manual/time.texi: Likewise.
38141         * manual/users.texi: Likewise.
38142         * INSTALL: Regenerated.
38143         * sysdeps/gnu/errlist.c: Regenerated.
38144
38145         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
38146         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
38147         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
38148         puts.
38149         * configure: Regenerated.
38150
38151 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
38152
38153         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
38154         default includes instead of AC_HEADER_CHECK.
38155         * sysdeps/i386/configure: Regenerated.
38156
38157         [BZ #10716]
38158         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
38159         * math/s_cacoshf.c (__cacoshf): Likewise.
38160         * math/s_cacoshl.c (__cacoshl): Likewise.
38161         * math/s_casinh.c (__casinh): Set signs of result from argument.
38162         * math/s_casinhf.c (__casinhf): Likewise.
38163         * math/s_casinhl.c (__casinhl): Likewise.
38164         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
38165         (casinh_test): Add more tests.
38166         * sysdeps/i386/fpu/libm-test-ulps: Update.
38167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38168
38169 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
38170
38171         * po/zh_TW.po: Update from translation team.
38172
38173         * login/Makefile (distribute): Remove variable.
38174         * catgets/Makefile: Likewise.
38175         * mach/Makefile: Likewise.
38176         * malloc/Makefile: Likewise.
38177         * misc/Makefile: Likewise.
38178         * iconv/Makefile: Likewise.
38179         * nscd/Makefile: Likewise.
38180         * hurd/Makefile: Likewise.
38181         * manual/Makefile: Likewise.
38182         * locale/Makefile: Likewise.
38183         * intl/Makefile: Likewise.
38184         * conform/Makefile: Likewise.
38185         * nss/Makefile: Likewise.
38186         * time/Makefile: Likewise.
38187         * soft-fp/Makefile: Likewise.
38188         * dirent/Makefile: Likewise.
38189         * gmon/Makefile: Likewise.
38190         * po/Makefile: Likewise.
38191         * rt/Makefile: Likewise.
38192         * socket/Makefile: Likewise.
38193         * math/Makefile: Likewise.
38194         * signal/Makefile: Likewise.
38195         * debug/Makefile: Likewise.
38196         * elf/Makefile: Likewise.
38197         * timezone/Makefile: Likewise.
38198         * stdlib/Makefile: Likewise.
38199         * iconvdata/Makefile: Likewise.
38200         * sunrpc/Makefile: Likewise.
38201         * io/Makefile: Likewise.
38202         * argp/Makefile: Likewise.
38203         * inet/Makefile: Likewise.
38204         * hesiod/Makefile: Likewise.
38205         * grp/Makefile: Likewise.
38206         * csu/Makefile: Likewise.
38207         * wctype/Makefile: Likewise.
38208         * crypt/Makefile: Likewise.
38209         * libio/Makefile: Likewise.
38210         * string/Makefile: Likewise.
38211         * nis/Makefile: Likewise.
38212         * resolv/Makefile: Likewise.
38213         * stdio-common/Makefile: Likewise.
38214         * wcsmbs/Makefile: Likewise.
38215         * dlfcn/Makefile: Likewise.
38216         * posix/Makefile: Likewise.
38217
38218         [BZ #6959]
38219         * timezone/Makefile: Don't install timezone files, just the programs
38220         and scripts.
38221
38222 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38223
38224         * nss/databases.def: Add missing gshadow entry.
38225
38226         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38227
38228 2012-03-06  Marek Polacek  <polacek@redhat.com>
38229
38230         [BZ #13726]
38231         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38232         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38233         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38234         * stdio-common/tst-long-dbl-fphex.c: New file.
38235
38236 2012-03-06  David S. Miller  <davem@davemloft.net>
38237
38238         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38239         (set_obp_int): New function.
38240         (get_obp_int): New function.
38241         (__get_clockfreq_via_dev_openprom): Likewise.
38242         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38243         Avoid unused variable warnings on 'val' and use builtin_expect.
38244         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38245         __builtin_expect.
38246         (INLINE_CLONE_SYSCALL): Likewise.
38247
38248 2012-03-05  David S. Miller  <davem@davemloft.net>
38249
38250         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38251
38252 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38253
38254         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38255
38256         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38257         only for |x| >= 40.
38258         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38259
38260 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38261
38262         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38263         Replace gettimeofday with __vdso_gettimeofday.
38264
38265         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38266         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38267         __vdso_clock_gettime and __vdso_getcpu.
38268
38269         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38270         time with __vdso_time.
38271
38272 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38273
38274         * manual/lang.texi (size_t): Note types to which size_t may be
38275         equivalent with the GNU C Library, but do not describe when
38276         differences between them are significant.
38277
38278 2012-03-05  Andreas Jaeger  <aj@suse.de>
38279
38280         * sysdeps/i386/fpu/libm-test-ulps: Update.
38281
38282 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38283
38284         [BZ #3976]
38285         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38286         (__ieee754_pow): Save and restore rounding mode and use
38287         round-to-nearest for main computations.
38288         * math/libm-test.inc (pow_test_tonearest): New function.
38289         (pow_test_towardzero): Likewise.
38290         (pow_test_downward): Likewise.
38291         (pow_test_upward): Likewise.
38292         (main): Call the new functions.
38293         * sysdeps/i386/fpu/libm-test-ulps: Update.
38294         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38295
38296         [BZ #3976]
38297         * math/libm-test.inc (cosh_test_tonearest): New function.
38298         (cosh_test_towardzero): Likewise.
38299         (cosh_test_downward): Likewise.
38300         (cosh_test_upward): Likewise.
38301         (sinh_test_tonearest): Likewise.
38302         (sinh_test_towardzero): Likewise.
38303         (sinh_test_downward): Likewise.
38304         (sinh_test_upward): Likewise.
38305         (main): Call the new functions.
38306         * sysdeps/i386/fpu/libm-test-ulps: Update.
38307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38308
38309 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38310
38311         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38312         default stack guard is set in last bytes.
38313         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38314
38315 2012-03-05  Kees Cook  <keescook@chromium.org>
38316
38317         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38318
38319         [BZ #13656]
38320         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38321         possibly allocate from heap instead of stack.
38322         * stdio-common/bug-vfprintf-nargs.c: New file.
38323         * stdio-common/Makefile (tests): Add nargs overflow test.
38324
38325 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38326
38327         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38328
38329 2012-03-03  Marek Polacek  <polacek@redhat.com>
38330
38331         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38332         * math/math_private.h: Likewise.
38333         * stdlib/tst-strtod.c: Likewise.
38334         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38335         * sysdeps/x86_64/bits/atomic.h: Likewise.
38336
38337 2012-03-02  David S. Miller  <davem@davemloft.net>
38338
38339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38343         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38344         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38345         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38346         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38347
38348 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38349
38350         [BZ #13792]
38351         * manual/examples/README: New file, says the example source files
38352         can be used under GPL>=2.
38353         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38354         line containing just "*/".
38355         * manual/examples/add.c: Add copyright header (GPL>=2).
38356         * manual/examples/argp-ex1.c: Likewise.
38357         * manual/examples/argp-ex2.c: Likewise.
38358         * manual/examples/argp-ex3.c: Likewise.
38359         * manual/examples/argp-ex4.c: Likewise.
38360         * manual/examples/atexit.c: Likewise.
38361         * manual/examples/db.c: Likewise.
38362         * manual/examples/dir.c: Likewise.
38363         * manual/examples/dir2.c: Likewise.
38364         * manual/examples/execinfo.c: Likewise.
38365         * manual/examples/filecli.c: Likewise.
38366         * manual/examples/filesrv.c: Likewise.
38367         * manual/examples/fmtmsgexpl.c: Likewise.
38368         * manual/examples/genpass.c: Likewise.
38369         * manual/examples/inetcli.c: Likewise.
38370         * manual/examples/inetsrv.c: Likewise.
38371         * manual/examples/isockad.c: Likewise.
38372         * manual/examples/longopt.c: Likewise.
38373         * manual/examples/memopen.c: Likewise.
38374         * manual/examples/memstrm.c: Likewise.
38375         * manual/examples/mkfsock.c: Likewise.
38376         * manual/examples/mkisock.c: Likewise.
38377         * manual/examples/mygetpass.c: Likewise.
38378         * manual/examples/pipe.c: Likewise.
38379         * manual/examples/popen.c: Likewise.
38380         * manual/examples/rprintf.c: Likewise.
38381         * manual/examples/search.c: Likewise.
38382         * manual/examples/select.c: Likewise.
38383         * manual/examples/setjmp.c: Likewise.
38384         * manual/examples/sigh1.c: Likewise.
38385         * manual/examples/sigusr.c: Likewise.
38386         * manual/examples/stpcpy.c: Likewise.
38387         * manual/examples/strdupa.c: Likewise.
38388         * manual/examples/strftim.c: Likewise.
38389         * manual/examples/strncat.c: Likewise.
38390         * manual/examples/subopt.c: Likewise.
38391         * manual/examples/swapcontext.c: Likewise.
38392         * manual/examples/termios.c: Likewise.
38393         * manual/examples/testopt.c: Likewise.
38394         * manual/examples/testpass.c: Likewise.
38395         * manual/examples/timeval_subtract.c: Likewise.
38396
38397         [BZ #13792]
38398         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38399         function to ...
38400         * manual/timeval_subtract.c.texi: ... here, new file.
38401
38402 2012-03-02  David S. Miller  <davem@davemloft.net>
38403
38404         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38405
38406 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38407
38408         [BZ #3976]
38409         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38410         (__sin): Save and restore rounding mode and use round-to-nearest
38411         for all computations.
38412         (__cos): Save and restore rounding mode and use round-to-nearest
38413         for all computations.
38414         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38415         <fenv.h>.
38416         (tan): Save and restore rounding mode and use round-to-nearest for
38417         all computations.
38418         * math/libm-test.inc (cos_test_tonearest): New function.
38419         (cos_test_towardzero): Likewise.
38420         (cos_test_downward): Likewise.
38421         (cos_test_upward): Likewise.
38422         (sin_test_tonearest): Likewise.
38423         (sin_test_towardzero): Likewise.
38424         (sin_test_downward): Likewise.
38425         (sin_test_upward): Likewise.
38426         (tan_test_tonearest): Likewise.
38427         (tan_test_towardzero): Likewise.
38428         (tan_test_downward): Likewise.
38429         (tan_test_upward): Likewise.
38430         (main): Call the new functions.
38431         * sysdeps/i386/fpu/libm-test-ulps: Update.
38432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38433
38434         [BZ #10135]
38435         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38436         small n, then large n, before computing and testing k+n.
38437         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38438         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38439         Likewise.
38440         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38441         Likewise.
38442         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38443         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38444         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38445         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38446         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38447         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38448         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38449         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38450         * math/libm-test.inc (scalbn_test): Add more tests.
38451         (scalbln_test): Likewise.
38452
38453         * manual/filesys.texi (mode_t): Describe constraints on size and
38454         signedness, not exact equivalence to a particular type.
38455         (ino_t): Likewise.
38456         (ino64_t): Likewise.
38457         (dev_t): Likewise.
38458         (nlink_t): Likewise.
38459         (blkcnt_t): Likewise.
38460         (blkcnt64_t): Likewise.
38461         * manual/llio.texi (off_t): Likewise.
38462
38463         [BZ #3976]
38464         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38465         (__ieee754_exp): Save and restore rounding mode and use
38466         round-to-nearest for all computations.
38467         * math/libm-test.inc (exp_test_tonearest): New function.
38468         (exp_test_towardzero): Likewise.
38469         (exp_test_downward): Likewise.
38470         (exp_test_upward): Likewise.
38471         (main): Call the new functions.
38472         * sysdeps/i386/fpu/libm-test-ulps: Update.
38473         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38474
38475 2012-03-01  Chris Demetriou  <cgd@google.com>
38476
38477         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38478         have predictable order.
38479
38480 2012-03-01  David S. Miller  <davem@davemloft.net>
38481
38482         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38483
38484         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38485         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38486         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38487         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38488
38489         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38490         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38491         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38492         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38493         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38494         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38495         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38496         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38497         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38498
38499         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38500
38501         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38502         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38503         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38504
38505         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38506         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38507         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38508         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38509         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38510         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38511         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38512         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38513         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38514         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38515         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38516         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38517         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38518         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38519         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38520         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38521         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38522         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38523         * sysdeps/sparc/elf/configure: Regenerated.
38524
38525 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38526
38527         * configure.in (AS, LD): Require binutils 2.20 or later.
38528         * configure: Regenerated.
38529         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38530         as required minimum version.
38531         * INSTALL: Regenerated.
38532
38533         [BZ #2541]
38534         [BZ #4108]
38535         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
38536         before squaring exponent.
38537         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
38538         bottom long double and 27 bits of top long double before squaring
38539         exponent.
38540         * math/libm-test.inc (erfc_test): Add more tests.
38541         * sysdeps/i386/fpu/libm-test-ulps: Update.
38542         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38543         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38544
38545 2012-03-01  Kai Tietz  <ktietz@redhat.com>
38546
38547         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
38548         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
38549         containing bit-fields.
38550         * soft-fp/extended.h (_FP_UNION_E): Likewise.
38551         * soft-fp/single.h (_FP_UNION_S): Likewise.
38552         * soft-fp/double.h (_FP_UNION_D): Likewise.
38553
38554 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38555
38556         [BZ #13786]
38557         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
38558         not include ../strcmp.S.
38559         [USE_AS_STRNCASECMP_L]: Likewise.
38560         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
38561         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
38562         * sysdeps/i386/i686/multiarch/strncase_l-c.c
38563         (__strncasecmp_l_ia32): Define as alias to
38564         __strncasecmp_l_nonascii.
38565
38566         [BZ #5794]
38567         * math/libm-test.inc (expm1_test): Add test for bug 5794.
38568         * sysdeps/i386/fpu/libm-test-ulps: Update.
38569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38570
38571         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
38572         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38573
38574 2012-02-29  Jeff Law  <law@redhat.com>
38575
38576         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38577         out of bounds read.
38578
38579 2012-02-29  Marek Polacek  <polacek@redhat.com>
38580
38581         [BZ #13706]
38582         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38583         * elf/Makefile: Add rules to run tst-unused-dep.out.
38584
38585 2012-02-28  David S. Miller  <davem@davemloft.net>
38586
38587         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38588         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38589         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38590         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38591         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38592         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38593
38594 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38595
38596         * math/libm-test.inc (llround_test): Move one test from
38597         lround_test.  Use TEST_f_L in moved test.
38598         (lround_test): Move misplaced test to llround_test.  Add testcase
38599         from bug 2561.
38600
38601 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38602
38603         * sysdeps/x86_64/fpu/e_expf.S: New file.
38604         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38605
38606 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38607
38608         [BZ #13637]
38609         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38610         of remain_len that may cause incomplete multi-byte character and
38611         false match.
38612         * posix/bug-regex33.c: New file.
38613         * posix/Makefile (tests): Add bug-regex33.
38614
38615 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38616
38617         * manual/macros.texi: New file.
38618         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38619         * manual/libc.texinfo: Include macros.texi.
38620         * manual/creatute.texi: Likewise.
38621         * manual/install.texi: Likewise.
38622         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38623         @glibcadj{} in references to the GNU C Library.
38624         * manual/charset.texi: Likewise.
38625         * manual/conf.texi: Likewise.
38626         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38627         when not using those macros.
38628         * manual/creature.texi: Likewise.
38629         * manual/crypt.texi: Likewise.
38630         * manual/errno.texi: Likewise.
38631         * manual/filesys.texi: Likewise.
38632         * manual/header.texi: Likewise.
38633         * manual/install.texi: Likewise.
38634         * manual/intro.texi: Likewise.
38635         * manual/io.texi: Likewise.
38636         * manual/job.texi: Likewise.
38637         * manual/lang.texi: Likewise.
38638         * manual/libc.texiinfo: Likewise.
38639         * manual/llio.texi: Likewise.
38640         * manual/locale.texi: Likewise.
38641         * manual/maint.texi: Likewise.
38642         * manual/math.texi: Likewise.
38643         * manual/memory.texi: Likewise.
38644         * manual/message.texi: Likewise.
38645         * manual/nss.texi: Likewise.
38646         * manual/pattern.texi: Likewise.
38647         * manual/process.texi: Likewise.
38648         * manual/resource.texi: Likewise.
38649         * manual/search.texi: Likewise.
38650         * manual/setjmp.texi: Likewise.
38651         * manual/signal.texi: Likewise.
38652         * manual/socket.texi: Likewise.
38653         * manual/startup.texi: Likewise.
38654         * manual/stdio.texi: Likewise.
38655         * manual/string.texi: Likewise.
38656         * manual/sysinfo.texi: Likewise.
38657         * manual/syslog.texi: Likewise.
38658         * manual/terminal.texi: Likewise.
38659         * manual/time.texi: Likewise.
38660         * manual/users.texi: Likewise.
38661         * INSTALL: Regenerated.
38662         * NOTES: Regenerated.
38663         * sysdeps/gnu/errlist.c: Regenerated.
38664
38665 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38666
38667         * include/dirent.h: Include <dirstream.h> before
38668         <dirent/dirent.h>.
38669
38670 2012-02-28  David S. Miller  <davem@davemloft.net>
38671
38672         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38673         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38674         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38675         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38676
38677 2012-02-27  David S. Miller  <davem@davemloft.net>
38678
38679         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38680         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38681         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38682         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38683
38684         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38685         frame pointer instead of stack pointer relative arg slot.
38686         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38687         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38688         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38689
38690 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38691
38692         [BZ #3992]
38693         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38694
38695 2012-02-27  David S. Miller  <davem@davemloft.net>
38696
38697         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38698         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38699         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38701         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38702         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38703         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38704         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38705
38706 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38707
38708         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38709         later.  Allow versions 5-9.
38710         * configure: Regenerated.
38711         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38712         required minimum version and 4.6 as recommended version.  Do not
38713         mention bugs in GCC 2.7 and 2.8.
38714         * INSTALL: Regenerated.
38715
38716 2012-02-27  David S. Miller  <davem@davemloft.net>
38717
38718         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38719         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38720         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38721         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38722         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38723         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38724         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38725         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38726
38727         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38728         manipulate bits before adding and subtracting TWO112[sx].
38729         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38730
38731 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38732
38733         [BZ #13775]
38734         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38735         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38736         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38737         being in POSIX, because they are in 1003.1-2008.
38738
38739         * rt/tst-aio.c: Include <fcntl.h>.
38740         * rt/tst-aio7.c: Likewise.
38741         * rt/tst-aio64.c: Likewise.
38742
38743         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38744
38745 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38746
38747         * manual/install.texi (--with-headers): Describe headers as
38748         interface headers, not private headers.
38749         (Specific advice for GNU/Linux systems): Describe use of headers
38750         from "make headers_install", not private headers from older
38751         kernels.
38752         * INSTALL: Regenerated.
38753         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38754         Change to 2.6.19.
38755         * sysdeps/unix/sysv/linux/configure: Regenerated.
38756
38757         * manual/llio.texi (fclean): Remove documentation.
38758
38759         * manual/Makefile (libc-texi-generated): New variable.  Include
38760         version.texi.
38761         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38762         $(libc-texi-generated), not duplicated list of files.
38763         (version.texi, stamp-version): New rules.
38764         (realclean): Remove $(libc-texi-generated), not individual files
38765         from that list.  Do not remove dir-add.texinfo.
38766         * manual/libc.texinfo: Comment out uses of edition numbers and
38767         references to printed manual.  Remove last-updated dates.
38768         (EDITION): Comment out.
38769         (ISBN): Likewise.
38770         (VERSION, UPDATED): Remove.
38771         (version.texi): Include.
38772
38773 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38774
38775         * sysdeps/posix/spawni.c: Include <signal.h>.
38776         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38777         * sysdeps/pthread/aio_fsync.c: Likewise.
38778
38779 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38780
38781         * conform/Makefile (tests): Run only when not cross-compiling and
38782         when fast-check is not defined.
38783
38784         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38785         * conform/data/limits.h-data: Fixes for POSIX2008.
38786         * conform/run-conformtest.sh: Run all tests.
38787         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38788         headers.
38789         * include/bits/dlfcn.h: Likewise.
38790         * include/langinfo.h: Likewise.
38791         * include/monetary.h: Likewise.
38792         * include/sys/poll.h: Likewise.
38793
38794         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38795         for __USE_GNU.
38796         * posix/spawn.h: Define __need_sigset_t.
38797         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38798         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38799         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38800         to get sigevent_t only.
38801         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38802         only for __USE_GNU.
38803         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38804         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38805         process_vm_writev only for __USE_GNU.
38806         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38807
38808         * conform/Makefile: For now ignore errors from run-conformtest.
38809         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38810         POSIX to avoid namespace pollution.  Don't prepend headers.
38811         * conform/data/aio.h-data: Fixes for POSIX testing.
38812         * conform/data/fcntl.h-data: Likewise.
38813         * conform/data/glob.h-data: Likewise.
38814         * conform/data/grp.h-data: Likewise.
38815         * conform/data/pthread.h-data: Likewise.
38816         * conform/data/pwd.h-data: Likewise.
38817         * conform/data/signal.h-data: Likewise.
38818         * conform/data/spawn.h-data: Likewise.
38819         * conform/data/stdio.h-data: Likewise.
38820         * conform/data/stdlib.h-data: Likewise.
38821         * conform/data/stropts.h-data: Likewise.
38822         * conform/data/sys/mman.h-data: Likewise.
38823         * conform/data/sys/stat.h-data: Likewise.
38824         * conform/data/sys/types.h-data: Likewise.
38825         * conform/data/sys/wait.h-data: Likewise.
38826         * conform/data/time.h-data: Likewise.
38827         * conform/data/unistd.h-data: Likewise.
38828         * conform/data/utime.h-data: Likewise.
38829
38830         * io/sys/stat.h: fchmod was always in POSIX.
38831         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38832         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38833         * rt/aio.h: Define __need_timespec before including <time.h>.
38834         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38835         struct.  Add forward declaration of pthread_attr_t and use it in
38836         sigevent.
38837         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38838         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38839         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38840         always remove CLK_TCK definition.
38841
38842 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38843
38844         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38845
38846 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38847
38848         * conform/run-conformtest.sh: New file.
38849         * conform/Makefile: Run run-conformtest for tests.
38850         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38851         support.
38852
38853         * conform/data/uchar.h-data: New file.
38854         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38855         * conform/data/arpa/inet.h-data: Likewise.
38856         * conform/data/assert.h-data: Likewise.
38857         * conform/data/complex.h-data: Likewise.
38858         * conform/data/cpio.h-data: Likewise.
38859         * conform/data/ctype.h-data: Likewise.
38860         * conform/data/dirent.h-data: Likewise.
38861         * conform/data/dlfcn.h-data: Likewise.
38862         * conform/data/errno.h-data: Likewise.
38863         * conform/data/fcntl.h-data: Likewise.
38864         * conform/data/float.h-data: Likewise.
38865         * conform/data/fmtmsg.h-data: Likewise.
38866         * conform/data/fnmatch.h-data: Likewise.
38867         * conform/data/ftw.h-data: Likewise.
38868         * conform/data/glob.h-data: Likewise.
38869         * conform/data/grp.h-data: Likewise.
38870         * conform/data/iconv.h-data: Likewise.
38871         * conform/data/inttypes.h-data: Likewise.
38872         * conform/data/langinfo.h-data: Likewise.
38873         * conform/data/libgen.h-data: Likewise.
38874         * conform/data/limits.h-data: Likewise.
38875         * conform/data/locale.h-data: Likewise.
38876         * conform/data/math.h-data: Likewise.
38877         * conform/data/monetary.h-data: Likewise.
38878         * conform/data/mqueue.h-data: Likewise.
38879         * conform/data/ndbm.h-data: Likewise.
38880         * conform/data/net/if.h-data: Likewise.
38881         * conform/data/netdb.h-data: Likewise.
38882         * conform/data/netinet/in.h-data: Likewise.
38883         * conform/data/nl_types.h-data: Likewise.
38884         * conform/data/poll.h-data: Likewise.
38885         * conform/data/pthread.h-data: Likewise.
38886         * conform/data/pwd.h-data: Likewise.
38887         * conform/data/regex.h-data: Likewise.
38888         * conform/data/sched.h-data: Likewise.
38889         * conform/data/search.h-data: Likewise.
38890         * conform/data/semaphore.h-data: Likewise.
38891         * conform/data/setjmp.h-data: Likewise.
38892         * conform/data/signal.h-data: Likewise.
38893         * conform/data/spawn.h-data: Likewise.
38894         * conform/data/stdarg.h-data: Likewise.
38895         * conform/data/stdio.h-data: Likewise.
38896         * conform/data/stdlib.h-data: Likewise.
38897         * conform/data/string.h-data: Likewise.
38898         * conform/data/strings.h-data: Likewise.
38899         * conform/data/stropts.h-data: Likewise.
38900         * conform/data/sys/ipc.h-data: Likewise.
38901         * conform/data/sys/mman.h-data: Likewise.
38902         * conform/data/sys/msg.h-data: Likewise.
38903         * conform/data/sys/resource.h-data: Likewise.
38904         * conform/data/sys/select.h-data: Likewise.
38905         * conform/data/sys/sem.h-data: Likewise.
38906         * conform/data/sys/shm.h-data: Likewise.
38907         * conform/data/sys/socket.h-data: Likewise.
38908         * conform/data/sys/stat.h-data: Likewise.
38909         * conform/data/sys/statvfs.h-data: Likewise.
38910         * conform/data/sys/time.h-data: Likewise.
38911         * conform/data/sys/timeb.h-data: Likewise.
38912         * conform/data/sys/times.h-data: Likewise.
38913         * conform/data/sys/types.h-data: Likewise.
38914         * conform/data/sys/uio.h-data: Likewise.
38915         * conform/data/sys/un.h-data: Likewise.
38916         * conform/data/sys/utsname.h-data: Likewise.
38917         * conform/data/sys/wait.h-data: Likewise.
38918         * conform/data/syslog.h-data: Likewise.
38919         * conform/data/tar.h-data: Likewise.
38920         * conform/data/termios.h-data: Likewise.
38921         * conform/data/utime.h-data: Likewise.
38922         * conform/data/utmpx.h-data: Likewise.
38923         * conform/data/varargs.h-data: Likewise.
38924         * conform/data/wchar.h-data: Likewise.
38925         * conform/data/wctype.h-data: Likewise.
38926         * conform/data/wordexp.h-data: Likewise.
38927
38928         * include/stropts.h: New file.
38929         * include/uchar.h: New file.
38930         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38931         * include/assert.h: Likewise.
38932         * include/ctype.h: Likewise.
38933         * include/dirent.h: Likewise.
38934         * include/dlfcn.h: Likewise.
38935         * include/fcntl.h: Likewise.
38936         * include/fnmatch.h: Likewise.
38937         * include/glob.h: Likewise.
38938         * include/grp.h: Likewise.
38939         * include/libio.h: Likewise.
38940         * include/locale.h: Likewise.
38941         * include/math.h: Likewise.
38942         * include/net/if.h: Likewise.
38943         * include/netdb.h: Likewise.
38944         * include/netinet/in.h: Likewise.
38945         * include/pthread.h: Likewise.
38946         * include/pwd.h: Likewise.
38947         * include/regex.h: Likewise.
38948         * include/sched.h: Likewise.
38949         * include/search.h: Likewise.
38950         * include/setjmp.h: Likewise.
38951         * include/signal.h: Likewise.
38952         * include/stdio.h: Likewise.
38953         * include/stdlib.h: Likewise.
38954         * include/string.h: Likewise.
38955         * include/sys/cdefs.h: Likewise.
38956         * include/sys/mman.h: Likewise.
38957         * include/sys/msg.h: Likewise.
38958         * include/sys/resource.h: Likewise.
38959         * include/sys/select.h: Likewise.
38960         * include/sys/socket.h: Likewise.
38961         * include/sys/stat.h: Likewise.
38962         * include/sys/statvfs.h: Likewise.
38963         * include/sys/time.h: Likewise.
38964         * include/sys/times.h: Likewise.
38965         * include/sys/uio.h: Likewise.
38966         * include/sys/utsname.h: Likewise.
38967         * include/sys/wait.h: Likewise.
38968         * include/termios.h: Likewise.
38969         * include/time.h: Likewise.
38970         * include/ulimit.h: Likewise.
38971         * include/unistd.h: Likewise.
38972         * include/utime.h: Likewise.
38973         * include/wchar.h: Likewise.
38974         * include/wctype.h: Likewise.
38975         * include/wordexp.h: Likewise.
38976
38977         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38978
38979         * time/time.h: TIME_UTC must be a macro.
38980         Make timespec_get available for ISO C11 only as well.
38981
38982 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38983
38984         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38985         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38986
38987 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38988
38989         * configure.in: Use -o not -a in test for unsupported multi-arch.
38990
38991 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38992
38993         * manual/texinfo.tex: Update to version 2012-01-19.16.
38994
38995 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38996
38997         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38998
38999 2012-02-24  Roland McGrath  <roland@hack.frob.com>
39000
39001         [BZ #13738]
39002         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
39003         * manual/fdl-1.3.texi: New file.
39004         * manual/fdl-1.1.texi: File removed.
39005
39006         [BZ #13738]
39007         * manual/libc.texinfo (FDL_VERSION): New @set.
39008         Use it for mention of FDL in cover text.
39009         (Documentation License): Use it in @include file name.
39010
39011 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39012             Roland McGrath  <roland@hack.frob.com>
39013
39014         [BZ #5461]
39015         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
39016         (not LONG_LONG_MAX and LONG_LONG_MIN.
39017         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
39018         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
39019         name.
39020         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
39021
39022 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39023
39024         [BZ #2547]
39025         [BZ #11365]
39026         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
39027         manipulate bits before adding and subtracting TWO23[sx].
39028         * math/libm-test.inc (nearbyint_test): Add more tests.
39029
39030 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39031
39032         [BZ #2548]
39033         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
39034         bits before adding and subtracting TWO23[sx].
39035         * math/libm-test.inc (rint_test): Add more tests.
39036         (rint_test_tonearest): Likewise.
39037         (rint_test_towardzero): Likewise.
39038         (rint_test_downward): Likewise.
39039         (rint_test_upward: Likewise.
39040
39041 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39042
39043         [BZ #10110]
39044         * include/stdc-predef.h: New file.  Extracted from features.h.
39045         * include/features.h: Include stdc-predef.h.
39046         * Makefile (headers): Add stdc-predef.h.
39047         * CONFORMANCE (Compiler limitations): Update.
39048
39049 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39050
39051         * manual/libc.texinfo (VERSION, UPDATED): Revert.
39052
39053 2012-02-21  David S. Miller  <davem@davemloft.net>
39054
39055         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
39056         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39057
39058 2012-02-20  David S. Miller  <davem@davemloft.net>
39059
39060         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
39061         using a normal save/restore sequence, rather than allocating a
39062         dummy stack frame just to store a frame pointer and restore.
39063         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39064
39065 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39066
39067         * manual/install.texi: Fix stray word in line-wrapped comment.
39068
39069 2012-02-20  David S. Miller  <davem@davemloft.net>
39070
39071         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
39072         both binutils and gcc support GOTDATA.
39073
39074         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
39075         "rd %pc" in the PIC register setup sequences.
39076
39077         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
39078         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39079         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
39080         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39081         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
39082         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
39083         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
39084         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39085         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
39086         (SYSCALL_ERROR_HANDLER): Likewise.
39087         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
39088         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
39089         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
39090         (SYSCALL_ERROR_HANDLER): Likewise.
39091
39092         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
39093         (HAVE_GCC_GOTDATA): New.
39094         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
39095         relocation support in both binutils and gcc.
39096         * sysdeps/sparc/elf/configure: Regenerate.
39097
39098         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
39099         * sysdeps/sparc/sparc32/elf/configure: Delete.
39100         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
39101         * sysdeps/sparc/sparc64/elf/configure: Delete.
39102         * sysdeps/sparc/elf/configure.in: New file.
39103         * sysdeps/sparc/elf/configure: Generate.
39104
39105         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
39106         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
39107         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
39108         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
39109         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
39110
39111 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39112
39113         * manual/install.texi: Do not mention specific glibc version
39114         numbers.
39115         * manual/libc.texinfo (VERSION, UPDATED): Update.
39116         (@copying): Use @copyright{} and range of years.
39117
39118 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39119
39120         [BZ #13695]
39121         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
39122         [crti.S not in sysdirs] (generated): Do not append.
39123         [crti.S not in sysdirs] (omit-deps): Likewise.
39124         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
39125         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
39126         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
39127         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
39128         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
39129         Likewise.
39130         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
39131         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
39132         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
39133         * csu/defs.awk: Remove file.
39134         * sysdeps/generic/initfini.c: Likewise.
39135         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
39136         variable.
39137         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
39138         Likewise.
39139
39140 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39141
39142         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
39143         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
39144         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
39145         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
39146         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39147         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
39148         <bits/epoll.h>.
39149         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
39150         (__EPOLL_PACKED): Define to empty if not defined by
39151         <bits/epoll.h>.
39152         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
39153         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39154         bits/epoll.h.
39155
39156 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39157
39158         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
39159         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
39160         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
39161         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
39162         <bits/timerfd.h>.
39163         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
39164         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39165         bits/timerfd.h.
39166
39167 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39168
39169         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
39170         in C locale.
39171         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39172         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
39173         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
39174         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39175
39176 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
39177
39178         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39179         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39180
39181 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
39182
39183         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
39184         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
39185         defined.
39186         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
39187         Likewise.
39188         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
39189         entry for 2.16.
39190
39191 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39192
39193         * math/w_acos.c: Use non-signaling floating-point comparisons.
39194         * math/w_acosf.c: Likewise.
39195         * math/w_acosh.c: Likewise.
39196         * math/w_acoshf.c: Likewise.
39197         * math/w_acoshl.c: Likewise.
39198         * math/w_acosl.c: Likewise.
39199         * math/w_asin.c: Likewise.
39200         * math/w_asinf.c: Likewise.
39201         * math/w_asinl.c: Likewise.
39202         * math/w_atanh.c: Likewise.
39203         * math/w_atanhf.c: Likewise.
39204         * math/w_atanhl.c: Likewise.
39205         * math/w_exp2.c: Likewise.
39206         * math/w_exp2f.c: Likewise.
39207         * math/w_exp2l.c: Likewise.
39208         * math/w_j0.c: Likewise.
39209         * math/w_j0f.c: Likewise.
39210         * math/w_j0l.c: Likewise.
39211         * math/w_j1.c: Likewise.
39212         * math/w_j1f.c: Likewise.
39213         * math/w_j1l.c: Likewise.
39214         * math/w_jn.c: Likewise.
39215         * math/w_jnf.c: Likewise.
39216         * math/w_log.c: Likewise.
39217         * math/w_log10.c: Likewise.
39218         * math/w_log10f.c: Likewise.
39219         * math/w_log10l.c: Likewise.
39220         * math/w_log2.c: Likewise.
39221         * math/w_log2f.c: Likewise.
39222         * math/w_log2l.c: Likewise.
39223         * math/w_logf.c: Likewise.
39224         * math/w_logl.c: Likewise.
39225         * math/w_sqrt.c: Likewise.
39226         * math/w_sqrtf.c: Likewise.
39227         * math/w_sqrtl.c: Likewise.
39228         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39229         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39230         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39231         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39232         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39233
39234 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39235
39236         [BZ #9739]
39237         * manual/string.texi (strnlen): Use correct parameter name in
39238         equivalent expression.
39239
39240 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39241
39242         [BZ #11174]
39243         * manual/users.texi (seteuid): Consistently use neweuid for
39244         argument name.
39245
39246 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39247
39248         [BZ #13704]
39249         * manual/nss.texi (Services in the NSS configuration): Correct
39250         list of services in example configuration file.
39251
39252 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39253
39254         [BZ #11322]
39255         * manual/arith.texi: Remove statements about negative zero
39256         behaving identically to zero.
39257
39258 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39259
39260         [BZ #5993]
39261         * manual/install.texi: Do not document upgrading from libc5.
39262
39263 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39264
39265         [BZ #4596]
39266         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39267
39268 2012-02-18  David S. Miller  <davem@davemloft.net>
39269
39270         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39271         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39272         %o7 across the call.
39273         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39274         instead.
39275         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39276         SETUP_PIC_REG_LEAF.
39277         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39278         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39279         * sysdeps/sparc/crtn.S: Likewise.
39280
39281 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39282
39283         * aout/Makefile: Remove.
39284
39285 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39286
39287         [BZ #13058]
39288         * manual/examples/argp-ex1.c (main): Format definition in GNU
39289         style.
39290         * manual/examples/argp-ex2.c (main): Likewise.
39291         * manual/examples/argp-ex3.c (main): Likewise.
39292         * manual/examples/argp-ex4.c (main): Likewise.
39293         * manual/examples/longopt.c (main): Use new-style prototype
39294         definition.
39295         * manual/examples/strncat.c (main): Specify return type and use
39296         (void) for arguments.
39297         * manual/examples/subopt.c (main): Use char **argv argument.
39298
39299 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39300
39301         [BZ #5077]
39302         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39303         rounding modes.
39304
39305 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39306
39307         [BZ #6907]
39308         * manual/string.texi (strchr): Change when strchrnul is
39309         recommended.
39310
39311 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39312
39313         [BZ #174]
39314         * manual/locale.texi (setlocale): Document LOCPATH.
39315
39316 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39317
39318         [BZ #10210]
39319         * manual/process.texi (execle): Move @dots{} before last argument.
39320
39321 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39322
39323         [BZ #12047]
39324         * manual/charset.texi (Generic Charset Conversion): Fix typo
39325         (LC_TYPE -> LC_CTYPE).
39326
39327 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39328
39329         [BZ #5805]
39330         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39331         (scalbnf): Likewise.
39332         (scalbnl): Likewise.
39333         (scalbln): Likewise.
39334         (scalblnf): Likewise.
39335         (scalblnl): Likewise.
39336         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39337         (vwarnx): Likewise.
39338         (verr): Likewise.
39339         (verrx): Likewise.
39340         * manual/filesys.texi (telldir): Use braces around return type.
39341         * manual/llio.texi (mmap): Add space after comma.
39342         (mmap64): Likewise.
39343         * manual/math.texi (jn): Use @var{} on parameter names.
39344         (jnf): Likewise.
39345         (jnl): Likewise.
39346         (yn): Likewise.
39347         (ynf): Likewise.
39348         (ynl): Likewise.
39349         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39350         line.
39351         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39352         "...".
39353         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39354         (sched_get_priority_max): Likewise.
39355         * manual/signal.texi (sigvec): Add space after comma.
39356         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39357         names.
39358         (if_indextoname): Likewise.
39359         (if_freenameindex): Likewise.
39360         (sendto): Use ',' instead of '.' in prototype.
39361         * manual/startup.texi (syscall): Use @dots{} instead of literal
39362         "...".
39363         * manual/stdio.texi (__fpending): Separate initial words of
39364         paragraph from @deftypefun line.
39365         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39366         "...".
39367         (vsyslog): Use @var{} on parameter names.
39368         * manual/terminal.texi (stty): Use @var{} on parameter names.
39369         * manual/users.texi (getutmp): Use @var{} on parameter names.
39370         (getutmpx): Likewise.
39371
39372 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39373
39374         [BZ #6884]
39375         * manual/stdio.texi (fopen): Fix typos in description of
39376         ",ccs=STRING".
39377
39378 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39379
39380         [BZ #4026]
39381         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39382         get clock_id definition.
39383
39384 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39385
39386         [BZ #4822]
39387         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39388         (madvise): Cast every argument to void on its own.
39389
39390 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39391
39392         [BZ #9902]
39393         * manual/startup.texi (Exit Status): Fix typo.
39394
39395 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39396
39397         [BZ #10140]
39398         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39399         * manual/examples/argp-ex2.c: Likewise.
39400         * manual/examples/argp-ex3.c: Likewise.
39401
39402 2012-02-16  Richard Henderson  <rth@redhat.com>
39403
39404         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39405         * sysdeps/s390/s390-32/initfini.c: Remove.
39406         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39407         * sysdeps/s390/s390-64/initfini.c: Remove.
39408
39409 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39410
39411         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39412         compiler output for sysdeps/generic/initfini.c.
39413         * sysdeps/sh/elf/initfini.c: Remove file.
39414
39415 2012-02-16  David S. Miller  <davem@davemloft.net>
39416
39417         [BZ #11494]
39418         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39419
39420         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39421         * sysdeps/sparc/crti.S: New file.
39422         * sysdeps/sparc/crtn.S: New file.
39423         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39424         * sysdeps/sparc/sparc64/Makefile: Likewise.
39425
39426 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39427
39428         [BZ #3335]
39429         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39430
39431 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39432
39433         [BZ #4822]
39434         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39435
39436         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39437         (write, read, close): Likewise.
39438         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39439
39440 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39441
39442         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39443         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39444         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39445         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39446         <bits/signalfd.h>.
39447         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39448         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39449         bits/signalfd.h.
39450
39451 2012-02-14  Marek Polacek  <polacek@redhat.com>
39452
39453         * sysdeps/x86_64/crti.S: New file.
39454         * sysdeps/x86_64/crtn.S: New file.
39455         * sysdeps/x86_64/elf/initfini.c: Remove file.
39456
39457 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39458
39459         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39460         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39461         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39462         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39463         <bits/inotify.h>.
39464         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39465         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39466         bits/inotify.h.
39467
39468 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39469
39470         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39471         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39472         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39473         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39474         <bits/eventfd.h>.
39475         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39476         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39477         bits/eventfd.h.
39478
39479 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39480
39481         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39482         __feraiseexcept instead of feraiseexcept.
39483
39484         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39485         nanosleep invocations.
39486         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39487         strings, and add error checking for a nanosleep invocations.
39488
39489 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39490
39491         Replace FSF snail mail address with URLs, as per GNU coding standards.
39492         Most of the snail mail addresses were wrong anyway, and omitting
39493         them makes the source code easier to maintain.  Almost all of the
39494         changes are to license notices and to locale LC_IDENTIFICATION
39495         addresses, except for this one:
39496         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39497         not its snail mail address.
39498
39499 2012-02-09  Richard Henderson  <rth@twiddle.net>
39500
39501         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39502         of kernel-features.h.
39503
39504         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39505
39506 2012-02-08  Marek Polacek  <polacek@redhat.com>
39507
39508         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39509         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39510         * sysdeps/gnu/_G_config.h: Likewise.
39511         * sysdeps/generic/_G_config.h: Likewise.
39512
39513 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39514
39515         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39516         tests.
39517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39518
39519         * sysdeps/powerpc/powerpc32/crti.S: New file.
39520         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39521         * sysdeps/powerpc/powerpc64/crti.S: New file.
39522         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39523
39524         * Makeconfig (have-initfini): Don't set.
39525         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39526         * configure.in (nopic_initfini): Don't substitute.
39527         * config.h.in (HAVE_INITFINI): Don't #undef.
39528         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39529         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39530
39531 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39532
39533         Support crti.S and crtn.S provided directly by architectures.
39534         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
39535         [crti.S in sysdirs] (omit-deps): Likewise.
39536         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
39537         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
39538         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
39539         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
39540         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
39541         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
39542         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
39543         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
39544         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
39545         compiler output for sysdeps/generic/initfini.c.
39546         * sysdeps/i386/elf/Makefile: Remove file.
39547         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
39548
39549 2012-02-07  Marek Polacek  <polacek@redhat.com>
39550
39551         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
39552         * sysdeps/gnu/_G_config.h: Likewise.
39553         * sysdeps/mach/hurd/_G_config.h: Likewise.
39554
39555 2012-02-07  Marek Polacek  <polacek@redhat.com>
39556
39557         * math/Makefile (tests): Add tst-CMPLX2.
39558         * math/tst-CMPLX2.c: New file.
39559
39560 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
39561
39562         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39563
39564         * math/libm-test.inc (jn_test): Add missing L suffix.
39565
39566 2012-02-06  Marek Polacek  <polacek@redhat.com>
39567
39568         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
39569         * sysdeps/i386/fpu/e_powf.S: Likewise.
39570         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39571         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
39572         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39573         * sysdeps/i386/fpu/e_pow.S: Likewise.
39574         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39575         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39576         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39577         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39578         * sysdeps/i386/fpu/e_log2.S: Likewise.
39579         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39580         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39581         * sysdeps/i386/fpu/e_powl.S: Likewise.
39582         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39583         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39584         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39585         * sysdeps/i386/fpu/e_logl.S: Likewise.
39586         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39587         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39588         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39589         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39590         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39591         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39592         * sysdeps/i386/fpu/e_log.S: Likewise.
39593         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39594         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39595         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39596         * sysdeps/i386/fpu/e_logf.S: Likewise.
39597         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39598         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39599         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39600         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39601         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39602         * sysdeps/i386/fpu/e_log10.S: Likewise.
39603         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39604         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39605         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39606         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39607         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39608         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39609         * sysdeps/i386/asm-syntax.h: Likewise.
39610         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39611         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39612         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39613         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39614         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39615         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39616         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39617         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39618         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39619         * sysdeps/powerpc/sysdep.h: Likewise.
39620         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39621         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39622
39623 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39624
39625         [BZ #411]
39626         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39627
39628 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39629
39630         * sysdeps/i386/sysdep.h: Include <features.h>.
39631         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39632         version.
39633
39634 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39635
39636         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39637         Define.
39638         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39639         LOAD_PIC_REG_STR.
39640
39641 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39642
39643         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39644         (SETUP_PIC_REG): Use GET_PC_THUNK.
39645         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39646         macro.
39647
39648 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39649
39650         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39651         for non-PIC compilation.
39652         (SETUP_PIC_REG): Add .p2align directive.
39653         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39654         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39655         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39656         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39657         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39658         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39659         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39660         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39661         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39662         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39663         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39664         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39665         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39666         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39667         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39668         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39669         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39670         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39671         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39672         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39673         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39674         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39675         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39676         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39677         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39678         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39679         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39680         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39681         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39682         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39683         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39684         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39685         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39686         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39687         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39688         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39689         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39690         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39691         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39692         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39693         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39694
39695 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39696
39697         * math/tst-CMPLX.c: Include <stdio.h>.
39698
39699 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39700
39701         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39702         float.
39703         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39704         * sysdeps/sparc/bits/mathdef.h: Likewise.
39705
39706 2012-01-31  Marek Polacek  <polacek@redhat.com>
39707
39708         * libio/libio.h: Don't define _PARAMS.
39709         * locale/programs/config.h: Don't define PARAMS.
39710         * stdlib/strtol_l.c: Likewise.
39711         (__strtol_l): Remove PARAMS from the prototype.
39712
39713 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39714
39715         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39716         names.  Just use the correct names.  Remove unnecessary wrapper
39717         functions.
39718         * malloc/arena.c: Likewise.
39719         * malloc/hooks.c: Likewise.
39720
39721         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39722         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39723         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39724
39725 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39726
39727         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39728         into tail calls.
39729         (update_get_addr): New function.
39730         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39731         GET_ADDR_MODULE parameter.
39732
39733 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39734
39735         * crypt/cert.c: Remove __STDC__ conditionals.
39736         * crypt/crypt-entry.c: Likewise.
39737         * crypt/crypt_util.c: Likewise.
39738         * libio/filedoalloc.c: Likewise.
39739         * libio/fileops.c: Likewise.
39740         * libio/genops.c: Likewise.
39741         * libio/iofclose.c: Likewise.
39742         * libio/iofdopen.c: Likewise.
39743         * libio/iofopen.c: Likewise.
39744         * libio/iofopen64.c: Likewise.
39745         * libio/iogetdelim.c: Likewise.
39746         * libio/iopopen.c: Likewise.
39747         * libio/obprintf.c: Likewise.
39748         * libio/oldfileops.c: Likewise.
39749         * libio/oldiofclose.c: Likewise.
39750         * libio/oldiofdopen.c: Likewise.
39751         * libio/oldiofopen.c: Likewise.
39752         * libio/oldiopopen.c: Likewise.
39753         * libio/wfiledoalloc.c: Likewise.
39754         * libio/wgenops.c: Likewise.
39755         * locale/programs/xmalloc.c: Likewise.
39756         * misc/syslog.c: Likewise.
39757         * stdio-common/xbug.c: Likewise.
39758         * string/memchr.c: Likewise.
39759         * string/memcmp.c: Likewise.
39760         * string/memrchr.c: Likewise.
39761         * string/rawmemchr.c: Likewise.
39762         * sysdeps/posix/getcwd.c: Likewise.
39763         * time/strftime_l.c: Likewise.
39764
39765 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39766
39767         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39768         * config.make.in (config-cflags-sse2avx): Define.
39769         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39770         Fix typo.
39771
39772 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39773
39774         * scripts/config.guess: Update from upstream config git repository.
39775         * scripts/config.sub: Likewise.
39776
39777 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39778
39779         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39780         (EM_NUM): Update.
39781         (R_TILEPRO_*, R_TILEGX_*): New macros.
39782
39783         * scripts/firstversions.awk: Fix bug in version range handling.
39784
39785         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39786
39787         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39788
39789         * include/sys/epoll.h: New file.
39790         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39791         libc_hidden_def.
39792
39793 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39794
39795         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39796         Avoid unnecessary __WORDSIZE == 64 test.
39797         (fmaxf): Use VEX format if possible.
39798         (fmax): Likewise.
39799         (fminf): Likewise.
39800         (fmin): Likewise.
39801
39802         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39803         * math/math_private.h: Remove libc_fegetround* and
39804         libc_fesetround*.
39805         * sysdeps/i386/configure.in: Check for -msse2avx.
39806         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39807         also if SSE2AVX is defined.
39808         Remove libc_fegetround* and libc_fesetround*.
39809         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39810         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39811         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39812         of HAS_YMM_USABLE.
39813         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39814         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39815         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39816         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39817         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39818
39819         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39820
39821 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39822
39823         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39824         size is not set.
39825         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39826
39827 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39828
39829         [BZ #13618]
39830         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39831         relocation.
39832         * Makeconfig (libm): Define.
39833         * elf/Makefile: Add rules to build and run tst-relsort1.
39834         * elf/tst-relsort1.c: New file.
39835         * elf/tst-relsort1mod1.c: New file.
39836         * elf/tst-relsort1mod2.c: New file.
39837
39838 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39839
39840         * math/s_ldexp.c: Remove __STDC__ conditionals.
39841         * math/s_ldexpf.c: Likewise.
39842         * math/s_ldexpl.c: Likewise.
39843         * math/s_nextafter.c: Likewise.
39844         * math/s_nexttowardf.c: Likewise.
39845         * math/s_significand.c: Likewise.
39846         * math/s_significandf.c: Likewise.
39847         * math/s_significandl.c: Likewise.
39848         * math/w_jnl.c: Likewise.
39849         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39850         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39851         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39852         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39853         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39854         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39855         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39856         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39857         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39858         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39859         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39860         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39861         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39862         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39863         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39864         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39865         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39866         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39867         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39868         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39869         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39870         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39871         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39872         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39873         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39874         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39875         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39876         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39877         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39878         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39879         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39880         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39881         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39882         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39883         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39884         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39885         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39886         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39887         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39888         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39889         * sysdeps/ieee754/k_standard.c: Likewise.
39890         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39891         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39892         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39893         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39894         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39895         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39896         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39897         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39898         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39899         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39900         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39901         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39902         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39903         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39904         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39905         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39906         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39907         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39908         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39909         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39910         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39911         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39912         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39913         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39914         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39915         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39916         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39917         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39918         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39919         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39920         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39921         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39922         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39923         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39924         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39925         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39926         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39927         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39928         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39929         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39930         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39931         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39932         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39933         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39934         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39935         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39936         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39937         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39938         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39939         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39940         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39941         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39942         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39943         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39944         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39945         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39946         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39947         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39948         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39949         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39950         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39951         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39952         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39953         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39954         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39955         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39956         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39957         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39958         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39959         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39960         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39961         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39962         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39963         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39964         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39965         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39966         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39967         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39968         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39969         * sysdeps/ieee754/s_matherr.c: Likewise.
39970         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39971         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39972         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39973         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39974
39975 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39976
39977         * crypt/md5.h: Remove __STDC__ conditionals.
39978         * libio/libioP.h: Likewise.
39979         * locale/programs/config.h: Likewise.
39980         * sysdeps/generic/sysdep.h: Likewise.
39981         * sysdeps/i386/asm-syntax.h: Likewise.
39982         * sysdeps/s390/asm-syntax.h: Likewise.
39983         * sysdeps/unix/sysdep.h: Likewise.
39984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39986
39987 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39988
39989         * libio/libio.h: Remove __STDC__ conditionals.
39990         * malloc/obstack.h: Likewise.
39991         * math/complex.h: Likewise.
39992         * math/math.h: Likewise.
39993         * sysdeps/generic/_G_config.h: Likewise.
39994         * sysdeps/gnu/_G_config.h: Likewise.
39995         * sysdeps/mach/hurd/_G_config.h: Likewise.
39996         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39997         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39998         * sysdeps/sparc/bits/mathdef.h: Likewise.
39999
40000 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
40001
40002         [BZ #13583]
40003         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
40004         Clean up HAS_* macros.
40005         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
40006         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
40007         possible.
40008         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
40009         HAS_AVX.
40010         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40011         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40012         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40013         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40014         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40015
40016 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
40017
40018         * elf/tst-unique3.cc (gets): Remove declaration.
40019         * elf/tst-unique3lib.cc (gets): Likewise.
40020         * elf/tst-unique3lib2.cc (gets): Likewise.
40021         * elf/tst-unique4.cc (gets): Likewise.
40022
40023 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
40024
40025         * include/stdio.h: Add C++ protection.  Add gets declarations and
40026         definitions.
40027         * debug/tst-chk1.c: Don't declare gets here.
40028         * stdio-common/tst-gets.c: Likewise.
40029
40030 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
40031
40032         * posix/glob: Remove directory.
40033
40034 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
40035
40036         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
40037
40038 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
40039
40040         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
40041         of the non-standard EPFNOSUPPORT.
40042
40043 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40044
40045         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
40046         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
40047         ANYWHERE set to 1 only on KERN_NO_SPACE error.
40048
40049 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
40050
40051         * wcsmbs/uchar.h: Test __STDC_VERSION__.
40052
40053 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
40054
40055         * nscd/aicache.c (addhstaiX): Do not cache negative results of
40056         transient errors.
40057         * nscd/grpcache.c (cache_addgr): Likewise.
40058         * nscd/hstcache.c (cache_addhst): Likewise.
40059         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40060         * nscd/pwdcache.c (cache_addpw): Likewise.
40061         * nscd/servicescache.c (cache_addserv): Likewise.
40062
40063 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
40064
40065         * malloc/malloc.c: Various cleanups.
40066         * malloc/hooks.c: Likewise.
40067
40068         * stdlib/Makefile (tests): Add bug-fmtmsg1.
40069         * stdlib/bug-fmtmsg1.c: New file.
40070
40071         * stdlib/fmtmsg.c (init): Add missing unlock.
40072         Patch by Peng Haitao <penght@cn.fujitsu.com>.
40073
40074 2012-01-12  Marek Polacek  <polacek@redhat.com>
40075
40076         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
40077         and _GNU_SOURCE.
40078
40079 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
40080
40081         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
40082         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
40083         macro to ensure uniqueness of label name.
40084         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40085         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40086
40087 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
40088
40089         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
40090
40091         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
40092         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
40093         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
40094         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
40095
40096 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
40097
40098         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
40099
40100         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
40101         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
40102         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
40103
40104         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
40105
40106         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
40107         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
40108         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
40109         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
40110
40111         * math/bits/math-finite.h: Add ldexp support.
40112
40113 2012-01-10  Marek Polacek  <polacek@redhat.com>
40114
40115         * locale/programs/localedef.h (show_archive_content): Add noreturn
40116         attribute.
40117
40118 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
40119
40120         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
40121
40122 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40123
40124         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
40125
40126         * io/Makefile (headers): Add bits/poll2.h.
40127
40128 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
40129
40130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
40131         typo #include statement.
40132
40133 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40134
40135         * include/sys/cdefs.h: Define __attribute_alloc_size.
40136         * catgets/gencat.c: Add alloc_size attribute and apply consistently
40137         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
40138         * elf/pldd.c: Likewise.
40139         * iconv/iconv_charmap.c: Likewise.
40140         * iconv/iconvconfig.c: Likewise.
40141         * iconv/strtab.c: Likewise.
40142         * locale/programs/locale.c: Likewise.
40143         * locale/programs/localedef.h: Likewise.
40144         * locale/programs/simple-hash.c: Likewise.
40145         * nscd/nscd.h: Likewise.
40146         * nss/makedb.c: Likewise.
40147         * sysdeps/generic/ldconfig.h: Likewise.
40148         * locale/programs/localedef.c: Remove xmalloc prototype.
40149         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
40150
40151 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
40152
40153         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
40154         appropriate.
40155
40156 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40157
40158         * math/Makefile (tests): Add tst-CMPLX.
40159         * math/tst-CMPLX.c: New file.
40160
40161         * math/complex.h (CMPLXL): Fix typo.
40162
40163         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
40164         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
40165         GLIBC_2.16.
40166         * debug/tst-chk1.c: Add poll and ppoll tests.
40167         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
40168         * include/sys/poll.h: Add hidden proto for ppoll.
40169         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
40170         * sysdeps/mach/hurd/ppoll.c: Likewise.
40171         * io/ppoll.c: Likewise.
40172         * debug/poll_chk.c: New file.
40173         * debug/ppoll_chk.c: New file.
40174         * include/bits/poll2.h: New file.
40175         * io/bits/poll2.h: New file.
40176
40177         [BZ #1350]
40178         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
40179
40180         * configure.in: static is always set to yes.  Remove.
40181         * config.make.in: Don't set build-static.
40182         * Makeconfig: Remove use of build-static.
40183         * dlfcn/Makefile: Likewise.
40184         * elf/Makefile: Likewise.
40185         * math/Makefile: Likewise.
40186         * misc/Makefile: Likewise.
40187         * nptl/Makefile: Likewise.
40188         * sysdeps/mach/hurd/Makefile: Likewise.
40189
40190         * configure.in: PWD_P is not used anymore.
40191         * config.make.in: Remove PWD_P entry.
40192
40193         * configure.in: Remove last remnants of RANLIB.
40194         No need to check for signed size_t anymore.
40195         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40196         and IA-64.
40197         Remove __builtin_expect test because we require at least gcc 3.4.
40198         * aclocal.m4: Likewise.
40199
40200         * wcsmbs/mbrtoc16.c: Implement using towc function.
40201         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40202         * wcsmbs/wcsmbsload.c: Likewise.
40203         * iconv/gconv_simple.c: Likewise.
40204         * iconv/gconv_int.h: Likewise.
40205         * iconv/gconv_builtin.h: Likewise.
40206         * iconv/iconv_prog.c: Remove CHAR16 handling.
40207
40208         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40209
40210         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40211
40212         * configure.in: Remove --with-elf and --enable-bounded options.
40213         Dont set base_machine for ia64.  More non-ELF conditions removed.
40214         Remove testing and setting of leading underscore information.
40215         * config.make.in (build-bounded): Set to no.
40216         * config.h.in: Remove NO_UNDERSCORES entry.
40217         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40218         them.
40219         * csu/start.c: Remove !NO_UNDERSCORE code.
40220         * locale/localeinfo.h: Likewise.
40221         * sysdeps/generic/machine-gmon.h: Likewise.
40222         * sysdeps/generic/sysdep.h: Likewise.
40223         * sysdeps/i386/sysdep.h: Likewise.
40224         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40225         * sysdeps/mach/sysdep.h: Likewise.
40226         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40227         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40228         * sysdeps/sh/sysdep.h: Likewise.
40229         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40230         * sysdeps/unix/i386/sysdep.S: Likewise.
40231         * sysdeps/unix/sparc/start.c: Likewise.
40232         * sysdeps/unix/sparc/sysdep.S: Likewise.
40233         * sysdeps/unix/sparc/sysdep.h: Likewise.
40234         * sysdeps/unix/start.c: Likewise.
40235         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40236         * sysdeps/x86_64/sysdep.h: Likewise.
40237
40238 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40239
40240         [BZ #13553]
40241         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40242         for non-gcc.
40243         * argp/argp-fmtstream.h: Use const instead __const.
40244         * argp/argp.h: Likewise.
40245         * assert/assert.h: Likewise.
40246         * bits/fenv.h: Likewise.
40247         * bits/sched.h: Likewise.
40248         * bits/sigset.h: Likewise.
40249         * bits/sigthread.h: Likewise.
40250         * catgets/nl_types.h: Likewise.
40251         * conform/data/pthread.h-data: Likewise.
40252         * crypt/crypt-private.h: Likewise.
40253         * crypt/crypt.h: Likewise.
40254         * crypt/crypt_util.c: Likewise.
40255         * ctype/ctype.h: Likewise.
40256         * debug/execinfo.h: Likewise.
40257         * debug/mbsnrtowcs_chk.c: Likewise.
40258         * debug/mbsrtowcs_chk.c: Likewise.
40259         * debug/wcsnrtombs_chk.c: Likewise.
40260         * debug/wcsrtombs_chk.c: Likewise.
40261         * debug/wcstombs_chk.c: Likewise.
40262         * dirent/dirent.h: Likewise.
40263         * dlfcn/dlfcn.h: Likewise.
40264         * elf/neededtest4.c: Likewise.
40265         * grp/grp.h: Likewise.
40266         * gshadow/gshadow.h: Likewise.
40267         * iconv/gconv.h: Likewise.
40268         * iconv/gconv_int.h: Likewise.
40269         * iconv/gconv_simple.c: Likewise.
40270         * iconv/iconv.h: Likewise.
40271         * iconv/loop.c: Likewise.
40272         * iconv/skeleton.c: Likewise.
40273         * include/aio.h: Likewise.
40274         * include/aliases.h: Likewise.
40275         * include/argz.h: Likewise.
40276         * include/arpa/inet.h: Likewise.
40277         * include/assert.h: Likewise.
40278         * include/dirent.h: Likewise.
40279         * include/dlfcn.h: Likewise.
40280         * include/execinfo.h: Likewise.
40281         * include/fcntl.h: Likewise.
40282         * include/fenv.h: Likewise.
40283         * include/glob.h: Likewise.
40284         * include/grp.h: Likewise.
40285         * include/libintl.h: Likewise.
40286         * include/mntent.h: Likewise.
40287         * include/netdb.h: Likewise.
40288         * include/pwd.h: Likewise.
40289         * include/rpc/netdb.h: Likewise.
40290         * include/sched.h: Likewise.
40291         * include/search.h: Likewise.
40292         * include/shadow.h: Likewise.
40293         * include/signal.h: Likewise.
40294         * include/stdio.h: Likewise.
40295         * include/stdlib.h: Likewise.
40296         * include/string.h: Likewise.
40297         * include/sys/socket.h: Likewise.
40298         * include/sys/stat.h: Likewise.
40299         * include/sys/statfs.h: Likewise.
40300         * include/sys/statvfs.h: Likewise.
40301         * include/sys/syslog.h: Likewise.
40302         * include/sys/time.h: Likewise.
40303         * include/sys/uio.h: Likewise.
40304         * include/time.h: Likewise.
40305         * include/unistd.h: Likewise.
40306         * include/utmp.h: Likewise.
40307         * include/wchar.h: Likewise.
40308         * include/wctype.h: Likewise.
40309         * inet/aliases.h: Likewise.
40310         * inet/arpa/inet.h: Likewise.
40311         * inet/netinet/ether.h: Likewise.
40312         * inet/netinet/in.h: Likewise.
40313         * intl/libintl.h: Likewise.
40314         * io/bits/fcntl2.h: Likewise.
40315         * io/fcntl.h: Likewise.
40316         * io/ftw.h: Likewise.
40317         * io/sys/poll.h: Likewise.
40318         * io/sys/stat.h: Likewise.
40319         * io/sys/statfs.h: Likewise.
40320         * io/sys/statvfs.h: Likewise.
40321         * io/utime.h: Likewise.
40322         * libio/bits/stdio.h: Likewise.
40323         * libio/bits/stdio2.h: Likewise.
40324         * libio/libio.h: Likewise.
40325         * libio/libioP.h: Likewise.
40326         * libio/stdio.h: Likewise.
40327         * locale/lc-ctype.c: Likewise.
40328         * locale/locale.h: Likewise.
40329         * login/utmp.h: Likewise.
40330         * malloc/arena.c: Likewise.
40331         * malloc/malloc.c: Likewise.
40332         * malloc/malloc.h: Likewise.
40333         * malloc/mcheck.c: Likewise.
40334         * malloc/mtrace.c: Likewise.
40335         * math/bits/mathcalls.h: Likewise.
40336         * math/fenv.h: Likewise.
40337         * math/math_private.h: Likewise.
40338         * misc/bits/error.h: Likewise.
40339         * misc/bits/syslog.h: Likewise.
40340         * misc/err.h: Likewise.
40341         * misc/error.h: Likewise.
40342         * misc/fstab.h: Likewise.
40343         * misc/mntent.h: Likewise.
40344         * misc/regexp.h: Likewise.
40345         * misc/search.h: Likewise.
40346         * misc/sgtty.h: Likewise.
40347         * misc/sys/mman.h: Likewise.
40348         * misc/sys/syslog.h: Likewise.
40349         * misc/sys/uio.h: Likewise.
40350         * misc/sys/xattr.h: Likewise.
40351         * misc/ttyent.h: Likewise.
40352         * nis/rpcsvc/ypclnt.h: Likewise.
40353         * nss/nss.h: Likewise.
40354         * posix/bits/unistd.h: Likewise.
40355         * posix/fnmatch.h: Likewise.
40356         * posix/glob.h: Likewise.
40357         * posix/sched.h: Likewise.
40358         * posix/spawn.h: Likewise.
40359         * posix/sys/wait.h: Likewise.
40360         * posix/unistd.h: Likewise.
40361         * posix/wordexp.h: Likewise.
40362         * pwd/pwd.h: Likewise.
40363         * resolv/netdb.h: Likewise.
40364         * resource/sys/resource.h: Likewise.
40365         * rt/aio.h: Likewise.
40366         * rt/bits/mqueue2.h: Likewise.
40367         * rt/mqueue.h: Likewise.
40368         * shadow/shadow.h: Likewise.
40369         * signal/signal.h: Likewise.
40370         * socket/send.c: Likewise.
40371         * socket/sendto.c: Likewise.
40372         * socket/sys/socket.h: Likewise.
40373         * stdio-common/printf.h: Likewise.
40374         * stdlib/bits/stdlib.h: Likewise.
40375         * stdlib/fmtmsg.h: Likewise.
40376         * stdlib/monetary.h: Likewise.
40377         * stdlib/stdlib.h: Likewise.
40378         * stdlib/ucontext.h: Likewise.
40379         * streams/stropts.h: Likewise.
40380         * string/argz.h: Likewise.
40381         * string/bits/string2.h: Likewise.
40382         * string/string.h: Likewise.
40383         * string/strings.h: Likewise.
40384         * sunrpc/rpc/auth.h: Likewise.
40385         * sunrpc/rpc/auth_des.h: Likewise.
40386         * sunrpc/rpc/clnt.h: Likewise.
40387         * sunrpc/rpc/netdb.h: Likewise.
40388         * sunrpc/rpc/pmap_clnt.h: Likewise.
40389         * sunrpc/rpc/xdr.h: Likewise.
40390         * sysdeps/generic/inttypes.h: Likewise.
40391         * sysdeps/generic/net/if.h: Likewise.
40392         * sysdeps/generic/sys/swap.h: Likewise.
40393         * sysdeps/gnu/net/if.h: Likewise.
40394         * sysdeps/gnu/utmpx.h: Likewise.
40395         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40396         * sysdeps/i386/i486/bits/string.h: Likewise.
40397         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40398         * sysdeps/s390/bits/string.h: Likewise.
40399         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40400         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40401         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40402         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40403         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40404         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40405         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40406         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40407         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40408         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40409         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40410         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40411         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40412         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40413         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40414         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40415         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40416         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40417         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40418         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40419         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40420         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40421         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40422         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40423         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40424         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40425         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40426         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40427         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40428         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40429         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40430         * sysvipc/sys/ipc.h: Likewise.
40431         * sysvipc/sys/msg.h: Likewise.
40432         * sysvipc/sys/sem.h: Likewise.
40433         * sysvipc/sys/shm.h: Likewise.
40434         * termios/termios.h: Likewise.
40435         * time/sys/time.h: Likewise.
40436         * time/time.h: Likewise.
40437         * wcsmbs/bits/wchar2.h: Likewise.
40438         * wcsmbs/uchar.h: Likewise.
40439         * wcsmbs/wchar.h: Likewise.
40440         * wctype/wctype.h: Likewise.
40441
40442         [BZ #13551]
40443         * Makeconfig: Remove all but ELF support including AIX support.
40444         * Makerules: Likewise.
40445         * config.h.in: Likewise.
40446         * config.make.in: Likewise.
40447         * configure: Likewise.
40448         * configure.in: Likewise.
40449         * csu/Makefile: Likewise.
40450         * csu/version.c: Likewise.
40451         * debug/Makefile: Likewise.
40452         * dlfcn/Makefile: Likewise.
40453         * elf/Makefile: Likewise.
40454         * extra-lib.mk: Likewise.
40455         * iconv/Makefile: Likewise.
40456         * include/libc-symbols.h: Likewise.
40457         * include/shlib-compat.h: Likewise.
40458         * resolv/Makefile: Likewise.
40459         * resolv/res_libc.c: Likewise.
40460         * rt/Makefile: Likewise.
40461         * sysdeps/i386/asm-syntax.h: Likewise.
40462         * sysdeps/i386/sysdep.h: Likewise.
40463         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40464         * sysdeps/mach/sysdep.h: Likewise.
40465         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40466         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40467         * sysdeps/s390/asm-syntax.h: Likewise.
40468         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40469         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40470         * sysdeps/sh/sysdep.h: Likewise.
40471         * sysdeps/unix/sparc/sysdep.h: Likewise.
40472         * sysdeps/wordsize-32/divdi3.c: Likewise.
40473         * sysdeps/x86_64/sysdep.h: Likewise.
40474
40475         * argp/Versions: Remove _argp_unlock_xxx.
40476
40477         [BZ #13559]
40478         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40479         * abilist/libBrokenLocale.abilist: Likewise.
40480         * abilist/libanl.abilist: Likewise.
40481         * abilist/libc.abilist: Likewise.
40482         * abilist/libcrypt.abilist: Likewise.
40483         * abilist/libdl.abilist: Likewise.
40484         * abilist/libm.abilist: Likewise.
40485         * abilist/libnsl.abilist: Likewise.
40486         * abilist/libpthread.abilist: Likewise.
40487         * abilist/libresolv.abilist: Likewise.
40488         * abilist/librt.abilist: Likewise.
40489         * abilist/libthread_db.abilist: Likewise.
40490         * abilist/libutil.abilist: Likewise.
40491         * abilist/libnss_db.abilist: New file.
40492
40493         * scripts/abilist.awk: Add support for indirect functions.
40494
40495         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40496
40497         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40498
40499         * shlib-versions: Remove entries for ports architectures.
40500
40501         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40502         files in ports.
40503         * elf/stackguard-macros.h: Remove support for IA-64.
40504         * elf/tst-auditmod1.c: Likewise.
40505         * sysdeps/generic/ldsodefs.h: Likewise.
40506
40507         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40508         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40509         configure files.
40510
40511         [BZ #13552]
40512         * configure.in: Remove --enable-omitfp support.
40513         * FAQ.in: Adjust.
40514         * config.make.in: Likewise.
40515         * Makeconfig: Likewise.
40516         * manual/install.texi: Likewise.
40517
40518         In case anyone cares, the IA-64 architecture could move to ports.
40519         * sysdeps/ia64/*: Removed.
40520         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40521         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40522
40523         [BZ #13555]
40524         * configure.in: Remove entries for unsupported architectures.
40525
40526         [BZ #13533]
40527         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40528         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40529         routines.
40530         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40531         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40532         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
40533         fall back to using wcrtomb.
40534         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
40535         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
40536         renaming.
40537         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
40538         * wcsmbs/tst-c16c32-1.c: New file.
40539
40540         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
40541         local variable.
40542
40543         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
40544
40545         * elf/tst-unique3.cc: Add explicit declaration of gets.
40546         * elf/tst-unique3lib.cc: Likewise.
40547         * elf/tst-unique3lib2.cc: Likewise.
40548         * elf/tst-unique4.cc: Likewise.
40549
40550         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
40551
40552 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
40553
40554         [BZ #13566]
40555         * assert/assert.h (static_assert): Don't define for C++.
40556         * libio/stdio.h (gets): Do declare for C++ <= C++11.
40557         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
40558
40559 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
40560
40561         * iconv/loop.c (single loop): Fix assertion in storing of
40562         remaining bytes.
40563
40564         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
40565
40566 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
40567
40568         * posix/getconf.c: Update copyright year.
40569         * nss/getent.c: Likewise.
40570         * nss/makedb.c: Likewise.
40571         * iconv/iconvconfig.c: Likewise.
40572         * iconv/iconv_prog.c: Likewise.
40573         * elf/ldconfig.c: Likewise.
40574         * elf/pldd.c: Likewise.
40575         * elf/sotruss.ksh: Likewise.
40576         * catgets/gencat.c: Likewise.
40577         * csu/version.c: Likewise.
40578         * elf/ldd.bash.in: Likewise.
40579         * elf/sprof.c (print_version): Likewise.
40580         * locale/programs/locale.c: Likewise.
40581         * locale/programs/localedef.c: Likewise.
40582         * login/programs/pt_chown.c: Likewise.
40583         * nscd/nscd.c (print_version): Likewise.
40584         * debug/xtrace.sh: Likewise.
40585         * malloc/memusage.sh: Likewise.
40586         * malloc/mtrace.pl: Likewise.
40587         * debug/catchsegv.sh: Likewise.
40588
40589 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40590
40591         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40592         pure attribute.
40593
40594 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40595
40596         [BZ #13533]
40597         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40598         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40599         transformations.
40600         * iconv/gconv_int.h: Likewise.
40601         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40602         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40603         from libc for GLIBC_2.16.
40604         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40605         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40606         * wcsmbs/uchar.h: Really define mbstate_t.
40607         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40608         * wcsmbs/c16rtomb.c: New file.
40609         * wcsmbs/mbrtoc16.c: New file.
40610         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40611         for C/POSIX locale.
40612         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40613         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40614
40615         * wcsmbs/wchar.h: Add missing __restrict.
40616
40617 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40618
40619         [BZ #13532]
40620         * time/Makefile (routines): Add timespec_get.
40621         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40622         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40623         timespec for ISO C11.
40624         * time/timespec_get.c: New file.
40625         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40626         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40627
40628         [BZ #13531]
40629         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40630         * stdlib/stdlib.h: Declare aligned_alloc.
40631         * Versions.def: Add GLIBC_2.16 for libc.
40632         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40633
40634         [BZ 13527]
40635         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40636         ISO C11.
40637
40638         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40639         code.
40640
40641         [BZ #13528]
40642         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40643
40644         [BZ #13529]
40645         * assert/assert.h (static_assert): Define.
40646
40647         * version.h: Update for 2.16 development version.
40648
40649         [BZ #13526]
40650         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40651         _ISOC11_SOURCE.
40652
40653         * version.h (RELEASE): Bump for 2.15 release.
40654         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40655
40656         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40657         Patch by Marek Polacek <mpolacek@redhat.com>.
40658
40659         * bits/byteswap.h: Protect long long constants with __extension__.
40660         * sysdeps/i386/bits/byteswap.h: Likewise.
40661         * sysdeps/ia64/bits/byteswap.h: Likewise.
40662         * sysdeps/s390/bits/byteswap.h: Likewise.
40663         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40664
40665 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40666
40667         [BZ #13540]
40668         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40669         destination buffer.
40670         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40671
40672 2011-12-23  Marek Polacek  <polacek@redhat.com>
40673
40674         * elf/dl-addr.c (determine_info): Add inline keyword.
40675         * elf/tst-auditmod4b.c (check_avx): Likewise.
40676         * elf/tst-auditmod6b.c (check_avx): Likewise.
40677         * elf/tst-auditmod6c.c (check_avx): Likewise.
40678         * elf/tst-auditmod7b.c (check_avx): Likewise.
40679
40680 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40681
40682         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40683         !__SSE_MATH__.
40684
40685 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40686
40687         [BZ #13540]
40688         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40689         processing for last bytes.
40690
40691 2011-08-06  Bruno Haible  <bruno@clisp.org>
40692
40693         [BZ #13061]
40694         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40695         U+0385, not to U+1FEE.
40696
40697         [BZ #13062]
40698         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40699         entry for U+00A5 U+0301.
40700
40701 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40702
40703         [BZ #13166]
40704         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40705         buffer for the output is too small.
40706
40707         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40708         optimization.
40709
40710         [BZ #13185]
40711         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40712         SSE flags if possible.
40713
40714 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40715
40716         [BZ #13540]
40717         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40718         processing for last bytes.
40719
40720 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40721
40722         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40723         (syscall-list-default-options, syscall-list-default-condition)
40724         (syscall-list-includes): Define.
40725         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40726         list of ABIs and options and #if conditions for each ABI.  Do not
40727         handle common syscalls between ABIs specially.
40728         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40729         Remove.
40730         (syscall-list-variants, syscall-list-32bit-options)
40731         (syscall-list-32bit-condition, syscall-list-64bit-options)
40732         (syscall-list-64bit-condition): Define.
40733         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40734         (syscall-list-variants, syscall-list-32bit-options)
40735         (syscall-list-32bit-condition, syscall-list-64bit-options)
40736         (syscall-list-64bit-condition): Define.
40737         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40738         Remove.
40739         (syscall-list-variants, syscall-list-32bit-options)
40740         (syscall-list-32bit-condition, syscall-list-64bit-options)
40741         (syscall-list-64bit-condition): Define.
40742         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40743         Remove.
40744         (syscall-list-variants, syscall-list-32bit-options)
40745         (syscall-list-32bit-condition, syscall-list-64bit-options)
40746         (syscall-list-64bit-condition): Define.
40747
40748 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40749
40750         * locale/iso-639.def: Add brx entry.
40751
40752         [BZ #13328]
40753         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40754         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40755
40756         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40757         __feraiseexcept_renamed.
40758
40759 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40760
40761         [BZ #13538]
40762         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40763         EPOLLET with unsigned values.
40764         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40765         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40766
40767         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40768         to large cancellation.
40769         * math/s_cacoshf.c: Likewise.
40770         * math/s_cacoshl.c: Likewise.
40771
40772 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40773
40774         [BZ #13305]
40775         [BZ #12786]
40776         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40777         * math/s_cacoshf.c: Likewise.
40778         * math/s_cacoshl.c: Likewise.
40779
40780 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40781
40782         [BZ #13439]
40783         * iconv/gconv.h: Define __GCONV_SWAP.
40784         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40785         * iconvdata/utf-16.c: Likewise.
40786         * iconvdata/utf-32.c: Likewise.
40787
40788 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40789
40790         [BZ #13524]
40791         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40792         numerator after shifting it by one limb.
40793
40794 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40795
40796         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40797         under [__USE_EXTERN_INLINES].
40798
40799 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40800
40801         [BZ #13446]
40802         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40803
40804 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40805
40806         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40807         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40808         optimized code.
40809         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40810         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40811         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40812         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40813         for strncasecmp/strncasecmp_l compilation.
40814         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40815         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40816
40817 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40818
40819         [BZ #13484]
40820         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40821         of __asm__.
40822
40823 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40824
40825         [BZ #13506]
40826         * time/tzfile.c (__tzfile_read): Check values from file header.
40827
40828 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40829
40830         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40831         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40832         * powerpc/powerpc32/dl-start.S: Likewise.
40833         * powerpc/powerpc32/elf/start.S: Likewise.
40834         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40835         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40836         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40837         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40838         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40839         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40840         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40841         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40842         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40843         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40844         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40845         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40846         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40847         * powerpc/powerpc32/memset.S: Likewise.
40848         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40849         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40850         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40851         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40852         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40853         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40854         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40855         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40856         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40857         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40858         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40859         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40860         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40861
40862 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40863
40864         * math/libm-test.inc: Added more nearbyint tests.
40865         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40866         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40867         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40868         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40869
40870 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40871
40872         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40873         FD_CLOEXEC.
40874
40875 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40876
40877         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40878         Add wcscpy-ssse3 wcscpy-c.
40879         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40880         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40881         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40882         * sysdeps/x86_64/wcschr.S: New file.
40883         * sysdeps/x86_64/wcsrchr.S: New file.
40884         * string/test-strcmp.c: Remove checking of wcscmp function for
40885         wrong alignments.
40886         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40887         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40888         wcsrchr-sse2 wcsrchr-c.
40889         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40890         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40891         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40892         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40893         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40894         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40895         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40896         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40897         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40898         * wcsmbc/wcschr.c (WCSCHR): New macro.
40899
40900 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40901
40902         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40903         * wcsmbs/test-wcsrchr.c: New file.
40904         * string/test-strrchr.c: Add wcsrchr support.
40905         (WIDE): New macro.
40906         * wcsmbs/test-wcscpy.c: New file.
40907         * string/test-strcpy.c: Add wcscpy support.
40908         (WIDE): New macro.
40909
40910 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40911
40912         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40913         the inner loop.
40914
40915 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40916
40917         [BZ #13472]
40918         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40919
40920 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40921
40922         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40923         Minor optimizations.
40924
40925         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40926         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40927         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40928
40929 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40930
40931         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40932         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40933         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40934         for gcc to avoid warnings.
40935         * inet/Makefile (tests): Add tst-checks.
40936         * inet/tst-checks.c: New file.
40937
40938         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40939         warning.
40940
40941         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40942         __wmemcmp_sse2.
40943
40944         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40945         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40946
40947         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40948
40949 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40950
40951         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40952         problem.
40953
40954         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40955
40956 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40957
40958         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40959         conditional on GCC version.
40960         (__arch_compare_and_exchange_val_8_acq)
40961         (__arch_compare_and_exchange_val_16_acq)
40962         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40963         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40964         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40965
40966 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40967
40968         * sysdeps/sh/backtrace.c: New file.
40969
40970 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40971
40972         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40973         parenthesis.
40974
40975 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40976
40977         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40978         falling back to utime.
40979
40980 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40981
40982         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40983         expectations for float.
40984
40985 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40986
40987         * locale/weight.h (findidx): Add parameter len.
40988         * locale/weightwc.h (findidx): Likewise.
40989         * posix/fnmatch_loop.c (FCT): Adjust caller.
40990         * posix/regcomp.c (build_equiv_class): Likewise.
40991         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40992         * posix/regexec.c (check_node_accept_bytes): Likewise.
40993         * string/strcoll_l.c (STRCOLL): Likewise.
40994         * string/strxfrm_l.c (STRXFRM): Likewise.
40995
40996 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40997
40998         * Makefile.in: Remove CVSOPT handling.
40999         * configure.in: Remove use of AC_REVISION.
41000         * iconvdata/Makefile (distribute): No need to filter out CVS.
41001         * scripts/list-sources.sh: Remove CVS, subversion and monotone
41002         handling.
41003
41004 2011-11-16  Andreas Schwab  <schwab@redhat.com>
41005
41006         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
41007         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
41008         [USE_AS_STRNCASECMP_L]: Likewise.
41009         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
41010         NO_TLS_DIRECT_SEG_REFS.
41011         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
41012         Fix argument offsets for non-PIC.
41013         [USE_AS_STRNCASECMP_L]: Likewise.
41014         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
41015         NO_TLS_DIRECT_SEG_REFS.
41016
41017 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
41018
41019         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
41020         O_CLOEXEC.
41021         * locale/loadlocale.c (_nl_load_locale): Likewise.
41022
41023 2011-11-15  Andreas Schwab  <schwab@redhat.com>
41024
41025         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
41026         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
41027         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
41028         (SYSCALL_GETTIME): Set errno on error.
41029
41030         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
41031         count references to noai6ai_cached.
41032
41033 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
41034
41035         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
41036
41037         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
41038         FD_CLOEXEC for /proc/self/maps.
41039
41040         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
41041         FD_CLOEXEC for /proc/meminfo.
41042
41043         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
41044         gai.conf.
41045
41046         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
41047         FD_CLOEXEC for given file.
41048
41049         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
41050
41051         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
41052         FD_CLOEXEC for /etc/hosts.
41053         (_gethtent): Likewise.
41054
41055         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
41056
41057         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
41058         cancellation and set FD_CLOEXEC for /etc/netgroup.
41059
41060         * nss/nss_files/files-key.c (search): Don't allow cancellation when
41061         reading /etc/publickey.
41062
41063         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
41064         allow cancellation when reading /etc/group.
41065
41066         * nss/nss_files/files-alias.c (internal_setent): Don't allow
41067         cancellation.
41068         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
41069
41070         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
41071         when using data file.
41072
41073         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
41074
41075         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
41076         (write_nis_obj): Use "c" and "e" in fopen.
41077
41078         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
41079
41080         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
41081
41082         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
41083
41084         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
41085
41086         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
41087         locale.alias.
41088
41089         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
41090
41091         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
41092
41093         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
41094
41095         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
41096         file parsing and set FD_CLOEXEC.
41097
41098 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41099
41100         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
41101
41102 2011-11-14  Andreas Schwab  <schwab@redhat.com>
41103
41104         * malloc/arena.c (arena_get2): Don't call reused_arena when
41105         _int_new_arena failed.
41106
41107 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41108
41109         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
41110         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
41111         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
41112         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
41113         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
41114         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
41115         to compile strcasecmp and strncasecmp.
41116         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
41117         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
41118
41119         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
41120
41121 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
41122
41123         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
41124         locale-defines.sym to gen-as-const-headers.
41125         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
41126         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
41127         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
41128         to compile strcasecmp and strncasecmp.
41129         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
41130         strcasecmp_l and strncasecmp_l.
41131         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
41132         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
41133         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
41134         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
41135         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
41136         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
41137         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
41138         * sysdeps/i386/i686/multiarch/strncase.S: New file.
41139         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
41140         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
41141         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
41142
41143 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
41144
41145         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
41146         result of SYSDEP_GETTIME_CPU to retval.
41147         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
41148         parameter list to macro.  Remove trailing semicolon.  Adjust users.
41149
41150         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
41151         variable.
41152
41153         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
41154         mantissa words.
41155         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
41156
41157         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
41158         from unused variable.
41159
41160         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
41161         DWARF definitions.
41162         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
41163         for assembling.
41164
41165         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
41166         over namespaces.
41167
41168         * sunrpc/rpc_prot.c (rejected): Fix case value.
41169
41170         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
41171         unsigned long long int to avoid warnings in shift.
41172
41173         * posix/regex_internal.c (re_string_reconstruct): Actually use result
41174         of use of trans.
41175         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
41176         variable tmp.
41177
41178         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
41179         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
41180         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
41181
41182         * nis/nis_table.c (nis_list): Use variable of correct type for
41183         result of __follow_path call.
41184
41185 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41186
41187         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
41188         of math functions ceil, trunc, floor, round, and sqrt, when
41189         avaliable on the platform.
41190         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41191         name clash.
41192         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41193         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41194         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41195
41196 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41197
41198         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41199         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41200
41201 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41202
41203         * include/unistd.h: Fix __readlink return type.
41204         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41205
41206 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41207
41208         * stdlib/ucontext.h: Undo last change for makecontext.
41209
41210 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41211
41212         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41213
41214         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41215         * setjmp/setjmp.h: Mark functions as non-leaf.
41216         * setjmp/bits/setjmp2.h: Likewise.
41217         * stdlib/ucontext.h: Likewise.
41218
41219 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41220
41221         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41222         (reused_arena): Don't check arena limit.
41223         (arena_get2): Atomically check arena limit.
41224
41225 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41226
41227         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41228         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41229
41230         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41231         instructions.
41232
41233 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41234
41235         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41236         handler when locking.
41237
41238         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41239         Fix size of allocated buffer.
41240
41241 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41242
41243         [BZ #10103]
41244         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41245         declarations for long double functions.
41246         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41247
41248         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41249
41250 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41251
41252         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41253         installed.
41254
41255         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41256         is disabled.
41257
41258 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41259
41260         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41261
41262 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41263
41264         * include/alloca.h (stackinfo_alloca_round): Define.
41265         (extend_alloca): Use it.
41266         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41267         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41268         here.
41269
41270         * scripts/check-local-headers.sh: Ignore libaudit.h.
41271
41272         * nscd/Makefile (extra-objs): Make recursively expanded.
41273
41274 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41275
41276         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41277         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41278
41279         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41280         * posix/tst-rfc3484-2.c: Likewise.
41281         * posix/tst-rfc3484-3.c: Likewise.
41282
41283         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41284         process_vm_writev.
41285         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41286         process_vm_writev.
41287         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41288         process_vm_writev from libc using GLIBC_2.15 version.
41289
41290         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41291
41292 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41293
41294         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41295         stack usage.
41296
41297 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41298
41299         [BZ #13367]
41300         * nss/getent.c (initgroups_keys): Show error message in case no group
41301         names are given.
41302
41303         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41304         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41305         __bump_nl_timestamp.
41306         * nscd/connections (nscd_init): When host database is served open
41307         netlink socket and request notification about configuration changes.
41308         (main_loop_poll): Track netlink file descriptor and bump timestamp
41309         in case data becomes available.
41310         (main_loop_epoll): Likewise.
41311         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41312         (database_pers_head): Add extra_data fileds.
41313         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41314         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41315         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41316         Adjust caller.
41317         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41318         in6ai data, call __free_in6ai.
41319         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41320         Add -DHAVE_NETLINK.
41321         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41322         interface information.  Reuse previous data if netlink timestamp
41323         is not changed.
41324         (__bump_nl_timestamp): New function.
41325         (__free_in6ai): New function.
41326
41327 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41328
41329         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41330         close_not_cancel_no_status here.
41331         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41332
41333 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41334
41335         [BZ #13276]
41336         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41337         return value.
41338
41339         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41340         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41341         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41342
41343 2011-07-03  Andreas Jaeger  <aj@suse.de>
41344
41345         [BZ #10709]
41346         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41347         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41348         * math/libm-test.inc (sin_test): Add test case.
41349
41350 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41351
41352         [BZ #13337]
41353         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41354         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41355
41356         * elf/chroot_canon.c (chroot_canon): Cleanups.
41357
41358         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41359
41360         [BZ #13335]
41361         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41362         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41363
41364         * string/test-strchr.c: Make usable for strchrnul testing.
41365         * string/test-strchrnul.c: New file.
41366         * string/Makefile (strop-tests): Add strchrnul.
41367
41368         * po/it.po: Update from translation team.
41369         * po/es.po: Likewise.
41370
41371 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41372
41373         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41374         the three constants needed as parameters.  Drop the others.
41375         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41376         __m128i_strloadu_tolower.
41377         Create and initialize variable zero and use it in all the places
41378         where _mm_setzero_si128 was used.
41379
41380         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41381         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41382         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41383         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41384         anymore.
41385         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41386         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41387         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41388         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41389         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41390         __mpranred, __mptan.
41391         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41392         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41393         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41394         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41395         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41396         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41397         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41398         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41399         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41400
41401 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41402
41403         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41404         redefine if SHARED.
41405         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41406
41407         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41408         wide char related routines to wcsmbs subdir.
41409
41410 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41411
41412         [BZ #13344]
41413         * misc/sys/cdefs.h (__THROWNL): Define.
41414         * posix/unistd.h: Use __THREADNL instead of __THREAD
41415         for memory synchronization functions.
41416
41417 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41418
41419         [BZ #13349]
41420         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41421         doesn't exist.
41422         * manual/stdio.texi (Obstack Streams): Node removed.
41423
41424 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41425
41426         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41427         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41428         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41429
41430         * math/math_private.h (math_force_eval): Allow non-addressable
41431         arguments.
41432         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41433
41434 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41435
41436         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41437         file is not needed.
41438
41439         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41440         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41441         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41442         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41443         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41444         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41445         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41446         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41447         Add AVX variants.
41448         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41449         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41450         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41451         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41452         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41453         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41454         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41455         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41456         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41457         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41458         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41459         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41460         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41461         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41462         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41463         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41464         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41465         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41466         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41467
41468         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41469         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41470
41471         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41472         place.  Use VEX encoding when compiling for AVX.
41473
41474 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41475
41476         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41477         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41478
41479         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41480
41481 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41482
41483         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41484         useless if() expression.
41485         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41486         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41487         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41488         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41489         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41490         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41491         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41492         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41493         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41494         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41495         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41496         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41497         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41498         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41499         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41500         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41501         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41502         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41503         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41504
41505         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41506
41507 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41508
41509         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41510         condition.
41511         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41512
41513 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41514
41515         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41516         .text section.  Avoid duplicate constants.
41517         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41518         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41519         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41520         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41521         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41522         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41523         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41524         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41525         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41526         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41527         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41528         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41529         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41530         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41531         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41532         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
41533         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
41534         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
41535         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
41536         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41537         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
41538         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
41539         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
41540         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
41541         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
41542         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
41543         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
41544         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
41545         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
41546         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
41547         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
41548         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
41549         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
41550         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
41551         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
41552         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
41553         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
41554         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
41555         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
41556         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
41557         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
41558         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
41559         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
41560         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
41561         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
41562
41563 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
41564
41565         * sysdeps/x86_64/dla.h: Move to ...
41566         * sysdeps/x86_64/fpu/dla.h: ...here.
41567         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
41568         situations.  Use __builtin_fma only for gcc 4.6 and up.
41569
41570         * config.make.in: Add have-mfma4 entry.
41571         * configure.in: Substitute libc_cv_cc_fma4.
41572         * math/Makefile (dbl-only-routines): Add sincostab.
41573         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
41574         Use __sincostab not sincos.
41575         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41576         name is a macro.
41577         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41578         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41579         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41580         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41581         using __copysign.
41582         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41583         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41584         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41585         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41586         and __inv.
41587         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41588         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41589         __copysign.
41590         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41591         define aliases when function name is a macro.
41592         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41593         sysdeps/ieee754/dbl-64/sincos.tbl.
41594         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41595         fma4-enabled routines.
41596         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41597         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41598         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41599         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41600         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41601         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41602         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41603         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41604         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41605         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41606         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41607         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41608         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41609         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41610         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41611         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41612         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41613         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41614         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41615         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41616         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41617         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41618         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41619         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41620         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41621         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41622         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41623         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41624         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41625         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41626
41627         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41628         rename.
41629         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41630         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41631         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41632         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41633         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41634         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41635         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41636         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41637
41638 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41639
41640         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41641
41642 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41643
41644         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41645
41646         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41647         prediction.
41648         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41649
41650         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41651         Remove unused variable magic_bits.
41652         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41653
41654         * string/strnlen.c: Define and use STRNLEN macro.
41655         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41656         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41657         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41658         * wcsmbs/wcslen.c: Define and use WCSLEN.
41659         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41660         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41661         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41662         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41663         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41664         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41665         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41666
41667 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41668
41669         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41670         strnlen-sse2-no-bsf.
41671         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41672         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41673         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41674         Add strnlen support.
41675         (USE_AS_STRNLEN): New macro.
41676         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41677         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41678         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41679         * sysdeps/x86_64/wcslen.S: New file.
41680
41681 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41682
41683         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41684         XMM-moves are used for copying on small sizes.
41685
41686 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41687
41688         * wcsmbs/Makefile (strop-tests): Add wcschr.
41689         * wcsmbs/test-wcschr.c: New file.
41690         * string/test-strchr.c: Update.
41691         Add wcschr support.
41692         (WIDE): New macro.
41693
41694 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41695
41696         * wcsmbs/Makefile (strop-tests): Add wcslen.
41697         * wcsmbs/test-wcslen.c: New file.
41698         * string/test-strlen.c: Update.
41699         Add wcslen support.
41700         (WIDE): New macro.
41701
41702 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41703
41704         * po/it.po: Update from translation team.
41705
41706 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41707
41708         * sysdeps/x86_64/wcscmp.S: Update.
41709         Fix wrong comparison semantics.
41710         wcscmp shall use signed comparison not unsigned.
41711         Don't use substraction to avoid overflow bug.
41712         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41713         * wcsmbc/wcscmp.c: Likewise.
41714         * string/test-strcmp.c: Likewise.
41715         Add new tests to check cases with negative values.
41716
41717 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41718
41719         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41720         * sysdeps/x86_64/dla.h: ...here.  New file.
41721         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41722         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41723         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41724         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41725         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41726         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41727         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41728         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41729         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41730
41731 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41732
41733         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41734         __ynl_finite aliases.
41735
41736 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41737
41738         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41739
41740         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41741         define DLA_FMA.
41742         [DLA_FMA] (EMULV): Use DLA_FMA.
41743         [DLA_FMA] (MUL12): Use EMULV.
41744         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41745         that are not needed.
41746         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41747         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41748         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41749         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41750         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41751         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41752         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41753
41754 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41755
41756         * math/s_nan.c: Undef __nan.
41757         * math/s_nanf.c: Undef __nanf.
41758         * math/s_nanl.c: Undef __nanl.
41759         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41760         "math_private.h".
41761
41762 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41763
41764         * math/s_catan.c: Add branch predictions.
41765         * math/s_catanf.c: Likewise.
41766         * math/s_catanh.c: Likewise.
41767         * math/s_catanhf.c: Likewise.
41768         * math/s_catanhl.c: Likewise.
41769         * math/s_catanl.c: Likewise.
41770         * math/s_cexp.c: Likewise.
41771         * math/s_cexpf.c: Likewise.
41772         * math/s_cexpl.c: Likewise.
41773         * math/s_clog.c: Likewise.
41774         * math/s_clog10.c: Likewise.
41775         * math/s_clog10f.c: Likewise.
41776         * math/s_clog10l.c: Likewise.
41777         * math/s_clogf.c: Likewise.
41778         * math/s_clogl.c: Likewise.
41779         * math/s_csqrt.c: Likewise.
41780         * math/s_csqrtf.c: Likewise.
41781         * math/s_csqrtl.c: Likewise.
41782         * math/s_ctanf.c: Likewise.
41783         * math/s_ctanh.c: Likewise.
41784         * math/s_ctanhf.c: Likewise.
41785         * math/s_ctanhl.c: Likewise.
41786         * math/s_ctanl.c: Likewise.
41787
41788         * math/math_private.h: Define __nan, __nanf, __nanl.
41789         * math/s_cacosh.c: Include <math_private.h>.
41790         * math/s_cacoshl.c: Likewise.
41791         * math/s_casinh.c: Likewise.
41792         * math/s_casinhf.c: Likewise.
41793         * math/s_casinhl.c: Likewise.
41794         * math/s_ccos.c: Rely entire on ccosh.
41795         * math/s_ccosf.c: Rely entire on ccoshf.
41796         * math/s_ccosl.c: Rely entirely on ccoshl.
41797         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41798         Remove tests for FE_INVALID.
41799         * math/s_ccoshf.c: Likewise.
41800         * math/s_ccoshl.c: Likewise.
41801         * math/s_csin.c: Likewise.
41802         * math/s_csinf.c: Likewise.
41803         * math/s_csinh.c Likewise.
41804         * math/s_csinhf.c: Likewise.
41805         * math/s_csinhl.c: Likewise.
41806         * math/s_csinl.c: Likewise.
41807         * math/s_ctan.c: Likewise.
41808         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41809         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41810         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41811
41812 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41813
41814         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41815         compilation problems.
41816
41817         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41818         __builtin_expect.
41819
41820 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41821
41822         * sysdeps/i386/configure.in: Test for -mfma4 option.
41823         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41824         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41825         COMMON_CPUID_INDEX_80000001.
41826         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41827         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41828         use it if FMA3 is not supported.
41829         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41830
41831         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41832         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41833
41834 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41835
41836         [BZ #12892]
41837         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41838         it would create a cycle with a link time dependency.
41839
41840 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41841
41842         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41843         instruction.
41844         * string/Makefile (strop-tests): Add rawmemchr.
41845         * string/test-rawmemchr.c: New file.
41846
41847         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41848         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41849         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41850         when compiling str{,n}casecmp and when AVX is available.  Hook up
41851         new optimized code in initializers.
41852
41853 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41854
41855         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41856         __feraiseexcept instead of feraiseexcept.
41857
41858 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41859
41860         * math/math_private.h: Define defaults for libc_fetestexcept and
41861         libc_feupdateenv.
41862         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41863         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41864         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41865         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41866         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41867         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41868         libc_fetestexcept and libc_feupdateenv.
41869
41870         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41871         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41872         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41873         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41874         libc_feholdexcept_setround.
41875
41876         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41877         Add s_nearbyint-c and s_nearbyintf-c.
41878         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41879         nearbyintf inlines.
41880         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41881         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41882         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41883         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41884
41885         * math/math_private.h: Define defaults for libc_fegetround,
41886         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41887         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41888         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41889         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41890         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41891         standard functions.
41892         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41893         Remove comments and hacks for old compiler versions.
41894         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41895         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41896         libc_feholdexceptl.
41897
41898 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41899
41900         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41901         (__feraiseexcept_renamed): Add __NTH.
41902         (feraiseexcept): Add __NTH.  Rename local variables to fix
41903         namespace violations.
41904
41905 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41906
41907         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41908
41909         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41910
41911         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41912         recently added interfaces.
41913         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41914
41915         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41916         about macro parameter expansion.
41917
41918         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41919         __NO_MATH_INLINES is defined.  Cleanups.
41920
41921         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41922         and __floorf is target has SSE4.1.
41923         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41924         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41925         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41926         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41927
41928         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41929         name.
41930         (floorf): Likewise.
41931
41932         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41933
41934 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41935
41936         * misc/sys/cdefs.h: Fix last change.
41937
41938         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41939         database lookup.
41940
41941 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41942
41943         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41944
41945         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41946         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41947         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41948         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41949         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41950         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41951         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41952         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41953         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41954         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41955         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41956         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41957         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41958         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41959         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41960         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41961         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41962         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41963         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41964         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41965         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41966         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41967
41968         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41969         ceil, ceilf, floor, floorf.
41970
41971         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41972         Perform IRELATIVE relocations last.
41973
41974         * elf/do-rel.h: Add another parameter nrelative, replacing the
41975         local variable with the same name.  Change name of the function
41976         to end in Rel or Rela (uppercase).
41977         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41978         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41979         elf_dynamic_do_##reloc function.
41980
41981 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41982
41983         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41984         is sufficient, at least on modern CPUs.
41985
41986         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41987
41988         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41989         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41990
41991         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41992         __expl_finite.
41993         * math/bits/math-finite.h: Add entries for exp.
41994         * math/e_expl.c: Add __*_finite alias.
41995         * sysdeps/i386/fpu/e_exp.S: Likewise.
41996         * sysdeps/i386/fpu/e_expf.S: Likewise.
41997         * sysdeps/i386/fpu/e_expl.c: Likewise.
41998         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41999         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
42000         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
42001         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
42002         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
42003         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
42004         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
42005
42006         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
42007         is sufficient, at least on modern CPUs.
42008
42009         * ctype/ctype-info.c (__ctype_init): Define.
42010         * include/ctype.h (__ctype_init): Declare.
42011         (__ctype_b_loc): The variable is always initialized.
42012         (__ctype_toupper_loc): Likewise.
42013         (__ctype_tolower_loc): Likewise.
42014         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
42015         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
42016
42017 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
42018
42019         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
42020
42021         * configure.in: Also look in $cxxmachine/include for C++ system
42022         headers.
42023
42024 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42025
42026         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
42027         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
42028         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
42029         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
42030         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
42031         (USE_AS_WMEMCMP): New macro.
42032         Fixing indents.
42033         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
42034         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
42035         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
42036         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
42037         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42038         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
42039         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
42040         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
42041         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
42042         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
42043         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
42044         (USE_AS_WMEMCMP): New macro.
42045         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
42046         * sysdeps/string/test-memcmp.c: Update.
42047         Fix simple_wmemcmp.
42048         Add new tests.
42049         * wcsmbs/wmemcmp.c: Update.
42050         (WMEMCMP): New macro.
42051         Fix overflow bug.
42052
42053 2011-10-12  Andreas Jaeger  <aj@suse.de>
42054
42055         [BZ #13268]
42056         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
42057
42058 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
42059
42060         * libio/iofwide.c (do_length): Avoid warning.
42061
42062         * ctype/ctype.h (__isctype_f): Add missing __THROW.
42063
42064 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
42065
42066         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
42067
42068         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
42069         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
42070         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
42071         * sysdeps/i386/i686/fpu/e_log.S: New file.
42072         * sysdeps/i386/i686/fpu/e_logf.S: New file.
42073         * sysdeps/i386/i686/fpu/e_logl.S: New file.
42074
42075         * ctype/ctype.h: Add support for inlined isXXX functions when
42076         compiling C++ code.
42077
42078 2011-10-14  Andreas Schwab  <schwab@redhat.com>
42079
42080         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42081
42082         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
42083
42084 2011-10-13  Roland McGrath  <roland@hack.frob.com>
42085
42086         [BZ #13291]
42087         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
42088
42089 2011-10-13  Andreas Schwab  <schwab@redhat.com>
42090
42091         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
42092         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
42093         feraiseexcept.
42094
42095         * sysdeps/x86_64/memrchr.S: Check for zero size.
42096
42097         * string/stratcliff.c: Add memrchr tests.
42098
42099 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42100
42101         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42102         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
42103         rawmemchr-sse2 rawmemchr-sse2-bsf.
42104         * sysdeps/i386/i686/multiarch/memchr.S: New file.
42105         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
42106         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
42107         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
42108         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
42109         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
42110         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
42111         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
42112         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
42113         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
42114         * string/memrchr.c (MEMRCHR): New macro.
42115
42116 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
42117
42118         Add integration with gcc's -ffinite-math-only and optimize wrapper
42119         functions in libm.
42120         * Versions.def: Define GLIBC_2.15 version for libm.
42121         * math/Makefile (headers): Add bits/math-finite.h.
42122         * math/bits/math-finite.h: New file.
42123         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
42124         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
42125         * math/e_acoshl.c: Add __*_finite alias.
42126         * math/e_acosl.c: Likewise.
42127         * math/e_asinl.c: Likewise.
42128         * math/e_atan2l.c: Likewise.
42129         * math/e_atanhl.c: Likewise.
42130         * math/e_coshl.c: Likewise.
42131         * math/e_exp10.c: Likewise.
42132         * math/e_exp10f.c: Likewise.
42133         * math/e_exp10l.c: Likewise.
42134         * math/e_exp2l.c: Likewise.
42135         * math/e_fmodl.c: Likewise.
42136         * math/e_gammal_r.c: Likewise.
42137         * math/e_hypotl.c: Likewise.
42138         * math/e_j0l.c: Likewise.
42139         * math/e_j1l.c: Likewise.
42140         * math/e_jnl.c: Likewise.
42141         * math/e_lgammal_r.c: Likewise.
42142         * math/e_log10l.c: Likewise.
42143         * math/e_log2l.c: Likewise.
42144         * math/e_logl.c: Likewise.
42145         * math/e_powl.c: Likewise.
42146         * math/e_sinhl.c: Likewise.
42147         * math/e_sqrtl.c: Likewise.
42148         * math/e_scalb.c: Completely rewritten and optimized.
42149         * math/e_scalbf.c: Likewise.
42150         * math/e_scalbl.c: Likewise.
42151         * math/w_acos.c: Likewise.
42152         * math/w_acosf.c: Likewise.
42153         * math/w_acosl.c: Likewise.
42154         * math/w_acosh.c: Likewise.
42155         * math/w_acoshf.c: Likewise.
42156         * math/w_acoshl.c: Likewise.
42157         * math/w_asin.c: Likewise.
42158         * math/w_asinf.c: Likewise.
42159         * math/w_asinl.c: Likewise.
42160         * math/w_atan2.c: Likewise.
42161         * math/w_atan2f.c: Likewise.
42162         * math/w_atan2l.c: Likewise.
42163         * math/w_atanh.c: Likewise.
42164         * math/w_atanhf.c: Likewise.
42165         * math/w_atanhl.c: Likewise.
42166         * math/w_exp10.c: Likewise.
42167         * math/w_exp10f.c: Likewise.
42168         * math/w_exp10l.c: Likewise.
42169         * math/w_fmod.c: Likewise.
42170         * math/w_fmodf.c: Likewise.
42171         * math/w_fmodl.c: Likewise.
42172         * math/w_j0.c: Likewise.
42173         * math/w_j0f.c: Likewise.
42174         * math/w_j0l.c: Likewise.
42175         * math/w_j1.c: Likewise.
42176         * math/w_j1f.c: Likewise.
42177         * math/w_j1l.c: Likewise.
42178         * math/w_jn.c: Likewise.
42179         * math/w_jnf.c: Likewise.
42180         * math/w_log.c: Likewise.
42181         * math/w_logf.c: Likewise.
42182         * math/w_logl.c: Likewise.
42183         * math/w_log10.c: Likewise.
42184         * math/w_log10f.c: Likewise.
42185         * math/w_log10l.c: Likewise.
42186         * math/w_log2.c: Likewise.
42187         * math/w_log2f.c: Likewise.
42188         * math/w_log2l.c: Likewise.
42189         * math/w_pow.c: Likewise.
42190         * math/w_powf.c: Likewise.
42191         * math/w_powl.c: Likewise.
42192         * math/w_remainder.c: Likewise.
42193         * math/w_remainderf.c: Likewise.
42194         * math/w_remainderl.c: Likewise.
42195         * math/w_scalb.c: Likewise.
42196         * math/w_scalbf.c: Likewise.
42197         * math/w_scalbl.c: Likewise.
42198         * math/w_sqrt.c: Likewise.
42199         * math/w_sqrtf.c: Likewise.
42200         * math/w_sqrtl.c: Likewise.
42201         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42202         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42203         used.
42204         * math/math_private.h: Declare __kernel_standard_f.
42205         * math/w_cosh.c: Remove cruft and optimize a bit.
42206         * math/w_coshf.c: Likewise.
42207         * math/w_coshl.c: Likewise.
42208         * math/w_exp2.c: Likewise.
42209         * math/w_exp2f.c: Likewise.
42210         * math/w_exp2l.c: Likewise.
42211         * math/w_hypot.c: Likewise.
42212         * math/w_hypotf.c: Likewise.
42213         * math/w_hypotl.c: Likewise.
42214         * math/w_lgamma.c: Likewise.
42215         * math/w_lgamma_r.c: Likewise.
42216         * math/w_lgammaf.c: Likewise.
42217         * math/w_lgammaf_r.c: Likewise.
42218         * math/w_lgammal.c: Likewise.
42219         * math/w_lgammal_r.c: Likewise.
42220         * math/w_sinh.c: Likewise.
42221         * math/w_sinhf.c: Likewise.
42222         * math/w_sinhl.c: Likewise.
42223         * math/w_tgamma.c: Likewise.
42224         * math/w_tgammaf.c: Likewise.
42225         * math/w_tgammal.c: Likewise.
42226         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42227         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42228         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42229         Minor optimizations.  Pretty printing.  Remove cruft.
42230         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42231         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42232         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42233         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42234         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42235         * sysdeps/i386/fpu/e_asin.S: Likewise.
42236         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42237         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42238         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42239         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42240         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42241         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42242         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42243         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42244         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42245         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42246         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42247         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42248         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42249         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42250         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42251         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42252         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42253         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42254         * sysdeps/i386/fpu/e_log.S: Likewise.
42255         * sysdeps/i386/fpu/e_log10.S: Likewise.
42256         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42257         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42258         * sysdeps/i386/fpu/e_log2.S: Likewise.
42259         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42260         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42261         * sysdeps/i386/fpu/e_logf.S: Likewise.
42262         * sysdeps/i386/fpu/e_logl.S: Likewise.
42263         * sysdeps/i386/fpu/e_pow.S: Likewise.
42264         * sysdeps/i386/fpu/e_powf.S: Likewise.
42265         * sysdeps/i386/fpu/e_powl.S: Likewise.
42266         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42267         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42268         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42269         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42270         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42271         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42272         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42273         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42274         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42275         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42276         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42277         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42278         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42279         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42280         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42281         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42282         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42283         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42284         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42285         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42286         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42287         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42288         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42289         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42290         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42291         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42292         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42293         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42294         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42295         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42296         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42297         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42298         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42299         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42300         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42301         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42302         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42303         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42304         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42305         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42306         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42307         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42308         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42309         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42310         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42311         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42312         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42313         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42314         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42315         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42316         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42317         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42318         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42319         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42320         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42321         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42322         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42323         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42324         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42325         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42326         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42327         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42328         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42329         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42330         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42331         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42332         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42333         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42334         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42335         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42336         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42337         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42338         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42339         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42340         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42341         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42342         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42343         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42344         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42345         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42346         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42347         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42348         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42349         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42350         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42351         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42352         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42353         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42354         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42355         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42356         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42357         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42358         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42359         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42360         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42361         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42362         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42363         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42364         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42365         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42366         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42367         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42368         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42369         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42370         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42371         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42372         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42373         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42374         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42375         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42376         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42377         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42378         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42379         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42380         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42381         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42382         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42383         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42384         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42385         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42386         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42387         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42388         (__isnanf): Likewise.
42389         (__isinf_ns): Likewise.
42390         (__isinf_nsf): Likewise.
42391         (__finite): Likewise.
42392         (__finitef): Likewise.
42393         (__ieee754_sqrt): Define as macro.
42394         (__ieee754_sqrtf): Define as macro.
42395         (__ieee754_sqrtl): Define as macro.
42396         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42397         inlined copy.
42398         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42399         __FINITE_MATH_ONLY__ consistent.
42400         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42401
42402 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42403
42404         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42405         of rawmemchr.
42406
42407         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42408
42409 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42410
42411         * po/ja.po: Update from translation team.
42412
42413 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42414
42415         * locale/programs/locarchive.c (prepare_address_space): New function.
42416         (create_archive, enlarge_archive, open_archive): Use it.
42417
42418         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42419         inside [SHARED], where it is used.
42420
42421         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42422
42423         * nss/getent.c (netgroup_keys): Remove unused variable.
42424         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42425
42426 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42427
42428         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42429         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42430         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42431         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42432         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42433         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42434         * math/Makefile (libm-calls): Add s_isinf_ns.
42435         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42436         * math/multc3.c: Likewise.
42437         * math/s_casin.c: Likewise.
42438         * math/s_casinf.c: Likewise.
42439         * math/s_casinl.c: Likewise.
42440         * math/s_ccos.c: Likewise.
42441         * math/s_ccosf.c: Likewise.
42442         * math/s_ccosl.c: Likewise.
42443         * math/s_ctan.c: Likewise.
42444         * math/s_ctanf.c: Likewise.
42445         * math/s_ctanh.c: Likewise.
42446         * math/s_ctanhf.c: Likewise.
42447         * math/s_ctanhl.c: Likewise.
42448         * math/s_ctanl.c: Likewise.
42449         * math/w_fmod.c: Likewise.
42450         * math/w_fmodf.c: Likewise.
42451         * math/w_fmodl.c: Likewise.
42452         * math/w_remainder.c: Likewise.
42453         * math/w_remainderf.c: Likewise.
42454         * math/w_remainderl.c: Likewise.
42455         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42456         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42457         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42458         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42459         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42460         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42461         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42462         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42463
42464         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42465         of the number.
42466         * stdio-common/printf_fphex.c: Likewise.
42467         * stdio-common/printf_size.c: Likewise.
42468
42469         * math/e_exp10.c: Include math_private.h using <...> not "...".
42470         * math/e_exp10f.c: Likewise.
42471         * math/e_exp10l.c: Likewise.
42472         * math/e_exp2l.c: Likewise.
42473         * math/e_j0l.c: Likewise.
42474         * math/e_j1l.c: Likewise.
42475         * math/e_jnl.c: Likewise.
42476         * math/e_lgammal_r.c: Likewise.
42477         * math/e_rem_pio2l.c: Likewise.
42478         * math/e_scalb.c: Likewise.
42479         * math/e_scalbf.c: Likewise.
42480         * math/e_scalbl.c: Likewise.
42481         * math/k_cosl.c: Likewise.
42482         * math/k_sinl.c: Likewise.
42483         * math/k_tanl.c: Likewise.
42484         * math/s_cacoshf.c: Likewise.
42485         * math/s_catan.c: Likewise.
42486         * math/s_catanf.c: Likewise.
42487         * math/s_catanh.c: Likewise.
42488         * math/s_catanhf.c: Likewise.
42489         * math/s_catanhl.c: Likewise.
42490         * math/s_catanl.c: Likewise.
42491         * math/s_ccosh.c: Likewise.
42492         * math/s_ccoshf.c: Likewise.
42493         * math/s_ccoshl.c: Likewise.
42494         * math/s_cexp.c: Likewise.
42495         * math/s_cexpf.c: Likewise.
42496         * math/s_cexpl.c: Likewise.
42497         * math/s_clog.c: Likewise.
42498         * math/s_clog10.c: Likewise.
42499         * math/s_clog10f.c: Likewise.
42500         * math/s_clog10l.c: Likewise.
42501         * math/s_clogf.c: Likewise.
42502         * math/s_clogl.c: Likewise.
42503         * math/s_csin.c: Likewise.
42504         * math/s_csinf.c: Likewise.
42505         * math/s_csinh.c: Likewise.
42506         * math/s_csinhf.c: Likewise.
42507         * math/s_csinhl.c: Likewise.
42508         * math/s_csinl.c: Likewise.
42509         * math/s_csqrt.c: Likewise.
42510         * math/s_csqrtf.c: Likewise.
42511         * math/s_csqrtl.c: Likewise.
42512         * math/s_ctan.c: Likewise.
42513         * math/s_ctanf.c: Likewise.
42514         * math/s_ctanh.c: Likewise.
42515         * math/s_ctanhf.c: Likewise.
42516         * math/s_ctanhl.c: Likewise.
42517         * math/s_ctanl.c: Likewise.
42518         * math/s_ldexp.c: Likewise.
42519         * math/s_ldexpf.c: Likewise.
42520         * math/s_ldexpl.c: Likewise.
42521         * math/s_significand.c: Likewise.
42522         * math/s_significandf.c: Likewise.
42523         * math/s_significandl.c: Likewise.
42524         * math/w_acos.c: Likewise.
42525         * math/w_acosf.c: Likewise.
42526         * math/w_acosh.c: Likewise.
42527         * math/w_acoshf.c: Likewise.
42528         * math/w_acoshl.c: Likewise.
42529         * math/w_acosl.c: Likewise.
42530         * math/w_asin.c: Likewise.
42531         * math/w_asinf.c: Likewise.
42532         * math/w_asinl.c: Likewise.
42533         * math/w_atan2.c: Likewise.
42534         * math/w_atan2f.c: Likewise.
42535         * math/w_atan2l.c: Likewise.
42536         * math/w_atanh.c: Likewise.
42537         * math/w_atanhf.c: Likewise.
42538         * math/w_atanhl.c: Likewise.
42539         * math/w_cosh.c: Likewise.
42540         * math/w_coshf.c: Likewise.
42541         * math/w_coshl.c: Likewise.
42542         * math/w_dremf.c: Likewise.
42543         * math/w_exp10.c: Likewise.
42544         * math/w_exp10f.c: Likewise.
42545         * math/w_exp10l.c: Likewise.
42546         * math/w_exp2.c: Likewise.
42547         * math/w_exp2f.c: Likewise.
42548         * math/w_fmod.c: Likewise.
42549         * math/w_fmodf.c: Likewise.
42550         * math/w_fmodl.c: Likewise.
42551         * math/w_hypot.c: Likewise.
42552         * math/w_hypotf.c: Likewise.
42553         * math/w_hypotl.c: Likewise.
42554         * math/w_j0.c: Likewise.
42555         * math/w_j0f.c: Likewise.
42556         * math/w_j0l.c: Likewise.
42557         * math/w_j1.c: Likewise.
42558         * math/w_j1f.c: Likewise.
42559         * math/w_j1l.c: Likewise.
42560         * math/w_jn.c: Likewise.
42561         * math/w_jnf.c: Likewise.
42562         * math/w_jnl.c: Likewise.
42563         * math/w_lgamma.c: Likewise.
42564         * math/w_lgamma_r.c: Likewise.
42565         * math/w_lgammaf.c: Likewise.
42566         * math/w_lgammaf_r.c: Likewise.
42567         * math/w_lgammal.c: Likewise.
42568         * math/w_lgammal_r.c: Likewise.
42569         * math/w_log.c: Likewise.
42570         * math/w_log10.c: Likewise.
42571         * math/w_log10f.c: Likewise.
42572         * math/w_log10l.c: Likewise.
42573         * math/w_log2.c: Likewise.
42574         * math/w_log2f.c: Likewise.
42575         * math/w_log2l.c: Likewise.
42576         * math/w_logf.c: Likewise.
42577         * math/w_logl.c: Likewise.
42578         * math/w_pow.c: Likewise.
42579         * math/w_powf.c: Likewise.
42580         * math/w_powl.c: Likewise.
42581         * math/w_remainder.c: Likewise.
42582         * math/w_remainderf.c: Likewise.
42583         * math/w_remainderl.c: Likewise.
42584         * math/w_scalb.c: Likewise.
42585         * math/w_scalbf.c: Likewise.
42586         * math/w_scalbl.c: Likewise.
42587         * math/w_sinh.c: Likewise.
42588         * math/w_sinhf.c: Likewise.
42589         * math/w_sinhl.c: Likewise.
42590         * math/w_sqrt.c: Likewise.
42591         * math/w_sqrtf.c: Likewise.
42592         * math/w_sqrtl.c: Likewise.
42593         * math/w_tgamma.c: Likewise.
42594         * math/w_tgammaf.c: Likewise.
42595         * math/w_tgammal.c: Likewise.
42596
42597         * po/ja.po: Update from translation team.
42598
42599 2011-09-29  Andreas Jaeger  <aj@suse.de>
42600
42601         [BZ #13179]
42602         * sunrpc/netname.c (netname2host): Fix logic.
42603
42604         [BZ #6779]
42605         [BZ #6783]
42606         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42607         correctly.
42608         * math/w_remainder.c (__remainder): Likewise.
42609         * math/w_remainderf.c (__remainderf): Likewise.
42610         * math/libm-test.inc (remainder_test): Add test cases.
42611
42612 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42613
42614         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42615         sdiv_qrnnd.
42616
42617 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42618
42619         * string/test-memcmp.c: Avoid unncessary #defines.
42620         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42621
42622 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42623
42624         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42625         Use new sse2 version for core i3 - i7 as it's faster
42626         than sse42 version.
42627         (bit_Prefer_PMINUB_for_stringop): New.
42628         * sysdeps/x86_64/rawmemchr.S: Update.
42629         Replace with faster SSE2 version.
42630         * sysdeps/x86_64/memrchr.S: New file.
42631         * sysdeps/x86_64/memchr.S: Update.
42632         Replace with faster SSE2 version.
42633
42634 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42635
42636         * elf/dl-load.c (lose): Add cast to avoid warning.
42637
42638 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42639
42640         * po/ca.po: Update from translation team.
42641
42642         * inet/getnetgrent_r.c: Hook up nscd.
42643         * nscd/Makefile (routines): Add nscd_netgroup.
42644         (nscd-modules): Add netgroupcache.
42645         (CFLAGS-netgroupcache.c): Define.
42646         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42647         (cache_search): Add const to second parameter.
42648         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42649         INNETGR.
42650         (dbs): Add netgrdb entry.
42651         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42652         (verify_persistent_db): Handle netgrdb.
42653         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42654         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42655         GETFDNETGR.
42656         (netgroup_response_header): Define.
42657         (innetgroup_response_header): Define.
42658         (datahead): Add netgroup_response_header and innetgroup_response_header
42659         elements.
42660         * nscd/nscd.conf: Add entries for netgroup cache.
42661         * nscd/nscd.h (dbtype): Add netgrdb.
42662         (_PATH_NSCD_NETGROUP_DB): Define.
42663         (netgroup_iov_disabled): Declare.
42664         (xmalloc, xcalloc, xrealloc): Move declarations here.
42665         (cache_search): Adjust prototype.
42666         Add netgroup-related prototypes.
42667         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42668         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42669         (__nscd_innetgr): Declare.
42670         * nscd/selinux.c (perms): Use access_vector_t as element type and
42671         add netgroup-related initializers.
42672         * nscd/netgroupcache.c: New file.
42673         * nscd/nscd_netgroup.c: New file.
42674         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42675         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42676         For four parameters use innetgr.
42677         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42678         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42679         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42680         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42681
42682         * nscd/connections.c (register_traced_file): Don't register file
42683         for disabled databases.
42684
42685 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42686
42687         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42688
42689         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42690         from tree and freeing node.
42691
42692 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42693
42694         * nss/nsswitch.c (__nss_database_lookup): Handle
42695         nss_parse_service_list out of memory case.
42696
42697 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42698
42699         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42700         out of memory case.
42701
42702 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42703
42704         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42705         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42706         pass it down.
42707         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42708         elf_machine_rela, elf_machine_lazy_rel.
42709         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42710         (ELF_DYNAMIC_DO_REL): Likewise.
42711         (ELF_DYNAMIC_DO_RELA): Likewise.
42712         (ELF_DYNAMIC_RELOCATE): Likewise.
42713         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42714         to ELF_DYNAMIC_DO_REL.
42715         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42716         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42717         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42718         elf_machine_rela.
42719         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42720         skip_ifunc, don't call ifunc function if non-zero.
42721         (elf_machine_rela): Likewise.
42722         (elf_machine_lazy_rel): Likewise.
42723         (elf_machine_lazy_rela): Likewise.
42724         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42725         (elf_machine_lazy_rel): Likewise.
42726         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42727         Likewise.
42728         (elf_machine_lazy_rel): Likewise.
42729         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42730         Likewise.
42731         (elf_machine_lazy_rel): Likewise.
42732         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42733         (elf_machine_lazy_rel): Likewise.
42734         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42735         (elf_machine_lazy_rel): Likewise.
42736         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42737         (elf_machine_lazy_rel): Likewise.
42738         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42739         (elf_machine_lazy_rel): Likewise.
42740         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42741         (elf_machine_lazy_rel): Likewise.
42742         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42743         (elf_machine_lazy_rel): Likewise.
42744
42745 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42746
42747         * nss/nss_files/files-init.c (_nss_files_init): Use static
42748         initialization for all the *_traced_file variables.
42749
42750 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42751
42752         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42753
42754 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42755
42756         [BZ #13226]
42757         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42758
42759 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42760
42761         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42762         Reread the line before reparsing it.
42763
42764 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42765
42766         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42767
42768 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42769             Maxim Kuvyrkov  <maxim@codesourcery.com>
42770             Joseph Myers  <joseph@codesourcery.com>
42771
42772         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42773         if needed for __stack_chk_guard.
42774
42775 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42776
42777         * sysdeps/posix/spawni.c (script_execute): Always define it.
42778         It will be optimized away if unused.
42779         (maybe_script_execute): New function.
42780         (__spawni): Call it.
42781
42782         * Makerules: Don't include tls.make.
42783         (config-tls): Always set to thread.
42784         * tls.make.c: File removed.
42785
42786 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42787
42788         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42789         * config.make.in (CPPFLAGS-config): New substituted variable.
42790
42791 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42792
42793         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42794
42795         [BZ #13192]
42796         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42797         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42798
42799 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42800
42801         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42802         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42803         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42804         (CALL_FAIL): Likewise.
42805         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42806         (CALL_FAIL): Macro removed.
42807         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42808
42809 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42810
42811         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42812         for __FINITE_MATH_ONLY__ == 1.
42813
42814 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42815
42816         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42817         __ieee754_sqrt instead of sqrt.
42818         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42819         __ieee754_sqrtf instead of sqrtf.
42820         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42821         __floorf instead of floorf.
42822         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42823         __floorf, __truncf instead of floorf, truncf.
42824
42825 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42826
42827         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42828
42829         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42830         __extern_always_inline.
42831         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42832         32-bit.
42833
42834 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42835
42836         * elf/rtld.c (dl_main): Also relocate in dependency order when
42837         doing symbol dependency testing.
42838
42839 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42840
42841         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42842         Always define `refsym'.
42843
42844 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42845
42846         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42847         (__FD_ELT): Renamed from __FDELT.
42848         * misc/bits/select2.h (__FD_ELT): Likewise.
42849         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42850         __FD_MASK instead of __FDELT, __FDMASK.
42851         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42852         Likewise.
42853         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42854         Likewise.
42855
42856         * elf/Makefile (gen-ldd): Fix pattern.
42857
42858         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42859         (init_tls): Likewise.
42860
42861 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42862
42863         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42864
42865 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42866
42867         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42868         `struct cmsghdr *' instead of `void *'.
42869         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42870         Likewise.
42871
42872 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42873
42874         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42875         if non-absolute.
42876         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42877         ldd_rewrite_script.
42878
42879 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42880
42881         * configure.in: Remove --with-tls option.
42882         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42883         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42884         out in case it is missing.
42885         * sysdeps/ia64/elf/configure.in: Likewise.
42886         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42887         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42888         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42889         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42890         * sysdeps/sh/elf/configure.in: Likewise.
42891         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42892         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42893         * sysdeps/x86_64/elf/configure.in: Likewise.
42894         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42895         * sysdeps/mach/hurd/tls.h: Likewise.
42896
42897         [BZ #13067]
42898         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42899
42900         [BZ #13090]
42901         * configure.in: Fix use of AC_INIT.
42902
42903         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42904
42905 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42906
42907         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42908         __set_errno.
42909         * malloc/hooks.c: Likewise.
42910
42911         [BZ #11929]
42912         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42913         variables statically.
42914         (narenas): Initialize.
42915         (list_lock): Initialize.
42916         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42917         initializtion of main_arena and list_lock.  Small cleanups.
42918         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42919         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42920         Add initializers to main_arena and mp_.
42921         (malloc_state): Remove pagesize member.  Change all users to use
42922         GLRO(dl_pagesize).
42923
42924         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42925         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42926         is always initialized.
42927
42928         * malloc/malloc.c: Removed unused configurations and dead code.
42929         * malloc/arena.c: Likewise.
42930         * malloc/hooks.c: Likewise.
42931         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42932
42933         * include/tls.h: Removed.  USE___THREAD must always be defined.
42934         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42935         * elf/dl-libc.c: Likewise.
42936         * elf/dl-tsd.c: Likewise.
42937         * include/errno.h: Likewise.
42938         * include/netdb.h: Likewise.
42939         * include/resolv.h: Likewise.
42940         * inet/herrno-loc.c: Likewise.
42941         * inet/herrno.c: Likewise.
42942         * malloc/arena.c: Likewise.
42943         * malloc/hooks.c: Likewise.
42944         * malloc/malloc.c: Likewise.
42945         * resolv/res-state.c: Likewise.
42946         * resolv/res_libc.c: Likewise.
42947         * sysdeps/i386/dl-machine.h: Likewise.
42948         * sysdeps/ia64/dl-machine.h: Likewise.
42949         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42950         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42951         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42952         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42953         * sysdeps/sh/dl-machine.h: Likewise.
42954         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42955         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42956         * sysdeps/unix/i386/sysdep.S: Likewise.
42957         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42958         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42959         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42960         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42961         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42962         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42963         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42964         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42965         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42966         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42967         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42968         * sysdeps/x86_64/dl-machine.h: Likewise.
42969         * tls.make.c: Likewise.
42970
42971         * configure.in: Remove --with-__thread option.  Make tests for
42972         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42973         tls_model attribute fail if no support is available.  Remove
42974         USE_IN_LIBIO.
42975         * Makeconfig: Adjust for dropped configure option.  All features are
42976         now mandatory.
42977         * Makerules: Likewise.
42978         * Versions.def: Likewise.
42979         * argp/argp-fmtstream.c: Likewise.
42980         * argp/argp-fmtstream.h: Likewise.
42981         * argp/argp-help.c: Likewise.
42982         * assert/assert.c: Likewise.
42983         * config.h.in: Likewise.
42984         * config.make.in: Likewise.
42985         * configure: Likewise.
42986         * configure.in: Likewise.
42987         * csu/Versions: Likewise.
42988         * csu/init.c: Likewise.
42989         * elf/tst-audit2.c: Likewise.
42990         * elf/tst-tls10.c: Likewise.
42991         * elf/tst-tls10.h: Likewise.
42992         * elf/tst-tls11.c: Likewise.
42993         * elf/tst-tls12.c: Likewise.
42994         * elf/tst-tls14.c: Likewise.
42995         * elf/tst-tlsmod11.c: Likewise.
42996         * elf/tst-tlsmod12.c: Likewise.
42997         * elf/tst-tlsmod13.c: Likewise.
42998         * elf/tst-tlsmod13a.c: Likewise.
42999         * elf/tst-tlsmod14a.c: Likewise.
43000         * elf/tst-tlsmod15b.c: Likewise.
43001         * elf/tst-tlsmod16a.c: Likewise.
43002         * elf/tst-tlsmod16b.c: Likewise.
43003         * elf/tst-tlsmod7.c: Likewise.
43004         * elf/tst-tlsmod8.c: Likewise.
43005         * elf/tst-tlsmod9.c: Likewise.
43006         * gmon/gmon.c: Likewise.
43007         * grp/fgetgrent_r.c: Likewise.
43008         * grp/putgrent.c: Likewise.
43009         * hurd/fopenport.c: Likewise.
43010         * include/libc-symbols.h: Likewise.
43011         * include/tls.h: Likewise.
43012         * intl/gettextP.h: Likewise.
43013         * intl/loadinfo.h: Likewise.
43014         * locale/global-locale.c: Likewise.
43015         * locale/localeinfo.h: Likewise.
43016         * mach/devstream.c: Likewise.
43017         * malloc/arena.c: Likewise.
43018         * malloc/set-freeres.c: Likewise.
43019         * misc/err.c: Likewise.
43020         * misc/getttyent.c: Likewise.
43021         * misc/mntent_r.c: Likewise.
43022         * posix/getopt.c: Likewise.
43023         * posix/wordexp.c: Likewise.
43024         * pwd/fgetpwent_r.c: Likewise.
43025         * resolv/Versions: Likewise.
43026         * resolv/res_hconf.c: Likewise.
43027         * shadow/fgetspent_r.c: Likewise.
43028         * shadow/putspent.c: Likewise.
43029         * stdio-common/printf_fphex.c: Likewise.
43030         * stdio-common/tmpfile.c: Likewise.
43031         * stdlib/abort.c: Likewise.
43032         * stdlib/fmtmsg.c: Likewise.
43033         * sunrpc/auth_unix.c: Likewise.
43034         * sunrpc/clnt_perr.c: Likewise.
43035         * sunrpc/clnt_tcp.c: Likewise.
43036         * sunrpc/clnt_udp.c: Likewise.
43037         * sunrpc/clnt_unix.c: Likewise.
43038         * sunrpc/openchild.c: Likewise.
43039         * sunrpc/svc_simple.c: Likewise.
43040         * sunrpc/svc_tcp.c: Likewise.
43041         * sunrpc/svc_udp.c: Likewise.
43042         * sunrpc/svc_unix.c: Likewise.
43043         * sunrpc/xdr.c: Likewise.
43044         * sunrpc/xdr_array.c: Likewise.
43045         * sunrpc/xdr_rec.c: Likewise.
43046         * sunrpc/xdr_ref.c: Likewise.
43047         * sunrpc/xdr_stdio.c: Likewise.
43048
43049 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43050
43051         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
43052
43053 2011-07-03  Andreas Jaeger  <aj@suse.de>
43054
43055         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
43056         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
43057         regenerate with gen-libm-tests.pl.
43058
43059 2010-05-12  Petr Baudis  <pasky@suse.cz>
43060
43061         [BZ #11589]
43062         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
43063         around j0() zero points by switching to j1().
43064         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
43065         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
43066         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
43067         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
43068
43069 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43070
43071         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
43072         instead of 0.
43073         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
43074         instead of 0.
43075         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
43076         Patch in part by Pavel Roskin <proski@gnu.org>.
43077
43078         [BZ #13138]
43079         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
43080         realloc.
43081         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
43082         Free memory block if necessary.
43083
43084         [BZ #12847]
43085         * libio/genops.c (INTDEF): For string streams the _lock pointer can
43086         be NULL.  Don't lock in this case.
43087
43088 2011-09-09  Roland McGrath  <roland@hack.frob.com>
43089
43090         * elf/elf.h (ELFOSABI_GNU): New macro.
43091         (ELFOSABI_LINUX): Define to that.
43092
43093 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
43094
43095         * string/strncat.c (strncat): Undef the symbol in case it has been
43096         defined in bits/string.h.
43097
43098 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43099
43100         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
43101
43102         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
43103         link map.
43104
43105 2011-08-17  Andreas Jaeger  <aj@suse.de>
43106
43107         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
43108
43109 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
43110             Ian Lance Taylor  <iant@google.com>
43111
43112         * math/libm-test.inc (lround_test): New testcase.
43113         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
43114
43115 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
43116
43117         * Makefile: Remove support for automatic cvs check-ins.
43118         * Makerules: Likewise.
43119         * config.make.in: Likewise.
43120         * configure.in: Likewise.
43121         * intl/Makefile: Likewise.
43122         * locale/Makefile: Likewise.
43123         * po/Makefile: Likewise.
43124         * posix/Makefile: Likewise.
43125         * sysdeps/gnu/Makefile: Likewise.
43126         * sysdeps/mach/hurd/Makefile: Likewise.
43127         * sysdeps/sparc/sparc32/Makefile: Likewise.
43128
43129         [BZ #13118]
43130         * posix/Makefile (bug-regex32-ENV): Define.
43131         Patch by John Stanley <jpsinthemix@verizon.net>.
43132
43133         * misc/Makefile (headers): Add bits/select2.h.
43134         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
43135         * misc/bits/select2.h: New file.
43136         * include/bits/select2.h: New file.
43137         * debug/Makefile (routines): Add fdelt_chk.
43138         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
43139         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
43140         FD_ISSET.
43141         * debug/fdelt_chk.c: New file.
43142
43143         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
43144         * wcsmbs/test-wmemcmp.c: Likewise.
43145         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
43146         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
43147
43148 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43149
43150         * string/Makefile (strop-tests): Add memcmp.
43151         * string/test-wmemcmp.c: New file.
43152         * string/test-memcmp.c: Add wmemcmp support.
43153
43154 2011-09-08  Roland McGrath  <roland@hack.frob.com>
43155
43156         [BZ #13153]
43157         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
43158         2011-07-19 change.
43159
43160         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
43161         garbage value in a __mach_port_mod_refs call in the cases of the
43162         task-self and thread-self ports.
43163
43164 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43165
43166         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
43167
43168 2011-09-08  Andreas Schwab  <schwab@redhat.com>
43169
43170         * elf/dl-load.c (lose): Check for non-null L.
43171
43172 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43173
43174         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
43175
43176         * elf/dl-libc.c (dlerror_run): Pass back error code from
43177         dl_catch_error.
43178
43179         [BZ #13123]
43180         * elf/dl-load.c (lose): Free l_origin if it is valid.
43181
43182         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
43183         names.
43184         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
43185         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43186         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43187         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43188         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
43189         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
43190
43191 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43192
43193         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43194         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43195         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43196         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43197         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43198         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43199         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43200         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43201         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43202         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43203
43204 2011-08-15  Alan Modra  <amodra@gmail.com>
43205
43206         [BZ #13092]
43207         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43208         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43209         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43210         ppc_mcount to static-only-routines.
43211         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43212         __mcount_internal.
43213         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43214         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43215
43216 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43217
43218         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43219         for finite and infinity parameters.
43220
43221 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43222
43223         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43224         and add nop instructions for throughput optimization.
43225         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43226
43227 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43228
43229         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43230         aligned copy for power7 with vector-scalar instructions.
43231         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43232
43233 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43234
43235         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43236         AVX check.
43237
43238 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43239
43240         [BZ #13144]
43241         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43242         last change.
43243
43244 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43245
43246         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43247         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43248         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43249         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43250         clock_gettime.
43251
43252 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43253
43254         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43255         Forgot to demangle the pointer.
43256
43257         * sysdeps/i386/sysdep.h: Define atom_text_section.
43258         * sysdeps/x86_64/sysdep.h: Likewise.
43259         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43260         section with atom_text_section.
43261         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43262         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43263         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43264         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43265         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43266
43267         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43268         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43269         already be defined.  Change to take two parameters and don't assign
43270         result to variable.  Adjust all users.
43271         Define INTERNAL_GETTIME if not already defined.
43272         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43273         call.
43274         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43275         HAVE_CLOCK_GETTIME_VSYSCALL.
43276         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43277
43278         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43279         gettimeofday vsyscall, just use time.
43280
43281 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43282
43283         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43284         <errno.h>.
43285
43286 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43287
43288         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43289         syscall on x86-64.
43290         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43291         syscall.
43292         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43293         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43294         syscall if possible.
43295
43296 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43297
43298         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43299         e_ident.  Don't pass to find_mapsXX.
43300         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43301
43302 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43303
43304         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43305         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43306         * sysdeps/x86_64/multiarch/strchr.S: Update.
43307         Check bit_slow_BSF bit.
43308         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43309         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43310         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43311
43312 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43313
43314         [BZ #13134]
43315         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43316         before glibc 2.15.
43317         (tryshell): Define.
43318         (__spawni): Change last parameter to be flag.  Test
43319         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43320         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43321         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43322         * posix/spawni.c: Likewise.
43323         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43324         * posix/spawnp.c: Likewise.  Change normal version to use
43325         SPAWN_XFLAGS_USE_PATH.
43326         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43327         SPAWN_XFLAGS_TRY_SHELL.
43328
43329         [BZ #13150]
43330         * posix/glob.h: Remove gcc 1.x support.
43331
43332         [BZ #13068]
43333         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43334
43335 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43336
43337         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43338         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43339         strrchr-sse2-bsf
43340         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43341         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43342         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43343         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43344         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43345         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43346
43347 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43348
43349         * sysdeps/x86_64/wcscmp.S: New file.
43350
43351         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43352         wcscmp-c wcscmp-sse2
43353         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43354         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43355         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43356         * wcsmbs/wcscmp.c: Allow renaming.
43357
43358 2011-09-05  David S. Miller  <davem@davemloft.net>
43359
43360         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43361         stack slot, rather than the struct return pointer slot.
43362         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43363         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43365         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43366
43367 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43368
43369         * po/ja.po: Update from translation team.
43370
43371         [BZ #13144]
43372         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43373         kernel in 64-bit binaries.
43374
43375 2011-09-01  David S. Miller  <davem@davemloft.net>
43376
43377         * elf/elf.h (HWCAP_SPARC_*): Move to..
43378         * sysdeps/sparc/sysdep.h: this new file and add new values.
43379         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43380         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43381         _DL_HWCAP_COUNT to 24.
43382         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43383         entries.
43384         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43385         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43386         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43387         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43388         instead of magic constants.
43389         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43390
43391 2011-08-31  David S. Miller  <davem@davemloft.net>
43392
43393         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43394         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43395         Reimplement to do errno handling inline.
43396         (SYSCALL_ERROR_HANDLER): New macro.
43397         (__SYSCALL_STRING): Do not do errno handling in asm.
43398         (__CLONE_SYSCALL_STRING): Delete.
43399         (__INTERNAL_SYSCALL_STRING): Delete.
43400         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
43401         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43402         (PSEUDO): Reimplement to do errno handling inline.
43403         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43404         (SYSCALL_ERROR_HANDLER): New macro.
43405         (__SYSCALL_STRING): Do not do errno handling in asm.
43406         (__CLONE_SYSCALL_STRING): Delete.
43407         (__INTERNAL_SYSCALL_STRING): Delete.
43408         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43409         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43410         i386.
43411         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43412         (inline_syscall*): Add 'err' argument.
43413         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43414         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43415         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43416         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43417
43418         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43419         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43420
43421 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43422
43423         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43424
43425 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43426
43427         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43428         directive.
43429
43430 2011-08-24  David S. Miller  <davem@davemloft.net>
43431
43432         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43433
43434 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43435
43436         * elf/Makefile: Add rules to build and run unload8 test.
43437         * elf/unload8.c: New file.
43438         * elf/unload8mod1.c: New file.
43439         * elf/unload8mod1x.c: New file.
43440         * elf/unload8mod2.c: New file.
43441         * elf/unload8mod3.c: New file.
43442
43443         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43444         it wasn't used.
43445
43446 2011-08-23  David S. Miller  <davem@davemloft.net>
43447
43448         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43449         subtract stack bias.
43450         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43451         %sp not %fp in calculations.
43452         (_JMPBUF_UNWINDS_ADJ): Likewise.
43453
43454         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43455         (aio_suspend): Call it to force an exception region around the
43456         AIO_MISC_WAIT() invocation.
43457
43458 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43459
43460         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43461         backslash.
43462
43463 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43464
43465         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43466         protection macro.
43467         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43468         and <dl-machine.h>.
43469         (Elf64_FuncDesc): Remove.
43470
43471 2011-08-22  David S. Miller  <davem@davemloft.net>
43472
43473         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43474         sigaltstack check, add missing cfi directives.
43475         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43476         missing cfi directives, and sigaltstack handling.
43477
43478 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43479
43480         [BZ #11724]
43481         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43482         object is seen twice.
43483         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43484
43485         * elf/Makefile (distribute): Add tst-initorder2.c.
43486         (tests): Add tst-initorder2.
43487         (modules-names): Add tst-initorder2a tst-initorder2b
43488         tst-initorder2c tst-initorder2d.  Add rules to build them.
43489         ($(objpfx)tst-initorder2.out): New rule.
43490         * elf/tst-initorder2.c: New file.
43491         * elf/tst-initorder2.exp: New file.
43492
43493 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43494
43495         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43496
43497         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43498         dependencies back to end of function.
43499
43500         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43501         $(elfobjdir)/ld.so.
43502
43503 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43504
43505         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43506         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43507         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43508         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43509         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43510         of __vdso_gettimeofday.
43511         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43512         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43513         attribute_hidden.
43514         (_libc_vdso_platform_setup): Remove initialization of
43515         __vdso_gettimeofday and __vdso_time.
43516
43517 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43518
43519         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43520         and fgetc_unlocked.
43521         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43522         getc_unlocked.
43523
43524         * elf/dl-open.c (add_to_global): Report additions to the global scope
43525         for LD_DEBUG=scopes.
43526         (dl_open_worker): Also print scope of newly loaded dependencies.
43527         (_dl_show_scope): Indicate if there is no scope.
43528
43529         [BZ #13114]
43530         * stdio-common/Makefile (tests): Add bug24.
43531         * stdio-common/bug24.c: New file.
43532
43533 2011-08-19  Andreas Jaeger  <aj@suse.de>
43534
43535         [BZ #13114]
43536         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
43537         non-existant file when using close-on-exec mode.
43538
43539 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43540
43541         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
43542         the very first instruction.
43543
43544         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
43545         the CFI state in the end.
43546         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
43547         inclusion of dl-trampoline.h.
43548         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
43549
43550 2011-08-19  Andreas Schwab  <schwab@redhat.com>
43551
43552         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
43553         expectations for long double.
43554
43555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
43556         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
43557
43558 2011-08-14  David S. Miller  <davem@davemloft.net>
43559
43560         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
43561         artificual limit depends upon the system page size.
43562
43563 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43564
43565         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
43566         * resolv/Makefile: Define CFLAGS-libresolv.
43567
43568 2011-08-17  Andreas Schwab  <schwab@redhat.com>
43569
43570         * nss/makedb.c (compute_tables): Make variables used in nested
43571         function static.
43572
43573 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43574
43575         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43576         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43577         if buffer was too small.
43578
43579         * elf/pldd.c (main): Attach to all threads in the process.
43580         Rewrite /proc handling to use *at functions.
43581
43582 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43583
43584         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43585         specifies first scope to show.
43586         (dl_open_worker): Update callers.  Move printing scope of new
43587         object to before the relocation.
43588         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43589         * sysdeps/generic/ldsodefs.h: Update declaration.
43590
43591         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43592         string for the scope number.
43593
43594 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43595
43596         * nscd/servicescache.c (cache_addserv): Make sure written is always
43597         initialized.
43598
43599 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43600
43601         * sysdeps/i386/i486/bits/atomic.h
43602         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43603         statement expression, so as to suppress "set but not used" warning.
43604         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43605
43606         * string/strncat.c (STRNCAT): Use prototype definition.
43607
43608         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43609         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43610         -Iprograms here.
43611         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43612         (localedef-modules): Add localedef.
43613         (locale-modules): Add locale.
43614
43615         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43616         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43617         to avoid a warning.
43618
43619 2011-08-14  David S. Miller  <davem@davemloft.net>
43620
43621         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43622         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43623
43624 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43625
43626         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43627         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43628         * elf/rtld.c (dl_main): Set l_name of vDSO.
43629         Call _dl_show_scope when DL_DEBUG_SCOPES.
43630         (process_dl_debug): Recognize scopes flag and also set it for all.
43631         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43632         Declare _dl_show_scope.
43633
43634         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43635         (do_dlopen): Pass caller_dlopen to dl_open.
43636         (__libc_dlopen_mode): Initialize caller_dlopen.
43637
43638         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43639         of libc.  Make tolower call locale-independent.  Optimize a bit by
43640         using isdigit instead of isalnum.
43641         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43642
43643 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43644
43645         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43646         was a dependency or dynamically loaded.
43647
43648 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43649
43650         * intl/l10nflist.c: Allow architecture-specific pop function.
43651         * sysdeps/x86_64/l10nflist.c: New file.
43652
43653         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43654         classification.
43655
43656 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43657
43658         * include/dirent.h: Add libc_hidden_proto for scandirat and
43659         scandirat64.  Don't declare __scandirat64.
43660         * dirent/scandirat.c: Add libc_hidden_def.
43661         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43662         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43663
43664 2011-08-10  David S. Miller  <davem@davemloft.net>
43665
43666         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43667         enum.
43668         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43669         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43670         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43671
43672 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43673
43674         * Versions.def [libc]: Add GLIBC_2.15.
43675         * dirent/Makefile (routines): Add scandirat and scandirat64.
43676         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43677         GLIBC_2.15.
43678         * dirent/dirent.h: Declare scandirat and scandirat64.
43679         * dirent/scandirat.c: New file.
43680         * dirent/scandirat64.c: New file.
43681         * sysdeps/wordsize-64/scandirat.c: New file.
43682         * sysdeps/wordsize-64/scandirat64.c: New file.
43683         * dirent/opendir.c: Define opendirat.
43684         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43685         using scandirat.
43686         * dirent/scandir64.c: Adjust for scandir.c change.
43687         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43688         __scandirat64, and __scandir_cancel_handler.
43689         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43690         additional parameter and use openat instead of open (outside of ld.so).
43691         Add new __opendir as wrapper around __opendirat.
43692         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43693         here without requiring old scandirat implementation.
43694
43695 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43696
43697         * dirent/scandir.c (cancel_handler): Renamed to
43698         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43699         defined.  Adjust users.
43700         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43701         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43702
43703 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43704
43705         * string/test-string.h (IMPL): Use __STRING to expand name and then
43706         stringify it.
43707
43708         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43709         of cleanups.
43710
43711 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43712
43713         * string/Makefile: Update.
43714         (strop-tests): Append strncat.
43715         * string/test-wcscmp.c: New file.
43716         New comprehensive test for wcscmp.
43717         * string/test-strcmp.c: Update.
43718         (WIDE): New define.
43719
43720 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43721
43722         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43723         line.
43724
43725 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43726
43727         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43728         encoding to ACE if AI_IDN.
43729
43730 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43731
43732         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43733         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43734
43735 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43736
43737         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43738         Fix overflow bug in strncat.
43739         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43740
43741         * string/test-strncat.c: Update.
43742         Add new tests for checking overflow bugs.
43743
43744 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43745
43746         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43747         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43748         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43749         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43750         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43751         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43752         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43753         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43754         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43755
43756         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43757         (USE_AS_STRCAT): Define.
43758         Add strcat and strncat support.
43759         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43760
43761 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43762
43763         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43764         __n bigger than INT_MAX+1.
43765         (__strncmp_g): Likewise.
43766
43767 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43768
43769         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43770         * libio/stido.h: Likewise.
43771
43772         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43773         (AF_NFC): Define.
43774         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43775         (AF_NFC): Define.
43776
43777         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43778         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43779         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43780         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43781         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43782
43783         [BZ #13021]
43784         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43785         installed.
43786
43787         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43788         typo.
43789         (_dl_x86_64_save_sse): Likewise.
43790
43791 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43792
43793         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43794         OSXSAVE.
43795         (_dl_x86_64_save_sse): Likewise.
43796
43797         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43798
43799         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43800
43801 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43802
43803         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43804         change.
43805         (_dl_x86_64_save_sse): Use correct AVX check.
43806
43807 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43808
43809         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43810         bug in strncpy/strncat.
43811         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43812
43813 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43814
43815         * string/tester.c (test_strcat): Add tests for different alignments
43816         of source and destination.
43817         (test_strncat): Likewise.
43818
43819 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43820
43821         [BZ #12852]
43822         * posix/glob.c (glob): Check passed in values before using them in
43823         expressions to avoid some overflows.
43824         (glob_in_dir): Likewise.
43825
43826         [BZ #13007]
43827         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43828         check for AVX enablement so that we don't crash with old kernels and
43829         new hardware.
43830         * elf/tst-audit4.c: Add same checks here.
43831         * elf/tst-audit6.c: Likewise.
43832
43833         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43834
43835 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43836
43837         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43838
43839 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43840
43841         * po/cs.po: Update from translation team.
43842         * po/bg.po: Likewise.
43843
43844 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43845
43846         * misc/sys/cdefs.h: Add support for const attribute.
43847         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43848         to gnu_dev_{major,minor,makedev} functions.
43849
43850 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43851
43852         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43853
43854 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43855
43856         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43857         strlen results.
43858
43859 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43860
43861         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43862         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43863         register in order to avoid conflicts with the soft frame pointer
43864         being held in r11 when necessary.
43865         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43866         (INTERNAL_VSYSCALL_NCS): Likewise.
43867
43868 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43869
43870         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43871         * elf/dl-fini.c (_dl_fini): Adjust caller.
43872         * elf/dl-close.c (_dl_close_worker): Likewise.
43873         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43874
43875 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43876
43877         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43878         "aux_cache->nlibs < 0".
43879
43880         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43881         in the reload-count case.
43882
43883 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43884
43885         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43886         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43887         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43888         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43889         * sysdeps/x86_64/multiarch/strcat.S: New file.
43890         * sysdeps/x86_64/multiarch/strncat.S: New file.
43891         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43892         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43893         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43894         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43895         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43896         (USE_AS_STRCAT): Define.
43897         Add strcat and strncat support.
43898         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43899         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43900         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43901         * string/strncat.c: Update.
43902         (USE_AS_STRNCAT): Define.
43903         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43904         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43905         and i7.
43906         * sysdeps/x86_64/multiarch/init-arch.h
43907         (bit_Prefer_PMINUB_for_stringop): New.
43908         (index_Prefer_PMINUB_for_stringop): Likewise.
43909         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43910         bit_Prefer_PMINUB_for_stringop.
43911
43912 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43913
43914         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43915         buffer64.
43916         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43917         of casting of buffer.
43918         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43919         buffer32 and buffer64.
43920         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43921         writes instead of casting of buffer.
43922         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43923         buffer32.
43924         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43925         casting of buffer.
43926
43927 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43928
43929         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43930
43931 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43932
43933         * nscd/nscd.c (termination_handler): Don't do anything for a database
43934         if it has not yet been initialized.
43935
43936 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43937
43938         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43939
43940 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43941
43942         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43943
43944 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43945
43946         * po/nl.po: Update from translation team.
43947         * po/sv.po: Likewise.
43948
43949 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43950
43951         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43952         now disallowed by GCC.
43953
43954         * configure.in (use-default-link): Default to yes if a test -shared
43955         link meets our qualifications.
43956         * configure: Regenerated.
43957
43958         * config.make.in (output-format): New variable.
43959         * configure.in: Check for ld --print-output-format support.
43960         * configure: Regenerated.
43961         * Makerules ($(common-objpfx)format.lds)
43962         [$(output-format) != unknown]: Just use $(output-format),
43963         instead of the linker-script munging.
43964
43965 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43966
43967         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43968         of $(common-objpfx)shlib.lds.
43969         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43970
43971         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43972         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43973
43974         * configure.in (-z relro check): Adjust test code to add a large
43975         writable data section after it.
43976         * configure: Regenerated.
43977
43978 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43979
43980         * configure.in (-z relro check): Fix test code to make the variable
43981         truly const.
43982         * configure: Regenerated.
43983
43984 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43985
43986         * nscd/nscd.h (struct traced_file): Define.
43987         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43988         elements.  Add traced_files.
43989         (inotify_fd): Declare.
43990         (register_traced_file): Declare.
43991         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43992         (inotify_fd): Export.
43993         (resolv_conf_descr): Remove.
43994         (nscd_init): Move inotify descriptor creation to main.
43995         Don't register files for notification here.
43996         (register_traced_file): New function.
43997         (invalidate_cache): Don't use reset_res to determine whether to call
43998         res_init, go through the list of registered files.
43999         (main_loop_poll): The inotify descriptors are now stored in the
44000         structures for the traced files.
44001         (main_loop_epoll): Likewise
44002         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
44003         to __nss_disable_nscd.
44004         * nscd/cache.c (prune_cache): There is no single inotify descriptor
44005         for a database anymore.  Check the records for all the registered
44006         files instead.
44007         * nss/Makefile (libnss_files-routines): Add files-init.
44008         (libnss_db-routines): Add db-init.
44009         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
44010         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
44011         * nss/nss_db/db-init.c: New file.
44012         * nss/nss_files/files-init.c: New file.
44013         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
44014         __nss_lookup_function.
44015         (__nss_lookup_function): Call nss_load_library.
44016         (nss_load_all_libraries): New function.
44017         (__nss_disable_nscd): Take parameter with callback function for files
44018         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
44019         used for the cached services.
44020         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
44021         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
44022         options for features to all the files in nscd.
44023
44024         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
44025
44026 2011-07-10  Roland McGrath  <roland@hack.frob.com>
44027
44028         * csu/elf-init.c (__libc_csu_init): Comment typo.
44029
44030 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
44031
44032         * po/pl.po: Update from translation team.
44033         * po/ja.po: Likewise.
44034         * po/ru.po: Likewise.
44035         * po/ko.po: Likewise.
44036         * po/fr.po: Likewise.
44037
44038 2011-07-09  Roland McGrath  <roland@hack.frob.com>
44039
44040         * configure.in (.ctors/.dtors header and trailer check):
44041         Use an empirical test on a built program.
44042         * configure: Regenerated.
44043
44044         * configure.in (-z relro check): Use an empirical test on a built DSO.
44045         Detect, but do not require, on ia64.
44046         * configure: Regenerated.
44047
44048         * configure.in (READELF): Find it with AC_CHECK_TOOL.
44049         Update tests that use readelf to use $READELF instead.
44050         * configure: Regenerated.
44051
44052 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
44053
44054         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
44055         if the result is not used.
44056
44057 2011-07-05  Andreas Jaeger  <aj@suse.de>
44058
44059         [BZ#9696]
44060         * stdlib/tst-strtod.c: Add testcase.
44061
44062 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
44063
44064         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
44065         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
44066         The latter has a higher limit.  Take additional parameter to pass to
44067         the new function.
44068         (__pathconf): Pass file to __statfs_link_max.
44069         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
44070         __statfs_link_max.
44071         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
44072         __statfs_link_max.
44073
44074         [BZ #12868]
44075         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
44076         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44077         Handle Lustre.
44078         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
44079         (__statfs_filesize_max): Likewise.
44080         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
44081
44082 2011-07-05  Andreas Jaeger  <aj@suse.de>
44083
44084         * resolv/res_comp.c (dn_skipname): Remove unused variable.
44085
44086 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
44087
44088         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
44089         `status' variable.
44090         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
44091         Likewise.
44092
44093 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
44094
44095         * Makefile (strop-tests): Add strncat.
44096         * string/test-strncat.c: New file.
44097
44098 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
44099
44100         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
44101
44102 2011-06-21  Andreas Jaeger  <aj@suse.de>
44103
44104         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
44105         Copy rule from iconvdata/Makefile.
44106
44107 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44108
44109         [BZ #12922]
44110         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
44111         but no long options are defined, just return 'W'.
44112
44113 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
44114
44115         [BZ #9696]
44116         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
44117
44118 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44119
44120         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
44121         netgroups to read.
44122         (innetgr): Likewise.
44123
44124 2011-07-05  Roland McGrath  <roland@hack.frob.com>
44125
44126         * config.make.in (install_root): Default to $(DESTDIR).
44127
44128 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
44129
44130         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
44131
44132 2011-07-02  Roland McGrath  <roland@hack.frob.com>
44133
44134         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
44135
44136         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
44137         containing directory rather than embedding absolute directory names.
44138
44139         * scripts/check-local-headers.sh: Rewritten using awk.
44140         Match by word, not by line.  Print error messages for matches.
44141         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
44142
44143         * Makerules [shlib-lds-flags empty]:
44144         ($(common-objpfx)libc_pic.opts): New target.
44145         ($(common-objpfx)libc_pic.os.clean): New target.
44146         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
44147
44148         * config.make.in (OBJCOPY): New variable.
44149         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
44150         * configure: Regenerated.
44151
44152         * config.make.in (use-default-link): New variable.
44153         * configure.in (use_default_link): Grok --with-default-link to set it.
44154         * configure: Regenerated.
44155         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
44156         (shlib-lds, shlib-lds-flags): Define to empty.
44157
44158         * Makerules (shlib-lds): New variable.
44159         (shlib-lds-flags): New variable.
44160         (build-shlib, build-moduile, build-module-asneeded): Use it.
44161         ($(common-objpfx)libc.so): Use $(shlib-lds).
44162         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
44163         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
44164
44165         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
44166         DT_FLAGS/DT_FLAGS_1 with zero flags.
44167
44168         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
44169         linker script munging.
44170
44171 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
44172
44173         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
44174         as 128-bit value.
44175         * crypt/sha512.c (sha512_process_block): Perform total addition using
44176         128-bit if possible.
44177         (__sha512_finish_ctx): Likewise.
44178         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
44179         as 64-bit value.
44180         * crypt/sha256.c (SWAP64): Define.
44181         (sha256_process_block): Perform total addition using 64-bit if
44182         possible.
44183         (__sha256_finish_ctx): Likewise.
44184
44185 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
44186
44187         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
44188         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44189         * nscd/hstcache.c (cache_addhst): Likewise.
44190         * nscd/grpcache.c (cache_addgr): Likewise.
44191         * nscd/aicache.c (addhstaiX): Likewise
44192         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44193
44194 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44195
44196         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44197         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44198         * nscd/hstcache.c (cache_addhst): Likewise.
44199         * nscd/grpcache.c (cache_addgr): Likewise.
44200         * nscd/aicache.c (addhstaiX): Likewise
44201
44202 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44203
44204         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44205         domain only when needed.
44206
44207 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44208
44209         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44210         is always restored.
44211
44212 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44213
44214         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44215         are re-adding the entry.
44216         * nscd/servicescache.c (cache_addserv): Likewise.
44217
44218 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44219
44220         * sysdeps/generic/dl-irel.h: fix protection against multiple
44221         inclusions.
44222         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44223
44224 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44225
44226         [BZ #12935]
44227         * malloc/memusage.sh: Fix quoting in message.
44228         * debug/xtrace.sh: Likewise.
44229
44230         * configure.in: Remove support for --experimental-malloc option, make
44231         it the default.
44232         * config.make.in: Likewise.
44233         * malloc/Makefile: Likewise.
44234
44235 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44236
44237         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44238         two-byte characters.
44239
44240 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44241
44242         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44243         AC_CACHE_CHECK invocation.
44244         * configure: Regenerated.
44245
44246         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44247
44248 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44249
44250         [BZ #12350]
44251         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44252         bit from old_res_options.
44253
44254         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44255
44256         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44257         value type for setfct.
44258
44259 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44260
44261         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44262         __gettimeofday instead of gettimeofday.
44263
44264 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44265
44266         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44267
44268 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44269
44270         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44271
44272         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44273         info.
44274
44275 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44276
44277         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44278         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44279         strcpy-sse2-unaligned strncpy-sse2-unaligned
44280         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44281         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44282         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44283         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44284         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44285         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44286         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44287         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44288         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44289         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44290         (STRCPY): Support SSE2 and SSSE3 versions.
44291
44292 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44293
44294         [BZ #12874]
44295         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44296         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44297         kernels which artificially limit size of requests.
44298
44299 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44300
44301         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44302         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44303         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44304         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44305         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44306         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44307         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44308         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44309         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44310         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44311         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44312         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44313         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44314         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44315         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44316         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44317         Enable unaligned load optimization for Intel Core i3, i5 and i7
44318         processors.
44319         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44320         Define.
44321         (index_Fast_Unaligned_Load): Define.
44322         (HAS_FAST_UNALIGNED_LOAD): Define.
44323
44324 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44325
44326         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44327
44328 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44329
44330         [BZ #12907]
44331         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44332         until it is clear that the information is realy needed.
44333         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44334
44335 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44336
44337         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44338
44339 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44340
44341         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44342         /sys/devices/system/cpu/online if it is usable.
44343
44344         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44345         reading the information from the /proc filesystem to once a second.
44346
44347 2011-06-21  Andreas Jaeger  <aj@suse.de>
44348
44349         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44350         NULL after inclusion of kernel headers.
44351
44352 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44353
44354         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44355         calls to internal_setent.
44356
44357         [BZ #12885]
44358         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44359         addresses using gethostbyname4_r ignore IPv4 addresses.
44360
44361         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44362         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44363
44364         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44365
44366 2011-06-20  David S. Miller  <davem@davemloft.net>
44367
44368         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44369         inclusions.
44370         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44371
44372         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44373         (elf_irel): Use it.
44374         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44375         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44376         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44377         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44378         * sysdeps/x86_64/dl-irel.h: Likewise.
44379
44380         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44381         * elf/dl-sym.c: Likewise.
44382
44383 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44384
44385         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44386         need to dereference resplen2.
44387
44388 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44389
44390         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44391
44392 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44393
44394         * Makeconfig: Define vardbdir and inst_vardbdir.
44395         * nss/Makefile: Add rules to install db-Makefile.
44396
44397         * nss/nss_db/db-XXX.c: Cleanup.
44398
44399         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44400         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44401         GLIBC_PRIVATE.
44402         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44403         * nss/makedb.c: Implement -g option to specify that value strings
44404         are generated and should not be added to table iterated over for
44405         get*ent calls.
44406         * nss/nss_db/db-initgroups.c: New file.
44407
44408         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44409         interface.
44410
44411         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44412         (internal_getgrouplist): Adjust to name change.
44413         Update use_initgroups_entry if this is not the first call.
44414         * nss/databases.def: Add initgroups entry.
44415
44416         * nss/makedb.c (compute_tables): Check result of multiple hash table
44417         sizes to minimize maximum chain length.
44418
44419 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44420
44421         * Versions.def: Add entry for libnss_db.
44422         * shlib-versions: Likewise.
44423         * nss/Makefile: Add rules to build libnss_db.
44424         * nss/Versions: Add libnss_db information.  Organize libnss_files
44425         entries better.
44426         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44427         makedb progra.  Some minor improvements to generate smaller files.
44428         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44429         here from...
44430         * nss/makedb.c: ...here.
44431         Improve database format to be smaller and require less memory at
44432         runtime.
44433         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44434         db anymore.
44435         * nss/nss_db/db-netgrp.c: Likewise.
44436         * nss/nss_db/db-open.c: Likewise.
44437         * nss/nss_files/flies-XXX.x: Adjust comments.
44438         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44439         * nss/nss_files/files-grp.c: Likewise.
44440         * nss/nss_files/files-hosts.c: Likewise.
44441         * nss/nss_files/files-network.c: Likewise.
44442         * nss/nss_files/files-proto.c: Likewise.
44443         * nss/nss_files/files-pwd.c: Likewise.
44444         * nss/nss_files/files-rpc.c: Likewise.
44445         * nss/nss_files/files-service.c: Likewise.
44446         * nss/nss_files/files-sgrp.c: Likewise.
44447         * nss/nss_files/files-spwd.c: Likewise.
44448         * nss/nss_db/db-alias.c: Removed.
44449         * nss/nss_db/dummy-db.h: Removed.
44450
44451 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44452
44453         * nss/makedb.c: Rewritten to not use database library.
44454         * nss/Makefile: Update to build new makedb program.
44455
44456 2011-06-14  Andreas Jaeger  <aj@suse.de>
44457
44458         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44459         memset declaration.
44460
44461 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44462
44463         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44464         tmpbuf.
44465
44466 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44467
44468         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44469         * elf/Makefile ($(objpfx)ld.so): Likewise.
44470
44471         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44472         Don't list ld.so twice in dependencies.
44473
44474         * posix/bug-regex31.c: Include <stdlib.h>.
44475
44476         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44477
44478         * nis/nss_compat/compat-spwd.c
44479         (getspent_next_nss_netgr): Remove unused variable.
44480         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44481
44482         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44483         nonmembers" output to use the right array.
44484
44485         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44486
44487         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44488
44489         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44490         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44491         * catgets/gencat.c (read_input_file): Likewise.
44492         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44493
44494         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44495         variable definition inside #if's controlling its use.
44496
44497         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44498
44499         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44500
44501         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44502
44503         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44504         unreachable code.
44505
44506         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44507
44508         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44509         * configure: Regenerated.
44510
44511         * Makerules: Revert last change.
44512         * elf/Makefile: Likewise.
44513
44514 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44515
44516         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44517         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44518         (reloc-link): Likewise.
44519
44520 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44521
44522         * elf/Makefile: Add rules to build pldd.
44523         * elf/pldd.c: New file.
44524         * elf/pldd-xx.c: New file.
44525
44526 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44527
44528         * version.h: Update for 2.15 development version.
44529
44530 2011-06-07  David S. Miller  <davem@davemloft.net>
44531
44532         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
44533         ifuncs.
44534         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
44535         elf_machine_lazy_rel): Likewise.
44536         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44537         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
44538         elf_machine_lazy_rel): Likewise.
44539         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
44540         dl_hwcap via passed in argument.
44541         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
44542         Likewise.
44543
44544 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44545
44546         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
44547
44548 2011-06-06  Roland McGrath  <roland@hack.frob.com>
44549
44550         [BZ #12849]
44551         * manual/fdl-1.1.texi: New file, verbatim from:
44552         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
44553         * manual/lgpl-2.1.texi: New file, verbatim from:
44554         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
44555         * manual/Makefile (licenses): New variable, list those new file names.
44556         (texis): Use it.
44557         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
44558
44559         * manual/fdl.texi: File removed.
44560         * manual/lesser.texi: File removed.
44561         * manual/libc.texinfo (Copying, Documentation License):
44562         Use new @include file names, put @appendix directive before @include.
44563
44564 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
44565
44566         [BZ #12841]
44567         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
44568         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
44569         (mq_open): Add __NTH.
44570
44571 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
44572
44573         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44574         Assume Intel Core i3/i5/i7 processor if AVX is available.
44575
44576 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44577
44578         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44579         typo.
44580
44581 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44582
44583         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44584         memory.  Use alloca_account.  Fix memory leak when retrying.
44585
44586 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44587
44588         * version.h (RELEASE): Bump for 2.14 release.
44589         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44590
44591         * config.make.in (RANLIB): Remove entry.
44592
44593 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44594
44595         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44596         (libc.pot): Work around missing support for .ksh extension in xgettext.
44597
44598         [BZ #12684]
44599         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44600         if both request failed.
44601         (send_dg): In case of server errors clear resplen or *resplen2.
44602
44603         [BZ #12454]
44604         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44605         when there are multiple maps.
44606         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44607         (_dl_fini): Remove test here.
44608
44609         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44610
44611 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44612
44613         [BZ #12350]
44614         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44615         bit from old_res_options.
44616         (gaih_inet): Likewise.
44617
44618         [BZ #11099]
44619         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44620         as signed.
44621
44622         * resolv/res_init.c (res_setoptions): Make the code more compact.
44623
44624         [BZ #11558]
44625         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44626         set RES_USEVC.
44627
44628         [BZ #11634]
44629         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44630
44631         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44632
44633         [BZ #11781]
44634         * malloc/malloc.h: Declare malloc hook variables as volatile.
44635
44636         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44637         in last patch.
44638
44639         [BZ #11799]
44640         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44641         raise in the comment.
44642         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44643         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44644         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44645
44646 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44647
44648         [BZ #12811]
44649         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44650         grow the buffers more if it already has to be sufficient.
44651         (build_wcs_upper_buffer): Likewise.
44652         * posix/regexec.c (check_matching): Likewise.
44653         (clean_state_log_if_needed): Likewise.
44654         (extend_buffers): Don't enlarge buffers beyond size of the input
44655         buffer.
44656         Patches mostly by Emil Wojak <emil@wojak.eu>.
44657         * posix/bug-regex32.c: New file.
44658         * posix/Makefile (tests): Add bug-regex32.
44659
44660         * locale/findlocale.c (_nl_find_locale): Return right away if
44661         _nl_explode_name failed.
44662         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44663
44664         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44665
44666         * debug/xtrace.sh: Unify messages.
44667         * malloc/memusage.sh: Likewise.
44668
44669         [BZ #12813]
44670         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44671         time symbol from vDSO.  Substitute with vsyscall if not available.
44672         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44673         __vdso_time.
44674
44675         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44676         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44677         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44678         Add sendmmsg and internal_sendmmsg.
44679         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44680         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44681         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44682
44683         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44684         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44685         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44686
44687 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44688
44689         [BZ #12813]
44690         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44691         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44692         available.
44693         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44694         __vdso_getcpu.
44695
44696         [BZ #12814]
44697         * iconvdata/Makefile (tests): Add bug-iconv9.
44698         * iconvdata/bug-iconv9.c: New file.
44699
44700 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44701
44702         [BZ #12814]
44703         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44704
44705 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44706
44707         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44708         (struct user_regs_struct): Change intcs field back to cs.
44709
44710 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44711
44712         * po/ja.po: Update from translation team.
44713
44714 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44715
44716         [BZ #12795]
44717         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44718         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44719
44720 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44721
44722         * stdlib/longlong.h: Update from GCC.
44723
44724 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44725
44726         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44727         parameter name.
44728         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44729         Add parameter name.
44730         (__sysconf): Pass it down.
44731
44732 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44733
44734         [BZ #12671]
44735         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44736         some situations.
44737         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44738         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44739         add in in __libc_use_alloca calls.  Adjust callers.
44740         (glob): Use malloc in some situations.
44741
44742         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44743         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44744         pltexit.
44745
44746 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44747
44748         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44749         and CLOCK_BOOTTIME_ALARM.
44750
44751         [BZ #12782]
44752         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44753         is returned.
44754
44755         * string/_strerror.c (__strerror_r): Print negative errors as signed
44756         numbers.
44757
44758         [BZ #12777]
44759         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44760         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44761         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44762
44763         * configure.in: Fix typo in redirection and correct removal of test
44764         files in two cases.
44765
44766         [BZ #12788]
44767         * locale/setlocale.c (new_composite_name): Fix test to check for
44768         identical name of all categories.
44769
44770         [BZ #12792]
44771         * libio/filedoalloc.c (local_isatty): New function.
44772         (_IO_file_doallocate): Use local_isatty.
44773         * stdio-common/perror.c (perror): In case a new stream is used
44774         forward the stream error.
44775         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44776         error flag.
44777
44778 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44779
44780         [BZ #11869]
44781         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44782         alloca.
44783         * include/alloca.h (extend_alloca_account): Define.
44784
44785         [BZ #11857]
44786         * posix/regex.h: Fix comments with documentation of user-accessible
44787         fields after compilation and describe correct free'ing of pattern
44788         after re_compile_pattern.
44789         Patch by Reuben Thomas <rrt@sc3d.org>.
44790
44791 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44792
44793         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44794         and -mno-altivec to prevent the compiler from using Altivec and/or
44795         VSX instructions when the corresponding registers are not available.
44796
44797 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44798
44799         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44800
44801 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44802
44803         * libio/freopen.c (freopen): Use __dup2, not dup2.
44804         * libio/freopen64.c (freopen64): Likewise.
44805
44806 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44807
44808         [BZ #12775]
44809         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44810         * math/Makefile (tests): Add test-powl.
44811         (CFLAGS-test-powl.c): Define.
44812         * math/test-powl.c: New file.
44813
44814 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44815
44816         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44817
44818 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44819
44820         [BZ #11837]
44821         * iconvdata/gb18030.c: Update to GB18020-2005.
44822
44823 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44824
44825         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44826         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44827         Patch by Aharon Robbins <arnold@skeeve.com>.
44828
44829         [BZ #11892]
44830         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44831         on the stack.
44832
44833         [BZ #11895]
44834         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44835         through underflows.
44836
44837         [BZ #12766]
44838         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44839         point to strings before performing equality test for error_one_per_line
44840         mode.
44841
44842         [BZ #11697]
44843         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44844
44845         [BZ #11820]
44846         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44847         (struct user_fpregs_struct): Avoid __uint*_t types.
44848
44849         [BZ #6420]
44850         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44851         symbol info.  Use it instead of calling _dl_addr locally.
44852         (lock_and_info): New function.
44853         (tr_freehook): Call lock_and_info and pass symbol info as additional
44854         parameter to tr_where.
44855         (tr_mallochook): Likewise.
44856         (tr_reallochook): Likewise.
44857         (tr_memalignhook): Likewise.
44858
44859         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44860         used and couldn't be at all thread-safe.
44861
44862 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44863
44864         * libio/freopen.c (freopen): Don't close old file descriptor
44865         before the new one is opened.  Instead dup the new file descriptor
44866         to the old one after the new stream is created.
44867         * libio/freopen64.c (freopen64): Likewise.
44868         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44869         * libio/fileops.c (_IO_new_file_close_it): Handle new
44870         _IO_FLAGS2_NOCLOSE flag.
44871         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44872         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44873         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44874         _IO_FLAGS2_NOCLOSE flag.
44875         * include/unistd.h: Add hidden_proto for dup3.
44876         Define __have_dup3.
44877         * io/dup3.c: Define hidden symbol.
44878         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44879
44880         [BZ #7101]
44881         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44882         when an incomplete long option is used.
44883         * posix/tst-getopt_long1.c: New file.
44884         * posix/Makefile (tests): Add tst-getopt_long1.
44885
44886         [BZ #10138]
44887         * scripts/config.guess: Update from autoconf-2.68.
44888         * scripts/config.sub: Likewise.
44889
44890         [BZ #10157]
44891         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44892         tests into ...
44893         (has_cpuclock): ...this.  New function.
44894         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44895         macro here based on has_cpuclock code.
44896
44897         [BZ #10149]
44898         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44899         First byte (not low byte) is now always NUL.
44900         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44901
44902         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44903         Use non-cancelable interfaces.
44904
44905         [BZ #9809]
44906         * locale/iso-639.def: Add entry for Sorani.
44907
44908         [BZ #11901]
44909         * include/stdlib.h: Move include protection to the right place.
44910         Define abort_msg_s.  Declare __abort_msg with it.
44911         * stdlib/abort.c (__abort_msg): Adjust type.
44912         * assert/assert.c (__assert_fail_base): New function.  Majority
44913         of code from __assert_fail.  Allocate memory for __abort_msg with
44914         mmap.
44915         (__assert_fail): Now call __assert_fail_base.
44916         * assert/assert-perr.c: Remove bulk of implementation.  Use
44917         __assert_fail_base.
44918         * include/assert.hL Declare __assert_fail_base.
44919         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44920         mmap.
44921         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44922
44923 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44924
44925         [BZ #11952]
44926         [BZ #12453]
44927         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44928         until all modules are registered in the DTV.
44929         * elf/Makefile: Add rules to build and run tst-tls19.
44930         * elf/tst-tls19.c: New file.
44931         * elf/tst-tls19mod1.c: New file.
44932         * elf/tst-tls19mod2.c: New file.
44933         * elf/tst-tls19mod3.c: New file.
44934         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44935
44936         [BZ #12083]
44937         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44938         correctly.
44939
44940         [BZ #12601]
44941         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44942         two-byte sequence errors.
44943         * iconvdata/Makefile (tests): Add bug-iconv8.
44944         * iconvdata/bug-iconv8.c: New file.
44945
44946         [BZ #12626]
44947         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44948         buf2 definition.
44949
44950         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44951
44952         [BZ #12432]
44953         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44954         (dummy_getcfa): New function.
44955         (init): Get _Unwind_GetCFA address, use dummy if not found.
44956         (backtrace_helper): In recursion check, also check whether CFA changes.
44957         (__backtrace): Completely initialize arg.
44958
44959         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44960         storing incomplete byte sequence in state object.  Avoid testing for
44961         guaranteed too small input if we know there is enough data available.
44962
44963 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44964
44965         * Makeconfig (+link-pie): Indent.
44966         * Rules (binaries-pie): Define if $(have-fpie) and
44967         $(build-shared).
44968         (binaries-shared): Also filter out $(binaries-pie).
44969         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44970         * nscd/Makefile (others-pie): Add nscd.
44971         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44972         ($(objpfx)nscd): Remove command override.
44973         * login/Makefile (others-pie): Add pt_chown.
44974         ($(objpfx)pt_chown): Remove command override.
44975         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44976         remove command overrides.
44977
44978 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44979
44980         * libio/tst_putwc.c: Fix error messages.
44981
44982         [BZ #12724]
44983         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44984         currently writing and seek to current position when not.
44985         * libio/Makefile (tests): Add bug-fclose1.
44986         * libio/bug-fclose1.c: New file.
44987
44988 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44989
44990         [BZ #12511]
44991         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44992         don't set DF_1_NODELETE here.
44993         (do_lookup_x): When entering new entry test for copy relocation
44994         and if necessary set DF_1_NODELETE flag.
44995         * elf/tst-unique4.cc: New file.
44996         * elf/tst-unique4.h: New file.
44997         * elf/tst-unique4lib.cc: New file.
44998         * elf/Makefile: Add rules to build and run tst-unique4.
44999         Patch by Piotr Bury <pbury@goahead.com>.
45000
45001 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
45002
45003         [BZ #12052]
45004         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
45005
45006         [BZ #12625]
45007         * misc/mntent_r.c (addmntent): Flush the stream after the output
45008
45009         [BZ #12393]
45010         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
45011         (is_trusted_path_normalize): Skip initial colon.  Append slash
45012         to empty buffer.  Duplicate is_trusted_path code but allow
45013         constructed patch to be prefix.
45014         (is_dst): Allow $ORIGIN followed by /.
45015         (_dl_dst_substitute): Correct clearing of check_for_trusted.
45016         Correct testing of result of is_trusted_path_normalize
45017         (decompose_rpath): Fix warning.
45018
45019 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
45020
45021         [BZ #11257]
45022         * grp/initgroups.c (internal_getgrouplist): When we found the service
45023         list through the initgroups entry in nsswitch.conf do not always
45024         continue on a successful lookup.  Don't always use the
45025         __nss_group_database value if it is set.
45026         * nss/nsswitch.conf (initgroups): Change action for successful db
45027         lookup to continue for compatibility.
45028
45029 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
45030
45031         [BZ #11532]
45032         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
45033         and CP774 modules.
45034         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
45035         and CP774 modules.
45036         * iconvdata/tst-tables.sh: Likewise.
45037         * iconvdata/cp770.c: New file.
45038         * iconvdata/cp771.c: New file.
45039         * iconvdata/cp772.c: New file.
45040         * iconvdata/cp773.c: New file.
45041         * iconvdata/cp774.c: New file.
45042         * iconvdata/testdata/CP770: New file.
45043         * iconvdata/testdata/CP770..UTF8: New file.
45044         * iconvdata/testdata/CP771: New file.
45045         * iconvdata/testdata/CP771..UTF8: New file.
45046         * iconvdata/testdata/CP772: New file.
45047         * iconvdata/testdata/CP772..UTF8: New file.
45048         * iconvdata/testdata/CP773: New file.
45049         * iconvdata/testdata/CP773..UTF8: New file.
45050         * iconvdata/testdata/CP774: New file.
45051         * iconvdata/testdata/CP774..UTF8: New file.
45052
45053         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
45054         END CHARMAP line.
45055         * iconvdata/gen-8bit-gap.sh: Likewise.
45056         * iconvdata/gen-8bit.sh: Likewise.
45057
45058         * locale/iso-639.def: Add ary entry.
45059
45060         [BZ #11258]
45061         * locale/C-translit.h.in: Add U20A1 transliteration.
45062
45063         [BZ #12178]
45064         * locale/iso-639.def: Add wae entry.
45065         Patch by Kevin Bortis <bortis@translate-wae.ch>.
45066
45067         [BZ #12545]
45068         * locale/programs/localedef.c (construct_output_path): Use ssize_t
45069         for n.
45070
45071         [BZ #12711]
45072         * locale/C-translit.h.in: Add entry for U20B9.
45073         Patch by pravin.d.s@gmail.com.
45074
45075 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
45076
45077         [BZ #12713]
45078         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
45079         ENAMETOOLONG use generic getcwd.
45080         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
45081         in rtld.  Use *stat64.
45082         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
45083         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
45084         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
45085         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
45086         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
45087         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
45088         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
45089         __fstatat64 macros.
45090         * include/dirent.h: Add libc_hidden_proto for rewinddir.
45091         * dirent/rewinddir.c: Add libc_hidden_def.
45092         * sysdeps/mach/hurd/rewinddir.c: Likewise.
45093         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
45094
45095         * include/dirent.h (__alloc_dir): Add flags parameter.
45096         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
45097         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
45098         __alloc_dir.
45099         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
45100         from fdopendir if O_CLOEXEC is already set.
45101
45102 2011-03-15  Alan Modra  <amodra@gmail.com>
45103
45104         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
45105         l_tls_firstbyte_offset non-zero.  Save padding offset in
45106         l_tls_firstbyte_offset for later use.
45107         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
45108         freeing static tls block.
45109
45110 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
45111
45112         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
45113         where #ifdef was intended.  The intent is to prevent ARG_MAX from
45114         being defined by the kernel headers.
45115
45116 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
45117
45118         [BZ #12734]
45119         * resolv/resolv.h: Define RES_NOTLDQUERY.
45120         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
45121         no-tld-query and set RES_NOTLDQUERY.
45122         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
45123         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
45124         modern BIND to search name as TLD unless forbidden.
45125
45126 2011-05-07  Petr Baudis  <pasky@suse.cz>
45127             Ulrich Drepper  <drepper@gmail.com>
45128
45129         [BZ #12393]
45130         * elf/dl-load.c (fillin_rpath): Move trusted path check...
45131         (is_trusted_path): ...to here.
45132         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
45133         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
45134         using is_trusted_path_normalize() in setuid scripts.
45135
45136 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
45137
45138         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
45139         __BEGIN/__END_DECLS.
45140
45141 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
45142
45143         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
45144         NSS_STATUS_NOTFOUND if no record was found.
45145
45146 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45147
45148         * sunrpc/Makefile (headers): Add rpc/netdb.h.
45149         (headers-not-in-tirpc): Remove rpc/netdb.h
45150         * resolv/netdb.h: Revert last change.
45151
45152 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
45153
45154         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
45155         circular dependency between libgcc.a and libc.a.
45156
45157 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45158
45159         * resolv/netdb.h: Don't include <rpc/netdb.h>.
45160         * nis/Makefile: Don't install rpcsvc/*.
45161         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
45162         instead of <rpc/types.h>.
45163         (MAXHOSTNAMELEN): Define.
45164
45165 2011-05-03  Andreas Schwab  <schwab@redhat.com>
45166
45167         * elf/ldconfig.c (add_dir): Don't crash on empty path.
45168
45169 2011-04-28  Maciej Babinski  <mbabinski@google.com>
45170
45171         [BZ #12714]
45172         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
45173         gethostbyname4_r when IPv6 results are possible.
45174
45175 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
45176
45177         [BZ #12723]
45178         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
45179         _PC_PIPE_BUF handling.
45180
45181 2011-04-30  Bruno Haible  <bruno@clisp.org>
45182
45183         [BZ #12717]
45184         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
45185         * resolv/netdb.h (getnameinfo): Change type of flags parameter
45186         to 'int'.
45187         * inet/getnameinfo.c (getnameinfo): Likewise.
45188
45189 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
45190
45191         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45192         to groups setting in database lookup.
45193         * nss/nsswitch.conf: Add initgroups entry.
45194
45195 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45196
45197         [BZ #12685]
45198         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45199         mode string.
45200         Patch by Eric Blake <eblake@redhat.com>.
45201
45202 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45203
45204         * sunrpc/Makefile (need-export-routines): Add svc_run.
45205         (routines): Remove svc_run.
45206         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45207         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45208         * sunrpc/svc_run.c (svc_run): Likewise.
45209         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45210
45211 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45212
45213         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45214         problem in reallocation in last patch.
45215
45216 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45217
45218         * sunrpc/Makefile: Move inclusion of Rules.
45219
45220 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45221
45222         * nss/nss_files/files-initgroups.c: New file.
45223         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45224         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45225         _nss_files_initgroups_dyn.
45226
45227 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45228
45229         * elf/elf.h (R_ARM_IRELATIVE): Define.
45230
45231 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45232
45233         * po/ru.po: Update from translation team.
45234
45235 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45236
45237         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45238         dependencies.
45239
45240 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45241
45242         [BZ #12653]
45243         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45244         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45245         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45246         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45247         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45248
45249 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45250
45251         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45252         differing bytes.
45253         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45254         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45255         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45256
45257 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45258
45259         [BZ #12420]
45260         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45261         storing it.
45262         * stdlib/bug-getcontext.c: New file.
45263         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45264
45265 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45266
45267         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45268         instructions into .machine "z9-109".
45269         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45270         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45271
45272 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45273
45274         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45275         between environment variables and auxiliary vector.
45276
45277 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45278
45279         * Makefile: Add rules to build linkobj/libc.so.
45280         * include/libc-symbols.h: Define libc_hidden_nolink.
45281         * include/rpc/auth.h: Mark functions which are to be hidden.
45282         * include/rpc/auth_des.h: Likewise.
45283         * include/rpc/auth_unix.h: Likewise.
45284         * include/rpc/clnt.h: Likewise.
45285         * include/rpc/des_crypt.h: Likewise.
45286         * include/rpc/key_prot.h: Likewise.
45287         * include/rpc/pmap_clnt.h: Likewise.
45288         * include/rpc/pmap_prot.h: Likewise.
45289         * include/rpc/pmap_rmt.h: Likewise.
45290         * include/rpc/rpc_msg.h: Likewise.
45291         * include/rpc/svc.h: Likewise.
45292         * include/rpc/svc_auth.h: Likewise.
45293         * include/rpc/xdr.h: Likewise.
45294         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45295         * nss/Makefile: Likewise.
45296         * sunrpc/Makefile: Don't install headers.  Build library with normal
45297         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45298         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45299         for the compat linking library.  Remove use of INTDEF/INTUSE.
45300         * sunrpc/auth_none.c: Likewise.
45301         * sunrpc/auth_unix.c: Likewise.
45302         * sunrpc/authdes_prot.c: Likewise.
45303         * sunrpc/authuxprot.c: Likewise.
45304         * sunrpc/clnt_gen.c: Likewise.
45305         * sunrpc/clnt_perr.c: Likewise.
45306         * sunrpc/clnt_raw.c: Likewise.
45307         * sunrpc/clnt_simp.c: Likewise.
45308         * sunrpc/clnt_tcp.c: Likewise.
45309         * sunrpc/clnt_udp.c: Likewise.
45310         * sunrpc/clnt_unix.c: Likewise.
45311         * sunrpc/des_crypt.c: Likewise.
45312         * sunrpc/des_soft.c: Likewise.
45313         * sunrpc/get_myaddr.c: Likewise.
45314         * sunrpc/key_call.c: Likewise.
45315         * sunrpc/key_prot.c: Likewise.
45316         * sunrpc/netname.c: Likewise.
45317         * sunrpc/pm_getmaps.c: Likewise.
45318         * sunrpc/pm_getport.c: Likewise.
45319         * sunrpc/pmap_clnt.c: Likewise.
45320         * sunrpc/pmap_prot.c: Likewise.
45321         * sunrpc/pmap_prot2.c: Likewise.
45322         * sunrpc/pmap_rmt.c: Likewise.
45323         * sunrpc/publickey.c: Likewise.
45324         * sunrpc/rpc_cmsg.c: Likewise.
45325         * sunrpc/rpc_common.c: Likewise.
45326         * sunrpc/rpc_dtable.c: Likewise.
45327         * sunrpc/rpc_prot.c: Likewise.
45328         * sunrpc/rpc_thread.c: Likewise.
45329         * sunrpc/rtime.c: Likewise.
45330         * sunrpc/svc.c: Likewise.
45331         * sunrpc/svc_auth.c: Likewise.
45332         * sunrpc/svc_authux.c: Likewise.
45333         * sunrpc/svc_raw.c: Likewise.
45334         * sunrpc/svc_run.c: Likewise.
45335         * sunrpc/svc_simple.c: Likewise.
45336         * sunrpc/svc_tcp.c: Likewise.
45337         * sunrpc/svc_udp.c: Likewise.
45338         * sunrpc/svc_unix.c: Likewise.
45339         * sunrpc/svcauth_des.c: Likewise.
45340         * sunrpc/xcrypt.c: Likewise.
45341         * sunrpc/xdr.c: Likewise.
45342         * sunrpc/xdr_array.c: Likewise.
45343         * sunrpc/xdr_float.c: Likewise.
45344         * sunrpc/xdr_intXX_t.c: Likewise.
45345         * sunrpc/xdr_mem.c: Likewise.
45346         * sunrpc/xdr_rec.c: Likewise.
45347         * sunrpc/xdr_ref.c: Likewise.
45348         * sunrpc/xdr_sizeof.c: Likewise.
45349         * sunrpc/xdr_stdio.c: Likewise.
45350
45351 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45352
45353         [BZ #12650]
45354         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45355         * sysdeps/ia64/dl-tls.h: Likewise.
45356         * sysdeps/powerpc/dl-tls.h: Likewise.
45357         * sysdeps/s390/dl-tls.h: Likewise.
45358         * sysdeps/sh/dl-tls.h: Likewise.
45359         * sysdeps/sparc/dl-tls.h: Likewise.
45360         * sysdeps/x86_64/dl-tls.h: Likewise.
45361         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45362
45363 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45364
45365         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45366         rpath element also skip the following colon.
45367         (expand_dynamic_string_token): Add is_path parameter and pass
45368         down to DL_DST_REQUIRED and _dl_dst_substitute.
45369         (decompose_rpath): Call expand_dynamic_string_token with
45370         non-zero is_path.  Ignore empty rpaths.
45371         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45372         with zero is_path.
45373
45374 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45375
45376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45377         Make cancelable.
45378
45379 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45380
45381         [BZ #12655]
45382         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45383         Patch by Filipe David Manana <fdmanana@apache.org>.
45384
45385 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45386
45387         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45388         Maintain aligned stack.
45389         (CHECK_RSP): Remove unused macro.
45390
45391 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45392
45393         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45394         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45395
45396 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45397
45398         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45399
45400         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45401
45402 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45403
45404         [BZ #12518]
45405         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45406         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45407         * sysdeps/x86_64/memmove.c: New file.
45408         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45409         (memcpy): Renamed to ...
45410         (__new_memcpy): This.
45411         (memcpy): Provide GLIBC_2_14 memcpy.
45412         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45413         (memcpy): Provide GLIBC_2_2_5 memcpy.
45414
45415 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45416
45417         [BZ #12631]
45418         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45419
45420 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45421
45422         * misc/syncfs.c: New file.
45423         * misc/Makefile (routines): Add syncfs.
45424         * posix/unistd.h: Declare syncfs.
45425         * sysdeps/unix/syscalls.list: Add syncfs.
45426
45427 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45428
45429         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45430         open_by_handle_at.
45431         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45432         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45433         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45434         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45435         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45436         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45437         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45438
45439 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45440
45441         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45442         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45443         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45444         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45445         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45446         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45447         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45448
45449         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45450         sync_file_range.c with -fexceptions.
45451         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45452         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45453         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45454         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45455         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45456         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45457         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45458         sync_file_range as cancellation point
45459         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45460         now a wrapper around __call_sync_file_range with cancellation handling.
45461         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45462         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45463         function name to __call_sync_file_range.
45464         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45465         Add call_sync_file_range.
45466
45467 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45468
45469         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45470         bits/timex.h.
45471
45472 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45473
45474         * iconv/iconv.h: Fix typo in comment.
45475         * io/fcntl.h: Likewise.
45476         * libio/stdio.h: Likewise.
45477         * posix/spawn.h: Likewise.
45478         * posix/unistd.h: Likewise.
45479         * stdlib/stdlib.h: Likewise.
45480         * time/time.h: Likewise.
45481         * wcsmbs/wchar.h: Likewise.
45482
45483         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45484         open_by_handle): Add.
45485         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45486         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45487         Augment a few comments.
45488         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45489         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45490         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45491         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45492         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45493         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45494         open_by_handle.
45495
45496         * io/fcntl.h (AT_EMPTY_PATH): Define.
45497
45498 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45499
45500         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45501         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45502         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45503         to...
45504         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45505         * Versions.def: Add GLIBC_2.14.
45506         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45507         Export.
45508
45509 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45510
45511         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45512         round counter.
45513         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45514
45515 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45516
45517         [BZ #12597]
45518         * string/test-strncmp.c (do_page_test): New function.
45519         (check2): Likewise.
45520         (test_main): Call check2.
45521         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45522
45523 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45524
45525         [BZ #12587]
45526         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45527         Handle cache information in CPU leaf 4.
45528         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45529
45530 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45531
45532         [BZ #12583]
45533         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
45534         character representation.
45535         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
45536
45537 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
45538
45539         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45540         END(__isnan) to END(__isnanf) to match function entry point/label
45541         EALIGN(__isnanf,...).
45542
45543 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
45544
45545         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
45546
45547 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
45548
45549         [BZ #12510]
45550         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
45551         copy from the symbol referenced in the relocation to initialize the
45552         used variable.
45553         Patch by Piotr Bury <pbury@goahead.com>.
45554         * elf/Makefile: Add rules to build and tst-unique3.
45555         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
45556         * elf/tst-unique3.cc: New file.
45557         * elf/tst-unique3.h: New file.
45558         * elf/tst-unique3lib.cc: New file.
45559         * elf/tst-unique3lib2.cc: New file.
45560
45561         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
45562
45563 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
45564
45565         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
45566         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
45567         to _start.
45568
45569 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
45570
45571         * elf/dl-load.c (_dl_map_object): If we are looking for the first
45572         to-be-loaded object along a path to loader is ld.so.
45573
45574 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45575             Ulrich Drepper  <drepper@gmail.com>
45576
45577         * sysdeps/x86_64/memset.S: After aligning destination, code
45578         branches to different locations depending on the value of
45579         misalignment, when multiarch is enabled. Fix this.
45580
45581 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45582
45583         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45584         Set _x86_64_preferred_memory_instruction for AMD processsors.
45585         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45586         Set bit_Prefer_SSE_for_memop for AMD processors.
45587
45588 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45589
45590         * libio/fmemopen.c (fmemopen): Optimize a bit.
45591
45592 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45593
45594         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45595
45596 2011-03-03  Roland McGrath  <roland@redhat.com>
45597
45598         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45599
45600 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45601
45602         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45603         __bzero_ultra1 instead of __memset_ultra1.
45604
45605 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45606             Ulrich Drepper  <drepper@gmail.com>
45607
45608         [BZ #12509]
45609         * include/link.h (struct link_map): Add l_orig_initfini.
45610         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45611         returning unsuccessfully.
45612         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45613         close of a file loaded at startup, restore the original l_initfini
45614         list.
45615         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45616         list, store the pointer.
45617         * elf/Makefile ($(objpfx)noload-mem): New rule.
45618         (noload-ENV): Define.
45619         (tests): Add $(objpfx)noload-mem.
45620         * elf/noload.c: Include <memcheck.h>.
45621         (main): Call mtrace.  Close all opened handles.
45622
45623 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45624
45625         [BZ #12454]
45626         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45627         dependencies are missing.
45628
45629 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45630
45631         Fix __if_freereq crash: Unlike the generic version which uses free,
45632         Hurd needs munmap.
45633         * sysdeps/mach/hurd/ifreq.h: New file.
45634
45635 2011-01-27  Petr Baudis  <pasky@suse.cz>
45636             Ulrich Drepper  <drepper@gmail.com>
45637
45638         [BZ 12445]#
45639         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45640         to extend_alloca().
45641         * stdio-common/bug23.c: New file.
45642         * stdio-common/Makefile (tests): Add bug23.
45643
45644 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45645             Ulrich Drepper  <drepper@gmail.com>
45646
45647         [BZ #12489]
45648         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45649         before performing relro protection.  At old place add assertion
45650         to make sure nothing changed.
45651
45652 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45653             Glauber de Oliveira Costa  <glommer@gmail.com>
45654
45655         * elf/elf.h: Add new ARM TLS relocs.
45656
45657 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45658
45659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45660         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45661         cast from r3.
45662         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45663         'tests' variable.
45664         * sysdeps/wordsize-64/tst-writev.c: New file.
45665
45666 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45667
45668         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45669         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45670         insns in _dl_start to prevent a TOC reference before relocs are
45671         resolved.
45672
45673 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45674
45675         [BZ #12469]
45676         * Makeconfig: Remove RANLIB definition.
45677         * Makerules: Don't use RANLIB.
45678         * aclocal.m4: Remove ranlib test.
45679         * configure.in: No need to check for ranlib.
45680         * elf/rtld-Rules: Don't use RANLIB.
45681
45682 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45683
45684         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45685         protection macro.
45686         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45687         inclusion protection macro.
45688
45689         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45690         SIGRTMIN and SIGRTMAX and print information in that case only when
45691         SIGRTMIN is defined.
45692
45693 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45694
45695         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45696         arginfo fn returning -1.
45697
45698         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45699         and thousands string is zero terminated.
45700
45701 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45702
45703         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45704         sysdeps/unix/sysv/linux/bits/socket.h.
45705
45706 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45707
45708         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45709         (__CPU_COUNT): Remove old macros.
45710         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45711         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45712         (__CPU_ALLOC, __CPU_FREE): Add macros.
45713         (__sched_cpualloc, __sched_cpufree): Add declarations.
45714
45715 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45716
45717         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45718         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45719         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45720         (readdhstai): Return value of addhstaiX call.
45721         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45722         (addgrbyX): Return value returned by cache_addgr.
45723         (readdgrbyname): Return value returned by addgrbyX.
45724         (readdgrbygid): Likewise.
45725         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45726         (addpwbyX): Return value returned by cache_addpw.
45727         (readdpwbyname): Return value returned by addhstbyX.
45728         (readdpwbyuid): Likewise.
45729         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45730         (addservbyX): Return value returned by cache_addserv.
45731         (readdservbyname): Return value returned by addservbyX:
45732         (readdservbyport): Likewise.
45733         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45734         (addhstbyX): Return value returned by cache_addhst.
45735         (readdhstbyname): Return value returned by addhstbyX.
45736         (readdhstbyaddr): Likewise.
45737         (readdhstbynamev6): Likewise.
45738         (readdhstbyaddrv6): Likewise.
45739         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45740         (readdinitgroups): Return value returned by addinitgroupsX.
45741         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45742         (prune_cache): Keep track of timeout value of re-added entries.
45743         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45744         * nscd/nscd.h: Adjust prototypes of readd* functions.
45745
45746 2011-02-04  Roland McGrath  <roland@redhat.com>
45747
45748         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45749         (nis_stats): Likewise.
45750         * nis/nis_modify.c (nis_modify): Likewise.
45751         * nis/nis_remove.c (nis_remove): Likewise.
45752         * nis/nis_add.c (nis_add): Likewise.
45753
45754         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45755
45756         * posix/fnmatch_loop.c: Add some consts.
45757
45758         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45759
45760 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45761
45762         [BZ #12460]
45763         * config.make.in (config-cflags-novzeroupper): Define.
45764         * configure.in: Substitute libc_cv_cc_novzeroupper.
45765         * elf/Makefile (AVX-CFLAGS): Define.
45766         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45767         (CFLAGS-tst-auditmod4a.c): Likewise.
45768         (CFLAGS-tst-auditmod4b.c): Likewise.
45769         (CFLAGS-tst-auditmod6b.c): Likewise.
45770         (CFLAGS-tst-auditmod6c.c): Likewise.
45771         (CFLAGS-tst-auditmod7b.c): Likewise.
45772         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45773
45774 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45775
45776         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45777         function to the callback.
45778         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45779
45780 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45781
45782         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45783         of errno.
45784
45785 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45786
45787         [BZ #11724]
45788         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45789         of constructors.
45790         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45791         of destructors.
45792         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45793
45794         [BZ #11724]
45795         * elf/Makefile: Add rules to build and run new test.
45796         * elf/tst-initorder.c: New file.
45797         * elf/tst-initorder.exp: New file.
45798         * elf/tst-initordera1.c: New file.
45799         * elf/tst-initordera2.c: New file.
45800         * elf/tst-initordera3.c: New file.
45801         * elf/tst-initordera4.c: New file.
45802         * elf/tst-initorderb1.c: New file.
45803         * elf/tst-initorderb2.c: New file.
45804         * elf/tst-order-a1.c: New file.
45805         * elf/tst-order-a2.c: New file.
45806         * elf/tst-order-a3.c: New file.
45807         * elf/tst-order-a4.c: New file.
45808         * elf/tst-order-b1.c: New file.
45809         * elf/tst-order-b2.c: New file.
45810         * elf/tst-order-main.c: New file.
45811         New test case by George Gensure <werkt0@gmail.com>.
45812
45813 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45814
45815         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45816         decoding ACE if AI_CANONIDN.
45817
45818 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45819
45820         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45821
45822 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45823
45824         * version.h (RELEASE): Bump for 2.13 release.
45825         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45826
45827         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45828
45829         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45830         MADV_NOHUGEPAGE.
45831         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45832         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45833         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45834         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45835         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45836         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45837
45838         * posix/getconf.c: Update copyright year.
45839         * catgets/gencat.c: Likewise.
45840         * csu/version.c: Likewise.
45841         * debug/catchsegv.sh: Likewise.
45842         * debug/xtrace.sh: Likewise.
45843         * elf/ldconfig.c: Likewise.
45844         * elf/ldd.bash.in: Likewise.
45845         * elf/sprof.c (print_version): Likewise.
45846         * iconv/iconv_prog.c: Likewise.
45847         * iconv/iconvconfig.c: Likewise.
45848         * locale/programs/locale.c: Likewise.
45849         * locale/programs/localedef.c: Likewise.
45850         * malloc/memusage.sh: Likewise.
45851         * malloc/mtrace.pl: Likewise.
45852         * nscd/nscd.c (print_version): Likewise.
45853         * nss/getent.c: Likewise.
45854
45855         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45856         PF_CAIF, and PF_ALG.
45857         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45858
45859 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45860
45861         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45862         (modules-names): Use them.
45863         (ifunc-test-modules, ifunc-pie-tests): Define.
45864         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45865         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45866         (test-extras): Likewise.
45867         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45868         $(compile-command.c).
45869         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45870         (all-built-dso): Define.
45871         (check-textrel.out, check-execstack.out): Depend on it.
45872
45873         * configure.in: Don't override --enable-multi-arch.
45874
45875 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45876
45877         [BZ #6812]
45878         * nscd/hstcache.c (tryagain): Define.
45879         (cache_addhst): Return tryagain not notfound for temporary errors.
45880         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45881         failed.
45882
45883 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45884
45885         [BZ #10563]
45886         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45887         to make the syscall.
45888         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45889
45890         [BZ #12378]
45891         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45892         and fall back to matching as normal character if the string ends before
45893         the matching ']' is found.  This is what POSIX requires.
45894         * posix/testfnm.c: Adjust test result.
45895         * posix/globtest.sh: Adjust test result.  Add new test.
45896         * posix/tst-fnmatch.input: Likewise.
45897         * posix/tst-fnmatch2.c: Add new test.
45898
45899 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45900
45901         * elf/Makefile (check-execstack): Revert last change.  Depend on
45902         check-execstack.h.
45903         (check-execstack.h): New target.
45904         (generated): Add check-execstack.h.
45905         * elf/check-execstack.c: Include "check-execstack.h".
45906         (main): Revert last change.
45907         (handle_file): Return zero if GNU_STACK is absent and
45908         DEFAULT_STACK_PERMS doesn't include PF_X.
45909
45910 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45911
45912         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45913         in child fails because the descriptor is already closed.
45914         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45915         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45916         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45917
45918         [BZ #12397]
45919         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45920         syscall.
45921
45922         [BZ #10484]
45923         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45924         temporary buffer used to handle multi lookups locally.
45925         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45926
45927 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45928
45929         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45930         loader is ld.so.
45931
45932 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45933
45934         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45935         alignment for SSE2.
45936
45937 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45938
45939         [BZ #12394]
45940         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45941         characters.  When rounding increased number of integer digits recompute
45942         number of groups.
45943         * stdio-common/tst-grouping.c: New file.
45944         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45945
45946 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45947
45948         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45949         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45950
45951         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45952         void.
45953         * bits/select.h: Likewise.
45954
45955 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45956
45957         * po/ja.po: Update from translation team.
45958
45959 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45960
45961         [BZ #11155]
45962         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45963         implementation just like for lxstat, fxstatat, et al.
45964
45965 2010-12-27  Jim Meyering  <meyering@redhat.com>
45966
45967         [BZ #12348]
45968         * posix/regexec.c (build_trtable): Return failure indication upon
45969         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45970
45971 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45972
45973         [BZ #12201]
45974         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45975         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45976         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45977         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45978
45979         [BZ #12207]
45980         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45981
45982         [BZ #12204]
45983         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45984         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45985
45986 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45987
45988         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45989         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45990         script has SORT_BY_INIT_PRIORITY.
45991         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45992         NO_CTORS_DTORS_SECTIONS is defined.
45993         * elf/soinit.c: Likewise.
45994         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45995         NO_CTORS_DTORS_SECTIONS is defined.
45996         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45997         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45998         * sysdeps/sh/init-first.c: Likewise.
45999         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
46000
46001 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
46002
46003         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
46004         always use the slow path.
46005
46006 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
46007
46008         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
46009         similar rule which adds the sysdep directories to the header search in
46010         order to pick up the correct platform stackinfo.h.
46011         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
46012         perform test if it is, otherwise return successfully without testing.
46013         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
46014         DEFAULT_STACK_PERMS define in stackinfo.h.
46015         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
46016         defined in stackinfo.h.
46017         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
46018         DEFAULT_STACK_PERMS defined in stackinfo.h.
46019         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
46020         * sysdeps/ia64/stackinfo.h: Likewise.
46021         * sysdeps/s390/stackinfo.h: Likewise.
46022         * sysdeps/sh/stackinfo.h: Likewise.
46023         * sysdeps/sparc/stackinfo.h: Likewise.
46024         * sysdeps/x86_64/stackinfo.h: Likewise.
46025         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
46026         PF_X for powerpc64.  Retain PF_X for powerpc32.
46027
46028 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
46029
46030         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
46031         accurately.
46032         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
46033         GETDENTS_64BIT_ALIGNED.
46034
46035 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
46036
46037         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
46038
46039 2010-12-10  Andreas Schwab  <schwab@redhat.com>
46040
46041         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
46042         _GNU_SOURCE.
46043
46044         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
46045         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
46046         Remove __restrict.
46047         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
46048         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
46049
46050 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
46051
46052         [BZ #11655]
46053         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
46054         are initialized.
46055
46056 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
46057
46058         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
46059
46060 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
46061
46062         * po/it.po: Update from translation team.
46063
46064 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
46065
46066         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
46067         unused codes.
46068
46069 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
46070
46071         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
46072
46073 2010-11-24  Andreas Schwab  <schwab@redhat.com>
46074
46075         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
46076         specially.
46077         (gaih_getanswer_slice): Likewise.
46078
46079 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
46080
46081         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
46082
46083 2010-05-31  Petr Baudis  <pasky@suse.cz>
46084
46085         [BZ #11149]
46086         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
46087         silently even in the chroot mode.
46088
46089 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
46090
46091         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
46092         last patch a bit.  Pretty printing
46093
46094 2010-05-31  Petr Baudis <pasky@suse.cz>
46095
46096         [BZ #10085]
46097         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
46098         initialization of skip_initgroups_dyn.
46099
46100 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
46101
46102         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
46103         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
46104
46105 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
46106
46107         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
46108
46109 2010-11-11  Andreas Schwab  <schwab@redhat.com>
46110
46111         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
46112         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
46113         (tst-fnmatch-ENV): Set MALLOC_TRACE.
46114         ($(objpfx)tst-fnmatch-mem): New rule.
46115         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
46116         * posix/tst-fnmatch.c (main): Call mtrace.
46117
46118 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
46119
46120         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46121         Support Intel processor model 6 and model 0x2c.
46122
46123 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
46124
46125         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
46126           signed comparison.
46127
46128 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
46129
46130         [BZ #12205]
46131         * string/test-strncasecmp.c (check_result): New function.
46132         (do_one_test): Use it.
46133         (check1): New function.
46134         (test_main): Use it.
46135         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
46136         Support strcasecmp and strncasecmp.
46137
46138 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
46139
46140         [BZ #12194]
46141         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
46142         * sysdeps/x86_64/bits/byteswap.h: Likewise.
46143
46144 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
46145
46146         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
46147         IFUNC support.
46148         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46149         memset-x86-64.
46150         * sysdeps/x86_64/multiarch/bzero.S: New file.
46151         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
46152         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
46153         * sysdeps/x86_64/multiarch/memset.S: New file.
46154         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
46155         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46156         Set bit_Prefer_SSE_for_memop for Intel processors.
46157         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
46158         Define.
46159         (index_Prefer_SSE_for_memop): Define.
46160         (HAS_PREFER_SSE_FOR_MEMOP): Define.
46161
46162 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
46163
46164         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
46165         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
46166
46167 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
46168
46169         [BZ #12191]
46170         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46171         (__x86_64_raw_data_cache_size_half): Likewise.
46172         (__x86_64_raw_shared_cache_size): Likewise.
46173         (__x86_64_raw_shared_cache_size_half): Likewise.
46174
46175         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46176         (__x86_64_raw_data_cache_size_half): Likewise.
46177         (__x86_64_raw_shared_cache_size): Likewise.
46178         (__x86_64_raw_shared_cache_size_half): Likewise.
46179         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
46180         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
46181         and __x86_64_raw_shared_cache_size_half.  Round
46182         __x86_64_data_cache_size_half, __x86_64_data_cache_size
46183         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
46184         to multiple of 256 bytes.
46185
46186 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
46187
46188         [BZ #12167]
46189         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
46190         of inacessible symlinks.  Verify result of symlink before returning it.
46191         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46192         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46193
46194 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46195
46196         * math/math.h (isinf): Fix typo in comment.
46197
46198 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46199
46200         * po/da.po: Update from translation team.
46201
46202 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46203
46204         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46205         is added to the list.
46206
46207 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46208             Ulrich Drepper  <drepper@gmail.com>
46209
46210         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46211         the global list here.  Move code to...
46212         (_dl_add_to_namespace_list): ...here.  New function.
46213         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46214         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46215         * elf/dl-load.c (lose): Don't remove the element from the list.
46216         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46217         (_dl_map_object): Likewise.
46218
46219 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46220
46221         [BZ #12159]
46222         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46223         into all bytes of SSE register.
46224         Patch by Richard Li <richardpku@gmail.com>.
46225
46226 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46227
46228         [BZ #12140]
46229         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46230         perturbing.
46231
46232 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46233
46234         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46235         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46236         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46237         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46239         submachine.
46240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46241
46242 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46243
46244         * include/dlfcn.h (__RTLD_SECURE): Define.
46245         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46246         mode & __RTLD_SECURE instead.
46247         (open_path): Rename preloaded parameter to secure.
46248         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46249         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46250         * elf/dl-deps.c (openaux): Likewise.
46251         * elf/rtld.c (struct map_args): Remove is_preloaded.
46252         (map_doit): Don't use it.
46253         (dl_main): Likewise.
46254         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46255         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46256
46257 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46258
46259         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46260         (sysd-rules-targets): Remove duplicates.
46261         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46262         rtld-%.$o dependency.
46263
46264 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46265
46266         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46267         _dl_map_object do it.
46268
46269 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46270
46271         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46272         fast fma builtins, define the macros in the C99 standard.
46273         (FP_FAST_FMAF): Likewise.
46274         (FP_FAST_FMAL): Likewise.
46275         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46276
46277         * bits/mathdef.h: Update copyright year.
46278         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46279
46280 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46281
46282         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46283         builtins, define the macros in the C99 standard.
46284         (FP_FAST_FMAF): Likewise.
46285         (FP_FAST_FMAL): Likewise.
46286         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46287         multiply/add.
46288         (FP_FAST_FMAF): Likewise.
46289
46290 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46291
46292         [BZ #3268]
46293         * math/libm-test.inc (fma_test): Some new testcases.
46294         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46295         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46296         y and infinite z.  Do multiplication by C already in long double.
46297         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46298         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46299         y and infinite z.  Do bitwise or of inexact bit into u.d.
46300         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46301         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46302         * sysdeps/i386/fpu/s_fma.S: Removed.
46303         * sysdeps/i386/fpu/s_fmal.S: Removed.
46304
46305 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46306
46307         [BZ #3268]
46308         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46309         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46310         computation is not scheduled after fetestexcept.  Fix value
46311         of minimum denormal long double.
46312
46313 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46314
46315         [BZ #3268]
46316         * math/libm-test.inc (fma_test): Add some more tests.
46317         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46318         correctly.
46319
46320 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46321
46322         * scripts/data/localplt-s390-linux-gnu.data: New file.
46323         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46324
46325 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46326
46327         [BZ #3268]
46328         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46329         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46330         instead of dbl-64.
46331         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46332         inlines.
46333         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46334         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46335         if one of x and y is very large and the other is subnormal.
46336         * sysdeps/s390/fpu/s_fmaf.c: New file.
46337         * sysdeps/s390/fpu/s_fma.c: New file.
46338         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46339         * sysdeps/powerpc/fpu/s_fma.S: New file.
46340         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46341         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46342         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46343
46344 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46345
46346         [BZ #3268]
46347         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46348         fma tests.
46349         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46350         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46351         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46352         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46353         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46354         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46355         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46356
46357 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46358
46359         [BZ #12078]
46360         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46361         * posix/bug-regex31.input: Add test case.
46362
46363 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46364
46365         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46366         * posix/bug-regex31.input: New file.
46367
46368         [BZ #12078]
46369         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46370         (parse_sub_exp): Fix last change, use postorder.
46371
46372         * posix/bug-regex31.c: New file.
46373         * posix/Makefile: Add rules to build and run bug-regex31.
46374
46375         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46376
46377         [BZ #12078]
46378         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46379
46380         [BZ #12108]
46381         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46382         to have entries in sys_siglist.
46383
46384         [BZ #12093]
46385         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46386         be NULL.
46387
46388 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46389
46390         [BZ #3268]
46391         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46392         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46393         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46394         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46395         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46396         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46397         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46398         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46399         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46400         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46401         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46402         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46403         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46404         * math/ftestexcept.c (fetestexcept): Likewise.
46405         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46406         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46407         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46408         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46409         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46410         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46411         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46412
46413 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46414
46415         [BZ #12107]
46416         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46417         newline.
46418
46419 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46420
46421         * string/bug-strstr1.c: New file.
46422         * string/Makefile: Add rules to build and run bug-strstr1.
46423
46424 2010-10-05  Eric Blake  <eblake@redhat.com>
46425
46426         [BZ #12092]
46427         * string/str-two-way.h (two_way_long_needle): Always clear memory
46428         when skipping input due to the shift table.
46429
46430 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46431
46432         [BZ #12005]
46433         * malloc/mcheck.c: Handle large requests.
46434
46435         [BZ #12077]
46436         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46437         for strncmp and strncasecmp.
46438         * string/stratcliff.c: Add tests for strcmp and strncmp.
46439         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46440
46441 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46442
46443         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46444         __set_fpscr.
46445
46446 2010-09-30  Andreas Jaeger  <aj@suse.de>
46447
46448         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46449         (CGROUP_SUPER_MAGIC): Define.
46450         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46451         Handle btrfs and cgroup file systems.
46452         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46453         Likewise.
46454
46455 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46456
46457         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46458         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46459
46460 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46461
46462         [BZ #12067]
46463         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46464         trying to locate the ELF header.
46465
46466 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46467
46468         [BZ #11611]
46469         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46470         Mask out sign-bit copies when constructing f_fsid.
46471
46472 2010-09-24  Petr Baudis <pasky@suse.cz>
46473
46474         * debug/stack_chk_fail_local.c: Add missing licence exception.
46475         * debug/warning-nop.c: Likewise.
46476
46477 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46478
46479         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46480         implementing getdents64 using getdents syscall, set d_type if
46481         __ASSUME_GETDENTS32_D_TYPE.
46482
46483 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46484
46485         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46486         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46487
46488 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46489
46490         [BZ #12037]
46491         * posix/unistd.h: Undo change of feature selection for ftruncate from
46492         2010-01-11.
46493
46494 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46495
46496         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46497         detection.
46498
46499 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46500
46501         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46502         fanotify_mark.
46503         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46504
46505 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46506
46507         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46508         variables after CHECK_SP call.
46509         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46510
46511 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46512             Ulrich Drepper  <drepper@redhat.com>
46513
46514         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46515         re-relocationg ld.so.
46516         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46517         _dl_init_paths call.
46518         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46519         here anymore.
46520
46521 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46522
46523         * resolv/res_init.c (__res_vinit): Count the default server we added.
46524
46525 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46526             Ulrich Drepper  <drepper@redhat.com>
46527
46528         [BZ #11968]
46529         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46530         (____longjmp_chk): Use %ebx for saving value across system call.
46531         Add unwind info.
46532
46533 2010-09-06  Andreas Schwab  <schwab@redhat.com>
46534
46535         * manual/Makefile: Don't mix pattern rules with normal rules.
46536
46537 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
46538
46539         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
46540         operation.
46541         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
46542         * libio/iofopncook.c (_IO_cookie_init): Likewise.
46543         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
46544         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
46545         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46546         Likewise.
46547
46548 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
46549
46550         [BZ #11979]
46551         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
46552         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
46553
46554 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
46555
46556         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
46557         * sysdeps/x86_64/addmul_1.S: Likewise.
46558         * sysdeps/x86_64/lshift.S: Likewise.
46559         * sysdeps/x86_64/mul_1.S: Likewise.
46560         * sysdeps/x86_64/rshift.S: Likewise.
46561         * sysdeps/x86_64/sub_n.S: Likewise.
46562         * sysdeps/x86_64/submul_1.S: Likewise.
46563
46564 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46565
46566         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
46567         Define __sched_param instead of SCHED_* and sched_param when
46568         <bits/sched.h> is included with __need_schedparam defined.
46569         * bits/sched.h [__need_schedparam]
46570         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
46571         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
46572         (__defined_schedparam): Define to 1.
46573         (__sched_param): New structure, identical to sched_param.
46574         (__need_schedparam): Undefine.
46575
46576 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46577
46578         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46579         (epoll_create1): Declare.
46580
46581         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46582
46583 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46584
46585         [BZ #7066]
46586         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46587         shifting retval into place.
46588
46589 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46590
46591         * nis/rpcsvc/nis.h: Update copyright notice.
46592         * nis/rpcsvc/nis.x: Likewise.
46593         * nis/rpcsvc/nis_callback.h: Likewise.
46594         * nis/rpcsvc/nis_callback.x: Likewise.
46595         * nis/rpcsvc/nis_object.x: Likewise.
46596         * nis/rpcsvc/nis_tags.h: Likewise.
46597         * nis/rpcsvc/yp.h: Likewise.
46598         * nis/rpcsvc/yp.x: Likewise.
46599         * nis/rpcsvc/ypupd.h: Likewise.
46600         * nis/yp_xdr.c: Likewise.
46601         * nis/ypupdate_xdr.c: Likewise.
46602
46603         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46604         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46605         (pmap_getport): Use __libc_rpc_getport.
46606         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46607         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46608         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46609
46610 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46611
46612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46613         fanotify_mark.
46614
46615 2010-08-27  Roland McGrath  <roland@redhat.com>
46616
46617         * sysdeps/i386/i686/multiarch/Makefile
46618         (CFLAGS-varshift.c): New variable.
46619
46620 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46621
46622         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46623         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46624
46625         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46626
46627         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46628
46629 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46630
46631         * sysdeps/x86_64/strlen.S: Unroll the loop.
46632         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46633         strlen-sse2 strlen-sse2-bsf.
46634         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46635         __strlen_no_bsf if bit_Slow_BSF is set.
46636         (__strlen_sse42): Removed.
46637         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46638         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46639
46640 2010-08-25  Roland McGrath  <roland@redhat.com>
46641
46642         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46643         * sysdeps/x86_64/multiarch/varshift.c: New file.
46644         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46645         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46646         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46647         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46648
46649 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46650
46651         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46652         strlen-sse2 strlen-sse2-bsf.
46653         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46654         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46655         (__strlen_sse2): Removed.
46656         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46657         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46658         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46659         bit_Slow_BSF for Atom.
46660         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46661         (index_Slow_BSF): Define.
46662         (HAS_SLOW_BSF): Define.
46663
46664 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46665
46666         [BZ #10851]
46667         * resolv/res_init.c (__res_vinit): When no server address at all
46668         is given default to loopback.
46669
46670 2010-08-24  Roland McGrath  <roland@redhat.com>
46671
46672         * configure.in: Remove config-name.h generation.
46673         * configure: Regenerated.
46674         * config-name.in: File removed.
46675         * scripts/config-uname.sh: New file.
46676         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46677         ($(objdir)config-name.h): New target.
46678
46679         * sunrpc/rpc_parse.h: Avoid nested comment.
46680
46681 2010-08-24  Richard Henderson  <rth@redhat.com>
46682             Ulrich Drepper  <drepper@redhat.com>
46683             H.J. Lu  <hongjiu.lu@intel.com>
46684
46685         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46686         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46687         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46688         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46689         _mm_alignr_epi8 with _mm_loadu_si128.
46690         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46691         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46692         (__m128i_shift_right): Removed.
46693         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46694         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46695         * sysdeps/x86_64/multiarch/varshift.h: New file.
46696         * sysdeps/x86_64/multiarch/varshift.S: New file.
46697
46698 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46699
46700         * configure.in: Move assembler checks to before sysdep dir checking.
46701
46702 2010-08-20  Petr Baudis  <pasky@suse.cz>
46703
46704         * LICENSES: Sync the sunrpc license.
46705
46706 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46707
46708         * sunrpc/auth_des.c: Update copyright notice once again.
46709         * sunrpc/auth_none.c: Likewise.
46710         * sunrpc/auth_unix.c: Likewise.
46711         * sunrpc/authdes_prot.c: Likewise.
46712         * sunrpc/authuxprot.c: Likewise.
46713         * sunrpc/bindrsvprt.c: Likewise.
46714         * sunrpc/clnt_gen.c: Likewise.
46715         * sunrpc/clnt_perr.c: Likewise.
46716         * sunrpc/clnt_raw.c: Likewise.
46717         * sunrpc/clnt_simp.c: Likewise.
46718         * sunrpc/clnt_tcp.c: Likewise.
46719         * sunrpc/clnt_udp.c: Likewise.
46720         * sunrpc/clnt_unix.c: Likewise.
46721         * sunrpc/des_crypt.c: Likewise.
46722         * sunrpc/des_soft.c: Likewise.
46723         * sunrpc/get_myaddr.c: Likewise.
46724         * sunrpc/getrpcport.c: Likewise.
46725         * sunrpc/key_call.c: Likewise.
46726         * sunrpc/key_prot.c: Likewise.
46727         * sunrpc/openchild.c: Likewise.
46728         * sunrpc/pm_getmaps.c: Likewise.
46729         * sunrpc/pm_getport.c: Likewise.
46730         * sunrpc/pmap_clnt.c: Likewise.
46731         * sunrpc/pmap_prot.c: Likewise.
46732         * sunrpc/pmap_prot2.c: Likewise.
46733         * sunrpc/pmap_rmt.c: Likewise.
46734         * sunrpc/rpc/auth.h: Likewise.
46735         * sunrpc/rpc/auth_unix.h: Likewise.
46736         * sunrpc/rpc/clnt.h: Likewise.
46737         * sunrpc/rpc/des_crypt.h: Likewise.
46738         * sunrpc/rpc/key_prot.h: Likewise.
46739         * sunrpc/rpc/netdb.h: Likewise.
46740         * sunrpc/rpc/pmap_clnt.h: Likewise.
46741         * sunrpc/rpc/pmap_prot.h: Likewise.
46742         * sunrpc/rpc/pmap_rmt.h: Likewise.
46743         * sunrpc/rpc/rpc.h: Likewise.
46744         * sunrpc/rpc/rpc_des.h: Likewise.
46745         * sunrpc/rpc/rpc_msg.h: Likewise.
46746         * sunrpc/rpc/svc.h: Likewise.
46747         * sunrpc/rpc/svc_auth.h: Likewise.
46748         * sunrpc/rpc/types.h: Likewise.
46749         * sunrpc/rpc/xdr.h: Likewise.
46750         * sunrpc/rpc_clntout.c: Likewise.
46751         * sunrpc/rpc_cmsg.c: Likewise.
46752         * sunrpc/rpc_common.c: Likewise.
46753         * sunrpc/rpc_cout.c: Likewise.
46754         * sunrpc/rpc_dtable.c: Likewise.
46755         * sunrpc/rpc_hout.c: Likewise.
46756         * sunrpc/rpc_main.c: Likewise.
46757         * sunrpc/rpc_parse.c: Likewise.
46758         * sunrpc/rpc_parse.h: Likewise.
46759         * sunrpc/rpc_prot.c: Likewise.
46760         * sunrpc/rpc_sample.c: Likewise.
46761         * sunrpc/rpc_scan.c: Likewise.
46762         * sunrpc/rpc_scan.h: Likewise.
46763         * sunrpc/rpc_svcout.c: Likewise.
46764         * sunrpc/rpc_tblout.c: Likewise.
46765         * sunrpc/rpc_util.c: Likewise.
46766         * sunrpc/rpc_util.h: Likewise.
46767         * sunrpc/rpcinfo.c: Likewise.
46768         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46769         * sunrpc/rpcsvc/key_prot.x: Likewise.
46770         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46771         * sunrpc/rpcsvc/mount.x: Likewise.
46772         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46773         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46774         * sunrpc/rpcsvc/rex.x: Likewise.
46775         * sunrpc/rpcsvc/rstat.x: Likewise.
46776         * sunrpc/rpcsvc/rusers.x: Likewise.
46777         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46778         * sunrpc/rpcsvc/spray.x: Likewise.
46779         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46780         * sunrpc/rtime.c: Likewise.
46781         * sunrpc/svc.c: Likewise.
46782         * sunrpc/svc_auth.c: Likewise.
46783         * sunrpc/svc_authux.c: Likewise.
46784         * sunrpc/svc_raw.c: Likewise.
46785         * sunrpc/svc_run.c: Likewise.
46786         * sunrpc/svc_simple.c: Likewise.
46787         * sunrpc/svc_tcp.c: Likewise.
46788         * sunrpc/svc_udp.c: Likewise.
46789         * sunrpc/svc_unix.c: Likewise.
46790         * sunrpc/svcauth_des.c: Likewise.
46791         * sunrpc/xcrypt.c: Likewise.
46792         * sunrpc/xdr.c: Likewise.
46793         * sunrpc/xdr_array.c: Likewise.
46794         * sunrpc/xdr_float.c: Likewise.
46795         * sunrpc/xdr_mem.c: Likewise.
46796         * sunrpc/xdr_rec.c: Likewise.
46797         * sunrpc/xdr_ref.c: Likewise.
46798         * sunrpc/xdr_sizeof.c: Likewise.
46799         * sunrpc/xdr_stdio.c: Likewise.
46800
46801         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46802         handling.
46803
46804 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46805
46806         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46807
46808 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46809
46810         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46811         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46812         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46813         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46814         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46815         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46816         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46817         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46818         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46819         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46820         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46821         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46822         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46823         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46824
46825 2010-07-26  Anton Blanchard  <anton@samba.org>
46826
46827         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46828         * malloc/arena.c (heap_trim): Likewise.
46829
46830 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46831
46832         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46833         here.  Not...
46834         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46835         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46836
46837 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46838
46839         * sysdeps/i386/elf/Makefile: New file.
46840
46841 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46842
46843         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46844         from fanotify_init.
46845         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46846         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46847
46848 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46849
46850         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46851         of strncasecmp_l.
46852         * sysdeps/multiarch/strcmp.S: Likewise.
46853
46854 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46855
46856         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46857         strncase_l-nonascii.
46858         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46859         Add strncase_l-ssse3.
46860         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46861         * sysdeps/x86_64/strcmp.S: Likewise.
46862         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46863         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46864         * sysdeps/x86_64/strncase.S: New file.
46865         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46866         * sysdeps/x86_64/strncase_l.S: New file.
46867         * string/Makefile (strop-tests): Add strncasecmp.
46868         * string/test-strncasecmp.c: New file.
46869
46870         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46871         warning.
46872
46873         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46874         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46875
46876 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46877
46878         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46879
46880 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46881
46882         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46883         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46884         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46885
46886 2010-05-01  Alan Modra  <amodra@gmail.com>
46887
46888         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46889         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46890         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46891         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46892         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46893         tidying.  Don't tail-call __sigjmp_save for static lib.
46894         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46895         save location.
46896         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46897         (CALL_MCOUNT): Add eh info, and nop after bl.
46898         (TAIL_CALL_SYSCALL_ERROR): New macro.
46899         (PSEUDO_RET): Use it.
46900         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46901         Correct save location of integer regs and cr.
46902         (_dl_profile_resolve): Correct cr save location.  Delete nops
46903         after bl when SHARED.  Reduce cfi size a little by better
46904         placement of cfi directives.
46905         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46906         make a stack frame.  Instead use parm save area as a temp.
46907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46908         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46910         Don't make a stack frame for parent, use parm save area.
46911         Increase child stack frame to 112 bytes.  Don't save unused reg,
46912         and adjust reg usage.  Set up cfi on error recovery and
46913         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46915         (__makecontext): Add dummy nop after jump to exit.
46916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46917         Use correct parm save area and cr save, reduce stack frame.
46918         Correct cfi for possible PSEUDO_RET frame setup.
46919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46920         Branch to local label emitted by PSEUDO_RET rather than
46921         __syscall_error.
46922
46923 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46924
46925         [BZ #11904]
46926         * locale/programs/locale.c (print_assignment): New function.
46927         (show_locale_vars): Use it.
46928
46929 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46930
46931         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46932         field.
46933         (struct statfs64): Likewise.
46934         (_STATFS_F_FLAGS): Define.
46935         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46936         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46937         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46938         (ST_VALID): Define locally.
46939         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46940         __statvfs_getflags, use the provided value.
46941         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46942         __ASSUME_STATFS_F_FLAGS.
46943
46944         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46945
46946         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46947         Add sys/fanotify.h.
46948         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46949         fanotify_mask for GLIBC_2.13.
46950         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46951         fanotify_init and fanotify_mark.
46952         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46953         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46954
46955         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46956         Add prlimit.
46957         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46958         prlimit64 for GLIBC_2.13.
46959         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46960         prlimit64.
46961         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46962         syscall.
46963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46964         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46965         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46966         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46967         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46968         add prlimit alias.
46969         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46970
46971         [BZ #11903]
46972         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46973         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46974
46975         * nss/Makefile: Add rules to build and run tst-nss-test1.
46976         * shlib-versions: Add entry for libnss_test1.
46977         * nss/nss_test1.c: New file.
46978         * nss/tst-nss-test1.c: New file.
46979
46980         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46981         (__nss_configure_lookup): Set appropriate entry in
46982         __nss_configure_lookup to true.
46983         * nss/nsswitch.h: Define enum with indeces of databases in
46984         databases and __nss_database_custom arrays.  Declare
46985         __nss_database_custom.
46986         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46987         to avoid using nscd when custom rules are installed.
46988         * nss/getXXbyYY_r.c: Likewise.
46989         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46990
46991         * nss/nss_files/files-parse.c: Whitespace fixes.
46992
46993 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46994
46995         [BZ #11883]
46996         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46997         * posix/fnmatch_loop.c: Likewise.
46998
46999 2010-07-17  Andi Kleen  <ak@linux.intel.com>
47000
47001         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
47002         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
47003         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
47004         * Versions.def [GLIBC_2.13]: Add.
47005
47006 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
47007
47008         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47009         Also fail if tpwd after pwuid call is NULL.
47010
47011 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47012
47013         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
47014         when converting to ms.
47015
47016 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47017
47018         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
47019         EOPNOTSUPP errors with ENOTTY.
47020         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
47021         EOPNOTSUPP errors with ENOTTY.
47022
47023 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
47024
47025         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
47026         Add strcasecmp_l-ssse3.
47027         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
47028         strcasecmp.
47029         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
47030         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
47031         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
47032
47033 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
47034
47035         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
47036
47037         * string/Makefile (strop-tests): Add strcasecmp.
47038         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
47039         strcasecmp_l-nonascii.
47040         (gen-as-const-headers): Add locale-defines.sym.
47041         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
47042         * sysdeps/x86_64/strcasecmp.S: New file.
47043         * sysdeps/x86_64/strcasecmp_l.S: New file.
47044         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
47045         * sysdeps/x86_64/locale-defines.sym: New file.
47046         * string/test-strcasecmp.c: New file.
47047
47048         * string/test-strcasestr.c: Test both ends of the range of characters.
47049         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
47050
47051 2010-07-29  Roland McGrath  <roland@redhat.com>
47052
47053         [BZ #11856]
47054         * manual/locale.texi (Yes-or-No Questions): Fix example code.
47055
47056 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
47057
47058         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
47059         for ld.so.
47060
47061 2010-07-27  Andreas Schwab  <schwab@redhat.com>
47062
47063         * manual/memory.texi (Malloc Tunable Parameters): Document
47064         M_PERTURB.
47065
47066 2010-07-26  Roland McGrath  <roland@redhat.com>
47067
47068         [BZ #11840]
47069         * configure.in (-fgnu89-inline check): Set and substitute
47070         gnu89_inline, not libc_cv_gnu89_inline.
47071         * configure: Regenerated.
47072         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
47073
47074 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
47075
47076         * string/test-strnlen.c: New file.
47077         * string/Makefile (strop-tests): Add strnlen.
47078         * string/tester.c (test_strnlen): Add a few more test cases.
47079         * string/tst-strlen.c: Better error reporting.
47080
47081         * sysdeps/x86_64/strnlen.S: New file.
47082
47083 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
47084
47085         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
47086         lower-latency instructions.
47087
47088 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
47089
47090         * string/test-strcasestr.c: New file.
47091         * string/test-strstr.c: New file.
47092         * string/Makefile (strop-tests): Add strstr and strcasestr.
47093         * string/str-two-way.h: Don't undefine MAX.
47094         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
47095
47096 2010-07-21  Andreas Schwab  <schwab@redhat.com>
47097
47098         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
47099         strcasestr-nonascii.
47100         (CFLAGS-strcasestr-nonascii.c): Define.
47101         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
47102         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
47103         Remove unused attribute.
47104
47105 2010-07-20  Roland McGrath  <roland@redhat.com>
47106
47107         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
47108         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
47109         ld.so.cache was broken.  With it, there is no way to disable dsocaps
47110         like LD_HWCAP_MASK can disable hwcaps.
47111
47112 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47113
47114         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
47115
47116 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
47117
47118         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
47119         call in strcasestr.
47120         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
47121         __strcasestr_sse42_nonascii.
47122         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
47123         strcasestr-nonascii.c.
47124         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
47125
47126 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
47127
47128         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
47129         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
47130         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
47131         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
47132
47133 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
47134
47135         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
47136         fcntl.
47137
47138 2010-07-06  Andreas Schwab  <schwab@redhat.com>
47139
47140         [BZ #11577]
47141         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
47142         dl_signal_cerror.
47143
47144 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
47145
47146         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
47147         _PC_PIPE_BUF using F_GETPIPE_SZ.
47148
47149 2010-07-05  Roland McGrath  <roland@redhat.com>
47150
47151         * manual/arith.texi (Rounding Functions): Fix rint description
47152         implicit in round description.
47153
47154 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
47155
47156         * elf/Makefile: Fix linking for a few tests to make recent linker
47157         happy.
47158
47159 2010-06-30  Andreas Schwab  <schwab@redhat.com>
47160
47161         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
47162         $(common-objpfx)libc_nonshared.a.
47163
47164 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
47165
47166         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
47167         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
47168         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47169         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47170         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
47171         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
47172         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47173         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
47175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
47176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
47177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
47179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
47181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
47182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
47183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
47184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
47186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
47188         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
47189         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
47190         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47191         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47192         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47193         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47194         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47195         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47196         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47197         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47198         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47199         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47209         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47210         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47214
47215 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47216
47217         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47218         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47219         * string/memmove.c (memmove): Renamed to ...
47220         (MEMMOVE): ...this.  Default to memmove.
47221         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47222         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47223         (END_CHK): Define.
47224         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47225         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47226         mempcpy-ssse3-back memmove-ssse3-back.
47227         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47228         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47229         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47230         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47231         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47232         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47233         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47234         * sysdeps/x86_64/multiarch/memmove.c: New file.
47235         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47236         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47237         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47238         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47239         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47240         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47241         Define.
47242         (index_Fast_Copy_Backward): Define.
47243         (HAS_ARCH_FEATURE): Define.
47244         (HAS_FAST_REP_STRING): Define.
47245         (HAS_FAST_COPY_BACKWARD): Define.
47246
47247 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47248
47249         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47250         Restore proper fallback handling.
47251
47252 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47253
47254         [BZ #11701]
47255         * posix/group_member.c (__group_member): Correct checking loop.
47256
47257         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47258         OOM in getpwuid_r correctly.  Return error number when the caller
47259         should return, otherwise -1.
47260         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47261         call returning > 0 value.
47262         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47263
47264 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47265
47266         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47267         libc_nonshared.a from targets in modules-names.
47268
47269 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47270
47271         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47272         requires it.
47273
47274 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47275
47276         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47277         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47278         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47279         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47280
47281 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47282
47283         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47284
47285 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47286
47287         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47288         and F_GETPIPE_SZ.
47289         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47290         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47291         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47292         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47293         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47294         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47295
47296 2010-06-14  Roland McGrath  <roland@redhat.com>
47297
47298         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47299
47300 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47301
47302         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47303         __REDIRECT followed by __THROW.
47304         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47305         * posix/getopt.h (getopt): Likewise.
47306
47307 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47308
47309         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47310         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47311         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47312         in AT_FLAGS.
47313         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47314         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47315
47316 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47317
47318         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47319
47320 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47321
47322         [BZ #11640]
47323         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47324         Properly check family and model.
47325
47326 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47327
47328         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47329
47330 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47331
47332         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47333
47334 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47335
47336         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47337         symbol reference.
47338
47339 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47340
47341         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47342         symbol reference.
47343
47344 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47345
47346         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47347         and internal_recvmmsg.
47348         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47349         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47350         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47351         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47352
47353         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47354         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47355         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47356
47357 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47358
47359         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47360
47361 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47362
47363         POWER7 optimizations.
47364         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47365         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47366
47367 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47368
47369         * version.h: Update for 2.13 development version.
47370
47371 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47372
47373         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47374         exceptions.  Return 0.
47375
47376 2010-05-07  Roland McGrath  <roland@redhat.com>
47377
47378         * elf/ldconfig.c (main): Add a const.
47379
47380 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47381
47382         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47383         (args_options): Add no-idn option.
47384         (ahosts_keys_int): Add idn_flags to ai_flags.
47385         (parse_option): Handle 'i' option to clear idn_flags.
47386
47387         * malloc/malloc.c (_int_free): Possible race in the most recently
47388         added check.  Only act on the data if no current modification
47389         happened.
47390
47391 See ChangeLog.17 for earlier changes.