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