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