Optimized memchr, memrchr, rawmemchr for x86-32
[platform/upstream/glibc.git] / ChangeLog
1 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2
3         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
5         rawmemchr-sse2 rawmemchr-sse2-bsf.
6         * sysdeps/i386/i686/multiarch/memchr.S: New file.
7         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
8         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
9         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
10         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
11         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
12         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
14         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
16         * string/memrchr.c (MEMRCHR): New macro.
17
18 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
19
20         Add integration with gcc's -ffinite-math-only and optimize wrapper
21         functions in libm.
22         * Versions.def: Define GLIBC_2.15 version for libm.
23         * math/Makefile (headers): Add bits/math-finite.h.
24         * math/bits/math-finite.h: New file.
25         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
26         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
27         * math/e_acoshl.c: Add __*_finite alias.
28         * math/e_acosl.c: Likewise.
29         * math/e_asinl.c: Likewise.
30         * math/e_atan2l.c: Likewise.
31         * math/e_atanhl.c: Likewise.
32         * math/e_coshl.c: Likewise.
33         * math/e_exp10.c: Likewise.
34         * math/e_exp10f.c: Likewise.
35         * math/e_exp10l.c: Likewise.
36         * math/e_exp2l.c: Likewise.
37         * math/e_fmodl.c: Likewise.
38         * math/e_gammal_r.c: Likewise.
39         * math/e_hypotl.c: Likewise.
40         * math/e_j0l.c: Likewise.
41         * math/e_j1l.c: Likewise.
42         * math/e_jnl.c: Likewise.
43         * math/e_lgammal_r.c: Likewise.
44         * math/e_log10l.c: Likewise.
45         * math/e_log2l.c: Likewise.
46         * math/e_logl.c: Likewise.
47         * math/e_powl.c: Likewise.
48         * math/e_sinhl.c: Likewise.
49         * math/e_sqrtl.c: Likewise.
50         * math/e_scalb.c: Completely rewritten and optimized.
51         * math/e_scalbf.c: Likewise.
52         * math/e_scalbl.c: Likewise.
53         * math/w_acos.c: Likewise.
54         * math/w_acosf.c: Likewise.
55         * math/w_acosl.c: Likewise.
56         * math/w_acosh.c: Likewise.
57         * math/w_acoshf.c: Likewise.
58         * math/w_acoshl.c: Likewise.
59         * math/w_asin.c: Likewise.
60         * math/w_asinf.c: Likewise.
61         * math/w_asinl.c: Likewise.
62         * math/w_atan2.c: Likewise.
63         * math/w_atan2f.c: Likewise.
64         * math/w_atan2l.c: Likewise.
65         * math/w_atanh.c: Likewise.
66         * math/w_atanhf.c: Likewise.
67         * math/w_atanhl.c: Likewise.
68         * math/w_exp10.c: Likewise.
69         * math/w_exp10f.c: Likewise.
70         * math/w_exp10l.c: Likewise.
71         * math/w_fmod.c: Likewise.
72         * math/w_fmodf.c: Likewise.
73         * math/w_fmodl.c: Likewise.
74         * math/w_j0.c: Likewise.
75         * math/w_j0f.c: Likewise.
76         * math/w_j0l.c: Likewise.
77         * math/w_j1.c: Likewise.
78         * math/w_j1f.c: Likewise.
79         * math/w_j1l.c: Likewise.
80         * math/w_jn.c: Likewise.
81         * math/w_jnf.c: Likewise.
82         * math/w_log.c: Likewise.
83         * math/w_logf.c: Likewise.
84         * math/w_logl.c: Likewise.
85         * math/w_log10.c: Likewise.
86         * math/w_log10f.c: Likewise.
87         * math/w_log10l.c: Likewise.
88         * math/w_log2.c: Likewise.
89         * math/w_log2f.c: Likewise.
90         * math/w_log2l.c: Likewise.
91         * math/w_pow.c: Likewise.
92         * math/w_powf.c: Likewise.
93         * math/w_powl.c: Likewise.
94         * math/w_remainder.c: Likewise.
95         * math/w_remainderf.c: Likewise.
96         * math/w_remainderl.c: Likewise.
97         * math/w_scalb.c: Likewise.
98         * math/w_scalbf.c: Likewise.
99         * math/w_scalbl.c: Likewise.
100         * math/w_sqrt.c: Likewise.
101         * math/w_sqrtf.c: Likewise.
102         * math/w_sqrtl.c: Likewise.
103         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
104         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
105         used.
106         * math/math_private.h: Declare __kernel_standard_f.
107         * math/w_cosh.c: Remove cruft and optimize a bit.
108         * math/w_coshf.c: Likewise.
109         * math/w_coshl.c: Likewise.
110         * math/w_exp2.c: Likewise.
111         * math/w_exp2f.c: Likewise.
112         * math/w_exp2l.c: Likewise.
113         * math/w_hypot.c: Likewise.
114         * math/w_hypotf.c: Likewise.
115         * math/w_hypotl.c: Likewise.
116         * math/w_lgamma.c: Likewise.
117         * math/w_lgamma_r.c: Likewise.
118         * math/w_lgammaf.c: Likewise.
119         * math/w_lgammaf_r.c: Likewise.
120         * math/w_lgammal.c: Likewise.
121         * math/w_lgammal_r.c: Likewise.
122         * math/w_sinh.c: Likewise.
123         * math/w_sinhf.c: Likewise.
124         * math/w_sinhl.c: Likewise.
125         * math/w_tgamma.c: Likewise.
126         * math/w_tgammaf.c: Likewise.
127         * math/w_tgammal.c: Likewise.
128         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
129         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
130         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
131         Minor optimizations.  Pretty printing.  Remove cruft.
132         * sysdeps/i386/fpu/e_acosf.S: Likewise.
133         * sysdeps/i386/fpu/e_acosh.S: Likewise.
134         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
135         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
136         * sysdeps/i386/fpu/e_acosl.c: Likewise.
137         * sysdeps/i386/fpu/e_asin.S: Likewise.
138         * sysdeps/i386/fpu/e_asinf.S: Likewise.
139         * sysdeps/i386/fpu/e_atan2.S: Likewise.
140         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
141         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
142         * sysdeps/i386/fpu/e_atanh.S: Likewise.
143         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
144         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
145         * sysdeps/i386/fpu/e_exp10.S: Likewise.
146         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
147         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
148         * sysdeps/i386/fpu/e_exp2.S: Likewise.
149         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
150         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
151         * sysdeps/i386/fpu/e_fmod.S: Likewise.
152         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
153         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
154         * sysdeps/i386/fpu/e_hypot.S: Likewise.
155         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
156         * sysdeps/i386/fpu/e_log.S: Likewise.
157         * sysdeps/i386/fpu/e_log10.S: Likewise.
158         * sysdeps/i386/fpu/e_log10f.S: Likewise.
159         * sysdeps/i386/fpu/e_log10l.S: Likewise.
160         * sysdeps/i386/fpu/e_log2.S: Likewise.
161         * sysdeps/i386/fpu/e_log2f.S: Likewise.
162         * sysdeps/i386/fpu/e_log2l.S: Likewise.
163         * sysdeps/i386/fpu/e_logf.S: Likewise.
164         * sysdeps/i386/fpu/e_logl.S: Likewise.
165         * sysdeps/i386/fpu/e_pow.S: Likewise.
166         * sysdeps/i386/fpu/e_powf.S: Likewise.
167         * sysdeps/i386/fpu/e_powl.S: Likewise.
168         * sysdeps/i386/fpu/e_remainder.S: Likewise.
169         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
170         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
171         * sysdeps/i386/fpu/e_scalb.S: Likewise.
172         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
173         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
174         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
175         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
176         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
177         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
178         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
179         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
180         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
181         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
182         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
183         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
184         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
185         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
186         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
187         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
188         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
189         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
190         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
191         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
192         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
193         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
194         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
195         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
196         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
197         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
198         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
199         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
200         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
201         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
202         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
203         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
204         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
205         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
206         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
207         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
208         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
209         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
210         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
211         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
212         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
213         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
214         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
215         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
216         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
217         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
218         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
219         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
220         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
221         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
222         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
223         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
224         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
225         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
226         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
227         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
228         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
229         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
230         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
231         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
232         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
233         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
234         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
235         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
236         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
237         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
238         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
239         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
240         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
241         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
242         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
243         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
244         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
245         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
246         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
247         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
248         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
249         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
250         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
251         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
252         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
253         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
254         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
255         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
256         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
257         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
258         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
259         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
260         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
261         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
262         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
263         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
264         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
265         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
266         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
267         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
268         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
269         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
270         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
271         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
272         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
273         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
274         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
275         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
276         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
277         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
278         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
279         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
280         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
281         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
282         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
283         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
284         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
285         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
286         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
287         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
288         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
289         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
290         (__isnanf): Likewise.
291         (__isinf_ns): Likewise.
292         (__isinf_nsf): Likewise.
293         (__finite): Likewise.
294         (__finitef): Likewise.
295         (__ieee754_sqrt): Define as macro.
296         (__ieee754_sqrtf): Define as macro.
297         (__ieee754_sqrtl): Define as macro.
298         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
299         inlined copy.
300         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
301         __FINITE_MATH_ONLY__ consistent.
302         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
303
304 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
305
306         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
307         of rawmemchr.
308
309         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
310
311 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
312
313         * po/ja.po: Update from translation team.
314
315 2011-10-08  Roland McGrath  <roland@hack.frob.com>
316
317         * locale/programs/locarchive.c (prepare_address_space): New function.
318         (create_archive, enlarge_archive, open_archive): Use it.
319
320         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
321         inside [SHARED], where it is used.
322
323         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
324
325         * nss/getent.c (netgroup_keys): Remove unused variable.
326         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
327
328 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
329
330         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
331         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
332         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
333         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
334         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
335         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
336         * math/Makefile (libm-calls): Add s_isinf_ns.
337         * math/divtc3.c: Use __isinf_nsl instead of isinf.
338         * math/multc3.c: Likewise.
339         * math/s_casin.c: Likewise.
340         * math/s_casinf.c: Likewise.
341         * math/s_casinl.c: Likewise.
342         * math/s_ccos.c: Likewise.
343         * math/s_ccosf.c: Likewise.
344         * math/s_ccosl.c: Likewise.
345         * math/s_ctan.c: Likewise.
346         * math/s_ctanf.c: Likewise.
347         * math/s_ctanh.c: Likewise.
348         * math/s_ctanhf.c: Likewise.
349         * math/s_ctanhl.c: Likewise.
350         * math/s_ctanl.c: Likewise.
351         * math/w_fmod.c: Likewise.
352         * math/w_fmodf.c: Likewise.
353         * math/w_fmodl.c: Likewise.
354         * math/w_remainder.c: Likewise.
355         * math/w_remainderf.c: Likewise.
356         * math/w_remainderl.c: Likewise.
357         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
358         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
359         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
360         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
361         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
362         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
363         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
364         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
365
366         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
367         of the number.
368         * stdio-common/printf_fphex.c: Likewise.
369         * stdio-common/printf_size.c: Likewise.
370
371         * math/e_exp10.c: Include math_private.h using <...> not "...".
372         * math/e_exp10f.c: Likewise.
373         * math/e_exp10l.c: Likewise.
374         * math/e_exp2l.c: Likewise.
375         * math/e_j0l.c: Likewise.
376         * math/e_j1l.c: Likewise.
377         * math/e_jnl.c: Likewise.
378         * math/e_lgammal_r.c: Likewise.
379         * math/e_rem_pio2l.c: Likewise.
380         * math/e_scalb.c: Likewise.
381         * math/e_scalbf.c: Likewise.
382         * math/e_scalbl.c: Likewise.
383         * math/k_cosl.c: Likewise.
384         * math/k_sinl.c: Likewise.
385         * math/k_tanl.c: Likewise.
386         * math/s_cacoshf.c: Likewise.
387         * math/s_catan.c: Likewise.
388         * math/s_catanf.c: Likewise.
389         * math/s_catanh.c: Likewise.
390         * math/s_catanhf.c: Likewise.
391         * math/s_catanhl.c: Likewise.
392         * math/s_catanl.c: Likewise.
393         * math/s_ccosh.c: Likewise.
394         * math/s_ccoshf.c: Likewise.
395         * math/s_ccoshl.c: Likewise.
396         * math/s_cexp.c: Likewise.
397         * math/s_cexpf.c: Likewise.
398         * math/s_cexpl.c: Likewise.
399         * math/s_clog.c: Likewise.
400         * math/s_clog10.c: Likewise.
401         * math/s_clog10f.c: Likewise.
402         * math/s_clog10l.c: Likewise.
403         * math/s_clogf.c: Likewise.
404         * math/s_clogl.c: Likewise.
405         * math/s_csin.c: Likewise.
406         * math/s_csinf.c: Likewise.
407         * math/s_csinh.c: Likewise.
408         * math/s_csinhf.c: Likewise.
409         * math/s_csinhl.c: Likewise.
410         * math/s_csinl.c: Likewise.
411         * math/s_csqrt.c: Likewise.
412         * math/s_csqrtf.c: Likewise.
413         * math/s_csqrtl.c: Likewise.
414         * math/s_ctan.c: Likewise.
415         * math/s_ctanf.c: Likewise.
416         * math/s_ctanh.c: Likewise.
417         * math/s_ctanhf.c: Likewise.
418         * math/s_ctanhl.c: Likewise.
419         * math/s_ctanl.c: Likewise.
420         * math/s_ldexp.c: Likewise.
421         * math/s_ldexpf.c: Likewise.
422         * math/s_ldexpl.c: Likewise.
423         * math/s_significand.c: Likewise.
424         * math/s_significandf.c: Likewise.
425         * math/s_significandl.c: Likewise.
426         * math/w_acos.c: Likewise.
427         * math/w_acosf.c: Likewise.
428         * math/w_acosh.c: Likewise.
429         * math/w_acoshf.c: Likewise.
430         * math/w_acoshl.c: Likewise.
431         * math/w_acosl.c: Likewise.
432         * math/w_asin.c: Likewise.
433         * math/w_asinf.c: Likewise.
434         * math/w_asinl.c: Likewise.
435         * math/w_atan2.c: Likewise.
436         * math/w_atan2f.c: Likewise.
437         * math/w_atan2l.c: Likewise.
438         * math/w_atanh.c: Likewise.
439         * math/w_atanhf.c: Likewise.
440         * math/w_atanhl.c: Likewise.
441         * math/w_cosh.c: Likewise.
442         * math/w_coshf.c: Likewise.
443         * math/w_coshl.c: Likewise.
444         * math/w_dremf.c: Likewise.
445         * math/w_exp10.c: Likewise.
446         * math/w_exp10f.c: Likewise.
447         * math/w_exp10l.c: Likewise.
448         * math/w_exp2.c: Likewise.
449         * math/w_exp2f.c: Likewise.
450         * math/w_fmod.c: Likewise.
451         * math/w_fmodf.c: Likewise.
452         * math/w_fmodl.c: Likewise.
453         * math/w_hypot.c: Likewise.
454         * math/w_hypotf.c: Likewise.
455         * math/w_hypotl.c: Likewise.
456         * math/w_j0.c: Likewise.
457         * math/w_j0f.c: Likewise.
458         * math/w_j0l.c: Likewise.
459         * math/w_j1.c: Likewise.
460         * math/w_j1f.c: Likewise.
461         * math/w_j1l.c: Likewise.
462         * math/w_jn.c: Likewise.
463         * math/w_jnf.c: Likewise.
464         * math/w_jnl.c: Likewise.
465         * math/w_lgamma.c: Likewise.
466         * math/w_lgamma_r.c: Likewise.
467         * math/w_lgammaf.c: Likewise.
468         * math/w_lgammaf_r.c: Likewise.
469         * math/w_lgammal.c: Likewise.
470         * math/w_lgammal_r.c: Likewise.
471         * math/w_log.c: Likewise.
472         * math/w_log10.c: Likewise.
473         * math/w_log10f.c: Likewise.
474         * math/w_log10l.c: Likewise.
475         * math/w_log2.c: Likewise.
476         * math/w_log2f.c: Likewise.
477         * math/w_log2l.c: Likewise.
478         * math/w_logf.c: Likewise.
479         * math/w_logl.c: Likewise.
480         * math/w_pow.c: Likewise.
481         * math/w_powf.c: Likewise.
482         * math/w_powl.c: Likewise.
483         * math/w_remainder.c: Likewise.
484         * math/w_remainderf.c: Likewise.
485         * math/w_remainderl.c: Likewise.
486         * math/w_scalb.c: Likewise.
487         * math/w_scalbf.c: Likewise.
488         * math/w_scalbl.c: Likewise.
489         * math/w_sinh.c: Likewise.
490         * math/w_sinhf.c: Likewise.
491         * math/w_sinhl.c: Likewise.
492         * math/w_sqrt.c: Likewise.
493         * math/w_sqrtf.c: Likewise.
494         * math/w_sqrtl.c: Likewise.
495         * math/w_tgamma.c: Likewise.
496         * math/w_tgammaf.c: Likewise.
497         * math/w_tgammal.c: Likewise.
498
499         * po/ja.po: Update from translation team.
500
501 2011-09-29  Andreas Jaeger  <aj@suse.de>
502
503         [BZ #13179]
504         * sunrpc/netname.c (netname2host): Fix logic.
505
506         [BZ #6779]
507         [BZ #6783]
508         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
509         correctly.
510         * math/w_remainder.c (__remainder): Likewise.
511         * math/w_remainderf.c (__remainderf): Likewise.
512         * math/libm-test.inc (remainder_test): Add test cases.
513
514 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
515
516         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
517         sdiv_qrnnd.
518
519 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
520
521         * string/test-memcmp.c: Avoid unncessary #defines.
522         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
523
524 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
525
526         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
527         Use new sse2 version for core i3 - i7 as it's faster
528         than sse42 version.
529         (bit_Prefer_PMINUB_for_stringop): New.
530         * sysdeps/x86_64/rawmemchr.S: Update.
531         Replace with faster SSE2 version.
532         * sysdeps/x86_64/memrchr.S: New file.
533         * sysdeps/x86_64/memchr.S: Update.
534         Replace with faster SSE2 version.
535
536 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
537
538         * elf/dl-load.c (lose): Add cast to avoid warning.
539
540 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
541
542         * po/ca.po: Update from translation team.
543
544         * inet/getnetgrent_r.c: Hook up nscd.
545         * nscd/Makefile (routines): Add nscd_netgroup.
546         (nscd-modules): Add netgroupcache.
547         (CFLAGS-netgroupcache.c): Define.
548         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
549         (cache_search): Add const to second parameter.
550         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
551         INNETGR.
552         (dbs): Add netgrdb entry.
553         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
554         (verify_persistent_db): Handle netgrdb.
555         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
556         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
557         GETFDNETGR.
558         (netgroup_response_header): Define.
559         (innetgroup_response_header): Define.
560         (datahead): Add netgroup_response_header and innetgroup_response_header
561         elements.
562         * nscd/nscd.conf: Add entries for netgroup cache.
563         * nscd/nscd.h (dbtype): Add netgrdb.
564         (_PATH_NSCD_NETGROUP_DB): Define.
565         (netgroup_iov_disabled): Declare.
566         (xmalloc, xcalloc, xrealloc): Move declarations here.
567         (cache_search): Adjust prototype.
568         Add netgroup-related prototypes.
569         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
570         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
571         (__nscd_innetgr): Declare.
572         * nscd/selinux.c (perms): Use access_vector_t as element type and
573         add netgroup-related initializers.
574         * nscd/netgroupcache.c: New file.
575         * nscd/nscd_netgroup.c: New file.
576         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
577         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
578         For four parameters use innetgr.
579         * nss/nss_files/files-init.c: Add definition and callback for netgr.
580         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
581         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
582         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
583
584         * nscd/connections.c (register_traced_file): Don't register file
585         for disabled databases.
586
587 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
588
589         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
590
591         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
592         from tree and freeing node.
593
594 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
595
596         * nss/nsswitch.c (__nss_database_lookup): Handle
597         nss_parse_service_list out of memory case.
598
599 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
600
601         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
602         out of memory case.
603
604 2011-10-04  Andreas Schwab  <schwab@redhat.com>
605
606         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
607         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
608         pass it down.
609         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
610         elf_machine_rela, elf_machine_lazy_rel.
611         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
612         (ELF_DYNAMIC_DO_REL): Likewise.
613         (ELF_DYNAMIC_DO_RELA): Likewise.
614         (ELF_DYNAMIC_RELOCATE): Likewise.
615         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
616         to ELF_DYNAMIC_DO_REL.
617         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
618         (dl_main): In trace mode always set __RTLD_NOIFUNC.
619         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
620         elf_machine_rela.
621         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
622         skip_ifunc, don't call ifunc function if non-zero.
623         (elf_machine_rela): Likewise.
624         (elf_machine_lazy_rel): Likewise.
625         (elf_machine_lazy_rela): Likewise.
626         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
627         (elf_machine_lazy_rel): Likewise.
628         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
629         Likewise.
630         (elf_machine_lazy_rel): Likewise.
631         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
632         Likewise.
633         (elf_machine_lazy_rel): Likewise.
634         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
635         (elf_machine_lazy_rel): Likewise.
636         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
637         (elf_machine_lazy_rel): Likewise.
638         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
639         (elf_machine_lazy_rel): Likewise.
640         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
641         (elf_machine_lazy_rel): Likewise.
642         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
643         (elf_machine_lazy_rel): Likewise.
644         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
645         (elf_machine_lazy_rel): Likewise.
646
647 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
648
649         * nss/nss_files/files-init.c (_nss_files_init): Use static
650         initialization for all the *_traced_file variables.
651
652 2011-09-28  Andreas Schwab  <schwab@redhat.com>
653
654         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
655
656 2011-09-27  Roland McGrath  <roland@hack.frob.com>
657
658         [BZ #13226]
659         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
660
661 2011-09-27  Andreas Schwab  <schwab@redhat.com>
662
663         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
664         Reread the line before reparsing it.
665
666 2011-09-26  Andreas Schwab  <schwab@redhat.com>
667
668         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
669
670 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
671             Maxim Kuvyrkov  <maxim@codesourcery.com>
672             Joseph Myers  <joseph@codesourcery.com>
673
674         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
675         if needed for __stack_chk_guard.
676
677 2011-09-19  Roland McGrath  <roland@hack.frob.com>
678
679         * sysdeps/posix/spawni.c (script_execute): Always define it.
680         It will be optimized away if unused.
681         (maybe_script_execute): New function.
682         (__spawni): Call it.
683
684         * Makerules: Don't include tls.make.
685         (config-tls): Always set to thread.
686         * tls.make.c: File removed.
687
688 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
689
690         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
691         * config.make.in (CPPFLAGS-config): New substituted variable.
692
693 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
694
695         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
696
697         [BZ #13192]
698         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
699         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
700
701 2011-09-15  Roland McGrath  <roland@hack.frob.com>
702
703         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
704         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
705         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
706         (CALL_FAIL): Likewise.
707         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
708         (CALL_FAIL): Macro removed.
709         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
710
711 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
712
713         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
714         for __FINITE_MATH_ONLY__ == 1.
715
716 2011-09-15  Andreas Schwab  <schwab@redhat.com>
717
718         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
719         __ieee754_sqrt instead of sqrt.
720         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
721         __ieee754_sqrtf instead of sqrtf.
722         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
723         __floorf instead of floorf.
724         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
725         __floorf, __truncf instead of floorf, truncf.
726
727 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
728
729         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
730
731         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
732         __extern_always_inline.
733         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
734         32-bit.
735
736 2011-09-14  Andreas Schwab  <schwab@redhat.com>
737
738         * elf/rtld.c (dl_main): Also relocate in dependency order when
739         doing symbol dependency testing.
740
741 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
742
743         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
744         Always define `refsym'.
745
746 2011-09-13  Andreas Schwab  <schwab@redhat.com>
747
748         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
749         (__FD_ELT): Renamed from __FDELT.
750         * misc/bits/select2.h (__FD_ELT): Likewise.
751         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
752         __FD_MASK instead of __FDELT, __FDMASK.
753         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
754         Likewise.
755         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
756         Likewise.
757
758         * elf/Makefile (gen-ldd): Fix pattern.
759
760         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
761         (init_tls): Likewise.
762
763 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
764
765         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
766
767 2011-09-12  Andreas Schwab  <schwab@redhat.com>
768
769         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
770         `struct cmsghdr *' instead of `void *'.
771         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
772         Likewise.
773
774 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
775
776         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
777         if non-absolute.
778         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
779         ldd_rewrite_script.
780
781 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
782
783         * configure.in: Remove --with-tls option.
784         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
785         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
786         out in case it is missing.
787         * sysdeps/ia64/elf/configure.in: Likewise.
788         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
789         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
790         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
791         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
792         * sysdeps/sh/elf/configure.in: Likewise.
793         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
794         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
795         * sysdeps/x86_64/elf/configure.in: Likewise.
796         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
797         * sysdeps/mach/hurd/tls.h: Likewise.
798
799         [BZ #13067]
800         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
801
802         [BZ #13090]
803         * configure.in: Fix use of AC_INIT.
804
805         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
806
807 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
808
809         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
810         __set_errno.
811         * malloc/hooks.c: Likewise.
812
813         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
814         variables statically.
815         (narenas): Initialize.
816         (list_lock): Initialize.
817         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
818         initializtion of main_arena and list_lock.  Small cleanups.
819         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
820         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
821         Add initializers to main_arena and mp_.
822         (malloc_state): Remove pagesize member.  Change all users to use
823         GLRO(dl_pagesize).
824
825         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
826         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
827         is always initialized.
828
829         * malloc/malloc.c: Removed unused configurations and dead code.
830         * malloc/arena.c: Likewise.
831         * malloc/hooks.c: Likewise.
832         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
833
834         * include/tls.h: Removed.  USE___THREAD must always be defined.
835         * bits/libc-tsd.h: Don't handle !USE___THREAD.
836         * elf/dl-libc.c: Likewise.
837         * elf/dl-tsd.c: Likewise.
838         * include/errno.h: Likewise.
839         * include/netdb.h: Likewise.
840         * include/resolv.h: Likewise.
841         * inet/herrno-loc.c: Likewise.
842         * inet/herrno.c: Likewise.
843         * malloc/arena.c: Likewise.
844         * malloc/hooks.c: Likewise.
845         * malloc/malloc.c: Likewise.
846         * resolv/res-state.c: Likewise.
847         * resolv/res_libc.c: Likewise.
848         * sysdeps/i386/dl-machine.h: Likewise.
849         * sysdeps/ia64/dl-machine.h: Likewise.
850         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
851         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
852         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
853         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
854         * sysdeps/sh/dl-machine.h: Likewise.
855         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
856         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
857         * sysdeps/unix/i386/sysdep.S: Likewise.
858         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
859         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
860         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
861         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
862         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
863         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
864         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
865         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
866         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
867         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
868         * sysdeps/unix/x86_64/sysdep.S: Likewise.
869         * sysdeps/x86_64/dl-machine.h: Likewise.
870         * tls.make.c: Likewise.
871
872         * configure.in: Remove --with-__thread option.  Make tests for
873         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
874         tls_model attribute fail if no support is available.  Remove
875         USE_IN_LIBIO.
876         * Makeconfig: Adjust for dropped configure option.  All features are
877         now mandatory.
878         * Makerules: Likewise.
879         * Versions.def: Likewise.
880         * argp/argp-fmtstream.c: Likewise.
881         * argp/argp-fmtstream.h: Likewise.
882         * argp/argp-help.c: Likewise.
883         * assert/assert.c: Likewise.
884         * config.h.in: Likewise.
885         * config.make.in: Likewise.
886         * configure: Likewise.
887         * configure.in: Likewise.
888         * csu/Versions: Likewise.
889         * csu/init.c: Likewise.
890         * elf/tst-audit2.c: Likewise.
891         * elf/tst-tls10.c: Likewise.
892         * elf/tst-tls10.h: Likewise.
893         * elf/tst-tls11.c: Likewise.
894         * elf/tst-tls12.c: Likewise.
895         * elf/tst-tls14.c: Likewise.
896         * elf/tst-tlsmod11.c: Likewise.
897         * elf/tst-tlsmod12.c: Likewise.
898         * elf/tst-tlsmod13.c: Likewise.
899         * elf/tst-tlsmod13a.c: Likewise.
900         * elf/tst-tlsmod14a.c: Likewise.
901         * elf/tst-tlsmod15b.c: Likewise.
902         * elf/tst-tlsmod16a.c: Likewise.
903         * elf/tst-tlsmod16b.c: Likewise.
904         * elf/tst-tlsmod7.c: Likewise.
905         * elf/tst-tlsmod8.c: Likewise.
906         * elf/tst-tlsmod9.c: Likewise.
907         * gmon/gmon.c: Likewise.
908         * grp/fgetgrent_r.c: Likewise.
909         * grp/putgrent.c: Likewise.
910         * hurd/fopenport.c: Likewise.
911         * include/libc-symbols.h: Likewise.
912         * include/tls.h: Likewise.
913         * intl/gettextP.h: Likewise.
914         * intl/loadinfo.h: Likewise.
915         * locale/global-locale.c: Likewise.
916         * locale/localeinfo.h: Likewise.
917         * mach/devstream.c: Likewise.
918         * malloc/arena.c: Likewise.
919         * malloc/set-freeres.c: Likewise.
920         * misc/err.c: Likewise.
921         * misc/getttyent.c: Likewise.
922         * misc/mntent_r.c: Likewise.
923         * posix/getopt.c: Likewise.
924         * posix/wordexp.c: Likewise.
925         * pwd/fgetpwent_r.c: Likewise.
926         * resolv/Versions: Likewise.
927         * resolv/res_hconf.c: Likewise.
928         * shadow/fgetspent_r.c: Likewise.
929         * shadow/putspent.c: Likewise.
930         * stdio-common/printf_fphex.c: Likewise.
931         * stdio-common/tmpfile.c: Likewise.
932         * stdlib/abort.c: Likewise.
933         * stdlib/fmtmsg.c: Likewise.
934         * sunrpc/auth_unix.c: Likewise.
935         * sunrpc/clnt_perr.c: Likewise.
936         * sunrpc/clnt_tcp.c: Likewise.
937         * sunrpc/clnt_udp.c: Likewise.
938         * sunrpc/clnt_unix.c: Likewise.
939         * sunrpc/openchild.c: Likewise.
940         * sunrpc/svc_simple.c: Likewise.
941         * sunrpc/svc_tcp.c: Likewise.
942         * sunrpc/svc_udp.c: Likewise.
943         * sunrpc/svc_unix.c: Likewise.
944         * sunrpc/xdr.c: Likewise.
945         * sunrpc/xdr_array.c: Likewise.
946         * sunrpc/xdr_rec.c: Likewise.
947         * sunrpc/xdr_ref.c: Likewise.
948         * sunrpc/xdr_stdio.c: Likewise.
949
950 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
951
952         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
953
954 2011-07-03  Andreas Jaeger  <aj@suse.de>
955
956         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
957         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
958         regenerate with gen-libm-tests.pl.
959
960 2010-05-12  Petr Baudis  <pasky@suse.cz>
961
962         [BZ #11589]
963         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
964         around j0() zero points by switching to j1().
965         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
966         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
967         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
968         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
969
970 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
971
972         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
973         instead of 0.
974         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
975         instead of 0.                              .
976         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
977         Patch in part by Pavel Roskin <proski@gnu.org>.
978
979         [BZ #13138]
980         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
981         realloc.
982         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
983         Free memory block if necessary.
984
985         [BZ #12847]
986         * libio/genops.c (INTDEF): For string streams the _lock pointer can
987         be NULL.  Don't lock in this case.
988
989 2011-09-09  Roland McGrath  <roland@hack.frob.com>
990
991         * elf/elf.h (ELFOSABI_GNU): New macro.
992         (ELFOSABI_LINUX): Define to that.
993
994 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
995
996         * string/strncat.c (strncat): Undef the symbol in case it has been
997         defined in bits/string.h.
998
999 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
1000
1001         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
1002
1003         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
1004         link map.
1005
1006 2011-08-17  Andreas Jaeger  <aj@suse.de>
1007
1008         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
1009
1010 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
1011             Ian Lance Taylor  <iant@google.com>
1012
1013         * math/libm-test.inc (lround_test): New testcase.
1014         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
1015
1016 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
1017
1018         * Makefile: Remove support for automatic cvs check-ins.
1019         * Makerules: Likewise.
1020         * config.make.in: Likewise.
1021         * configure.in: Likewise.
1022         * intl/Makefile: Likewise.
1023         * locale/Makefile: Likewise.
1024         * po/Makefile: Likewise.
1025         * posix/Makefile: Likewise.
1026         * sysdeps/gnu/Makefile: Likewise.
1027         * sysdeps/mach/hurd/Makefile: Likewise.
1028         * sysdeps/sparc/sparc32/Makefile: Likewise.
1029
1030         [BZ #13118]
1031         * posix/Makefile (bug-regex32-ENV): Define.
1032         Patch by John Stanley <jpsinthemix@verizon.net>.
1033
1034         * misc/Makefile (headers): Add bits/select2.h.
1035         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
1036         * misc/bits/select2.h: New file.
1037         * include/bits/select2.h: New file.
1038         * debug/Makefile (routines): Add fdelt_chk.
1039         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
1040         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
1041         FD_ISSET.
1042         * debug/fdelt_chk.c: New file.
1043
1044         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
1045         * wcsmbs/test-wmemcmp.c: Likewise.
1046         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
1047         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
1048
1049 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1050
1051         * string/Makefile (strop-tests): Add memcmp.
1052         * string/test-wmemcmp.c: New file.
1053         * string/test-memcmp.c: Add wmemcmp support.
1054
1055 2011-09-08  Roland McGrath  <roland@hack.frob.com>
1056
1057         [BZ #13153]
1058         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
1059         2011-07-19 change.
1060
1061         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
1062         garbage value in a __mach_port_mod_refs call in the cases of the
1063         task-self and thread-self ports.
1064
1065 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1066
1067         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
1068
1069 2011-09-08  Andreas Schwab  <schwab@redhat.com>
1070
1071         * elf/dl-load.c (lose): Check for non-null L.
1072
1073 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
1074
1075         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
1076
1077         * elf/dl-libc.c (dlerror_run): Pass back error code from
1078         dl_catch_error.
1079
1080         [BZ #13123]
1081         * elf/dl-load.c (lose): Free l_origin if it is valid.
1082
1083         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
1084         names.
1085         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
1086         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
1087         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
1088         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
1089         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
1090         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
1091
1092 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1093
1094         * sysdeps/powerpc/fpu/e_hypot.c: New file.
1095         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
1096         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
1097         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
1098         * sysdeps/powerpc/fpu/k_cosf.c: New file.
1099         * sysdeps/powerpc/fpu/k_sinf.c: New file.
1100         * sysdeps/powerpc/fpu/s_cosf.c: New file.
1101         * sysdeps/powerpc/fpu/s_sinf.c: New file.
1102         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
1103         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
1104
1105 2011-08-15  Alan Modra  <amodra@gmail.com>
1106
1107         [BZ #13092]
1108         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
1109         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
1110         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
1111         ppc_mcount to static-only-routines.
1112         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
1113         __mcount_internal.
1114         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
1115         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
1116
1117 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
1118
1119         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
1120         for finite and infinity parameters.
1121
1122 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
1123
1124         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
1125         and add nop instructions for throughput optimization.
1126         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1127
1128 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
1129
1130         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
1131         aligned copy for power7 with vector-scalar instructions.
1132         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
1133
1134 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
1135
1136         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
1137         AVX check.
1138
1139 2011-09-07  Andreas Schwab  <schwab@redhat.com>
1140
1141         [BZ #13144]
1142         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
1143         last change.
1144
1145 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
1146
1147         * sysdeps/unix/sysv/linux/x86_64/init-first.c
1148         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
1149         syscall wrapper around clock_gettime in __vdso_clock_gettime.
1150         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
1151         clock_gettime.
1152
1153 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
1154
1155         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
1156         Forgot to demangle the pointer.
1157
1158         * sysdeps/i386/sysdep.h: Define atom_text_section.
1159         * sysdeps/x86_64/sysdep.h: Likewise.
1160         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
1161         section with atom_text_section.
1162         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
1163         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
1164         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
1165         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
1166         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
1167
1168         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
1169         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
1170         already be defined.  Change to take two parameters and don't assign
1171         result to variable.  Adjust all users.
1172         Define INTERNAL_GETTIME if not already defined.
1173         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
1174         call.
1175         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
1176         HAVE_CLOCK_GETTIME_VSYSCALL.
1177         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
1178
1179         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
1180         gettimeofday vsyscall, just use time.
1181
1182 2011-09-06  Andreas Schwab  <schwab@redhat.com>
1183
1184         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
1185         <errno.h>.
1186
1187 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
1188
1189         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
1190         syscall on x86-64.
1191         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
1192         syscall.
1193         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
1194         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
1195         syscall if possible.
1196
1197 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
1198
1199         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
1200         e_ident.  Don't pass to find_mapsXX.
1201         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
1202
1203 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1204
1205         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1206         strchr-sse2-no-bsf strrchr-sse2-no-bsf
1207         * sysdeps/x86_64/multiarch/strchr.S: Update.
1208         Check bit_slow_BSF bit.
1209         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1210         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
1211         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
1212
1213 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
1214
1215         [BZ #13134]
1216         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
1217         before glibc 2.15.
1218         (tryshell): Define.
1219         (__spawni): Change last parameter to be flag.  Test
1220         SPAWN_XFLAGS_USE_PATH flag to use path or not.
1221         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
1222         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
1223         * posix/spawni.c: Likewise.
1224         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
1225         * posix/spawnp.c: Likewise.  Change normal version to use
1226         SPAWN_XFLAGS_USE_PATH.
1227         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
1228         SPAWN_XFLAGS_TRY_SHELL.
1229
1230         [BZ #13150]
1231         * posix/glob.h: Remove gcc 1.x support.
1232
1233         [BZ #13068]
1234         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
1235
1236 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1237
1238         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1239         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
1240         strrchr-sse2-bsf
1241         * sysdeps/i386/i686/multiarch/strchr.S: New file.
1242         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
1243         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
1244         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
1245         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
1246         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
1247
1248 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1249
1250         * sysdeps/x86_64/wcscmp.S: New file.
1251
1252         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
1253         wcscmp-c wcscmp-sse2
1254         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
1255         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
1256         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
1257         * wcsmbs/wcscmp.c: Allow renaming.
1258
1259 2011-09-05  David S. Miller  <davem@davemloft.net>
1260
1261         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
1262         stack slot, rather than the struct return pointer slot.
1263         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
1264         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
1265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
1266         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
1267
1268 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
1269
1270         * po/ja.po: Update from translation team.
1271
1272         [BZ #13144]
1273         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
1274         kernel in 64-bit binaries.
1275
1276 2011-09-01  David S. Miller  <davem@davemloft.net>
1277
1278         * elf/elf.h (HWCAP_SPARC_*): Move to..
1279         * sysdeps/sparc/sysdep.h: this new file and add new values.
1280         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
1281         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
1282         _DL_HWCAP_COUNT to 24.
1283         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1284         entries.
1285         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
1286         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
1287         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
1288         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
1289         instead of magic constants.
1290         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1291
1292 2011-08-31  David S. Miller  <davem@davemloft.net>
1293
1294         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
1295         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
1296         Reimplement to do errno handling inline.
1297         (SYSCALL_ERROR_HANDLER): New macro.
1298         (__SYSCALL_STRING): Do not do errno handling in asm.
1299         (__CLONE_SYSCALL_STRING): Delete.
1300         (__INTERNAL_SYSCALL_STRING): Delete.
1301         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
1302         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
1303         (PSEUDO): Reimplement to do errno handling inline.
1304         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
1305         (SYSCALL_ERROR_HANDLER): New macro.
1306         (__SYSCALL_STRING): Do not do errno handling in asm.
1307         (__CLONE_SYSCALL_STRING): Delete.
1308         (__INTERNAL_SYSCALL_STRING): Delete.
1309         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
1310         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
1311         i386.
1312         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
1313         (inline_syscall*): Add 'err' argument.
1314         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
1315         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
1316         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
1317         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
1318
1319         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
1320         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
1321
1322 2011-08-30  Andreas Schwab  <schwab@redhat.com>
1323
1324         * elf/rtld.c (dl_main): Relocate objects in dependency order.
1325
1326 2011-08-29  Jiri Olsa <jolsa@redhat.com>
1327
1328         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
1329         directive.
1330
1331 2011-08-24  David S. Miller  <davem@davemloft.net>
1332
1333         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
1334
1335 2011-08-24  Andreas Schwab  <schwab@redhat.com>
1336
1337         * elf/Makefile: Add rules to build and run unload8 test.
1338         * elf/unload8.c: New file.
1339         * elf/unload8mod1.c: New file.
1340         * elf/unload8mod1x.c: New file.
1341         * elf/unload8mod2.c: New file.
1342         * elf/unload8mod3.c: New file.
1343
1344         * elf/dl-close.c (_dl_close_worker): Reset private search list if
1345         it wasn't used.
1346
1347 2011-08-23  David S. Miller  <davem@davemloft.net>
1348
1349         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
1350         subtract stack bias.
1351         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
1352         %sp not %fp in calculations.
1353         (_JMPBUF_UNWINDS_ADJ): Likewise.
1354
1355         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
1356         (aio_suspend): Call it to force an exception region around the
1357         AIO_MISC_WAIT() invocation.
1358
1359 2011-08-23  Andreas Schwab  <schwab@redhat.com>
1360
1361         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
1362         backslash.
1363
1364 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
1365
1366         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
1367         protection macro.
1368         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
1369         and <dl-machine.h>.
1370         (Elf64_FuncDesc): Remove.
1371
1372 2011-08-22  David S. Miller  <davem@davemloft.net>
1373
1374         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
1375         sigaltstack check, add missing cfi directives.
1376         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
1377         missing cfi directives, and sigaltstack handling.
1378
1379 2011-08-16  Andreas Schwab  <schwab@redhat.com>
1380
1381         [BZ #11724]
1382         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
1383         object is seen twice.
1384         * elf/dl-fini.c (_dl_sort_fini): Likewise.
1385
1386         * elf/Makefile (distribute): Add tst-initorder2.c.
1387         (tests): Add tst-initorder2.
1388         (modules-names): Add tst-initorder2a tst-initorder2b
1389         tst-initorder2c tst-initorder2d.  Add rules to build them.
1390         ($(objpfx)tst-initorder2.out): New rule.
1391         * elf/tst-initorder2.c: New file.
1392         * elf/tst-initorder2.exp: New file.
1393
1394 2011-08-22  Andreas Schwab  <schwab@redhat.com>
1395
1396         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
1397
1398         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
1399         dependencies back to end of function.
1400
1401         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
1402         $(elfobjdir)/ld.so.
1403
1404 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
1405
1406         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
1407         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
1408         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
1409         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
1410         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
1411         of __vdso_gettimeofday.
1412         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
1413         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
1414         attribute_hidden.
1415         (_libc_vdso_platform_setup): Remove initialization of
1416         __vdso_gettimeofday and __vdso_time.
1417
1418 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
1419
1420         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
1421         and fgetc_unlocked.
1422         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
1423         getc_unlocked.
1424
1425         * elf/dl-open.c (add_to_global): Report additions to the global scope
1426         for LD_DEBUG=scopes.
1427         (dl_open_worker): Also print scope of newly loaded dependencies.
1428         (_dl_show_scope): Indicate if there is no scope.
1429
1430         [BZ #13114]
1431         * stdio-common/Makefile (tests): Add bug24.
1432         * stdio-common/bug24.c: New file.
1433
1434 2011-08-19  Andreas Jaeger  <aj@suse.de>
1435
1436         [BZ #13114]
1437         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
1438         non-existant file when using close-on-exec mode.
1439
1440 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
1441
1442         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
1443         the very first instruction.
1444
1445         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
1446         the CFI state in the end.
1447         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
1448         inclusion of dl-trampoline.h.
1449         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
1450
1451 2011-08-19  Andreas Schwab  <schwab@redhat.com>
1452
1453         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
1454         expectations for long double.
1455
1456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
1457         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
1458
1459 2011-08-14  David S. Miller  <davem@davemloft.net>
1460
1461         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
1462         artificual limit depends upon the system page size.
1463
1464 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
1465
1466         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
1467         * resolv/Makefile: Define CFLAGS-libresolv.
1468
1469 2011-08-17  Andreas Schwab  <schwab@redhat.com>
1470
1471         * nss/makedb.c (compute_tables): Make variables used in nested
1472         function static.
1473
1474 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
1475
1476         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
1477         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
1478         if buffer was too small.
1479
1480         * elf/pldd.c (main): Attach to all threads in the process.
1481         Rewrite /proc handling to use *at functions.
1482
1483 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
1484
1485         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
1486         specifies first scope to show.
1487         (dl_open_worker): Update callers.  Move printing scope of new
1488         object to before the relocation.
1489         * elf/rtld.c (dl_main): Update _dl_show_scope call.
1490         * sysdeps/generic/ldsodefs.h: Update declaration.
1491
1492         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
1493         string for the scope number.
1494
1495 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
1496
1497         * nscd/servicescache.c (cache_addserv): Make sure written is always
1498         initialized.
1499
1500 2011-08-14  Roland McGrath  <roland@hack.frob.com>
1501
1502         * sysdeps/i386/i486/bits/atomic.h
1503         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
1504         statement expression, so as to suppress "set but not used" warning.
1505         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
1506
1507         * string/strncat.c (STRNCAT): Use prototype definition.
1508
1509         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
1510         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
1511         -Iprograms here.
1512         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
1513         (localedef-modules): Add localedef.
1514         (locale-modules): Add locale.
1515
1516         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
1517         * elf/rtld.c (dl_main): Invert order of assignment in last change,
1518         to avoid a warning.
1519
1520 2011-08-14  David S. Miller  <davem@davemloft.net>
1521
1522         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
1523         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
1524
1525 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
1526
1527         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
1528         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
1529         * elf/rtld.c (dl_main): Set l_name of vDSO.
1530         Call _dl_show_scope when DL_DEBUG_SCOPES.
1531         (process_dl_debug): Recognize scopes flag and also set it for all.
1532         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
1533         Declare _dl_show_scope.
1534
1535         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
1536         (do_dlopen): Pass caller_dlopen to dl_open.
1537         (__libc_dlopen_mode): Initialize caller_dlopen.
1538
1539         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
1540         of libc.  Make tolower call locale-independent.  Optimize a bit by
1541         using isdigit instead of isalnum.
1542         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
1543
1544 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
1545
1546         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
1547         was a dependency or dynamically loaded.
1548
1549 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
1550
1551         * intl/l10nflist.c: Allow architecture-specific pop function.
1552         * sysdeps/x86_64/l10nflist.c: New file.
1553
1554         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
1555         classification.
1556
1557 2011-08-10  Andreas Schwab  <schwab@redhat.com>
1558
1559         * include/dirent.h: Add libc_hidden_proto for scandirat and
1560         scandirat64.  Don't declare __scandirat64.
1561         * dirent/scandirat.c: Add libc_hidden_def.
1562         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
1563         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
1564
1565 2011-08-10  David S. Miller  <davem@davemloft.net>
1566
1567         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
1568         enum.
1569         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1570         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1571         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1572
1573 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
1574
1575         * Versions.def [libc]: Add GLIBC_2.15.
1576         * dirent/Makefile (routines): Add scandirat and scandirat64.
1577         * dirent/Versions [libc]: Export scandirat and scandirat64 for
1578         GLIBC_2.15.
1579         * dirent/dirent.h: Declare scandirat and scandirat64.
1580         * dirent/scandirat.c: New file.
1581         * dirent/scandirat64.c: New file.
1582         * sysdeps/wordsize-64/scandirat.c: New file.
1583         * sysdeps/wordsize-64/scandirat64.c: New file.
1584         * dirent/opendir.c: Define opendirat.
1585         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
1586         using scandirat.
1587         * dirent/scandir64.c: Adjust for scandir.c change.
1588         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
1589         __scandirat64, and __scandir_cancel_handler.
1590         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
1591         additional parameter and use openat instead of open (outside of ld.so).
1592         Add new __opendir as wrapper around __opendirat.
1593         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
1594         here without requiring old scandirat implementation.
1595
1596 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
1597
1598         * dirent/scandir.c (cancel_handler): Renamed to
1599         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
1600         defined.  Adjust users.
1601         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
1602         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
1603
1604 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
1605
1606         * string/test-string.h (IMPL): Use __STRING to expand name and then
1607         stringify it.
1608
1609         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
1610         of cleanups.
1611
1612 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1613
1614         * string/Makefile: Update.
1615         (strop-tests): Append strncat.
1616         * string/test-wcscmp.c: New file.
1617         New comprehensive test for wcscmp.
1618         * string/test-strcmp.c: Update.
1619         (WIDE): New define.
1620
1621 2011-07-22  Andreas Schwab  <schwab@redhat.com>
1622
1623         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
1624         line.
1625
1626 2011-07-26  Andreas Schwab  <schwab@redhat.com>
1627
1628         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
1629         encoding to ACE if AI_IDN.
1630
1631 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
1632
1633         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
1634         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
1635
1636 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1637
1638         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
1639         Fix overflow bug in strncat.
1640         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
1641
1642         * string/test-strncat.c: Update.
1643         Add new tests for checking overflow bugs.
1644
1645 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1646
1647         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
1648         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
1649         * sysdeps/i386/i686/multiarch/strcat.S: New file.
1650         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
1651         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
1652         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
1653         * sysdeps/i386/i686/multiarch/strncat.S: New file.
1654         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
1655         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
1656
1657         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
1658         (USE_AS_STRCAT): Define.
1659         Add strcat and strncat support.
1660         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
1661
1662 2011-07-25  Andreas Schwab  <schwab@redhat.com>
1663
1664         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
1665         __n bigger than INT_MAX+1.
1666         (__strncmp_g): Likewise.
1667
1668 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
1669
1670         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
1671         * libio/stido.h: Likewise.
1672
1673         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
1674         (AF_NFC): Define.
1675         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
1676         (AF_NFC): Define.
1677
1678         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
1679         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1680         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1681         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
1682         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1683
1684         [BZ #13021]
1685         * scripts/test-installation.pl: Don't expect libnss_test1 to be
1686         installed.
1687
1688         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
1689         typo.
1690         (_dl_x86_64_save_sse): Likewise.
1691
1692 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
1693
1694         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
1695         OSXSAVE.
1696         (_dl_x86_64_save_sse): Likewise.
1697
1698         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
1699
1700         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
1701
1702 2011-07-21  Andreas Schwab  <schwab@redhat.com>
1703
1704         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
1705         change.
1706         (_dl_x86_64_save_sse): Use correct AVX check.
1707
1708 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1709
1710         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
1711         bug in strncpy/strncat.
1712         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1713
1714 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
1715
1716         * string/tester.c (test_strcat): Add tests for different alignments
1717         of source and destination.
1718         (test_strncat): Likewise.
1719
1720 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
1721
1722         [BZ #12852]
1723         * posix/glob.c (glob): Check passed in values before using them in
1724         expressions to avoid some overflows.
1725         (glob_in_dir): Likewise.
1726
1727         [BZ #13007]
1728         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
1729         check for AVX enablement so that we don't crash with old kernels and
1730         new hardware.
1731         * elf/tst-audit4.c: Add same checks here.
1732         * elf/tst-audit6.c: Likewise.
1733
1734         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
1735
1736 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
1737
1738         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
1739
1740 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
1741
1742         * po/cs.po: Update from translation team.
1743         * po/bg.po: Likewise.
1744
1745 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
1746
1747         * misc/sys/cdefs.h: Add support for const attribute.
1748         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
1749         to gnu_dev_{major,minor,makedev} functions.
1750
1751 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
1752
1753         * intl/dcigettext.c (get_output_charset): Add missing bracket.
1754
1755 2011-07-20  Andreas Schwab  <schwab@redhat.com>
1756
1757         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
1758         strlen results.
1759
1760 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1761
1762         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1763         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
1764         register in order to avoid conflicts with the soft frame pointer
1765         being held in r11 when necessary.
1766         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1767         (INTERNAL_VSYSCALL_NCS): Likewise.
1768
1769 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
1770
1771         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
1772         * elf/dl-fini.c (_dl_fini): Adjust caller.
1773         * elf/dl-close.c (_dl_close_worker): Likewise.
1774         * sysdeps/generic/ldsodefs.h: Adjust declaration.
1775
1776 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
1777
1778         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
1779         "aux_cache->nlibs < 0".
1780
1781         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
1782         in the reload-count case.
1783
1784 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1785
1786         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1787         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
1788         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
1789         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
1790         * sysdeps/x86_64/multiarch/strcat.S: New file.
1791         * sysdeps/x86_64/multiarch/strncat.S: New file.
1792         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
1793         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
1794         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
1795         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
1796         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
1797         (USE_AS_STRCAT): Define.
1798         Add strcat and strncat support.
1799         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
1800         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1801         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
1802         * string/strncat.c: Update.
1803         (USE_AS_STRNCAT): Define.
1804         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1805         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
1806         and i7.
1807         * sysdeps/x86_64/multiarch/init-arch.h
1808         (bit_Prefer_PMINUB_for_stringop): New.
1809         (index_Prefer_PMINUB_for_stringop): Likewise.
1810         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
1811         bit_Prefer_PMINUB_for_stringop.
1812
1813 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
1814
1815         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
1816         buffer64.
1817         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
1818         of casting of buffer.
1819         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
1820         buffer32 and buffer64.
1821         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
1822         writes instead of casting of buffer.
1823         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
1824         buffer32.
1825         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
1826         casting of buffer.
1827
1828 2011-07-19  Andreas Schwab  <schwab@redhat.com>
1829
1830         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
1831
1832 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
1833
1834         * nscd/nscd.c (termination_handler): Don't do anything for a database
1835         if it has not yet been initialized.
1836
1837 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
1838
1839         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
1840
1841 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
1842
1843         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
1844
1845 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
1846
1847         * po/nl.po: Update from translation team.
1848         * po/sv.po: Likewise.
1849
1850 2011-07-16  Roland McGrath  <roland@hack.frob.com>
1851
1852         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
1853         now disallowed by GCC.
1854
1855         * configure.in (use-default-link): Default to yes if a test -shared
1856         link meets our qualifications.
1857         * configure: Regenerated.
1858
1859         * config.make.in (output-format): New variable.
1860         * configure.in: Check for ld --print-output-format support.
1861         * configure: Regenerated.
1862         * Makerules ($(common-objpfx)format.lds)
1863         [$(output-format) != unknown]: Just use $(output-format),
1864         instead of the linker-script munging.
1865
1866 2011-07-14  Roland McGrath  <roland@hack.frob.com>
1867
1868         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
1869         of $(common-objpfx)shlib.lds.
1870         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
1871
1872         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
1873         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
1874
1875         * configure.in (-z relro check): Adjust test code to add a large
1876         writable data section after it.
1877         * configure: Regenerated.
1878
1879 2011-07-11  Roland McGrath  <roland@hack.frob.com>
1880
1881         * configure.in (-z relro check): Fix test code to make the variable
1882         truly const.
1883         * configure: Regenerated.
1884
1885 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
1886
1887         * nscd/nscd.h (struct traced_file): Define.
1888         (struct database_dyn): Remove inotify_descr, reset_res, and filename
1889         elements.  Add traced_files.
1890         (inotify_fd): Declare.
1891         (register_traced_file): Declare.
1892         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
1893         (inotify_fd): Export.
1894         (resolv_conf_descr): Remove.
1895         (nscd_init): Move inotify descriptor creation to main.
1896         Don't register files for notification here.
1897         (register_traced_file): New function.
1898         (invalidate_cache): Don't use reset_res to determine whether to call
1899         res_init, go through the list of registered files.
1900         (main_loop_poll): The inotify descriptors are now stored in the
1901         structures for the traced files.
1902         (main_loop_epoll): Likewise
1903         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
1904         to __nss_disable_nscd.
1905         * nscd/cache.c (prune_cache): There is no single inotify descriptor
1906         for a database anymore.  Check the records for all the registered
1907         files instead.
1908         * nss/Makefile (libnss_files-routines): Add files-init.
1909         (libnss_db-routines): Add db-init.
1910         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
1911         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
1912         * nss/nss_db/db-init.c: New file.
1913         * nss/nss_files/files-init.c: New file.
1914         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
1915         __nss_lookup_function.
1916         (__nss_lookup_function): Call nss_load_library.
1917         (nss_load_all_libraries): New function.
1918         (__nss_disable_nscd): Take parameter with callback function for files
1919         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
1920         used for the cached services.
1921         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
1922         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
1923         options for features to all the files in nscd.
1924
1925         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
1926
1927 2011-07-10  Roland McGrath  <roland@hack.frob.com>
1928
1929         * csu/elf-init.c (__libc_csu_init): Comment typo.
1930
1931 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
1932
1933         * po/pl.po: Update from translation team.
1934         * po/ja.po: Likewise.
1935         * po/ru.po: Likewise.
1936         * po/ko.po: Likewise.
1937         * po/fr.po: Likewise.
1938
1939 2011-07-09  Roland McGrath  <roland@hack.frob.com>
1940
1941         * configure.in (.ctors/.dtors header and trailer check):
1942         Use an empirical test on a built program.
1943         * configure: Regenerated.
1944
1945         * configure.in (-z relro check): Use an empirical test on a built DSO.
1946         Detect, but do not require, on ia64.
1947         * configure: Regenerated.
1948
1949         * configure.in (READELF): Find it with AC_CHECK_TOOL.
1950         Update tests that use readelf to use $READELF instead.
1951         * configure: Regenerated.
1952
1953 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
1954
1955         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
1956         if the result is not used.
1957
1958 2011-07-05  Andreas Jaeger  <aj@suse.de>
1959
1960         [BZ#9696]
1961         * stdlib/tst-strtod.c: Add testcase.
1962
1963 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
1964
1965         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
1966         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
1967         The latter has a higher limit.  Take additional parameter to pass to
1968         the new function.
1969         (__pathconf): Pass file to __statfs_link_max.
1970         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
1971         __statfs_link_max.
1972         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
1973         __statfs_link_max.
1974
1975         [BZ #12868]
1976         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
1977         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1978         Handle Lustre.
1979         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
1980         (__statfs_filesize_max): Likewise.
1981         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
1982
1983 2011-07-05  Andreas Jaeger  <aj@suse.de>
1984
1985         * resolv/res_comp.c (dn_skipname): Remove unused variable.
1986
1987 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
1988
1989         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
1990         `status' variable.
1991         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
1992         Likewise.
1993
1994 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1995
1996         * Makefile (strop-tests): Add strncat.
1997         * string/test-strncat.c: New file.
1998
1999 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
2000
2001         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
2002
2003 2011-06-21  Andreas Jaeger  <aj@suse.de>
2004
2005         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
2006         Copy rule from iconvdata/Makefile.
2007
2008 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
2009
2010         [BZ #12922]
2011         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
2012         but no long options are defined, just return 'W'.
2013
2014 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
2015
2016         [BZ #9696]
2017         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
2018
2019 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
2020
2021         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
2022         netgroups to read.
2023         (innetgr): Likewise.
2024
2025 2011-07-05  Roland McGrath  <roland@hack.frob.com>
2026
2027         * config.make.in (install_root): Default to $(DESTDIR).
2028
2029 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
2030
2031         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
2032
2033 2011-07-02  Roland McGrath  <roland@hack.frob.com>
2034
2035         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
2036
2037         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
2038         containing directory rather than embedding absolute directory names.
2039
2040         * scripts/check-local-headers.sh: Rewritten using awk.
2041         Match by word, not by line.  Print error messages for matches.
2042         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
2043
2044         * Makerules [shlib-lds-flags empty]:
2045         ($(common-objpfx)libc_pic.opts): New target.
2046         ($(common-objpfx)libc_pic.os.clean): New target.
2047         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
2048
2049         * config.make.in (OBJCOPY): New variable.
2050         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
2051         * configure: Regenerated.
2052
2053         * config.make.in (use-default-link): New variable.
2054         * configure.in (use_default_link): Grok --with-default-link to set it.
2055         * configure: Regenerated.
2056         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
2057         (shlib-lds, shlib-lds-flags): Define to empty.
2058
2059         * Makerules (shlib-lds): New variable.
2060         (shlib-lds-flags): New variable.
2061         (build-shlib, build-moduile, build-module-asneeded): Use it.
2062         ($(common-objpfx)libc.so): Use $(shlib-lds).
2063         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
2064         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
2065
2066         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
2067         DT_FLAGS/DT_FLAGS_1 with zero flags.
2068
2069         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
2070         linker script munging.
2071
2072 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
2073
2074         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
2075         as 128-bit value.
2076         * crypt/sha512.c (sha512_process_block): Perform total addition using
2077         128-bit if possible.
2078         (__sha512_finish_ctx): Likewise.
2079         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
2080         as 64-bit value.
2081         * crypt/sha256.c (SWAP64): Define.
2082         (sha256_process_block): Perform total addition using 64-bit if
2083         possible.
2084         (__sha256_finish_ctx): Likewise.
2085
2086 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
2087
2088         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
2089         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2090         * nscd/hstcache.c (cache_addhst): Likewise.
2091         * nscd/grpcache.c (cache_addgr): Likewise.
2092         * nscd/aicache.c (addhstaiX): Likewise
2093         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
2094
2095 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
2096
2097         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
2098         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2099         * nscd/hstcache.c (cache_addhst): Likewise.
2100         * nscd/grpcache.c (cache_addgr): Likewise.
2101         * nscd/aicache.c (addhstaiX): Likewise
2102
2103 2011-07-01  Andreas Schwab  <schwab@redhat.com>
2104
2105         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
2106         domain only when needed.
2107
2108 2011-06-30  Andreas Schwab  <schwab@redhat.com>
2109
2110         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
2111         is always restored.
2112
2113 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
2114
2115         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
2116         are re-adding the entry.
2117         * nscd/servicescache.c (cache_addserv): Likewise.
2118
2119 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
2120
2121         * sysdeps/generic/dl-irel.h: fix protection against multiple
2122         inclusions.
2123         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
2124
2125 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
2126
2127         [BZ #12935]
2128         * malloc/memusage.sh: Fix quoting in message.
2129         * debug/xtrace.sh: Likewise.
2130
2131         * configure.in: Remove support for --experimental-malloc option, make
2132         it the default.
2133         * config.make.in: Likewise.
2134         * malloc/Makefile: Likewise.
2135
2136 2011-06-27  Andreas Schwab  <schwab@redhat.com>
2137
2138         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
2139         two-byte characters.
2140
2141 2011-06-27  Roland McGrath  <roland@hack.frob.com>
2142
2143         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
2144         AC_CACHE_CHECK invocation.
2145         * configure: Regenerated.
2146
2147         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
2148
2149 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
2150
2151         [BZ #12350]
2152         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
2153         bit from old_res_options.
2154
2155         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
2156
2157         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
2158         value type for setfct.
2159
2160 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2161
2162         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
2163         __gettimeofday instead of gettimeofday.
2164
2165 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
2166
2167         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
2168
2169 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2170
2171         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
2172
2173         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
2174         info.
2175
2176 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2177
2178         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2179         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
2180         strcpy-sse2-unaligned strncpy-sse2-unaligned
2181         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
2182         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
2183         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
2184         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
2185         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
2186         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
2187         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
2188         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
2189         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
2190         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
2191         (STRCPY): Support SSE2 and SSSE3 versions.
2192
2193 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
2194
2195         [BZ #12874]
2196         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
2197         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
2198         kernels which artificially limit size of requests.
2199
2200 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2201
2202         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
2203         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
2204         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
2205         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
2206         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
2207         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
2208         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
2209         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
2210         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
2211         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
2212         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
2213         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
2214         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
2215         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
2216         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
2217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2218         Enable unaligned load optimization for Intel Core i3, i5 and i7
2219         processors.
2220         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
2221         Define.
2222         (index_Fast_Unaligned_Load): Define.
2223         (HAS_FAST_UNALIGNED_LOAD): Define.
2224
2225 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
2226
2227         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
2228
2229 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
2230
2231         [BZ #12907]
2232         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
2233         until it is clear that the information is realy needed.
2234         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
2235
2236 2011-06-22  Andreas Schwab  <schwab@redhat.com>
2237
2238         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
2239
2240 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
2241
2242         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
2243         /sys/devices/system/cpu/online if it is usable.
2244
2245         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
2246         reading the information from the /proc filesystem to once a second.
2247
2248 2011-06-21  Andreas Jaeger  <aj@suse.de>
2249
2250         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
2251         NULL after inclusion of kernel headers.
2252
2253 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
2254
2255         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
2256         calls to internal_setent.
2257
2258         [BZ #12885]
2259         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
2260         addresses using gethostbyname4_r ignore IPv4 addresses.
2261
2262         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
2263         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
2264
2265         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
2266
2267 2011-06-20  David S. Miller  <davem@davemloft.net>
2268
2269         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
2270         inclusions.
2271         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
2272
2273         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
2274         (elf_irel): Use it.
2275         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
2276         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
2277         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
2278         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
2279         * sysdeps/x86_64/dl-irel.h: Likewise.
2280
2281         * elf/dl-runtime.c: Use elf_ifunc_invoke.
2282         * elf/dl-sym.c: Likewise.
2283
2284 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
2285
2286         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
2287         need to dereference resplen2.
2288
2289 2011-06-14  Andreas Schwab  <schwab@redhat.com>
2290
2291         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
2292
2293 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
2294
2295         * Makeconfig: Define vardbdir and inst_vardbdir.
2296         * nss/Makefile: Add rules to install db-Makefile.
2297
2298         * nss/nss_db/db-XXX.c: Cleanup.
2299
2300         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
2301         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
2302         GLIBC_PRIVATE.
2303         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
2304         * nss/makedb.c: Implement -g option to specify that value strings
2305         are generated and should not be added to table iterated over for
2306         get*ent calls.
2307         * nss/nss_db/db-initgroups.c: New file.
2308
2309         * nss/getent.c: Add support for initgroups lookups through getgrouplist
2310         interface.
2311
2312         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
2313         (internal_getgrouplist): Adjust to name change.
2314         Update use_initgroups_entry if this is not the first call.
2315         * nss/databases.def: Add initgroups entry.
2316
2317         * nss/makedb.c (compute_tables): Check result of multiple hash table
2318         sizes to minimize maximum chain length.
2319
2320 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
2321
2322         * Versions.def: Add entry for libnss_db.
2323         * shlib-versions: Likewise.
2324         * nss/Makefile: Add rules to build libnss_db.
2325         * nss/Versions: Add libnss_db information.  Organize libnss_files
2326         entries better.
2327         * nss/db-Makefile: Add gshadow support.  Change rules for the new
2328         makedb progra.  Some minor improvements to generate smaller files.
2329         * nss/nss_db/nss_db.h: Move NSS database header data structures to
2330         here from...
2331         * nss/makedb.c: ...here.
2332         Improve database format to be smaller and require less memory at
2333         runtime.
2334         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
2335         db anymore.
2336         * nss/nss_db/db-netgrp.c: Likewise.
2337         * nss/nss_db/db-open.c: Likewise.
2338         * nss/nss_files/flies-XXX.x: Adjust comments.
2339         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
2340         * nss/nss_files/files-grp.c: Likewise.
2341         * nss/nss_files/files-hosts.c: Likewise.
2342         * nss/nss_files/files-network.c: Likewise.
2343         * nss/nss_files/files-proto.c: Likewise.
2344         * nss/nss_files/files-pwd.c: Likewise.
2345         * nss/nss_files/files-rpc.c: Likewise.
2346         * nss/nss_files/files-service.c: Likewise.
2347         * nss/nss_files/files-sgrp.c: Likewise.
2348         * nss/nss_files/files-spwd.c: Likewise.
2349         * nss/nss_db/db-alias.c: Removed.
2350         * nss/nss_db/dummy-db.h: Removed.
2351
2352 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
2353
2354         * nss/makedb.c: Rewritten to not use database library.
2355         * nss/Makefile: Update to build new makedb program.
2356
2357 2011-06-14  Andreas Jaeger  <aj@suse.de>
2358
2359         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
2360         memset declaration.
2361
2362 2011-06-10  Andreas Schwab  <schwab@redhat.com>
2363
2364         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
2365         tmpbuf.
2366
2367 2011-06-10  Roland McGrath  <roland@hack.frob.com>
2368
2369         * Makerules (shlib.lds): Fail if the linker script comes out empty.
2370         * elf/Makefile ($(objpfx)ld.so): Likewise.
2371
2372         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
2373         Don't list ld.so twice in dependencies.
2374
2375         * posix/bug-regex31.c: Include <stdlib.h>.
2376
2377         * nscd/hstcache.c (cache_addhst): Remove unused variable.
2378
2379         * nis/nss_compat/compat-spwd.c
2380         (getspent_next_nss_netgr): Remove unused variable.
2381         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2382
2383         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
2384         nonmembers" output to use the right array.
2385
2386         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
2387
2388         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
2389
2390         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
2391         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
2392         * catgets/gencat.c (read_input_file): Likewise.
2393         * locale/programs/locarchive.c (enlarge_archive): Likewise.
2394
2395         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
2396         variable definition inside #if's controlling its use.
2397
2398         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
2399
2400         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
2401
2402         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
2403
2404         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
2405         unreachable code.
2406
2407         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
2408
2409         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
2410         * configure: Regenerated.
2411
2412         * Makerules: Revert last change.
2413         * elf/Makefile: Likewise.
2414
2415 2011-06-09  Roland McGrath  <roland@hack.frob.com>
2416
2417         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
2418         * elf/Makefile ($(objpfx)librtld.os): Likewise.
2419         (reloc-link): Likewise.
2420
2421 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
2422
2423         * elf/Makefile: Add rules to build pldd.
2424         * elf/pldd.c: New file.
2425         * elf/pldd-xx.c: New file.
2426
2427 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
2428
2429         * version.h: Update for 2.15 development version.
2430
2431 2011-06-07  David S. Miller  <davem@davemloft.net>
2432
2433         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
2434         ifuncs.
2435         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
2436         elf_machine_lazy_rel): Likewise.
2437         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
2438         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
2439         elf_machine_lazy_rel): Likewise.
2440         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
2441         dl_hwcap via passed in argument.
2442         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
2443         Likewise.
2444
2445 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2446
2447         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
2448
2449 2011-06-06  Roland McGrath  <roland@hack.frob.com>
2450
2451         [BZ #12849]
2452         * manual/fdl-1.1.texi: New file, verbatim from:
2453         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
2454         * manual/lgpl-2.1.texi: New file, verbatim from:
2455         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
2456         * manual/Makefile (licenses): New variable, list those new file names.
2457         (texis): Use it.
2458         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
2459
2460         * manual/fdl.texi: File removed.
2461         * manual/lesser.texi: File removed.
2462         * manual/libc.texinfo (Copying, Documentation License):
2463         Use new @include file names, put @appendix directive before @include.
2464
2465 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
2466
2467         [BZ #12841]
2468         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
2469         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
2470         (mq_open): Add __NTH.
2471
2472 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
2473
2474         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2475         Assume Intel Core i3/i5/i7 processor if AVX is available.
2476
2477 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
2478
2479         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
2480         typo.
2481
2482 2011-05-31  Andreas Schwab  <schwab@redhat.com>
2483
2484         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
2485         memory.  Use alloca_account.  Fix memory leak when retrying.
2486
2487 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
2488
2489         * version.h (RELEASE): Bump for 2.14 release.
2490         * include/features.h (__GLIBC_MINOR__): Bump to 14.
2491
2492         * config.make.in (RANLIB): Remove entry.
2493
2494 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
2495
2496         * po/Makefile (po-sed-cmd): Add ksh to extensions.
2497         (libc.pot): Work around missing support for .ksh extension in xgettext.
2498
2499         [BZ #12684]
2500         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
2501         if both request failed.
2502         (send_dg): In case of server errors clear resplen or *resplen2.
2503
2504         [BZ #12454]
2505         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
2506         when there are multiple maps.
2507         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
2508         (_dl_fini): Remove test here.
2509
2510         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
2511
2512 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
2513
2514         [BZ #12350]
2515         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
2516         bit from old_res_options.
2517         (gaih_inet): Likewise.
2518
2519         [BZ #11099]
2520         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
2521         as signed.
2522
2523         * resolv/res_init.c (res_setoptions): Make the code more compact.
2524
2525         [BZ #11558]
2526         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
2527         set RES_USEVC.
2528
2529         [BZ #11634]
2530         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
2531
2532         * malloc/malloc.h: Mark malloc hook variables as deprecated.
2533
2534         [BZ #11781]
2535         * malloc/malloc.h: Declare malloc hook variables as volatile.
2536
2537         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
2538         in last patch.
2539
2540         [BZ #11799]
2541         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
2542         raise in the comment.
2543         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2544         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2545         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
2546
2547 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
2548
2549         [BZ #12811]
2550         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
2551         grow the buffers more if it already has to be sufficient.
2552         (build_wcs_upper_buffer): Likewise.
2553         * posix/regexec.c (check_matching): Likewise.
2554         (clean_state_log_if_needed): Likewise.
2555         (extend_buffers): Don't enlarge buffers beyond size of the input
2556         buffer.
2557         Patches mostly by Emil Wojak <emil@wojak.eu>.
2558         * posix/bug-regex32.c: New file.
2559         * posix/Makefile (tests): Add bug-regex32.
2560
2561         * locale/findlocale.c (_nl_find_locale): Return right away if
2562         _nl_explode_name failed.
2563         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
2564
2565         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
2566
2567         * debug/xtrace.sh: Unify messages.
2568         * malloc/memusage.sh: Likewise.
2569
2570         [BZ #12813]
2571         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
2572         time symbol from vDSO.  Substitute with vsyscall if not available.
2573         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
2574         __vdso_time.
2575
2576         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
2577         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
2578         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
2579         Add sendmmsg and internal_sendmmsg.
2580         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
2581         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
2582         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
2583
2584         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
2585         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
2586         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
2587
2588 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
2589
2590         [BZ #12813]
2591         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
2592         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
2593         available.
2594         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
2595         __vdso_getcpu.
2596
2597         [BZ #12814]
2598         * iconvdata/Makefile (tests): Add bug-iconv9.
2599         * iconvdata/bug-iconv9.c: New file.
2600
2601 2011-05-27  Andreas Schwab  <schwab@redhat.com>
2602
2603         [BZ #12814]
2604         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
2605
2606 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
2607
2608         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
2609         (struct user_regs_struct): Change intcs field back to cs.
2610
2611 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
2612
2613         * po/ja.po: Update from translation team.
2614
2615 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
2616
2617         [BZ #12795]
2618         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
2619         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
2620
2621 2011-05-20  Andreas Schwab  <schwab@redhat.com>
2622
2623         * stdlib/longlong.h: Update from GCC.
2624
2625 2011-05-23  Andreas Schwab  <schwab@redhat.com>
2626
2627         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
2628         parameter name.
2629         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
2630         Add parameter name.
2631         (__sysconf): Pass it down.
2632
2633 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
2634
2635         [BZ #12671]
2636         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
2637         some situations.
2638         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
2639         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
2640         add in in __libc_use_alloca calls.  Adjust callers.
2641         (glob): Use malloc in some situations.
2642
2643         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
2644         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
2645         pltexit.
2646
2647 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
2648
2649         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
2650         and CLOCK_BOOTTIME_ALARM.
2651
2652         [BZ #12782]
2653         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
2654         is returned.
2655
2656         * string/_strerror.c (__strerror_r): Print negative errors as signed
2657         numbers.
2658
2659         [BZ #12777]
2660         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
2661         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
2662         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
2663
2664         * configure.in: Fix typo in redirection and correct removal of test
2665         files in two cases.
2666
2667         [BZ #12788]
2668         * locale/setlocale.c (new_composite_name): Fix test to check for
2669         identical name of all categories.
2670
2671         [BZ #12792]
2672         * libio/filedoalloc.c (local_isatty): New function.
2673         (_IO_file_doallocate): Use local_isatty.
2674         * stdio-common/perror.c (perror): In case a new stream is used
2675         forward the stream error.
2676         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
2677         error flag.
2678
2679 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
2680
2681         [BZ #11869]
2682         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
2683         alloca.
2684         * include/alloca.h (extend_alloca_account): Define.
2685
2686         [BZ #11857]
2687         * posix/regex.h: Fix comments with documentation of user-accessible
2688         fields after compilation and describe correct free'ing of pattern
2689         after re_compile_pattern.
2690         Patch by Reuben Thomas <rrt@sc3d.org>.
2691
2692 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
2693
2694         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
2695         and -mno-altivec to prevent the compiler from using Altivec and/or
2696         VSX instructions when the corresponding registers are not available.
2697
2698 2011-05-19  Andreas Schwab  <schwab@redhat.com>
2699
2700         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
2701
2702 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
2703
2704         * libio/freopen.c (freopen): Use __dup2, not dup2.
2705         * libio/freopen64.c (freopen64): Likewise.
2706
2707 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
2708
2709         [BZ #12775]
2710         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
2711         * math/Makefile (tests): Add test-powl.
2712         (CFLAGS-test-powl.c): Define.
2713         * math/test-powl.c: New file.
2714
2715 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2716
2717         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
2718
2719 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
2720
2721         [BZ #11837]
2722         * iconvdata/gb18030.c: Update to GB18020-2005.
2723
2724 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
2725
2726         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
2727         RE_SYNTAX_POSIX_AWK): Update to match recent development.
2728         Patch by Aharon Robbins <arnold@skeeve.com>.
2729
2730         [BZ #11892]
2731         * stdlib/putenv.c (putenv): Don't always create copy of the variable
2732         on the stack.
2733
2734         [BZ #11895]
2735         * misc/pselect.c (__pselect): Handle timeout value errors hidden
2736         through underflows.
2737
2738         [BZ #12766]
2739         * misc/error.c (error_at_line): Ensure file_name and old_file_name
2740         point to strings before performing equality test for error_one_per_line
2741         mode.
2742
2743         [BZ #11697]
2744         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
2745
2746         [BZ #11820]
2747         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
2748         (struct user_fpregs_struct): Avoid __uint*_t types.
2749
2750         [BZ #6420]
2751         * malloc/mtrace.c (tr_where): Add additional parameter to point to
2752         symbol info.  Use it instead of calling _dl_addr locally.
2753         (lock_and_info): New function.
2754         (tr_freehook): Call lock_and_info and pass symbol info as additional
2755         parameter to tr_where.
2756         (tr_mallochook): Likewise.
2757         (tr_reallochook): Likewise.
2758         (tr_memalignhook): Likewise.
2759
2760         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
2761         used and couldn't be at all thread-safe.
2762
2763 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
2764
2765         * libio/freopen.c (freopen): Don't close old file descriptor
2766         before the new one is opened.  Instead dup the new file descriptor
2767         to the old one after the new stream is created.
2768         * libio/freopen64.c (freopen64): Likewise.
2769         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
2770         * libio/fileops.c (_IO_new_file_close_it): Handle new
2771         _IO_FLAGS2_NOCLOSE flag.
2772         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
2773         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
2774         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
2775         _IO_FLAGS2_NOCLOSE flag.
2776         * include/unistd.h: Add hidden_proto for dup3.
2777         Define __have_dup3.
2778         * io/dup3.c: Define hidden symbol.
2779         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
2780
2781         [BZ #7101]
2782         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
2783         when an incomplete long option is used.
2784         * posix/tst-getopt_long1.c: New file.
2785         * posix/Makefile (tests): Add tst-getopt_long1.
2786
2787         [BZ #10138]
2788         * scripts/config.guess: Update from autoconf-2.68.
2789         * scripts/config.sub: Likewise.
2790
2791         [BZ #10157]
2792         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
2793         tests into ...
2794         (has_cpuclock): ...this.  New function.
2795         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
2796         macro here based on has_cpuclock code.
2797
2798         [BZ #10149]
2799         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2800         First byte (not low byte) is now always NUL.
2801         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
2802
2803         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2804         Use non-cancelable interfaces.
2805
2806         [BZ #9809]
2807         * locale/iso-639.def: Add entry for Sorani.
2808
2809         [BZ #11901]
2810         * include/stdlib.h: Move include protection to the right place.
2811         Define abort_msg_s.  Declare __abort_msg with it.
2812         * stdlib/abort.c (__abort_msg): Adjust type.
2813         * assert/assert.c (__assert_fail_base): New function.  Majority
2814         of code from __assert_fail.  Allocate memory for __abort_msg with
2815         mmap.
2816         (__assert_fail): Now call __assert_fail_base.
2817         * assert/assert-perr.c: Remove bulk of implementation.  Use
2818         __assert_fail_base.
2819         * include/assert.hL Declare __assert_fail_base.
2820         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
2821         mmap.
2822         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
2823
2824 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
2825
2826         [BZ #11952]
2827         [BZ #12453]
2828         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
2829         until all modules are registered in the DTV.
2830         * elf/Makefile: Add rules to build and run tst-tls19.
2831         * elf/tst-tls19.c: New file.
2832         * elf/tst-tls19mod1.c: New file.
2833         * elf/tst-tls19mod2.c: New file.
2834         * elf/tst-tls19mod3.c: New file.
2835         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
2836
2837         [BZ #12083]
2838         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
2839         correctly.
2840
2841         [BZ #12601]
2842         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
2843         two-byte sequence errors.
2844         * iconvdata/Makefile (tests): Add bug-iconv8.
2845         * iconvdata/bug-iconv8.c: New file.
2846
2847         [BZ #12626]
2848         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
2849         buf2 definition.
2850
2851         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
2852
2853         [BZ #12432]
2854         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
2855         (dummy_getcfa): New function.
2856         (init): Get _Unwind_GetCFA address, use dummy if not found.
2857         (backtrace_helper): In recursion check, also check whether CFA changes.
2858         (__backtrace): Completely initialize arg.
2859
2860         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
2861         storing incomplete byte sequence in state object.  Avoid testing for
2862         guaranteed too small input if we know there is enough data available.
2863
2864 2011-05-11  Andreas Schwab  <schwab@redhat.com>
2865
2866         * Makeconfig (+link-pie): Indent.
2867         * Rules (binaries-pie): Define if $(have-fpie) and
2868         $(build-shared).
2869         (binaries-shared): Also filter out $(binaries-pie).
2870         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
2871         * nscd/Makefile (others-pie): Add nscd.
2872         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
2873         ($(objpfx)nscd): Remove command override.
2874         * login/Makefile (others-pie): Add pt_chown.
2875         ($(objpfx)pt_chown): Remove command override.
2876         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
2877         remove command overrides.
2878
2879 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
2880
2881         * libio/tst_putwc.c: Fix error messages.
2882
2883         [BZ #12724]
2884         * libio/fileops.c (_IO_new_file_close_it): Always flush when
2885         currently writing and seek to current position when not.
2886         * libio/Makefile (tests): Add bug-fclose1.
2887         * libio/bug-fclose1.c: New file.
2888
2889 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
2890
2891         [BZ #12511]
2892         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
2893         don't set DF_1_NODELETE here.
2894         (do_lookup_x): When entering new entry test for copy relocation
2895         and if necessary set DF_1_NODELETE flag.
2896         * elf/tst-unique4.cc: New file.
2897         * elf/tst-unique4.h: New file.
2898         * elf/tst-unique4lib.cc: New file.
2899         * elf/Makefile: Add rules to build and run tst-unique4.
2900         Patch by Piotr Bury <pbury@goahead.com>.
2901
2902 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
2903
2904         [BZ #12052]
2905         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
2906
2907         [BZ #12625]
2908         * misc/mntent_r.c (addmntent): Flush the stream after the output
2909
2910         [BZ #12393]
2911         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
2912         (is_trusted_path_normalize): Skip initial colon.  Append slash
2913         to empty buffer.  Duplicate is_trusted_path code but allow
2914         constructed patch to be prefix.
2915         (is_dst): Allow $ORIGIN followed by /.
2916         (_dl_dst_substitute): Correct clearing of check_for_trusted.
2917         Correct testing of result of is_trusted_path_normalize
2918         (decompose_rpath): Fix warning.
2919
2920 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
2921
2922         [BZ #11257]
2923         * grp/initgroups.c (internal_getgrouplist): When we found the service
2924         list through the initgroups entry in nsswitch.conf do not always
2925         continue on a successful lookup.  Don't always use the
2926         __nss_group_database value if it is set.
2927         * nss/nsswitch.conf (initgroups): Change action for successful db
2928         lookup to continue for compatibility.
2929
2930 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
2931
2932         [BZ #11532]
2933         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
2934         and CP774 modules.
2935         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
2936         and CP774 modules.
2937         * iconvdata/tst-tables.sh: Likewise.
2938         * iconvdata/cp770.c: New file.
2939         * iconvdata/cp771.c: New file.
2940         * iconvdata/cp772.c: New file.
2941         * iconvdata/cp773.c: New file.
2942         * iconvdata/cp774.c: New file.
2943         * iconvdata/testdata/CP770: New file.
2944         * iconvdata/testdata/CP770..UTF8: New file.
2945         * iconvdata/testdata/CP771: New file.
2946         * iconvdata/testdata/CP771..UTF8: New file.
2947         * iconvdata/testdata/CP772: New file.
2948         * iconvdata/testdata/CP772..UTF8: New file.
2949         * iconvdata/testdata/CP773: New file.
2950         * iconvdata/testdata/CP773..UTF8: New file.
2951         * iconvdata/testdata/CP774: New file.
2952         * iconvdata/testdata/CP774..UTF8: New file.
2953
2954         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
2955         END CHARMAP line.
2956         * iconvdata/gen-8bit-gap.sh: Likewise.
2957         * iconvdata/gen-8bit.sh: Likewise.
2958
2959         * locale/iso-639.def: Add ary entry.
2960
2961         [BZ #11258]
2962         * locale/C-translit.h.in: Add U20A1 transliteration.
2963
2964         [BZ #12178]
2965         * locale/iso-639.def: Add wae entry.
2966         Patch by Kevin Bortis <bortis@translate-wae.ch>.
2967
2968         [BZ #12545]
2969         * locale/programs/localedef.c (construct_output_path): Use ssize_t
2970         for n.
2971
2972         [BZ #12711]
2973         * locale/C-translit.h.in: Add entry for U20B9.
2974         Patch by pravin.d.s@gmail.com.
2975
2976 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
2977
2978         [BZ #12713]
2979         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
2980         ENAMETOOLONG use generic getcwd.
2981         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
2982         in rtld.  Use *stat64.
2983         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
2984         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
2985         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
2986         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
2987         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
2988         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
2989         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
2990         __fstatat64 macros.
2991         * include/dirent.h: Add libc_hidden_proto for rewinddir.
2992         * dirent/rewinddir.c: Add libc_hidden_def.
2993         * sysdeps/mach/hurd/rewinddir.c: Likewise.
2994         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
2995
2996         * include/dirent.h (__alloc_dir): Add flags parameter.
2997         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
2998         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
2999         __alloc_dir.
3000         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
3001         from fdopendir if O_CLOEXEC is already set.
3002
3003 2011-03-15  Alan Modra  <amodra@gmail.com>
3004
3005         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
3006         l_tls_firstbyte_offset non-zero.  Save padding offset in
3007         l_tls_firstbyte_offset for later use.
3008         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
3009         freeing static tls block.
3010
3011 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
3012
3013         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
3014         where #ifdef was intended.  The intent is to prevent ARG_MAX from
3015         being defined by the kernel headers.
3016
3017 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
3018
3019         [BZ #12734]
3020         * resolv/resolv.h: Define RES_NOTLDQUERY.
3021         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
3022         no-tld-query and set RES_NOTLDQUERY.
3023         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
3024         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
3025         modern BIND to search name as TLD unless forbidden.
3026
3027 2011-05-07  Petr Baudis  <pasky@suse.cz>
3028             Ulrich Drepper  <drepper@gmail.com>
3029
3030         [BZ #12393]
3031         * elf/dl-load.c (fillin_rpath): Move trusted path check...
3032         (is_trusted_path): ...to here.
3033         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
3034         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
3035         using is_trusted_path_normalize() in setuid scripts.
3036
3037 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3038
3039         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
3040         __BEGIN/__END_DECLS.
3041
3042 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
3043
3044         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
3045         NSS_STATUS_NOTFOUND if no record was found.
3046
3047 2011-05-05  Andreas Schwab  <schwab@redhat.com>
3048
3049         * sunrpc/Makefile (headers): Add rpc/netdb.h.
3050         (headers-not-in-tirpc): Remove rpc/netdb.h
3051         * resolv/netdb.h: Revert last change.
3052
3053 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
3054
3055         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
3056         circular dependency between libgcc.a and libc.a.
3057
3058 2011-05-05  Andreas Schwab  <schwab@redhat.com>
3059
3060         * resolv/netdb.h: Don't include <rpc/netdb.h>.
3061         * nis/Makefile: Don't install rpcsvc/*.
3062         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
3063         instead of <rpc/types.h>.
3064         (MAXHOSTNAMELEN): Define.
3065
3066 2011-05-03  Andreas Schwab  <schwab@redhat.com>
3067
3068         * elf/ldconfig.c (add_dir): Don't crash on empty path.
3069
3070 2011-04-28  Maciej Babinski  <mbabinski@google.com>
3071
3072         [BZ #12714]
3073         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
3074         gethostbyname4_r when IPv6 results are possible.
3075
3076 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
3077
3078         [BZ #12723]
3079         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
3080         _PC_PIPE_BUF handling.
3081
3082 2011-04-30  Bruno Haible  <bruno@clisp.org>
3083
3084         [BZ #12717]
3085         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
3086         * resolv/netdb.h (getnameinfo): Change type of flags parameter
3087         to 'int'.
3088         * inet/getnameinfo.c (getnameinfo): Likewise.
3089
3090 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
3091
3092         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
3093         to groups setting in database lookup.
3094         * nss/nsswitch.conf: Add initgroups entry.
3095
3096 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
3097
3098         [BZ #12685]
3099         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
3100         mode string.
3101         Patch by Eric Blake <eblake@redhat.com>.
3102
3103 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
3104
3105         * sunrpc/Makefile (need-export-routines): Add svc_run.
3106         (routines): Remove svc_run.
3107         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
3108         * sunrpc/clnt_perr.c (clnt_perrno): Export.
3109         * sunrpc/svc_run.c (svc_run): Likewise.
3110         * sunrpc/svc_udp.c (svcudp_create): Likewise.
3111
3112 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
3113
3114         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
3115         problem in reallocation in last patch.
3116
3117 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
3118
3119         * sunrpc/Makefile: Move inclusion of Rules.
3120
3121 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
3122
3123         * nss/nss_files/files-initgroups.c: New file.
3124         * nss/Makefile (libnss_files-routines): Add files-initgroups.
3125         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
3126         _nss_files_initgroups_dyn.
3127
3128 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
3129
3130         * elf/elf.h (R_ARM_IRELATIVE): Define.
3131
3132 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
3133
3134         * po/ru.po: Update from translation team.
3135
3136 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
3137
3138         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
3139         dependencies.
3140
3141 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
3142
3143         [BZ #12653]
3144         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
3145         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
3146         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
3147         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3148         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
3149
3150 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
3151
3152         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
3153         differing bytes.
3154         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
3155         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
3156         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3157
3158 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
3159
3160         [BZ #12420]
3161         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
3162         storing it.
3163         * stdlib/bug-getcontext.c: New file.
3164         * stdlib/Makefile: Add rules to build and run bug-getcontext.
3165
3166 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3167
3168         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
3169         instructions into .machine "z9-109".
3170         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
3171         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
3172
3173 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3174
3175         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
3176         between environment variables and auxiliary vector.
3177
3178 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
3179
3180         * Makefile: Add rules to build linkobj/libc.so.
3181         * include/libc-symbols.h: Define libc_hidden_nolink.
3182         * include/rpc/auth.h: Mark functions which are to be hidden.
3183         * include/rpc/auth_des.h: Likewise.
3184         * include/rpc/auth_unix.h: Likewise.
3185         * include/rpc/clnt.h: Likewise.
3186         * include/rpc/des_crypt.h: Likewise.
3187         * include/rpc/key_prot.h: Likewise.
3188         * include/rpc/pmap_clnt.h: Likewise.
3189         * include/rpc/pmap_prot.h: Likewise.
3190         * include/rpc/pmap_rmt.h: Likewise.
3191         * include/rpc/rpc_msg.h: Likewise.
3192         * include/rpc/svc.h: Likewise.
3193         * include/rpc/svc_auth.h: Likewise.
3194         * include/rpc/xdr.h: Likewise.
3195         * nis/Makefile: Link all DSOs against linkobj/libc.so.
3196         * nss/Makefile: Likewise.
3197         * sunrpc/Makefile: Don't install headers.  Build library with normal
3198         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
3199         * sunrpc/auth_des.c: Hide exported symbols by default, export some
3200         for the compat linking library.  Remove use of INTDEF/INTUSE.
3201         * sunrpc/auth_none.c: Likewise.
3202         * sunrpc/auth_unix.c: Likewise.
3203         * sunrpc/authdes_prot.c: Likewise.
3204         * sunrpc/authuxprot.c: Likewise.
3205         * sunrpc/clnt_gen.c: Likewise.
3206         * sunrpc/clnt_perr.c: Likewise.
3207         * sunrpc/clnt_raw.c: Likewise.
3208         * sunrpc/clnt_simp.c: Likewise.
3209         * sunrpc/clnt_tcp.c: Likewise.
3210         * sunrpc/clnt_udp.c: Likewise.
3211         * sunrpc/clnt_unix.c: Likewise.
3212         * sunrpc/des_crypt.c: Likewise.
3213         * sunrpc/des_soft.c: Likewise.
3214         * sunrpc/get_myaddr.c: Likewise.
3215         * sunrpc/key_call.c: Likewise.
3216         * sunrpc/key_prot.c: Likewise.
3217         * sunrpc/netname.c: Likewise.
3218         * sunrpc/pm_getmaps.c: Likewise.
3219         * sunrpc/pm_getport.c: Likewise.
3220         * sunrpc/pmap_clnt.c: Likewise.
3221         * sunrpc/pmap_prot.c: Likewise.
3222         * sunrpc/pmap_prot2.c: Likewise.
3223         * sunrpc/pmap_rmt.c: Likewise.
3224         * sunrpc/publickey.c: Likewise.
3225         * sunrpc/rpc_cmsg.c: Likewise.
3226         * sunrpc/rpc_common.c: Likewise.
3227         * sunrpc/rpc_dtable.c: Likewise.
3228         * sunrpc/rpc_prot.c: Likewise.
3229         * sunrpc/rpc_thread.c: Likewise.
3230         * sunrpc/rtime.c: Likewise.
3231         * sunrpc/svc.c: Likewise.
3232         * sunrpc/svc_auth.c: Likewise.
3233         * sunrpc/svc_authux.c: Likewise.
3234         * sunrpc/svc_raw.c: Likewise.
3235         * sunrpc/svc_run.c: Likewise.
3236         * sunrpc/svc_simple.c: Likewise.
3237         * sunrpc/svc_tcp.c: Likewise.
3238         * sunrpc/svc_udp.c: Likewise.
3239         * sunrpc/svc_unix.c: Likewise.
3240         * sunrpc/svcauth_des.c: Likewise.
3241         * sunrpc/xcrypt.c: Likewise.
3242         * sunrpc/xdr.c: Likewise.
3243         * sunrpc/xdr_array.c: Likewise.
3244         * sunrpc/xdr_float.c: Likewise.
3245         * sunrpc/xdr_intXX_t.c: Likewise.
3246         * sunrpc/xdr_mem.c: Likewise.
3247         * sunrpc/xdr_rec.c: Likewise.
3248         * sunrpc/xdr_ref.c: Likewise.
3249         * sunrpc/xdr_sizeof.c: Likewise.
3250         * sunrpc/xdr_stdio.c: Likewise.
3251
3252 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
3253
3254         [BZ #12650]
3255         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
3256         * sysdeps/ia64/dl-tls.h: Likewise.
3257         * sysdeps/powerpc/dl-tls.h: Likewise.
3258         * sysdeps/s390/dl-tls.h: Likewise.
3259         * sysdeps/sh/dl-tls.h: Likewise.
3260         * sysdeps/sparc/dl-tls.h: Likewise.
3261         * sysdeps/x86_64/dl-tls.h: Likewise.
3262         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
3263
3264 2011-03-14  Andreas Schwab  <schwab@redhat.com>
3265
3266         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
3267         rpath element also skip the following colon.
3268         (expand_dynamic_string_token): Add is_path parameter and pass
3269         down to DL_DST_REQUIRED and _dl_dst_substitute.
3270         (decompose_rpath): Call expand_dynamic_string_token with
3271         non-zero is_path.  Ignore empty rpaths.
3272         (_dl_map_object_from_fd): Call expand_dynamic_string_token
3273         with zero is_path.
3274
3275 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
3276
3277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
3278         Make cancelable.
3279
3280 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
3281
3282         [BZ #12655]
3283         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
3284         Patch by Filipe David Manana <fdmanana@apache.org>.
3285
3286 2011-04-07  Andreas Schwab  <schwab@redhat.com>
3287
3288         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
3289         Maintain aligned stack.
3290         (CHECK_RSP): Remove unused macro.
3291
3292 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
3293
3294         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
3295         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
3296
3297 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
3298
3299         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
3300
3301         * include/features.h: Mention __USE_XOPEN2K8 in comment.
3302
3303 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
3304
3305         [BZ #12518]
3306         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
3307         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
3308         * sysdeps/x86_64/memmove.c: New file.
3309         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
3310         (memcpy): Renamed to ...
3311         (__new_memcpy): This.
3312         (memcpy): Provide GLIBC_2_14 memcpy.
3313         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
3314         (memcpy): Provide GLIBC_2_2_5 memcpy.
3315
3316 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
3317
3318         [BZ #12631]
3319         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
3320
3321 2011-03-30  Andreas Schwab  <schwab@redhat.com>
3322
3323         * misc/syncfs.c: New file.
3324         * misc/Makefile (routines): Add syncfs.
3325         * posix/unistd.h: Declare syncfs.
3326         * sysdeps/unix/syscalls.list: Add syncfs.
3327
3328 2011-04-01  Andreas Schwab  <schwab@redhat.com>
3329
3330         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
3331         open_by_handle_at.
3332         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
3333         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3334         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3335         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3336         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3337         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
3338         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3339
3340 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
3341
3342         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
3343         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3344         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
3345         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3346         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3347         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3348         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3349
3350         * io/Makefile: Compile fallocate.c, fallocate64.c, and
3351         sync_file_range.c with -fexceptions.
3352         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
3353         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
3354         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
3355         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
3356         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
3357         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
3358         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
3359         sync_file_range as cancellation point
3360         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
3361         now a wrapper around __call_sync_file_range with cancellation handling.
3362         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
3363         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
3364         function name to __call_sync_file_range.
3365         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
3366         Add call_sync_file_range.
3367
3368 2011-04-01  Andreas Schwab  <schwab@redhat.com>
3369
3370         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3371         bits/timex.h.
3372
3373 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
3374
3375         * iconv/iconv.h: Fix typo in comment.
3376         * io/fcntl.h: Likewise.
3377         * libio/stdio.h: Likewise.
3378         * posix/spawn.h: Likewise.
3379         * posix/unistd.h: Likewise.
3380         * stdlib/stdlib.h: Likewise.
3381         * time/time.h: Likewise.
3382         * wcsmbs/wchar.h: Likewise.
3383
3384         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
3385         open_by_handle): Add.
3386         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
3387         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
3388         Augment a few comments.
3389         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
3390         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
3391         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
3392         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3393         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
3394         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
3395         open_by_handle.
3396
3397         * io/fcntl.h (AT_EMPTY_PATH): Define.
3398
3399 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
3400
3401         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
3402         * sysdeps/unix/sysv/linux/bits/time.h: New file.
3403         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
3404         to...
3405         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
3406         * Versions.def: Add GLIBC_2.14.
3407         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
3408         Export.
3409
3410 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
3411
3412         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
3413         round counter.
3414         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
3415
3416 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3417
3418         [BZ #12597]
3419         * string/test-strncmp.c (do_page_test): New function.
3420         (check2): Likewise.
3421         (test_main): Call check2.
3422         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
3423
3424 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
3425
3426         [BZ #12587]
3427         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
3428         Handle cache information in CPU leaf 4.
3429         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
3430
3431 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
3432
3433         [BZ #12583]
3434         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
3435         character representation.
3436         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
3437
3438 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
3439
3440         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
3441         END(__isnan) to END(__isnanf) to match function entry point/label
3442         EALIGN(__isnanf,...).
3443
3444 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
3445
3446         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
3447
3448 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
3449
3450         [BZ #12510]
3451         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
3452         copy from the symbol referenced in the relocation to initialize the
3453         used variable.
3454         Patch by Piotr Bury <pbury@goahead.com>.
3455         * elf/Makefile: Add rules to build and tst-unique3.
3456         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
3457         * elf/tst-unique3.cc: New file.
3458         * elf/tst-unique3.h: New file.
3459         * elf/tst-unique3lib.cc: New file.
3460         * elf/tst-unique3lib2.cc: New file.
3461
3462         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
3463
3464 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
3465
3466         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
3467         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
3468         to _start.
3469
3470 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
3471
3472         * elf/dl-load.c (_dl_map_object): If we are looking for the first
3473         to-be-loaded object along a path to loader is ld.so.
3474
3475 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
3476             Ulrich Drepper  <drepper@gmail.com>
3477
3478         * sysdeps/x86_64/memset.S: After aligning destination, code
3479         branches to different locations depending on the value of
3480         misalignment, when multiarch is enabled. Fix this.
3481
3482 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
3483
3484         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
3485         Set _x86_64_preferred_memory_instruction for AMD processsors.
3486         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3487         Set bit_Prefer_SSE_for_memop for AMD processors.
3488
3489 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
3490
3491         * libio/fmemopen.c (fmemopen): Optimize a bit.
3492
3493 2011-03-03  Andreas Schwab  <schwab@redhat.com>
3494
3495         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
3496
3497 2011-03-03  Roland McGrath  <roland@redhat.com>
3498
3499         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
3500
3501 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
3502
3503         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
3504         __bzero_ultra1 instead of __memset_ultra1.
3505
3506 2011-02-23  Andreas Schwab  <schwab@redhat.com>
3507             Ulrich Drepper  <drepper@gmail.com>
3508
3509         [BZ #12509]
3510         * include/link.h (struct link_map): Add l_orig_initfini.
3511         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
3512         returning unsuccessfully.
3513         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
3514         close of a file loaded at startup, restore the original l_initfini
3515         list.
3516         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
3517         list, store the pointer.
3518         * elf/Makefile ($(objpfx)noload-mem): New rule.
3519         (noload-ENV): Define.
3520         (tests): Add $(objpfx)noload-mem.
3521         * elf/noload.c: Include <memcheck.h>.
3522         (main): Call mtrace.  Close all opened handles.
3523
3524 2011-02-17  Andreas Schwab  <schwab@redhat.com>
3525
3526         [BZ #12454]
3527         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
3528         dependencies are missing.
3529
3530 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3531
3532         Fix __if_freereq crash: Unlike the generic version which uses free,
3533         Hurd needs munmap.
3534         * sysdeps/mach/hurd/ifreq.h: New file.
3535
3536 2011-01-27  Petr Baudis  <pasky@suse.cz>
3537             Ulrich Drepper  <drepper@gmail.com>
3538
3539         [BZ 12445]#
3540         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
3541         to extend_alloca().
3542         * stdio-common/bug23.c: New file.
3543         * stdio-common/Makefile (tests): Add bug23.
3544
3545 2010-09-28  Andreas Schwab  <schwab@redhat.com>
3546             Ulrich Drepper  <drepper@gmail.com>
3547
3548         [BZ #12489]
3549         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
3550         before performing relro protection.  At old place add assertion
3551         to make sure nothing changed.
3552
3553 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
3554             Glauber de Oliveira Costa  <glommer@gmail.com>
3555
3556         * elf/elf.h: Add new ARM TLS relocs.
3557
3558 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
3559
3560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3561         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
3562         cast from r3.
3563         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
3564         'tests' variable.
3565         * sysdeps/wordsize-64/tst-writev.c: New file.
3566
3567 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
3568
3569         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
3570         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
3571         insns in _dl_start to prevent a TOC reference before relocs are
3572         resolved.
3573
3574 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
3575
3576         [BZ #12469]
3577         * Makeconfig: Remove RANLIB definition.
3578         * Makerules: Don't use RANLIB.
3579         * aclocal.m4: Remove ranlib test.
3580         * configure.in: No need to check for ranlib.
3581         * elf/rtld-Rules: Don't use RANLIB.
3582
3583 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3584
3585         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
3586         protection macro.
3587         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
3588         inclusion protection macro.
3589
3590         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
3591         SIGRTMIN and SIGRTMAX and print information in that case only when
3592         SIGRTMIN is defined.
3593
3594 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
3595
3596         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
3597         arginfo fn returning -1.
3598
3599         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
3600         and thousands string is zero terminated.
3601
3602 2011-02-03  Andreas Schwab  <schwab@redhat.com>
3603
3604         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
3605         sysdeps/unix/sysv/linux/bits/socket.h.
3606
3607 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3608
3609         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
3610         (__CPU_COUNT): Remove old macros.
3611         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
3612         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
3613         (__CPU_ALLOC, __CPU_FREE): Add macros.
3614         (__sched_cpualloc, __sched_cpufree): Add declarations.
3615
3616 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
3617
3618         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
3619         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
3620         * nscd/aicache.c (addhstaiX): Return timeout of added value.
3621         (readdhstai): Return value of addhstaiX call.
3622         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
3623         (addgrbyX): Return value returned by cache_addgr.
3624         (readdgrbyname): Return value returned by addgrbyX.
3625         (readdgrbygid): Likewise.
3626         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
3627         (addpwbyX): Return value returned by cache_addpw.
3628         (readdpwbyname): Return value returned by addhstbyX.
3629         (readdpwbyuid): Likewise.
3630         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
3631         (addservbyX): Return value returned by cache_addserv.
3632         (readdservbyname): Return value returned by addservbyX:
3633         (readdservbyport): Likewise.
3634         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
3635         (addhstbyX): Return value returned by cache_addhst.
3636         (readdhstbyname): Return value returned by addhstbyX.
3637         (readdhstbyaddr): Likewise.
3638         (readdhstbynamev6): Likewise.
3639         (readdhstbyaddrv6): Likewise.
3640         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
3641         (readdinitgroups): Return value returned by addinitgroupsX.
3642         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
3643         (prune_cache): Keep track of timeout value of re-added entries.
3644         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
3645         * nscd/nscd.h: Adjust prototypes of readd* functions.
3646
3647 2011-02-04  Roland McGrath  <roland@redhat.com>
3648
3649         * nis/nis_server.c (nis_servstate): Use the right name for 0.
3650         (nis_stats): Likewise.
3651         * nis/nis_modify.c (nis_modify): Likewise.
3652         * nis/nis_remove.c (nis_remove): Likewise.
3653         * nis/nis_add.c (nis_add): Likewise.
3654
3655         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
3656
3657         * posix/fnmatch_loop.c: Add some consts.
3658
3659         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
3660
3661 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
3662
3663         [BZ #12460]
3664         * config.make.in (config-cflags-novzeroupper): Define.
3665         * configure.in: Substitute libc_cv_cc_novzeroupper.
3666         * elf/Makefile (AVX-CFLAGS): Define.
3667         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
3668         (CFLAGS-tst-auditmod4a.c): Likewise.
3669         (CFLAGS-tst-auditmod4b.c): Likewise.
3670         (CFLAGS-tst-auditmod6b.c): Likewise.
3671         (CFLAGS-tst-auditmod6c.c): Likewise.
3672         (CFLAGS-tst-auditmod7b.c): Likewise.
3673         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
3674
3675 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
3676
3677         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
3678         function to the callback.
3679         Patch partly by Jiri Olsa <jolsa@redhat.com>.
3680
3681 2011-02-02  Andreas Schwab  <schwab@redhat.com>
3682
3683         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
3684         of errno.
3685
3686 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
3687
3688         [BZ #11724]
3689         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
3690         of constructors.
3691         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
3692         of destructors.
3693         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
3694
3695         [BZ #11724]
3696         * elf/Makefile: Add rules to build and run new test.
3697         * elf/tst-initorder.c: New file.
3698         * elf/tst-initorder.exp: New file.
3699         * elf/tst-initordera1.c: New file.
3700         * elf/tst-initordera2.c: New file.
3701         * elf/tst-initordera3.c: New file.
3702         * elf/tst-initordera4.c: New file.
3703         * elf/tst-initorderb1.c: New file.
3704         * elf/tst-initorderb2.c: New file.
3705         * elf/tst-order-a1.c: New file.
3706         * elf/tst-order-a2.c: New file.
3707         * elf/tst-order-a3.c: New file.
3708         * elf/tst-order-a4.c: New file.
3709         * elf/tst-order-b1.c: New file.
3710         * elf/tst-order-b2.c: New file.
3711         * elf/tst-order-main.c: New file.
3712         New test case by George Gensure <werkt0@gmail.com>.
3713
3714 2010-10-01  Andreas Schwab  <schwab@redhat.com>
3715
3716         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
3717         decoding ACE if AI_CANONIDN.
3718
3719 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
3720
3721         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
3722
3723 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
3724
3725         * version.h (RELEASE): Bump for 2.13 release.
3726         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
3727
3728         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
3729
3730         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
3731         MADV_NOHUGEPAGE.
3732         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
3733         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
3734         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3735         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3736         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
3737         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
3738
3739         * posix/getconf.c: Update copyright year.
3740         * catgets/gencat.c: Likewise.
3741         * csu/version.c: Likewise.
3742         * debug/catchsegv.sh: Likewise.
3743         * debug/xtrace.sh: Likewise.
3744         * elf/ldconfig.c: Likewise.
3745         * elf/ldd.bash.in: Likewise.
3746         * elf/sprof.c (print_version): Likewise.
3747         * iconv/iconv_prog.c: Likewise.
3748         * iconv/iconvconfig.c: Likewise.
3749         * locale/programs/locale.c: Likewise.
3750         * locale/programs/localedef.c: Likewise.
3751         * malloc/memusage.sh: Likewise.
3752         * malloc/mtrace.pl: Likewise.
3753         * nscd/nscd.c (print_version): Likewise.
3754         * nss/getent.c: Likewise.
3755
3756         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
3757         PF_CAIF, and PF_ALG.
3758         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3759
3760 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
3761
3762         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
3763         (modules-names): Use them.
3764         (ifunc-test-modules, ifunc-pie-tests): Define.
3765         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
3766         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
3767         (test-extras): Likewise.
3768         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
3769         $(compile-command.c).
3770         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
3771         (all-built-dso): Define.
3772         (check-textrel.out, check-execstack.out): Depend on it.
3773
3774         * configure.in: Don't override --enable-multi-arch.
3775
3776 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
3777
3778         [BZ #6812]
3779         * nscd/hstcache.c (tryagain): Define.
3780         (cache_addhst): Return tryagain not notfound for temporary errors.
3781         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
3782         failed.
3783
3784 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
3785
3786         [BZ #10563]
3787         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
3788         to make the syscall.
3789         * sysdeps/unix/sysv/linux/setgroups.c: New file.
3790
3791         [BZ #12378]
3792         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
3793         and fall back to matching as normal character if the string ends before
3794         the matching ']' is found.  This is what POSIX requires.
3795         * posix/testfnm.c: Adjust test result.
3796         * posix/globtest.sh: Adjust test result.  Add new test.
3797         * posix/tst-fnmatch.input: Likewise.
3798         * posix/tst-fnmatch2.c: Add new test.
3799
3800 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
3801
3802         * elf/Makefile (check-execstack): Revert last change.  Depend on
3803         check-execstack.h.
3804         (check-execstack.h): New target.
3805         (generated): Add check-execstack.h.
3806         * elf/check-execstack.c: Include "check-execstack.h".
3807         (main): Revert last change.
3808         (handle_file): Return zero if GNU_STACK is absent and
3809         DEFAULT_STACK_PERMS doesn't include PF_X.
3810
3811 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
3812
3813         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
3814         in child fails because the descriptor is already closed.
3815         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
3816         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
3817         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
3818
3819         [BZ #12397]
3820         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
3821         syscall.
3822
3823         [BZ #10484]
3824         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
3825         temporary buffer used to handle multi lookups locally.
3826         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
3827
3828 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
3829
3830         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
3831         loader is ld.so.
3832
3833 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
3834
3835         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
3836         alignment for SSE2.
3837
3838 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
3839
3840         [BZ #12394]
3841         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
3842         characters.  When rounding increased number of integer digits recompute
3843         number of groups.
3844         * stdio-common/tst-grouping.c: New file.
3845         * stdio-common/Makefile: Add rules to build and run tst-grouping.
3846
3847 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
3848
3849         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
3850         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
3851
3852         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
3853         void.
3854         * bits/select.h: Likewise.
3855
3856 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
3857
3858         * po/ja.po: Update from translation team.
3859
3860 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
3861
3862         [BZ #11155]
3863         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
3864         implementation just like for lxstat, fxstatat, et al.
3865
3866 2010-12-27  Jim Meyering  <meyering@redhat.com>
3867
3868         [BZ #12348]
3869         * posix/regexec.c (build_trtable): Return failure indication upon
3870         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
3871
3872 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
3873
3874         [BZ #12201]
3875         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
3876         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
3877         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
3878         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
3879
3880         [BZ #12207]
3881         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
3882
3883         [BZ #12204]
3884         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
3885         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
3886
3887 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
3888
3889         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
3890         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
3891         script has SORT_BY_INIT_PRIORITY.
3892         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
3893         NO_CTORS_DTORS_SECTIONS is defined.
3894         * elf/soinit.c: Likewise.
3895         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
3896         NO_CTORS_DTORS_SECTIONS is defined.
3897         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
3898         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
3899         * sysdeps/sh/init-first.c: Likewise.
3900         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
3901
3902 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
3903
3904         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
3905         always use the slow path.
3906
3907 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
3908
3909         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
3910         similar rule which adds the sysdep directories to the header search in
3911         order to pick up the correct platform stackinfo.h.
3912         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
3913         perform test if it is, otherwise return successfully without testing.
3914         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
3915         DEFAULT_STACK_PERMS define in stackinfo.h.
3916         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
3917         defined in stackinfo.h.
3918         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
3919         DEFAULT_STACK_PERMS defined in stackinfo.h.
3920         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
3921         * sysdeps/ia64/stackinfo.h: Likewise.
3922         * sysdeps/s390/stackinfo.h: Likewise.
3923         * sysdeps/sh/stackinfo.h: Likewise.
3924         * sysdeps/sparc/stackinfo.h: Likewise.
3925         * sysdeps/x86_64/stackinfo.h: Likewise.
3926         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
3927         PF_X for powerpc64.  Retain PF_X for powerpc32.
3928
3929 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
3930
3931         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
3932         accurately.
3933         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
3934         GETDENTS_64BIT_ALIGNED.
3935
3936 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
3937
3938         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
3939
3940 2010-12-10  Andreas Schwab  <schwab@redhat.com>
3941
3942         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
3943         _GNU_SOURCE.
3944
3945         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
3946         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
3947         Remove __restrict.
3948         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
3949         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
3950
3951 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
3952
3953         [BZ #11655]
3954         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
3955         are initialized.
3956
3957 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
3958
3959         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
3960
3961 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
3962
3963         * po/it.po: Update from translation team.
3964
3965 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
3966
3967         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
3968         unused codes.
3969
3970 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
3971
3972         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
3973
3974 2010-11-24  Andreas Schwab  <schwab@redhat.com>
3975
3976         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
3977         specially.
3978         (gaih_getanswer_slice): Likewise.
3979
3980 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
3981
3982         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
3983
3984 2010-05-31  Petr Baudis  <pasky@suse.cz>
3985
3986         [BZ #11149]
3987         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
3988         silently even in the chroot mode.
3989
3990 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
3991
3992         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
3993         last patch a bit.  Pretty printing
3994
3995 2010-05-31  Petr Baudis <pasky@suse.cz>
3996
3997         [BZ #10085]
3998         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
3999         initialization of skip_initgroups_dyn.
4000
4001 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
4002
4003         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
4004         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
4005
4006 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
4007
4008         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
4009
4010 2010-11-11  Andreas Schwab  <schwab@redhat.com>
4011
4012         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
4013         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
4014         (tst-fnmatch-ENV): Set MALLOC_TRACE.
4015         ($(objpfx)tst-fnmatch-mem): New rule.
4016         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
4017         * posix/tst-fnmatch.c (main): Call mtrace.
4018
4019 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
4020
4021         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4022         Support Intel processor model 6 and model 0x2c.
4023
4024 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
4025
4026         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
4027           signed comparison.
4028
4029 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4030
4031         [BZ #12205]
4032         * string/test-strncasecmp.c (check_result): New function.
4033         (do_one_test): Use it.
4034         (check1): New function.
4035         (test_main): Use it.
4036         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
4037         Support strcasecmp and strncasecmp.
4038
4039 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
4040
4041         [BZ #12194]
4042         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
4043         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4044
4045 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4046
4047         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
4048         IFUNC support.
4049         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4050         memset-x86-64.
4051         * sysdeps/x86_64/multiarch/bzero.S: New file.
4052         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
4053         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
4054         * sysdeps/x86_64/multiarch/memset.S: New file.
4055         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
4056         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4057         Set bit_Prefer_SSE_for_memop for Intel processors.
4058         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
4059         Define.
4060         (index_Prefer_SSE_for_memop): Define.
4061         (HAS_PREFER_SSE_FOR_MEMOP): Define.
4062
4063 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
4064
4065         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
4066         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
4067
4068 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4069
4070         [BZ #12191]
4071         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
4072         (__x86_64_raw_data_cache_size_half): Likewise.
4073         (__x86_64_raw_shared_cache_size): Likewise.
4074         (__x86_64_raw_shared_cache_size_half): Likewise.
4075
4076         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
4077         (__x86_64_raw_data_cache_size_half): Likewise.
4078         (__x86_64_raw_shared_cache_size): Likewise.
4079         (__x86_64_raw_shared_cache_size_half): Likewise.
4080         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
4081         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
4082         and __x86_64_raw_shared_cache_size_half.  Round
4083         __x86_64_data_cache_size_half, __x86_64_data_cache_size
4084         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
4085         to multiple of 256 bytes.
4086
4087 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
4088
4089         [BZ #12167]
4090         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
4091         of inacessible symlinks.  Verify result of symlink before returning it.
4092         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
4093         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
4094
4095 2010-10-28  Erich Ritz  <erichritz@gmail.com>
4096
4097         * math/math.h (isinf): Fix typo in comment.
4098
4099 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
4100
4101         * po/da.po: Update from translation team.
4102
4103 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
4104
4105         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
4106         is added to the list.
4107
4108 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4109             Ulrich Drepper  <drepper@gmail.com>
4110
4111         * elf/dl-object.c (_dl_new_object): Don't append the new object to
4112         the global list here.  Move code to...
4113         (_dl_add_to_namespace_list): ...here.  New function.
4114         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
4115         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
4116         * elf/dl-load.c (lose): Don't remove the element from the list.
4117         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
4118         (_dl_map_object): Likewise.
4119
4120 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
4121
4122         [BZ #12159]
4123         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
4124         into all bytes of SSE register.
4125         Patch by Richard Li <richardpku@gmail.com>.
4126
4127 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
4128
4129         [BZ #12140]
4130         * malloc/malloc.c (_int_free): Fill correct number of bytes when
4131         perturbing.
4132
4133 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
4134
4135         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
4136         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
4137         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
4138         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
4140         submachine.
4141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
4142
4143 2010-10-22  Andreas Schwab  <schwab@redhat.com>
4144
4145         * include/dlfcn.h (__RTLD_SECURE): Define.
4146         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
4147         mode & __RTLD_SECURE instead.
4148         (open_path): Rename preloaded parameter to secure.
4149         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
4150         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
4151         * elf/dl-deps.c (openaux): Likewise.
4152         * elf/rtld.c (struct map_args): Remove is_preloaded.
4153         (map_doit): Don't use it.
4154         (dl_main): Likewise.
4155         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
4156         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
4157
4158 2010-09-09  Andreas Schwab  <schwab@redhat.com>
4159
4160         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
4161         (sysd-rules-targets): Remove duplicates.
4162         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
4163         rtld-%.$o dependency.
4164
4165 2010-10-18  Andreas Schwab  <schwab@redhat.com>
4166
4167         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
4168         _dl_map_object do it.
4169
4170 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
4171
4172         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
4173         fast fma builtins, define the macros in the C99 standard.
4174         (FP_FAST_FMAF): Likewise.
4175         (FP_FAST_FMAL): Likewise.
4176         * sysdeps/x86_64/bits/mathdef.h: Likewise.
4177
4178         * bits/mathdef.h: Update copyright year.
4179         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4180
4181 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4182
4183         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
4184         builtins, define the macros in the C99 standard.
4185         (FP_FAST_FMAF): Likewise.
4186         (FP_FAST_FMAL): Likewise.
4187         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
4188         multiply/add.
4189         (FP_FAST_FMAF): Likewise.
4190
4191 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
4192
4193         [BZ #3268]
4194         * math/libm-test.inc (fma_test): Some new testcases.
4195         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
4196         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
4197         y and infinite z.  Do multiplication by C already in long double.
4198         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
4199         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
4200         y and infinite z.  Do bitwise or of inexact bit into u.d.
4201         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
4202         * sysdeps/i386/fpu/s_fmaf.S: Removed.
4203         * sysdeps/i386/fpu/s_fma.S: Removed.
4204         * sysdeps/i386/fpu/s_fmal.S: Removed.
4205
4206 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
4207
4208         [BZ #3268]
4209         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
4210         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
4211         computation is not scheduled after fetestexcept.  Fix value
4212         of minimum denormal long double.
4213
4214 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
4215
4216         [BZ #3268]
4217         * math/libm-test.inc (fma_test): Add some more tests.
4218         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
4219         correctly.
4220
4221 2010-10-15  Andreas Schwab  <schwab@redhat.com>
4222
4223         * scripts/data/localplt-s390-linux-gnu.data: New file.
4224         * scripts/data/localplt-s390x-linux-gnu.data: New file.
4225
4226 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
4227
4228         [BZ #3268]
4229         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
4230         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
4231         instead of dbl-64.
4232         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
4233         inlines.
4234         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
4235         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
4236         if one of x and y is very large and the other is subnormal.
4237         * sysdeps/s390/fpu/s_fmaf.c: New file.
4238         * sysdeps/s390/fpu/s_fma.c: New file.
4239         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
4240         * sysdeps/powerpc/fpu/s_fma.S: New file.
4241         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
4242         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
4243         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
4244
4245 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
4246
4247         [BZ #3268]
4248         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
4249         fma tests.
4250         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
4251         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
4252         * sysdeps/i386/i686/multiarch/s_fma.c: Include
4253         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
4254         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
4255         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
4256         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
4257
4258 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
4259
4260         [BZ #12078]
4261         * posix/regcomp.c (parse_branch): One more memory leak plugged.
4262         * posix/bug-regex31.input: Add test case.
4263
4264 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
4265
4266         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
4267         * posix/bug-regex31.input: New file.
4268
4269         [BZ #12078]
4270         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
4271         (parse_sub_exp): Fix last change, use postorder.
4272
4273         * posix/bug-regex31.c: New file.
4274         * posix/Makefile: Add rules to build and run bug-regex31.
4275
4276         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
4277
4278         [BZ #12078]
4279         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
4280
4281         [BZ #12108]
4282         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
4283         to have entries in sys_siglist.
4284
4285         [BZ #12093]
4286         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
4287         be NULL.
4288
4289 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
4290
4291         [BZ #3268]
4292         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
4293         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
4294         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
4295         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
4296         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
4297         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
4298         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
4299         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
4300         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
4301         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
4302         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
4303         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
4304         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
4305         * math/ftestexcept.c (fetestexcept): Likewise.
4306         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
4307         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
4308         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
4309         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
4310         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
4311         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
4312         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4313
4314 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
4315
4316         [BZ #12107]
4317         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
4318         newline.
4319
4320 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
4321
4322         * string/bug-strstr1.c: New file.
4323         * string/Makefile: Add rules to build and run bug-strstr1.
4324
4325 2010-10-05  Eric Blake  <eblake@redhat.com>
4326
4327         [BZ #12092]
4328         * string/str-two-way.h (two_way_long_needle): Always clear memory
4329         when skipping input due to the shift table.
4330
4331 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
4332
4333         [BZ #12005]
4334         * malloc/mcheck.c: Handle large requests.
4335
4336         [BZ #12077]
4337         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
4338         for strncmp and strncasecmp.
4339         * string/stratcliff.c: Add tests for strcmp and strncmp.
4340         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
4341
4342 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4343
4344         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
4345         __set_fpscr.
4346
4347 2010-09-30  Andreas Jaeger  <aj@suse.de>
4348
4349         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
4350         (CGROUP_SUPER_MAGIC): Define.
4351         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4352         Handle btrfs and cgroup file systems.
4353         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
4354         Likewise.
4355
4356 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
4357
4358         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
4359         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
4360
4361 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4362
4363         [BZ #12067]
4364         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
4365         trying to locate the ELF header.
4366
4367 2010-09-27  Andreas Schwab  <schwab@redhat.com>
4368
4369         [BZ #11611]
4370         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
4371         Mask out sign-bit copies when constructing f_fsid.
4372
4373 2010-09-24  Petr Baudis <pasky@suse.cz>
4374
4375         * debug/stack_chk_fail_local.c: Add missing licence exception.
4376         * debug/warning-nop.c: Likewise.
4377
4378 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
4379
4380         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
4381         implementing getdents64 using getdents syscall, set d_type if
4382         __ASSUME_GETDENTS32_D_TYPE.
4383
4384 2010-09-16  Andreas Schwab  <schwab@redhat.com>
4385
4386         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
4387         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
4388
4389 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
4390
4391         [BZ #12037]
4392         * posix/unistd.h: Undo change of feature selection for ftruncate from
4393         2010-01-11.
4394
4395 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
4396
4397         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
4398         detection.
4399
4400 2010-09-20  Andreas Schwab  <schwab@redhat.com>
4401
4402         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
4403         fanotify_mark.
4404         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
4405
4406 2010-09-14  Andreas Schwab  <schwab@redhat.com>
4407
4408         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
4409         variables after CHECK_SP call.
4410         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
4411
4412 2010-09-13  Andreas Schwab  <schwab@redhat.com>
4413             Ulrich Drepper  <drepper@redhat.com>
4414
4415         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
4416         re-relocationg ld.so.
4417         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
4418         _dl_init_paths call.
4419         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
4420         here anymore.
4421
4422 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
4423
4424         * resolv/res_init.c (__res_vinit): Count the default server we added.
4425
4426 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
4427             Ulrich Drepper  <drepper@redhat.com>
4428
4429         [BZ #11968]
4430         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
4431         (____longjmp_chk): Use %ebx for saving value across system call.
4432         Add unwind info.
4433
4434 2010-09-06  Andreas Schwab  <schwab@redhat.com>
4435
4436         * manual/Makefile: Don't mix pattern rules with normal rules.
4437
4438 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
4439
4440         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
4441         operation.
4442         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
4443         * libio/iofopncook.c (_IO_cookie_init): Likewise.
4444         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
4445         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
4446         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4447         Likewise.
4448
4449 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
4450
4451         [BZ #11979]
4452         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
4453         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
4454
4455 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
4456
4457         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
4458         * sysdeps/x86_64/addmul_1.S: Likewise.
4459         * sysdeps/x86_64/lshift.S: Likewise.
4460         * sysdeps/x86_64/mul_1.S: Likewise.
4461         * sysdeps/x86_64/rshift.S: Likewise.
4462         * sysdeps/x86_64/sub_n.S: Likewise.
4463         * sysdeps/x86_64/submul_1.S: Likewise.
4464
4465 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4466
4467         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
4468         Define __sched_param instead of SCHED_* and sched_param when
4469         <bits/sched.h> is included with __need_schedparam defined.
4470         * bits/sched.h [__need_schedparam]
4471         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
4472         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
4473         (__defined_schedparam): Define to 1.
4474         (__sched_param): New structure, identical to sched_param.
4475         (__need_schedparam): Undefine.
4476
4477 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
4478
4479         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
4480         (epoll_create1): Declare.
4481
4482         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
4483
4484 2010-08-31  Andreas Schwab  <schwab@redhat.com>
4485
4486         [BZ #7066]
4487         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
4488         shifting retval into place.
4489
4490 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
4491
4492         * nis/rpcsvc/nis.h: Update copyright notice.
4493         * nis/rpcsvc/nis.x: Likewise.
4494         * nis/rpcsvc/nis_callback.h: Likewise.
4495         * nis/rpcsvc/nis_callback.x: Likewise.
4496         * nis/rpcsvc/nis_object.x: Likewise.
4497         * nis/rpcsvc/nis_tags.h: Likewise.
4498         * nis/rpcsvc/yp.h: Likewise.
4499         * nis/rpcsvc/yp.x: Likewise.
4500         * nis/rpcsvc/ypupd.h: Likewise.
4501         * nis/yp_xdr.c: Likewise.
4502         * nis/ypupdate_xdr.c: Likewise.
4503
4504         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
4505         mainly the body of pmap_getport.  Add parameters to specify timeouts.
4506         (pmap_getport): Use __libc_rpc_getport.
4507         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
4508         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
4509         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
4510
4511 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
4512
4513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
4514         fanotify_mark.
4515
4516 2010-08-27  Roland McGrath  <roland@redhat.com>
4517
4518         * sysdeps/i386/i686/multiarch/Makefile
4519         (CFLAGS-varshift.c): New variable.
4520
4521 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
4522
4523         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
4524         * sysdeps/i386/i686/multiarch/varshift.c: New file.
4525
4526         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
4527
4528         * sysdeps/x86_64/strlen.S: Minimal code improvement.
4529
4530 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
4531
4532         * sysdeps/x86_64/strlen.S: Unroll the loop.
4533         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4534         strlen-sse2 strlen-sse2-bsf.
4535         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
4536         __strlen_no_bsf if bit_Slow_BSF is set.
4537         (__strlen_sse42): Removed.
4538         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
4539         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
4540
4541 2010-08-25  Roland McGrath  <roland@redhat.com>
4542
4543         * sysdeps/x86_64/multiarch/varshift.S: File removed.
4544         * sysdeps/x86_64/multiarch/varshift.c: New file.
4545         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
4546         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
4547         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
4548         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
4549
4550 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
4551
4552         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
4553         strlen-sse2 strlen-sse2-bsf.
4554         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
4555         __strlen_sse2_bsf if bit_Slow_BSF is unset.
4556         (__strlen_sse2): Removed.
4557         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
4558         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
4559         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
4560         bit_Slow_BSF for Atom.
4561         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
4562         (index_Slow_BSF): Define.
4563         (HAS_SLOW_BSF): Define.
4564
4565 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
4566
4567         [BZ #10851]
4568         * resolv/res_init.c (__res_vinit): When no server address at all
4569         is given default to loopback.
4570
4571 2010-08-24  Roland McGrath  <roland@redhat.com>
4572
4573         * configure.in: Remove config-name.h generation.
4574         * configure: Regenerated.
4575         * config-name.in: File removed.
4576         * scripts/config-uname.sh: New file.
4577         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
4578         ($(objdir)config-name.h): New target.
4579
4580         * sunrpc/rpc_parse.h: Avoid nested comment.
4581
4582 2010-08-24  Richard Henderson  <rth@redhat.com>
4583             Ulrich Drepper  <drepper@redhat.com>
4584             H.J. Lu  <hongjiu.lu@intel.com>
4585
4586         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
4587         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
4588         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
4589         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
4590         _mm_alignr_epi8 with _mm_loadu_si128.
4591         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
4592         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
4593         (__m128i_shift_right): Removed.
4594         * sysdeps/i386/i686/multiarch/varshift.h: New file.
4595         * sysdeps/i386/i686/multiarch/varshift.S: New file.
4596         * sysdeps/x86_64/multiarch/varshift.h: New file.
4597         * sysdeps/x86_64/multiarch/varshift.S: New file.
4598
4599 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
4600
4601         * configure.in: Move assembler checks to before sysdep dir checking.
4602
4603 2010-08-20  Petr Baudis  <pasky@suse.cz>
4604
4605         * LICENSES: Sync the sunrpc license.
4606
4607 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
4608
4609         * sunrpc/auth_des.c: Update copyright notice once again.
4610         * sunrpc/auth_none.c: Likewise.
4611         * sunrpc/auth_unix.c: Likewise.
4612         * sunrpc/authdes_prot.c: Likewise.
4613         * sunrpc/authuxprot.c: Likewise.
4614         * sunrpc/bindrsvprt.c: Likewise.
4615         * sunrpc/clnt_gen.c: Likewise.
4616         * sunrpc/clnt_perr.c: Likewise.
4617         * sunrpc/clnt_raw.c: Likewise.
4618         * sunrpc/clnt_simp.c: Likewise.
4619         * sunrpc/clnt_tcp.c: Likewise.
4620         * sunrpc/clnt_udp.c: Likewise.
4621         * sunrpc/clnt_unix.c: Likewise.
4622         * sunrpc/des_crypt.c: Likewise.
4623         * sunrpc/des_soft.c: Likewise.
4624         * sunrpc/get_myaddr.c: Likewise.
4625         * sunrpc/getrpcport.c: Likewise.
4626         * sunrpc/key_call.c: Likewise.
4627         * sunrpc/key_prot.c: Likewise.
4628         * sunrpc/openchild.c: Likewise.
4629         * sunrpc/pm_getmaps.c: Likewise.
4630         * sunrpc/pm_getport.c: Likewise.
4631         * sunrpc/pmap_clnt.c: Likewise.
4632         * sunrpc/pmap_prot.c: Likewise.
4633         * sunrpc/pmap_prot2.c: Likewise.
4634         * sunrpc/pmap_rmt.c: Likewise.
4635         * sunrpc/rpc/auth.h: Likewise.
4636         * sunrpc/rpc/auth_unix.h: Likewise.
4637         * sunrpc/rpc/clnt.h: Likewise.
4638         * sunrpc/rpc/des_crypt.h: Likewise.
4639         * sunrpc/rpc/key_prot.h: Likewise.
4640         * sunrpc/rpc/netdb.h: Likewise.
4641         * sunrpc/rpc/pmap_clnt.h: Likewise.
4642         * sunrpc/rpc/pmap_prot.h: Likewise.
4643         * sunrpc/rpc/pmap_rmt.h: Likewise.
4644         * sunrpc/rpc/rpc.h: Likewise.
4645         * sunrpc/rpc/rpc_des.h: Likewise.
4646         * sunrpc/rpc/rpc_msg.h: Likewise.
4647         * sunrpc/rpc/svc.h: Likewise.
4648         * sunrpc/rpc/svc_auth.h: Likewise.
4649         * sunrpc/rpc/types.h: Likewise.
4650         * sunrpc/rpc/xdr.h: Likewise.
4651         * sunrpc/rpc_clntout.c: Likewise.
4652         * sunrpc/rpc_cmsg.c: Likewise.
4653         * sunrpc/rpc_common.c: Likewise.
4654         * sunrpc/rpc_cout.c: Likewise.
4655         * sunrpc/rpc_dtable.c: Likewise.
4656         * sunrpc/rpc_hout.c: Likewise.
4657         * sunrpc/rpc_main.c: Likewise.
4658         * sunrpc/rpc_parse.c: Likewise.
4659         * sunrpc/rpc_parse.h: Likewise.
4660         * sunrpc/rpc_prot.c: Likewise.
4661         * sunrpc/rpc_sample.c: Likewise.
4662         * sunrpc/rpc_scan.c: Likewise.
4663         * sunrpc/rpc_scan.h: Likewise.
4664         * sunrpc/rpc_svcout.c: Likewise.
4665         * sunrpc/rpc_tblout.c: Likewise.
4666         * sunrpc/rpc_util.c: Likewise.
4667         * sunrpc/rpc_util.h: Likewise.
4668         * sunrpc/rpcinfo.c: Likewise.
4669         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
4670         * sunrpc/rpcsvc/key_prot.x: Likewise.
4671         * sunrpc/rpcsvc/klm_prot.x: Likewise.
4672         * sunrpc/rpcsvc/mount.x: Likewise.
4673         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
4674         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
4675         * sunrpc/rpcsvc/rex.x: Likewise.
4676         * sunrpc/rpcsvc/rstat.x: Likewise.
4677         * sunrpc/rpcsvc/rusers.x: Likewise.
4678         * sunrpc/rpcsvc/sm_inter.x: Likewise.
4679         * sunrpc/rpcsvc/spray.x: Likewise.
4680         * sunrpc/rpcsvc/yppasswd.x: Likewise.
4681         * sunrpc/rtime.c: Likewise.
4682         * sunrpc/svc.c: Likewise.
4683         * sunrpc/svc_auth.c: Likewise.
4684         * sunrpc/svc_authux.c: Likewise.
4685         * sunrpc/svc_raw.c: Likewise.
4686         * sunrpc/svc_run.c: Likewise.
4687         * sunrpc/svc_simple.c: Likewise.
4688         * sunrpc/svc_tcp.c: Likewise.
4689         * sunrpc/svc_udp.c: Likewise.
4690         * sunrpc/svc_unix.c: Likewise.
4691         * sunrpc/svcauth_des.c: Likewise.
4692         * sunrpc/xcrypt.c: Likewise.
4693         * sunrpc/xdr.c: Likewise.
4694         * sunrpc/xdr_array.c: Likewise.
4695         * sunrpc/xdr_float.c: Likewise.
4696         * sunrpc/xdr_mem.c: Likewise.
4697         * sunrpc/xdr_rec.c: Likewise.
4698         * sunrpc/xdr_ref.c: Likewise.
4699         * sunrpc/xdr_sizeof.c: Likewise.
4700         * sunrpc/xdr_stdio.c: Likewise.
4701
4702         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
4703         handling.
4704
4705 2010-08-19  Andreas Schwab  <schwab@redhat.com>
4706
4707         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
4708
4709 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
4710
4711         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
4712         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
4713         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
4714         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
4715         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
4716         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
4717         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
4718         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
4719         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
4720         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
4721         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
4722         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
4723         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
4724         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
4725
4726 2010-07-26  Anton Blanchard  <anton@samba.org>
4727
4728         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
4729         * malloc/arena.c (heap_trim): Likewise.
4730
4731 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
4732
4733         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
4734         here.  Not...
4735         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
4736         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
4737
4738 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
4739
4740         * sysdeps/i386/elf/Makefile: New file.
4741
4742 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
4743
4744         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
4745         from fanotify_init.
4746         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
4747         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
4748
4749 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
4750
4751         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
4752         of strncasecmp_l.
4753         * sysdeps/multiarch/strcmp.S: Likewise.
4754
4755 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
4756
4757         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
4758         strncase_l-nonascii.
4759         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
4760         Add strncase_l-ssse3.
4761         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
4762         * sysdeps/x86_64/strcmp.S: Likewise.
4763         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
4764         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
4765         * sysdeps/x86_64/strncase.S: New file.
4766         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
4767         * sysdeps/x86_64/strncase_l.S: New file.
4768         * string/Makefile (strop-tests): Add strncasecmp.
4769         * string/test-strncasecmp.c: New file.
4770
4771         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
4772         warning.
4773
4774         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
4775         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
4776
4777 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
4778
4779         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
4780
4781 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
4782
4783         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
4784         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4785         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4786
4787 2010-05-01  Alan Modra  <amodra@gmail.com>
4788
4789         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
4790         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
4791         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
4792         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
4793         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
4794         tidying.  Don't tail-call __sigjmp_save for static lib.
4795         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
4796         save location.
4797         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
4798         (CALL_MCOUNT): Add eh info, and nop after bl.
4799         (TAIL_CALL_SYSCALL_ERROR): New macro.
4800         (PSEUDO_RET): Use it.
4801         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
4802         Correct save location of integer regs and cr.
4803         (_dl_profile_resolve): Correct cr save location.  Delete nops
4804         after bl when SHARED.  Reduce cfi size a little by better
4805         placement of cfi directives.
4806         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
4807         make a stack frame.  Instead use parm save area as a temp.
4808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
4809         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
4810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4811         Don't make a stack frame for parent, use parm save area.
4812         Increase child stack frame to 112 bytes.  Don't save unused reg,
4813         and adjust reg usage.  Set up cfi on error recovery and
4814         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
4815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
4816         (__makecontext): Add dummy nop after jump to exit.
4817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
4818         Use correct parm save area and cr save, reduce stack frame.
4819         Correct cfi for possible PSEUDO_RET frame setup.
4820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
4821         Branch to local label emitted by PSEUDO_RET rather than
4822         __syscall_error.
4823
4824 2010-08-12  Andreas Schwab  <schwab@redhat.com>
4825
4826         [BZ #11904]
4827         * locale/programs/locale.c (print_assignment): New function.
4828         (show_locale_vars): Use it.
4829
4830 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
4831
4832         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
4833         field.
4834         (struct statfs64): Likewise.
4835         (_STATFS_F_FLAGS): Define.
4836         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
4837         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
4838         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
4839         (ST_VALID): Define locally.
4840         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
4841         __statvfs_getflags, use the provided value.
4842         * sysdeps/unix/sysv/linux/kernel-features.h: Define
4843         __ASSUME_STATFS_F_FLAGS.
4844
4845         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
4846
4847         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
4848         Add sys/fanotify.h.
4849         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
4850         fanotify_mask for GLIBC_2.13.
4851         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
4852         fanotify_init and fanotify_mark.
4853         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
4854         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
4855
4856         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
4857         Add prlimit.
4858         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
4859         prlimit64 for GLIBC_2.13.
4860         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
4861         prlimit64.
4862         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
4863         syscall.
4864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
4865         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
4866         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
4867         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
4868         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
4869         add prlimit alias.
4870         * sysdeps/unix/sysv/linux/prlimit.c: New file.
4871
4872         [BZ #11903]
4873         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
4874         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
4875
4876         * nss/Makefile: Add rules to build and run tst-nss-test1.
4877         * shlib-versions: Add entry for libnss_test1.
4878         * nss/nss_test1.c: New file.
4879         * nss/tst-nss-test1.c: New file.
4880
4881         * nss/nsswitch.c (__nss_database_custom): Define new variable.
4882         (__nss_configure_lookup): Set appropriate entry in
4883         __nss_configure_lookup to true.
4884         * nss/nsswitch.h: Define enum with indeces of databases in
4885         databases and __nss_database_custom arrays.  Declare
4886         __nss_database_custom.
4887         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
4888         to avoid using nscd when custom rules are installed.
4889         * nss/getXXbyYY_r.c: Likewise.
4890         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4891
4892         * nss/nss_files/files-parse.c: Whitespace fixes.
4893
4894 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
4895
4896         [BZ #11883]
4897         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
4898         * posix/fnmatch_loop.c: Likewise.
4899
4900 2010-07-17  Andi Kleen  <ak@linux.intel.com>
4901
4902         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
4903         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
4904         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
4905         * Versions.def [GLIBC_2.13]: Add.
4906
4907 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
4908
4909         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
4910         Also fail if tpwd after pwuid call is NULL.
4911
4912 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4913
4914         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
4915         when converting to ms.
4916
4917 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4918
4919         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
4920         EOPNOTSUPP errors with ENOTTY.
4921         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
4922         EOPNOTSUPP errors with ENOTTY.
4923
4924 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
4925
4926         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
4927         Add strcasecmp_l-ssse3.
4928         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
4929         strcasecmp.
4930         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
4931         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
4932         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
4933
4934 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
4935
4936         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
4937
4938         * string/Makefile (strop-tests): Add strcasecmp.
4939         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
4940         strcasecmp_l-nonascii.
4941         (gen-as-const-headers): Add locale-defines.sym.
4942         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
4943         * sysdeps/x86_64/strcasecmp.S: New file.
4944         * sysdeps/x86_64/strcasecmp_l.S: New file.
4945         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
4946         * sysdeps/x86_64/locale-defines.sym: New file.
4947         * string/test-strcasecmp.c: New file.
4948
4949         * string/test-strcasestr.c: Test both ends of the range of characters.
4950         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
4951
4952 2010-07-29  Roland McGrath  <roland@redhat.com>
4953
4954         [BZ #11856]
4955         * manual/locale.texi (Yes-or-No Questions): Fix example code.
4956
4957 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
4958
4959         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
4960         for ld.so.
4961
4962 2010-07-27  Andreas Schwab  <schwab@redhat.com>
4963
4964         * manual/memory.texi (Malloc Tunable Parameters): Document
4965         M_PERTURB.
4966
4967 2010-07-26  Roland McGrath  <roland@redhat.com>
4968
4969         [BZ #11840]
4970         * configure.in (-fgnu89-inline check): Set and substitute
4971         gnu89_inline, not libc_cv_gnu89_inline.
4972         * configure: Regenerated.
4973         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
4974
4975 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
4976
4977         * string/test-strnlen.c: New file.
4978         * string/Makefile (strop-tests): Add strnlen.
4979         * string/tester.c (test_strnlen): Add a few more test cases.
4980         * string/tst-strlen.c: Better error reporting.
4981
4982         * sysdeps/x86_64/strnlen.S: New file.
4983
4984 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
4985
4986         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
4987         lower-latency instructions.
4988
4989 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
4990
4991         * string/test-strcasestr.c: New file.
4992         * string/test-strstr.c: New file.
4993         * string/Makefile (strop-tests): Add strstr and strcasestr.
4994         * string/str-two-way.h: Don't undefine MAX.
4995         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
4996
4997 2010-07-21  Andreas Schwab  <schwab@redhat.com>
4998
4999         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
5000         strcasestr-nonascii.
5001         (CFLAGS-strcasestr-nonascii.c): Define.
5002         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
5003         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
5004         Remove unused attribute.
5005
5006 2010-07-20  Roland McGrath  <roland@redhat.com>
5007
5008         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
5009         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
5010         ld.so.cache was broken.  With it, there is no way to disable dsocaps
5011         like LD_HWCAP_MASK can disable hwcaps.
5012
5013 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
5014
5015         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
5016
5017 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
5018
5019         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
5020         call in strcasestr.
5021         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
5022         __strcasestr_sse42_nonascii.
5023         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
5024         strcasestr-nonascii.c.
5025         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
5026
5027 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
5028
5029         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
5030         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
5031         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
5032         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
5033
5034 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
5035
5036         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
5037         fcntl.
5038
5039 2010-07-06  Andreas Schwab  <schwab@redhat.com>
5040
5041         [BZ #11577]
5042         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
5043         dl_signal_cerror.
5044
5045 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
5046
5047         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
5048         _PC_PIPE_BUF using F_GETPIPE_SZ.
5049
5050 2010-07-05  Roland McGrath  <roland@redhat.com>
5051
5052         * manual/arith.texi (Rounding Functions): Fix rint description
5053         implicit in round description.
5054
5055 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
5056
5057         * elf/Makefile: Fix linking for a few tests to make recent linker
5058         happy.
5059
5060 2010-06-30  Andreas Schwab  <schwab@redhat.com>
5061
5062         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
5063         $(common-objpfx)libc_nonshared.a.
5064
5065 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
5066
5067         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
5068         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
5069         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
5070         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
5071         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
5072         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
5073         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
5074         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
5075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
5076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
5077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
5078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
5079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
5080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
5081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
5082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
5083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
5084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
5085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
5086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
5087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
5088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
5089         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
5090         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
5091         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
5092         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
5093         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
5094         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
5095         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
5096         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
5097         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
5098         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
5099         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
5100         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
5101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
5102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
5103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
5104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
5105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
5106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
5107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
5108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
5109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
5110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
5111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
5112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
5113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
5114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
5115
5116 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5117
5118         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
5119         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
5120         * string/memmove.c (memmove): Renamed to ...
5121         (MEMMOVE): ...this.  Default to memmove.
5122         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
5123         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
5124         (END_CHK): Define.
5125         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5126         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
5127         mempcpy-ssse3-back memmove-ssse3-back.
5128         * sysdeps/x86_64/multiarch/bcopy.S: New file .
5129         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
5130         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
5131         * sysdeps/x86_64/multiarch/memcpy.S: New file.
5132         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
5133         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
5134         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
5135         * sysdeps/x86_64/multiarch/memmove.c: New file.
5136         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
5137         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
5138         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
5139         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
5140         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
5141         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
5142         Define.
5143         (index_Fast_Copy_Backward): Define.
5144         (HAS_ARCH_FEATURE): Define.
5145         (HAS_FAST_REP_STRING): Define.
5146         (HAS_FAST_COPY_BACKWARD): Define.
5147
5148 2010-06-21  Andreas Schwab  <schwab@redhat.com>
5149
5150         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
5151         Restore proper fallback handling.
5152
5153 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
5154
5155         [BZ #11701]
5156         * posix/group_member.c (__group_member): Correct checking loop.
5157
5158         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
5159         OOM in getpwuid_r correctly.  Return error number when the caller
5160         should return, otherwise -1.
5161         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
5162         call returning > 0 value.
5163         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
5164
5165 2010-06-07  Andreas Schwab  <schwab@redhat.com>
5166
5167         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
5168         libc_nonshared.a from targets in modules-names.
5169
5170 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
5171
5172         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
5173         requires it.
5174
5175 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
5176
5177         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
5178         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
5179         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
5180         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
5181
5182 2010-06-02  Andreas Schwab  <schwab@redhat.com>
5183
5184         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
5185
5186 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
5187
5188         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
5189         and F_GETPIPE_SZ.
5190         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
5191         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
5192         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
5193         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
5194         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
5195         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
5196
5197 2010-06-14  Roland McGrath  <roland@redhat.com>
5198
5199         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
5200
5201 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
5202
5203         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
5204         __REDIRECT followed by __THROW.
5205         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
5206         * posix/getopt.h (getopt): Likewise.
5207
5208 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
5209
5210         * hurd/lookup-at.c (__file_name_lookup_at): Accept
5211         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
5212         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
5213         in AT_FLAGS.
5214         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
5215         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
5216
5217 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
5218
5219         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
5220
5221 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
5222
5223         [BZ #11640]
5224         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5225         Properly check family and model.
5226
5227 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
5228
5229         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
5230
5231 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
5232
5233         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
5234
5235 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
5236
5237         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
5238         symbol reference.
5239
5240 2010-05-19  Andreas Schwab  <schwab@redhat.com>
5241
5242         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
5243         symbol reference.
5244
5245 2010-05-21  Andreas Schwab  <schwab@redhat.com>
5246
5247         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
5248         and internal_recvmmsg.
5249         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
5250         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
5251         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
5252         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
5253
5254         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
5255         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
5256         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
5257
5258 2010-05-20  Andreas Schwab  <schwab@redhat.com>
5259
5260         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
5261
5262 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
5263
5264         POWER7 optimizations.
5265         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
5266         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
5267
5268 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
5269
5270         * version.h: Update for 2.13 development version.
5271
5272 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
5273
5274         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
5275         exceptions.  Return 0.
5276
5277 2010-05-07  Roland McGrath  <roland@redhat.com>
5278
5279         * elf/ldconfig.c (main): Add a const.
5280
5281 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
5282
5283         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
5284         (args_options): Add no-idn option.
5285         (ahosts_keys_int): Add idn_flags to ai_flags.
5286         (parse_option): Handle 'i' option to clear idn_flags.
5287
5288         * malloc/malloc.c (_int_free): Possible race in the most recently
5289         added check.  Only act on the data if no current modification
5290         happened.
5291
5292 See ChangeLog.17 for earlier changes.