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