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